Primary and standby link switching method and device, electronic device, and storage medium

By monitoring the status of the user plane and control plane ports and synchronizing data to the backup server, the problems of inefficient UPF master-support switching and waste of BFD resources are solved, and efficient master-support link switching and optimized utilization of BFD resources are achieved.

CN116074187BActive Publication Date: 2025-03-04CHINA TELECOM CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111275904.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-29
Publication Date
2025-03-04
Estimated Expiration
2041-10-29

AI Technical Summary

Technical Problem

The existing UPF master-support switching technology has problems such as inefficiency and waste of BFD resources, and there is a risk of single point of failure.

Method used

By monitoring the status of the user plane port and the control plane port, the control plane data is synchronized to the backup server. If an abnormal state is detected, a server switching instruction is generated and sent to the backup server. The target port is adjusted to the normal working state through the backup server, and the user plane data is sent to the backup server for processing.

Benefits of technology

It improves the efficiency of main and backup link handover, saves BFD resources within the switch, reduces the risk of single point of failure, and improves the utilization efficiency of BFD resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116074187B_ABST
    Figure CN116074187B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method and device for switching between primary and backup links, an electronic device, and a storage medium, and relates to the field of computer technology. The method for switching between primary and backup links includes: monitoring the status of the user plane port and the control plane port, and synchronizing the control plane data to the backup server; if an abnormal status is detected between the user plane port and the control plane port, adjusting the target user plane port and the target control plane port in the backup server to a normal working state through the backup server; sending the user plane data to the backup server, so that the backup server processes the service corresponding to the user plane data according to the control plane data. The technical solution of the embodiment of the present disclosure can trigger the dynamic switching of the primary and backup links by monitoring the user plane port and the control plane port of the main server, thereby improving the switching efficiency of the primary and backup links; at the same time, it also avoids controlling the switching of the preparation server through the two-way detection protocol, thereby saving network resources.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] With the continuous development of Internet technology, 5G networks are gradually approaching people's real life. However, in the 5G era, low-latency and high-efficiency processing of business data flows is still an urgent need for enterprises to have networks; as a result, UPF (User Port Function) active-standby switching technology has also emerged.

[0003] In the related UPF active-standby switching technology, the link failure between the UPF host and the TOR (Top of Rack, a data center wiring method) switch is detected through the BFD (Bidirectional Forwarding Detection, a network protocol used to detect failures between two forwarding points) mechanism, thereby triggering server switching. However, this UPF active-standby switching technology not only wastes the BFD resources inside the switch, but also has the risk of single point failure.

[0004] Therefore, proposing a primary-backup link switching method has important practical significance.

[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0006] The purpose of the embodiments of the present disclosure is to provide a primary-backup link switching method, a primary-backup link switching device, an electronic device and a computer-readable storage medium, thereby at least to a certain extent overcoming the problem of low efficiency of primary-backup link switching and the waste of BFD resources inside the switch caused by triggering primary-backup link switching through a BFD detection mechanism.

[0007] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.

[0008] According to a first aspect of an embodiment of the present disclosure, a primary-backup link switching method is provided, comprising: monitoring the status of a user plane port and a control plane port, and synchronizing control plane data to a backup server; if an abnormal status is detected in the user plane port and the control plane port, generating a server switching instruction, and sending the server switching instruction to the backup server; adjusting a target user plane port and a target control plane port in the backup server to a normal working state through the backup server; and sending the user plane data to the backup server so that the backup server processes the services corresponding to the user plane data according to the control plane data.

[0009] In some example embodiments of the present disclosure, based on the aforementioned scheme, the monitoring of the status of the user plane port and the control plane port, and synchronizing the control plane data to the backup server include: driving the user plane software and the control plane software through the network card to respectively monitor the user plane port status and the control plane port status, and synchronizing the control plane data to the backup server based on the high availability control software.

[0010] In some example embodiments of the present disclosure, based on the aforementioned scheme, the method further includes: if it is detected that any of the user plane software, the control plane software, and the high-availability control software terminates or exits abnormally during operation, the backup server automatically switches to the main server.

[0011] In some example embodiments of the present disclosure, based on the aforementioned scheme, generating a server switching instruction and sending the server switching instruction to the backup server includes: if it is monitored that the heartbeat of the high availability control software is normal, generating a server switching instruction; and sending the server switching instruction to the backup server through the high availability control software.

[0012] In some example embodiments of the present disclosure, based on the aforementioned scheme, the method further includes: if the target high-availability control software in the backup server detects that the high-availability control software has timed out in sending a heartbeat packet, the backup server is notified through the network management software module to switch itself to the main server.

[0013] In some example embodiments of the present disclosure, based on the aforementioned scheme, adjusting the target user plane port and the target control plane port in the backup server to a normal working state through the backup server includes: controlling the target user plane software and the target control plane module in the backup server through the target high-availability control software, and adjusting the target user plane port to a normal working state based on the target user plane software, and adjusting the target control plane port to a normal working state based on the target control plane module.

[0014] In some example embodiments of the present disclosure, based on the aforementioned solution, the sending of the user plane data to the standby server includes: if it is monitored that the switching with the standby server is successful, monitoring the state of the switch connected to the user plane software and the control plane software; if it is monitored that the state of the switch is abnormal, sending a routing update request to a network access point associated with the switch and obtaining routing update information replanned by the network access point; according to the routing update information, the user plane data is sent to the standby server through a target switch connected to the target user plane module and the target control plane module.

[0015] In some example embodiments of the present disclosure, based on the aforementioned scheme, the method further includes: establishing a communication connection between the switch and the target switch via a stacking line; if the status of the switch is monitored to be normal, sending the user plane data to the backup server via the stacking line.

[0016] According to the second aspect of the embodiment of the present disclosure, a primary-backup link switching device is provided, including: a monitoring module, a switching instruction generation module, a port state adjustment module, and a data sending module. Among them, the monitoring module is used to monitor the status of the user plane port and the control plane port, and synchronize the control plane data to the backup server; the switching instruction generation module is used to generate a server switching instruction if it is detected that the user plane port and the control plane port are in an abnormal state, and send the server switching instruction to the backup server; the port state adjustment module is used to adjust the target user plane port and the target control plane port in the backup server to a normal working state through the backup server; the data sending module is used to send the user plane data to the backup server, so that the backup server processes the business corresponding to the user plane data according to the control plane data.

[0017] In some example embodiments of the present disclosure, based on the aforementioned scheme, the monitoring module includes a monitoring unit, which is used to respectively monitor the user plane port status and the control plane port status through the network card driving user plane software and control plane software, and synchronize the control plane data to the backup server based on high availability control software.

[0018] In some example embodiments of the present disclosure, based on the aforementioned scheme, the monitoring module also includes a detection unit, and the detection unit is used to automatically switch the backup server to the main server if it is detected that the user plane software, the control plane software, and any of the high-availability control software terminate or exit abnormally during operation.

[0019] In some example embodiments of the present disclosure, based on the aforementioned scheme, the switching instruction generation module includes a first switching instruction sending unit, and the first switching instruction sending unit is used to generate a server switching instruction if the heartbeat of the high availability control software is monitored to be normal; and send the server switching instruction to the backup server through the high availability control software.

[0020] In some example embodiments of the present disclosure, based on the aforementioned scheme, the switching instruction generation module also includes a second switching instruction sending unit, and the second switching instruction sending unit is used to notify the backup server through the network management software module to switch itself to the main server if the target high-availability control software in the backup server detects that the high-availability control software has timed out in sending a heartbeat packet.

[0021] In some example embodiments of the present disclosure, based on the aforementioned scheme, the port state adjustment module includes a port state adjustment unit, and the port state adjustment unit is used to control the target user plane software and the target control plane module in the backup server through the target high-availability control software, and adjust the target user plane port to a normal working state based on the target user plane software, and adjust the target control plane port to a normal working state based on the target control plane module.

[0022] In some example embodiments of the present disclosure, based on the aforementioned scheme, the data sending module includes a routing update information acquisition unit, and the routing update information acquisition unit is used to monitor the state of the switch connected to the user plane software and the control plane software if it is monitored that the switching with the backup server is successful; if it is monitored that the state of the switch is abnormal, send a routing update request to a network access point associated with the switch, and obtain routing update information re-planned by the network access point; according to the routing update information, send the user plane data to the backup server through the target switch connected to the target user plane module and the target control plane module.

[0023] In some example embodiments of the present disclosure, based on the aforementioned scheme, the data sending module also includes a communication connection unit, which is used to establish a communication connection between the switch and the target switch through a stacking line; if the status of the switch is monitored to be normal, the user plane data is sent to the backup server through the stacking line.

[0024] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the primary-backup link switching method described in any one of the above is implemented.

[0025] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the primary-backup link switching method according to any one of the above items is implemented.

[0026] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0027] The method for switching the active / standby link in the example embodiment of the present disclosure monitors the status of the user plane port and the control plane port, and synchronizes the control plane data to the standby server; if the user plane port and the control plane port are detected to be in an abnormal state, a server switching instruction is generated, and the server switching instruction is sent to the standby server; the target user plane port and the target control plane port in the standby server are adjusted to a normal working state by the standby server; the user plane data is sent to the standby server, so that the standby server processes the service corresponding to the user plane data according to the control plane data. On the one hand, by monitoring the status of the user plane port and the control plane port, and triggering the generation of the active / standby switching instruction when the status of the user plane port and the control plane port is detected to be abnormal, and switching the standby server to the active server is avoided by controlling the active / standby link switching through the BFD mechanism, saving the BFD resources in the switch, and thereby improving the utilization efficiency of the BFD resources; on the other hand, by adjusting the target user port and the target control plane port in the standby server to a normal working state by the standby server, it is not necessary to adjust the status of the target user port and the target control plane port in the standby server by adding a new link, thereby improving the efficiency of the active / standby link switching.

[0028] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and together with the specification, are used to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0030] Figure 1 A schematic diagram of a related 5G UPF active / standby link fast switching system is schematically shown;

[0031] Figure 2 A schematic diagram schematically shows a process flow of a method for switching a primary link to a backup link according to some embodiments of the present disclosure;

[0032] Figure 3 A schematic diagram schematically illustrates a server switching instruction transmission process according to some embodiments of the present disclosure;

[0033] Figure 4 A schematic diagram schematically shows a user plane data transmission process according to some embodiments of the present disclosure;

[0034] Figure 5A schematic diagram schematically shows another user plane data transmission process according to some embodiments of the present disclosure;

[0035] Figure 6 A schematic diagram of a primary-backup link switching system based on a monitoring mechanism according to some embodiments of the present disclosure is schematically shown;

[0036] Figure 7 A schematic diagram schematically shows a primary-backup link switching device according to some embodiments of the present disclosure;

[0037] Figure 8 A schematic diagram schematically shows a structure of a computer system of an electronic device according to some embodiments of the present disclosure;

[0038] Fig. 9 A schematic diagram of a computer-readable storage medium according to some embodiments of the present disclosure is schematically shown.

[0039] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts. DETAILED DESCRIPTION

[0040] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be more comprehensive and complete and will fully convey the concept of the example embodiments to those skilled in the art.

[0041] In addition, the described features, structures or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known methods, devices, implementations or operations are not shown or described in detail to avoid blurring the various aspects of the present disclosure.

[0042] Furthermore, the drawings are only schematic illustrations and are not necessarily drawn to scale. The block diagrams shown in the drawings are only functional entities and do not necessarily correspond to physically separate entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0043] Figure 1The schematic diagram of a related 5G UPF active / standby link fast switching system is schematically shown. The 5G UPF active / standby link fast switching system 100 includes: a main control board 110, multiple 5G service boards 120, a first external three-layer switch 130, and a second external three-layer switch 140.

[0044] Among them, the main control board 110 includes a main control main board 111 and a main control standby board 112. The main control main board 111 includes a main board CPU and a main board switch, and the main board CPU and the main board switch LSW are connected through a network port; the standby control main board 112 includes a standby board CPU and a standby board switch LSW; the main board CPU and the standby board CPU are connected through a master-standby protocol; multiple 5G service boards 120 are connected to the main board switch LSW of the main control main board 111; the main board CPU is connected to the first external three-layer switch 130 through the first main board uplink network port for BFD protocol communication; the data streams of multiple 5G service boards 120 are converged through the main board switch LSW of the main control main board, and then sent from the external first main board uplink network port to the external first external three-layer switch 130. The main board CPU is connected to the first external three-layer switch 130 through the first main board uplink network port, the main board CPU is connected to the standby board CPU through the second network port, the main board CPU is connected to the main board switch LSW through the third network port, the main board CPU actively sends messages to the external network through the third network port, the main board switch LSW and the first external three-layer switch 130 transmit business data streams, and the standby board switch LSW and the second external three-layer switch 140 transmit business data streams.

[0045] The 5G UPF active-standby link fast switching method mainly performs link detection tasks through the BFD mechanism to determine the BFD port status of the main board. If the BFD port is down, the BFD port status of the standby board is obtained through the heartbeat link. If the standby board BFD port is up, the standby board CPU is issued to the main board CPU through the heartbeat link to open the port channel from the standby board LSW switch chip to the second external three-layer switch L3 LSW, and at the same time open the active-standby link port channel of the main board switch chip, so that the service data can pass from the standby board to the main board, and finally close the service data channel from the main board switch chip to the first external three-layer switch L3 LSW to complete the active-standby link switching. However, this solution consumes the BFD resources between the main board and the external switch L3 LSW, as well as the BFD resources between the standby board and the external switch L3 LSW, resulting in a reduction in the BFD resources available to the outside. In addition, in this solution, there is only a single heartbeat link composed of the active-standby protocol between the main board CPU and the standby CPU, which has a single point failure risk. If the main board LSW fails, the service data will be interrupted.

[0046] Generally, switches only have about 200 BFDs. For edge UPF, each N6 dedicated line will consume a BFD. BFD resources limit the opening of business volume, so saving BFD resources on the switch is particularly important. At the same time, once the heartbeat between the host and the backup machine is disconnected, it may lead to a dual-master situation, resulting in server redundancy, thereby wasting server resources and increasing the possibility of the host and the backup machine entering a brain split state due to a single heartbeat link failure. In order to solve the technical problems existing in the related master-slave link switching method, the present application proposes a master-slave link switching method.

[0047] In this exemplary embodiment, a primary-backup link switching method is first provided, and the primary-backup link switching method can be applied to a server. Figure 2 The following is a schematic diagram showing the process of the primary and backup link switching method according to some embodiments of the present disclosure. Figure 2 As shown, the method may include the following steps:

[0048] In step S210, the status of the user plane port and the control plane port are monitored, and the control plane data is synchronized to the standby server;

[0049] In step S220, if it is monitored that the user plane port and the control plane port are in an abnormal state, a server switching instruction is generated and sent to the standby server;

[0050] In step S230, adjusting the target user plane port and the target control plane port in the standby server to a normal working state through the standby server;

[0051] In step S240, the user plane data is sent to the standby server, so that the standby server processes the service corresponding to the user plane data according to the control plane data.

[0052] According to the primary-backup link switching method in this example embodiment, on the one hand, by monitoring the status of the user plane port and the control plane port, and when detecting that the status of the user plane port and the control plane port is abnormal, the primary-backup switching instruction is triggered and the backup server is switched to the primary server, thereby avoiding controlling the primary-backup link switching through the BFD mechanism, saving BFD resources in the switch, and thereby improving the utilization efficiency of BFD resources; on the other hand, by adjusting the target user port and the target control plane port in the backup server to a normal working state through the backup server, there is no need to adjust the status of the target user port and the target control plane port in the backup server by adding a new link, thereby improving the efficiency of the primary-backup link switching.

[0053] The following further describes the primary and backup link switching method in this exemplary embodiment.

[0054] In step S210, the status of the user plane port and the control plane port is monitored, and the control plane data is synchronized to the standby server.

[0055] In an example embodiment of the present disclosure, the user plane port may refer to a network port used to establish a communication connection between the user plane software and the switch. For example, the user plane port may be three network ports used to establish a communication connection between the user plane software and the switch. Of course, the user plane port may also be other number of network ports used to establish a communication connection between the user plane software and the switch, and this example embodiment does not specifically limit this. Among them, the user plane software may refer to software that forwards service data at high speed according to the forwarding rules issued by the control plane software. The control plane software may refer to software responsible for managing user sessions and issuing forwarding rules to the user plane module.

[0056] Control plane data may refer to template data used to manage user data sent by the client. For example, the control plane data may be template data used to control user data forwarding rules. The control plane data may also be template data used to control user data processing procedures. Of course, the control plane data may also be template data used to manage other user data sent by the client. This embodiment does not specifically limit this.

[0057] The control plane port may refer to a network port used to establish a communication connection between the control plane software and the switch. For example, the control plane port may be a network port used to establish a communication connection between the control plane software and the switch. Of course, the control plane port may also be any other number of network ports used to establish a communication connection between the control plane software and the switch. This embodiment does not specifically limit this.

[0058] The user plane software and control plane software in the main server can be driven by the network card to monitor the status of the network ports associated with each other, for example, the user plane software in the main server can be driven by the network card to monitor the status of the user plane port, and the control plane software in the main server can be driven by the network card to monitor the status of the control plane port; at the same time, when the software modules in the main server and the backup server are operating normally, the control plane software of the main server can synchronize the control plane data such as online user session information to the backup server through the high-availability control software in the main server. Among them, the high-availability control software can refer to a software module for managing the user plane software and the control plane software, as well as the network management software module. For example, the high-availability control software can also be a software module for notifying the user plane software and the control software module to open the user plane port and the control plane port respectively to adjust the user plane port and the control plane port to the working state. The high-availability control software can also be a software module for monitoring the process working state of the user plane software, the control plane software and the network management software module. Of course, the high-availability control software can also be a software module for managing other information of the user plane software and the control plane software, as well as the network management software module, and this embodiment does not make special restrictions on this.

[0059] In step S220, if it is monitored that the user plane port and the control plane port are in abnormal state, a server switching instruction is generated and sent to the standby server.

[0060] In an example embodiment of the present disclosure, a server switching instruction may refer to an instruction for controlling the switching of a primary link and a backup link. For example, the server switching instruction may be an instruction for switching a backup server to a primary server. The server switching instruction may also be an instruction for controlling the status of each software module of the backup server when the backup server is switched to the primary server. Of course, the server switching instruction may also be other instructions for controlling the switching of the primary link and this example embodiment does not specifically limit this.

[0061] The network card can be used to drive each software module in the main server to monitor the status of the network ports associated with each of them, and obtain the port events corresponding to the faulty network ports in real time, so as to trigger the main server to generate a server switching instruction through the port event, and send the server switching instruction to the backup server through the high-availability control software, so that the backup server switches itself to the main server, replacing the main server to process the user plane data according to the control plane. At the same time, in the case of abnormal high-availability control software status of the main server, the heartbeat of the high-availability software module of the main server can also be monitored through the target high-availability control module of the backup server. If the heartbeat of the high-availability software module of the main server is detected to be abnormal, the network management software module of the main server can be used to notify the backup server to switch itself to the main server.

[0062] When the main server is in normal status, the heartbeat link of the main server's high-availability control software can be used as the first heartbeat link to transmit the generated server switching instruction to the backup server through the first heartbeat link. The heartbeat link of the main server's network management software module can also be used as the second heartbeat link to notify the backup server to switch itself to the main server through the second heartbeat link, thereby reducing the risk of dual-master and avoiding server redundancy. At the same time, it also reduces the probability of brain split due to a single heartbeat link failure and improves the switching efficiency of the main and backup links.

[0063] In step S230, the target user plane port and the target control plane port in the standby server are adjusted to a normal working state through the standby server.

[0064] In an example embodiment of the present disclosure, the standby server also includes user plane software and control plane software, as well as a high-availability software module and a network management software module, and the functions of the user plane software, control plane software, high-availability software module, and network management software module of the standby server are the same as those of the user plane software, control plane software, high-availability software module, and network management software module in the main server. In order to conveniently distinguish the user plane software, control plane software, high-availability control software, and network management software modules in the main server and the standby server, the user plane software, control plane software, high-availability control software, and network management software module in the standby server can be named as target user plane software, target control plane software, target high-availability software module, and target network management software module, respectively, and no repeated limitation is made in the following text.

[0065] Similarly, in order to conveniently distinguish the user plane ports and control plane ports in the main server and the backup server, the user plane port and control plane port in the backup server can be named as the target user plane port and the target control plane port, respectively, wherein the target user plane port can refer to the network port used to establish a communication connection between the target user software module in the backup server and the target switch connected to the backup server, and the target control plane port can refer to the network port used to establish a communication connection between the target control plane software in the backup server and the target switch connected to the backup server.

[0066] After the server switching instruction is sent to the standby server, the target user plane software and target control plane software inside the standby server can adjust the target user plane ports and target control plane ports associated with each other to a working state, respectively. There is no need to add a new link to adjust the states of the target user port and the target control plane port in the standby server, thereby improving the efficiency of adjusting the states of the target user port and the target control plane port, improving the utilization efficiency of the target user plane software and the target control plane software, saving network link resources, and thereby reducing the cost of adjusting the target user plane port and the target control plane port.

[0067] In step S240, the user plane data is sent to the standby server, so that the standby server processes the service corresponding to the user plane data according to the control plane data.

[0068] In an example embodiment of the present disclosure, user plane data may refer to user data sent by a client. For example, user plane data may be online user session information sent by a client. User plane data may also be business data sent by a client. Of course, user plane data may also be other user data sent by a client. This example embodiment does not specifically limit this.

[0069] When the backup server switching is detected to be completed, the state of the switch connected to the user plane software and the control plane software in the main server can be monitored. If the state of the switch is detected to be abnormal, a routing update request can be sent to the network access point associated with the switch, and the routing update information re-planned by the network access point can be obtained. According to the routing update information, the user plane data is sent to the backup server through the target switch connected to the target user plane module and the target control plane module in the backup server. However, when it is detected that the state of the switch connected to the main service is normal, the user plane data can be sent to the backup server through the stacking line between the switch and the target switch corresponding to the backup server, which provides a double-layer guarantee for user plane data transmission, realizes real-time transmission of user plane data, reduces the processing delay of the service corresponding to the user plane data, and thus improves the processing efficiency of the service.

[0070] In an exemplary embodiment of the present disclosure, the user plane software and the control plane software may be driven by the network card to monitor the user plane port status and the control plane port status respectively, and the control plane data may be synchronized to the standby server based on the high availability control software.

[0071] Among them, the user plane software and control plane software can be driven by the network card to monitor the status of the user plane port and the control plane port respectively, and the events corresponding to the status changes of each port can be used to trigger the main server to generate a server switching instruction. At the same time, the control plane data of the main server can be synchronized to the backup server through the heartbeat link corresponding to the high-availability control software in the main server.

[0072] The user plane port and the event corresponding to the change of the user plane port status can be pre-bound, for example, the user plane port and the primary-backup link switching event corresponding to the abnormal user plane port status can be bound; the control plane port and the event corresponding to the change of the control plane port status can also be pre-bound, for example, the control plane port and the primary-backup link switching time corresponding to the abnormal control plane port status can be bound; then the user plane software and the control plane software can be driven by the network card to monitor the status of the user plane port and the control plane port respectively, and the events corresponding to the status change of each port can be used to trigger the main server to generate a server switching instruction. At the same time, the control plane data of the main server can be synchronized to the backup server through the heartbeat link corresponding to the high-availability control software in the main server. There is no need to trigger the primary-backup link switching through the BFD resources between the main server and the switch connected to the main server, and the BFD resources between the backup server and the target switch connected to the backup server, thereby saving the BFD resources inside the switch.

[0073] In an exemplary embodiment of the present disclosure, if it is detected that any software module in the user plane software, the control plane software, and the high-availability control software terminates or exits abnormally during operation, the standby server automatically switches to the main server.

[0074] Among them, it is possible to detect whether the user plane software, control plane software, and high-availability control software generate their own core files during operation. If core files are generated, it can be determined that the user plane software, control plane software, and high-availability control software have abnormal exits and terminations during operation, and the user plane software program, control plane software program, and high-availability control software program can be located based on their respective core files, and the corresponding stack calls and other information when each of them exits abnormally. Usually, the core file will contain the memory, register status, stack pointer, memory management information, and various function call stack information when the program is running.

[0075] In addition to monitoring whether the user plane port and the control plane port are in abnormal status, and triggering the primary and backup link switching through abnormal user plane port status and control plane port status, the primary and backup link switching can also be triggered by detecting whether the user plane software and the control plane software, as well as the high-availability control software, terminate or exit abnormally during operation, thereby improving the flexibility of controlling the primary and backup link switching and the real-time performance of the primary and backup link switching.

[0076] Figure 3 The following is a schematic diagram of a server switching instruction transmission process according to some embodiments of the present disclosure. Figure 3 As shown, the server switching instruction transmission method may include the following steps:

[0077] In step S310, if the heartbeat of the high availability control software is detected to be normal, a server switching instruction is generated;

[0078] In step S320, the server switching instruction is sent to the standby server through the high availability control software.

[0079] Among them, generally, the high-availability control software will periodically send heartbeat packets to the target high-availability control software of the standby server, and the target high-availability control software of the standby server can be checked by whether it has timed out and has not received the heartbeat packet sent by the high-availability control software. If the target high-availability control software has timed out and has not received the heartbeat packet sent by the high-availability control software, the heartbeat of the high-availability control software is abnormal; if the target high-availability control software can normally receive the heartbeat packet sent by the high-availability control software, the heartbeat of the high-availability control software is normal.

[0080] When the heartbeat of the high-availability control software is detected to be normal, and the user plane port and the control plane port are abnormal, the main server corresponding to the high-availability control software can generate a server switching instruction, and transmit the server switching instruction to the backup server through the heartbeat link between the high-availability control software and the target high-availability control software in the backup server. At the same time, when the heartbeat of the high-availability control software is detected to be normal, and any software module between the user plane software and the control plane software exits or terminates abnormally during operation, the main server corresponding to the high-availability control software can also generate a server switching instruction, and transmit the server switching instruction to the backup server through the heartbeat link between the high-availability control software and the target high-availability control software in the backup server.

[0081] The server switching instruction can be sent through the heartbeat link between the high-availability control software and the target high-availability control software in the backup server, reducing the dependence on the heartbeat link between the network management software modules, avoiding the simultaneous operation of the primary server and the backup server due to the disconnection of the heartbeat link between the network management software, resulting in server redundancy, and the risk of brain split between the primary server and the backup server due to the failure of a single heartbeat link between the network management software, thereby reducing the efficiency of business processing.

[0082] In an example embodiment of the present disclosure, if the target high availability control software in the backup server detects that the high availability control software has timed out sending a heartbeat packet, the backup server may be notified through the network management software module to switch itself to the primary server.

[0083] Among them, the network management software module may refer to a software module used to maintain and manage the entire UPF system. For example, the network management software module may be a software module used to manage the network connection status between the main server and the switch connected to the main server. The network management software module may also be a software module used to manage data transmission between the main server and the backup server. Of course, the network management software module may also be other software modules that have the function of maintaining and managing the entire UPF system. This embodiment does not specifically limit this.

[0084] The heartbeat of the high availability control software in the main server can be monitored by the target high availability control software in the backup server. If the target high availability control software in the backup server detects that the high availability control software has timed out sending the heartbeat packet, it can be determined that the state of the high availability control software is abnormal. Then, the backup server can be notified through the target high availability control software to switch itself to the main server, thereby avoiding the inability to transmit server switching instructions due to the abnormal heartbeat of the high availability control software in the main server, resulting in untimely switching of the main and backup links and reduced business processing efficiency.

[0085] In an example embodiment of the present disclosure, the target user plane software and the target control plane module in the standby server can be controlled by the target high-availability control software, and the target user plane port can be adjusted to a normal working state based on the target user plane software, and the target control plane port can be adjusted to a normal working state based on the target control plane module.

[0086] Among them, when the target high-availability control software receives a server switching instruction, or monitors that the high-availability control software of the main server has timed out in sending a heartbeat packet, the target high-availability control software can notify the target user plane software and the target control plane software to adjust the network ports associated with each other to normal working states, that is, the target user plane port is adjusted to a normal working state through the target user plane software, and the target control plane port is adjusted to a normal working state through the target control plane software, so as to realize the switching of the primary and backup links.

[0087] Because when the user plane port and control plane port, as well as the user plane software and control plane software, and the high-availability control software are in normal working state, the target user plane software of the backup server will close the target user plane port, and the target control plane software will close the target control plane port, so as to avoid the dual-master phenomenon and cause server redundancy. However, each network port of the main server and the backup server can use the same IP respectively, such as the user plane port and the target user plane port use the same IP, and the control plane port and the target control plane port use the same IP. When the target high-availability software receives the server switching instruction, or detects that the high-availability control software of the main server has timed out from sending a heartbeat packet, a free ARP (Address Resolution Protocol) packet can be sent to the target switch connected to the backup server to activate the backup server, thereby sending the user plane data to the backup server, so that the backup server replaces the main server to process the business corresponding to the user plane data according to the control plane data, thereby achieving low latency and high efficiency in processing business.

[0088] Figure 4 The following is a schematic diagram of a user plane data transmission process according to some embodiments of the present disclosure. Figure 4 As shown, the user plane data transmission method may include the following steps:

[0089] In step S410, if it is monitored that the switching with the standby server is successful, the status of the switch connected to the user plane software and the control plane software is monitored;

[0090] In step S420, if it is detected that the state of the switch is abnormal, a route update request is sent to a network access point associated with the switch, and route update information replanned by the network access point is obtained;

[0091] In step S430, the user plane data is sent to the standby server through a target switch connected to the target user plane module and the target control plane module according to the routing update information.

[0092] Among them, the network access point can refer to a switch for the main server and the backup server to uniformly access the network. For example, the network access point can be an EOR switch for the main server and the backup server to access the network. The network access point can also be an external switch LSW for the main server and the backup server to uniformly access the network. Of course, the network access point can also be other switches for the main server and the backup server to uniformly access the network. This embodiment does not make any special limitation to this.

[0093] For example, when the following situations occur, it can be determined that the state of the switch connected to the user plane software and the control plane software is abnormal. For example, when the heartbeat link between the high-availability software and the target high-availability software, as well as the heartbeat link between the network management software, are both blocked, it can be determined that the switch connected to the user plane software and the control plane software is faulty; when the switch of the main server is restarted, powered off, or crashed, it can also be determined that the switch connected to the user plane software and the control plane software is faulty; when the core file of the high-availability control software is monitored, it can also be determined that the switch connected to the user plane software and the control plane software is faulty.

[0094] The transmission path of the user plane data can be determined by monitoring the switch status of the user plane software and control plane software of the main server. Specifically, when the status of the switch connected to the user plane software and control plane software in the server is detected to be abnormal, the BFD between the terminal device connected to the switch and the external switch connected to the terminal device can be triggered. The external switch will reorganize the route so that the user plane data can be sent to the target terminal device connected to the target switch of the backup server through the terminal device, and the user plane data is transmitted to the target switch through the target terminal device, and then transmitted to the backup server by the target switch, thereby avoiding the failure of the switch failure of the main server to realize the real-time transmission of the user plane data.

[0095] Figure 5 The following schematically shows another user plane data transmission process according to some embodiments of the present disclosure. Figure 5 As shown, the user plane data transmission method may include the following steps:

[0096] In step S510, a communication connection is established between the switch and the target switch through a stacking line;

[0097] In step S520, if it is monitored that the status of the switch is normal, the user plane data is sent to the standby server through the stacking line.

[0098] The switch connected to the user plane software and control plane software in the main server and the target switch connected to the target user plane software and control plane software in the backup server can be configured as a logical switch in advance through stacking technology. When the switch of the main server fails, the target switch of the backup server automatically switches to the main switch.

[0099] For example, when the following situations occur, it can be determined that the state of the switch connected to the user plane software and the control plane software is normal. For example, in any of the situations where the user plane software detects that the user plane port is disconnected, the control plane software detects that the control plane port is disconnected, and the network management software detects that the network management port is disconnected, it can be determined that the state of the switch connected to the user plane software and the control plane software is normal, but the main server has a fault. At the same time, if the heartbeat link between the network management software is abnormal, and the heartbeat link between the high-availability control software and the target high-availability control software is normal, it can also be determined that the state of the switch connected to the user plane software and the control plane software is normal, but the main server has a fault. In addition, when the main server restarts, loses power or crashes, or when the core file of any one of the user plane software, control plane software, and network management software is monitored, it can also be determined that the state of the switch connected to the user plane software and the control plane software is normal, but the main server has a fault.

[0100] When it is monitored that the switch connected to the user plane software and the control plane software is in normal status, but the main server fails, a communication connection can be established between the switch of the main server and the target switch of the backup server through the stacking cable. When it is monitored that the switch of the main server is in normal status, the user plane data can be sent to the backup server through the stacking cable between the switch of the main server and the target switch of the backup server.

[0101] Figure 6 The following schematic diagram shows a primary-backup link switching system based on a monitoring mechanism according to some embodiments of the present disclosure. Figure 6 As shown, the master-slave link switching system 600 based on the monitoring mechanism mainly includes a master UPF network element 610, a backup UPF network element 620, a first terminal device 630, and a second terminal device 640.

[0102] The main UPF network element 610 includes a main server 611 and a switch 612. The main server 611 includes a user plane software 613, a control plane software 614, a network management software 615, and a high availability control software 616. The user plane software 613 and the switch 612 are connected through a first user plane port 617, a second user plane port 618, and a third user plane port 619; the control plane software 614 and the switch 612 are connected through a control plane port N1; and the network management software 615 and the switch 612 are connected through a network management port N2.

[0103] The standby UPF network element 620 includes a standby server 621 and a target switch 622. The standby server 621 includes a target user plane software 623, a target control plane software 624, a target network management software 625, and a target high-availability control software 626. The target user plane software 623 and the target switch 622 are connected through a first target user plane port 627, a second target user plane port 628, and a third target user plane port 629; the target control plane software 624 and the target switch 622 are connected through a control plane port N3; and the target network management software 625 and the target switch 622 are connected through a network management port N4.

[0104] The switch 612 and the target switch 622 may be connected via a stacking cable. The heartbeat link between the high availability control software 616 and the target high availability control software 626 may be used as the first heartbeat link, and the heartbeat link between the network management software 615 and the target network management software 625 may be used as the second heartbeat link.

[0105] When any one of the first user plane port 617, the second user plane port 618, the third user plane port 619, and the control plane port N1 is monitored to be in an abnormal state, or when any of the user plane software and the control plane software is detected to terminate or exit abnormally during operation, the primary-backup link switching can be triggered, and the server switching instruction generated by the primary server can be sent to the backup server 621 through the high availability control software 616, so as to notify the target user plane software 623 through the target high availability control software 626 in the backup server 621 to adjust the first target user plane port 627, the second target user plane port 628, and the third target user plane port 629 to normal working state, and notify the target control plane software 624 to adjust the control plane port N3 to normal working state.

[0106] When the high-availability control software 616 fails, the backup server 621 can be notified through the network management software 615 to switch itself to the main server, and the target user plane software 623 can be notified through the target high-availability control software 626 to adjust the first target user plane port 627, the second target user plane port 628, and the third target user plane port 629 to normal working state, and the target control plane software 624 can be notified to adjust the control plane port N3 to normal working state. Thus, the risk of the main and standby link switching system 600 based on the monitoring mechanism entering the brain split due to the failure of a single heartbeat link is reduced, and the single heartbeat link failure is avoided, so that both the main server 611 and the backup server 621 work, resulting in server redundancy, and the BFD resources inside the switch are saved, and the remaining BFD resources can be used to develop cloud dedicated lines, thereby improving the utilization efficiency of BFD resources.

[0107] After detecting that the switch between the primary and backup links is successful, the state of the switch 612 can be detected. If the state of the switch 612 is normal, the user plane data can be transmitted to the backup server 621 through the stacking line between the switch 612 and the target switch 622; if the switch 612 fails, the BFD between the switch 612 and the first terminal device 630 can be triggered, and the external switch device on the first terminal device 630 can reorganize the route to obtain the route update information, and transmit the user plane data to the second terminal device 640 according to the route update information, and then transmit the user plane data to the target switch 622 through the second terminal device 640, and finally transmit the user plane data to the backup server 621 through the target switch 622. Thus, it is avoided that the user plane data cannot be transmitted in real time due to the switch failure, and the processing efficiency of the business corresponding to the user plane data is reduced.

[0108] It should be noted that, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0109] In addition, each step of the method disclosed above is to switch from the main server to the backup server, and the method is also applicable to switching from the backup server to the main server. Since the process of switching from the backup server to the main server is the same as the process of switching from the main server to the backup server, it will not be described in detail. It is just that when switching from the backup server to the main server, it is necessary to monitor the target user plane port and the target control plane port in the backup server, and detect the running status of the target user plane software and the target control plane software, as well as the target high-availability control software; if the target user plane port and the target control plane port are monitored to be abnormal, or the target user plane software and the target control plane software stop abnormally during operation, the backup server can generate a server switching instruction, and send the server switching instruction to the main server through the target high-availability control software, so as to notify the user plane software and the control plane software through the high-availability control software in the main server to adjust the user plane port and the control plane port to normal working state respectively, and synchronize the control plane data to the main server. When the target high-availability control software fails, the target network management software in the standby server can notify the main server to restore the working state, and the high-availability control software in the main server can notify the user plane software and the control plane software to adjust the user plane port and the control plane port to a normal working state respectively. Other steps are similar to those disclosed in the present invention and will not be described again.

[0110] In addition, in this exemplary embodiment, a primary and backup link switching device is also provided. Figure 7 As shown, the active-standby link switching device 700 includes: a monitoring module 710, a switching instruction generation module 720, a port state adjustment module 730, and a data sending module 740. Among them, the monitoring module 710 is used to monitor the status of the user plane port and the control plane port, and synchronize the control plane data to the standby server; the switching instruction generation module 720 is used to generate a server switching instruction if it is detected that the user plane port and the control plane port are in an abnormal state, and send the server switching instruction to the standby server; the port state adjustment module 730 is used to adjust the target user plane port and the target control plane port in the standby server to a normal working state through the standby server; the data sending module 740 is used to send the user plane data to the standby server, so that the standby server processes the service corresponding to the user plane data according to the control plane data.

[0111] In some example embodiments of the present disclosure, based on the aforementioned scheme, the monitoring module 710 includes a monitoring unit, which is used to respectively monitor the user plane port status and the control plane port status through the network card driving user plane software and control plane software, and synchronize the control plane data to the backup server based on the high availability control software.

[0112] In some example embodiments of the present disclosure, based on the aforementioned scheme, the monitoring module 710 also includes a detection unit, and the detection unit is used to automatically switch the backup server to the main server if it is detected that the user plane software, the control plane software, and any of the high-availability control software terminate or exit abnormally during operation.

[0113] In some example embodiments of the present disclosure, based on the aforementioned scheme, the switching instruction generation module 720 includes a first switching instruction sending unit, and the first switching instruction sending unit is used to generate a server switching instruction if the heartbeat of the high availability control software is monitored to be normal; and send the server switching instruction to the backup server through the high availability control software.

[0114] In some example embodiments of the present disclosure, based on the aforementioned scheme, the switching instruction generation module 720 also includes a second switching instruction sending unit, and the second switching instruction sending unit is used to notify the backup server through the network management software module to switch itself to the main server if the target high-availability control software in the backup server detects that the high-availability control software has timed out in sending a heartbeat packet.

[0115] In some example embodiments of the present disclosure, based on the aforementioned scheme, the port state adjustment module 730 includes a port state adjustment unit, which is used to control the target user plane software and the target control plane module in the backup server through the target high-availability control software, and adjust the target user plane port to a normal working state based on the target user plane software, and adjust the target control plane port to a normal working state based on the target control plane module.

[0116] In some example embodiments of the present disclosure, based on the aforementioned scheme, the data sending module 740 includes a routing update information acquisition unit, and the routing update information acquisition unit is used to monitor the state of the switch connected to the user plane software and the control plane software if it is monitored that the switching with the backup server is successful; if it is monitored that the state of the switch is abnormal, send a routing update request to the network access point associated with the switch, and obtain the routing update information re-planned by the network access point; according to the routing update information, send the user plane data to the backup server through the target switch connected to the target user plane module and the target control plane module.

[0117] In some example embodiments of the present disclosure, based on the aforementioned scheme, the data sending module 740 also includes a communication connection unit, which is used to establish a communication connection between the switch and the target switch through a stacking line; if the status of the switch is monitored to be normal, the user plane data is sent to the backup server through the stacking line.

[0118] The specific details of each module of the above-mentioned primary and standby link switching device have been described in detail in the corresponding primary and standby link switching method, so they will not be repeated here.

[0119] It should be noted that although several modules or units of the active / standby link switching device are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0120] In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above-mentioned primary and standby link switching method is also provided.

[0121] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware embodiments, complete software embodiments (including firmware, microcode, etc.), or embodiments combining hardware and software aspects, which may be collectively referred to herein as "circuits", "modules" or "systems".

[0122] Refer to the following Figure 8 800 according to this embodiment of the present disclosure is described. Figure 8 The electronic device 800 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0123] like Figure 8 As shown, the electronic device 800 is in the form of a general computing device. The components of the electronic device 800 may include, but are not limited to: the at least one processing unit 810, the at least one storage unit 820, a bus 830 connecting different system components (including the storage unit 820 and the processing unit 810), and a display unit 840.

[0124] The storage unit stores program codes, which can be executed by the processing unit 810, so that the processing unit 80 performs the steps according to various exemplary embodiments of the present disclosure described in the above “Exemplary Method” section of this specification. For example, the processing unit 810 can perform the following steps: Figure 2 In step S110 shown in the figure, the status of the user plane port and the control plane port are monitored, and the control plane data is synchronized to the standby server; in step S120, if it is monitored that the user plane port and the control plane port are in abnormal status, a server switching instruction is generated, and the server switching instruction is sent to the standby server; in step S130, the target user plane port and the target control plane port in the standby server are adjusted to a normal working state through the standby server; in step S140, the user plane data is sent to the standby server, so that the standby server processes the business corresponding to the user plane data according to the control plane data.

[0125] The storage unit 820 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 821 and / or a cache memory unit 822 , and may further include a read-only memory unit (ROM) 823 .

[0126] The storage unit 820 may also include a program / utility 824 having a set (at least one) of program modules 825, such program modules 825 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0127] Bus 830 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0128] The electronic device 800 may also communicate with one or more external devices 870 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 800, and / or communicate with any device that enables the electronic device 800 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 850. Furthermore, the electronic device 800 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 860. As shown, the network adapter 860 communicates with other modules of the electronic device 800 via a bus 830. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0129] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiment of the present disclosure.

[0130] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible embodiments, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to perform the steps according to various exemplary embodiments of the present disclosure described in the above "Exemplary Method" section of the present specification.

[0131] refer to Fig. 9 As shown, a program product 900 for implementing the above-mentioned active-standby link switching method according to an embodiment of the present disclosure is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus, or a device.

[0132] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0133] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0134] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0135] Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0136] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0137] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiment of the present disclosure.

[0138] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.

[0139] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for switching between a primary link and a backup link, characterized in that: include: The user plane software and control plane software of the main server are driven by the network card to monitor the user plane port status and control plane port status of the main server respectively, and the control plane data is synchronized to the standby server based on the high availability control software of the main server; If it is monitored that the user plane port and the control plane port are in abnormal state, a server switching instruction is generated, and the server switching instruction is sent to the standby server; Adjusting the target user plane port and the target control plane port in the standby server to a normal working state through the standby server; Sending the user plane data to the standby server, so that the standby server processes the service corresponding to the user plane data according to the control plane data; The sending of the user plane data to the standby server includes: If it is detected that the switch with the standby server is successful, the status of the switch connected to the user plane software and the control plane software is monitored; If it is detected that the state of the switch is abnormal, a route update request is sent to a network access point associated with the switch, and route update information replanned by the network access point is obtained; According to the routing update information, the user plane data is sent to the standby server through a target switch connected to the target user plane software and the target control plane software in the standby server.

2. The method for switching the primary and backup links according to claim 1, characterized in that: The method further comprises: If it is detected that any of the user plane software, the control plane software, and the high-availability control software terminates abnormally or exits during operation, the standby server automatically switches to the main server.

3. The method for switching the primary and backup links according to claim 2, characterized in that: The generating a server switching instruction and sending the server switching instruction to the standby server includes: If the heartbeat of the high availability control software is detected to be normal, a server switching instruction is generated; The server switching instruction is sent to the standby server through the high availability control software.

4. The method for switching the primary and backup links according to claim 3, characterized in that: The method further comprises: If the target high availability control software in the standby server detects that the high availability control software has timed out in sending the heartbeat packet, the standby server is notified through the target high availability control software to switch itself to the main server.

5. The method for switching the primary and backup links according to claim 4, characterized in that: The step of adjusting, by the standby server, a target user plane port and a target control plane port in the standby server to a normal working state includes: The target user plane software and target control plane software in the standby server are controlled by the target high-availability control software, and the target user plane port is adjusted to a normal working state based on the target user plane software, and the target control plane port is adjusted to a normal working state based on the target control plane software.

6. The method for switching the primary and backup links according to claim 1, characterized in that: The method further comprises: Establishing a communication connection between the switch and the target switch through a stacking cable; If it is monitored that the state of the switch is normal, the user plane data is sent to the standby server through the stacking line.

7. A primary-backup link switching device, characterized in that: include: A monitoring module is used to drive the user plane software and control plane software of the main server through the network card to monitor the user plane port status and control plane port status of the main server respectively, and synchronize the control plane data to the standby server based on the high availability control software of the main server; A switching instruction generating module, configured to generate a server switching instruction if an abnormal state is detected between the user plane port and the control plane port, and send the server switching instruction to the standby server; A port state adjustment module, used to adjust the target user plane port and the target control plane port in the standby server to a normal working state through the standby server; A data sending module, used for sending the user plane data to the standby server, so that the standby server processes the service corresponding to the user plane data according to the control plane data; The sending of the user plane data to the standby server includes: If it is detected that the switch with the standby server is successful, the status of the switch connected to the user plane software and the control plane software is monitored; If it is detected that the state of the switch is abnormal, a route update request is sent to a network access point associated with the switch, and route update information replanned by the network access point is obtained; According to the routing update information, the user plane data is sent to the standby server through a target switch connected to the target user plane software and the target control plane software in the standby server.

8. An electronic device, comprising: processor; as well as A memory having computer-readable instructions stored thereon, wherein the computer-readable instructions, when executed by the processor, implement the primary-backup link switching method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method for switching the primary and backup links according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Multi-network card server access method and system

    CN101488918A

  • Session management method, equipment and system

    CN110557791A