Data backup method and device, computer equipment, readable storage medium and program product
By setting up multiple user forwarding UP pools in the data backup system and realizing automatic switching between main CP and backup CP, the problem of large-scale network failure caused by the failure of multiple core nodes is solved, and the reliability of the network and user data are improved. Backup capability.
Patent Information
- Application Number
- CN202411233009.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-04
- Publication Date
- 2025-01-10
AI Technical Summary
In extreme cases, large-scale network failures caused by the failure of multiple core nodes, resulting in user data loss and network reliability affected, and existing CP disaster recovery technology is difficult to effectively deal with.
By setting up multiple user forwarding UP pools in the data backup system, each UP pool corresponds to a CP disaster recovery group, automatic switching between the main CP and the backup CP is realized. When the main CP has an exception, the backup CP is converted to the main CP, and through the establishment of multiple channels, user data can be processed and synchronized, ensuring that user data in the UP pool corresponding to the disaster recovery group can continue to be processed.
It improves the network's backup capability of user data, reduces the impact of multiple major CP failures, improves the reliability of the network, reduces the failure impact of the number of users, and thus reduces the fault hazard rating.
Smart Images

Figure CN119292823A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data communication technology, and in particular to a data backup method, device, computer equipment, readable storage medium and program product. Background Art
[0002] In order to cope with the loss of local backup data due to emergencies, the technical concept of off-site disaster recovery is proposed. Control Plane Disaster Recovery (CPDR, CP disaster recovery for short) is an off-site disaster recovery technology used in the forwarding and control separation networking of Virtual Broadband Remote Access Server (vBRAS). CP disaster recovery achieves off-site disaster recovery by performing dual-machine backup between two user control planes (CP) belonging to different data centers. Specifically, a CP disaster recovery group includes 1 main CP and 1 backup CP.
[0003] In the related art, CP disaster recovery modes include 1:1 backup type and 1+1 backup type. In 1:1 backup, the primary CP is the current working CP and the backup CP is used for backup. In 1+1 backup type, both the primary CP and the backup CP are the current working CP.
[0004] However, the number of users carried by CP in the prior art is generally in the millions. Considering that in extreme cases, if more than two core nodes fail, all user data will be lost, and all users need to dial back online, causing large-scale network failures and affecting network reliability. Summary of the invention
[0005] Based on this, it is necessary to provide a data backup method, device, computer equipment, readable storage medium and program product to address the above technical problems, which can improve the network's data backup capabilities and enhance network reliability when a user control plane fails.
[0006] In a first aspect, the present application provides a data backup method, which is applied to a data backup system, wherein the data backup system includes a plurality of user forwarding plane UP pools; each of the UP pools corresponds to a user control plane CP disaster recovery group, and the CP disaster recovery group includes a primary CP and a backup CP; the method includes:
[0007] For each CP disaster recovery group, when the primary CP is abnormal, the backup CP corresponding to the primary CP is converted to the primary CP to obtain a converted first primary CP;
[0008] Based on the converted first main CP, user data in the UP pool corresponding to the CP disaster recovery group is processed.
[0009] In one embodiment, the data backup system includes at least three UP pools and three CPs, each CP is a primary CP of a UP pool or a backup CP of another UP pool; the primary CP and backup CP corresponding to each UP pool are different, and the method further includes:
[0010] When the first main CP is abnormal, converting the backup CP corresponding to the first main CP into a main CP to obtain a converted second main CP;
[0011] Based on the converted second primary CP, user data in the UP pool corresponding to the first primary CP is processed.
[0012] In one embodiment, the method further comprises:
[0013] In a preset configuration correspondence relationship between a primary CP and a backup CP, a backup CP corresponding to the primary CP is determined, and a first channel is established between the primary CP and the backup CP, wherein the preset configuration correspondence relationship is an address correspondence relationship;
[0014] Based on the first channel, the user data is synchronized to the backup CP through the primary CP.
[0015] In one embodiment, the method further comprises:
[0016] Establishing a second channel between the primary CP and the backup CP;
[0017] If it is determined that the primary CP is online based on the second channel and the backup CP, then it is determined that the primary CP is normal;
[0018] If it is determined that the primary CP is in an offline state based on the second channel and the backup CP, it is determined that an abnormality occurs in the primary CP.
[0019] In one embodiment, the processing of user data in the UP pool corresponding to the CP disaster recovery group based on the converted first primary CP includes:
[0020] A third channel is established with the UP pool corresponding to the CP disaster recovery group through the converted first main CP, and the user data in the UP pool is sent to the first main CP for processing through the third channel.
[0021] In one embodiment, the method further comprises:
[0022] For each CP disaster recovery group, when the primary CP and the backup CP in the CP disaster recovery group are both in a normal state, the user data in the UP pool is sent to the primary CP through the third channel, and the user data is processed by the primary CP.
[0023] In a second aspect, the present application further provides a data backup device, which is applied to a data backup system, wherein the data backup system includes a plurality of user forwarding plane UP pools; each of the UP pools corresponds to a user control plane CP disaster recovery group, and the CP disaster recovery group includes a primary CP and a backup CP; the device includes:
[0024] A conversion module, for each CP disaster recovery group, when the primary CP is abnormal, converting the backup CP corresponding to the primary CP into the primary CP to obtain a converted first primary CP;
[0025] The processing module is used to process the user data in the UP pool corresponding to the CP disaster recovery group based on the converted first main CP.
[0026] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0027] For each CP disaster recovery group, when the primary CP is abnormal, the backup CP corresponding to the primary CP is converted to the primary CP to obtain a converted first primary CP;
[0028] Based on the converted first main CP, user data in the UP pool corresponding to the CP disaster recovery group is processed.
[0029] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0030] For each CP disaster recovery group, when the primary CP is abnormal, the backup CP corresponding to the primary CP is converted to the primary CP to obtain a converted first primary CP;
[0031] Based on the converted first main CP, user data in the UP pool corresponding to the CP disaster recovery group is processed.
[0032] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0033] For each CP disaster recovery group, when the primary CP is abnormal, the backup CP corresponding to the primary CP is converted to the primary CP to obtain a converted first primary CP;
[0034] Based on the converted first main CP, user data in the UP pool corresponding to the CP disaster recovery group is processed.
[0035] The above-mentioned data backup method, device, computer equipment, readable storage medium and program product realize user load balancing of UP pools by setting multiple user forwarding plane UP pools, and each UP pool corresponds to a CP disaster recovery group to realize the backup of user data. For each CP disaster recovery group, when the main CP is abnormal, the backup CP corresponding to the main CP is converted to the first main CP, and the user data in the UP pool is processed. When multiple main CPs fail, the backup CP corresponding to the main CP is converted to the main CP, so as to perform subsequent processing on the user data in the UP pool corresponding to the disaster recovery group, thereby improving the network's backup capability for user data and improving the network's reliability. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0037] FIG1 is an application environment diagram of a data backup method according to an embodiment;
[0038] FIG2 is a schematic diagram of a flow chart of a method for backing up data in one embodiment;
[0039] FIG3 is a structural block diagram of a data backup device in one embodiment;
[0040] FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0042] The data backup method provided in the embodiment of the present application can be applied to the application environment shown in FIG1. The data backup method is applied to a data backup system, and the data backup system at least includes a server and a router, wherein the server can be a virtual broadband remote access server (Virtual Broadband Remote Access Server, vBRAS); the router can be a user forwarding plane (User Plane, UP), and the UP can be used as a physical forwarding device. CP can be deployed on the vBRAS, and the vBRAS can achieve the purpose of providing BRAS services through the user forwarding plane (User Plane, UP) and the user control plane CP.
[0043] The data backup system may include multiple UP pools and multiple CPs. Each CP is independent of each other and distributed on different physical nodes. Each UP pool can correspond to a CP disaster recovery group. For each UP pool, the CP disaster recovery group may include a primary CP and a backup CP. The primary CP and the backup CP in the same CP disaster recovery group are different. Under normal circumstances, the primary CP exchanges information with the UP pool, and processes user online requests, allocates addresses, and manages users in the UP pool through the primary CP. The backup CP serves as a disaster recovery for the primary CP, and the backup CP can be connected to the primary CP to achieve information exchange. Among them, UP is used for forwarding plane functions such as forwarding user business traffic and terminating traffic. CP is used to complete control plane functions such as user authentication, address allocation and management.
[0044] In an exemplary embodiment, as shown in FIG2 , a data backup method is provided, which is described by taking the method applied to the data backup system in FIG1 as an example, and includes the following steps. Among them:
[0045] Step 201: for each CP disaster recovery group, when an abnormality occurs in the primary CP, the backup CP corresponding to the primary CP is converted into the primary CP to obtain a converted first primary CP.
[0046] Each UP pool corresponds to a CP disaster recovery group, and the CP disaster recovery group includes a primary CP and a backup CP. The primary CP may be abnormal because the primary CP itself is abnormal or because the link between the primary CP and the UP pool is abnormal.
[0047] Specifically, for each CP disaster recovery group, the backup CP can detect the status of the primary CP in real time or within a certain time period. The backup CP can determine whether the primary CP is normal based on the heartbeat detection strategy between CPs, or determine whether the primary CP is normal by whether the user data sent by the primary CP is received within a preset time. If the data backup system detects that the primary CP is abnormal through the backup CP, the data backup system can convert the backup CP corresponding to the primary CP into the primary CP, and perform subsequent processing on the user data in the UP pool through the converted primary CP. The data backup system can convert the CP into the primary or backup state by changing the primary or backup state of the CP in the CP disaster recovery group. For example, the data backup system converts the state of the backup CP from the backup state to the primary state.
[0048] Step 202: Based on the converted first primary CP, process the user data in the UP pool corresponding to the CP disaster recovery group.
[0049] The UP pool may include multiple UPs, and the UP may be a user plane protocol (Packet UP, pUP). The pUP is used to process large-volume services, such as broadband Internet access, Internet Protocol Television (IPTV) and other large-volume services. The number of UPs in each UP pool may be the same or different. Each UP contains user data, and the UP is used to forward the data to the corresponding primary CP.
[0050] Specifically, when both the primary CP and the backup CP are in a normal state, the primary CP can send the received data in the UP pool to the backup CP for backup in real time or within a certain period of time. When the primary CP is abnormal, the data backup system can convert the backup CP into the primary CP to obtain the converted first primary CP. The data backup system can establish a connection relationship between the UP pool and the first primary CP, and the first primary CP and the UP pool can exchange information through the established connection relationship. The first primary CP can process the user data in the UP pool corresponding to the CP disaster recovery group. The first primary CP can perform identity authentication, address allocation and management on user data.
[0051] The above data backup method realizes user load balancing of the UP pool by setting multiple user forwarding plane UP pools, and each UP pool corresponds to a CP disaster recovery group to realize the backup of user data. For each CP disaster recovery group, when the main CP is abnormal, the backup CP corresponding to the main CP is converted to the first main CP, and the user data in the UP pool is processed. When multiple main CPs fail, the backup CP corresponding to the main CP is converted to the main CP to perform subsequent processing on the user data in the UP pool corresponding to the disaster recovery group, thereby improving the network's backup capability for user data and improving the network's reliability.
[0052] In an exemplary embodiment, the data backup method further includes:
[0053] When an abnormality occurs in the first primary CP, the backup CP corresponding to the first primary CP is converted into the primary CP to obtain a converted second primary CP; based on the converted second primary CP, user data in the UP pool corresponding to the first primary CP is processed.
[0054] The data backup system includes at least three UP pools and three CPs, each CP is the main CP of a UP pool or the backup CP of another UP pool; the main CP and backup CP corresponding to each UP pool are different. The first main CP can be the main CP in a CP disaster recovery group.
[0055] Specifically, if the backup CP corresponding to the first main CP detects that the first main CP is abnormal, the data backup system converts the backup CP to the main CP of the CP disaster recovery group to obtain the converted second main CP. The UP pool corresponding to the CP disaster recovery group can exchange information with the second main CP. The UP pool can forward user data to the second main CP. The second main CP can perform user identity authentication, address allocation and management on the received user data. When the first main CP is in normal condition, the user data in the UP pool can be sent to the second main CP in real time for backup. The second main CP can also perform user identity authentication, address allocation and management on the backed up user data when the first main CP is abnormal.
[0056] In this embodiment, the data backup system includes three or more UP pools and CPs. When both the main CP and the first main CP are abnormal, the data in the UP pool can be subsequently processed by the second main CP, which reduces the need to back up and process user data through the CP disaster recovery group when more than two main CPs fail, thereby improving the network's backup processing capabilities for user data.
[0057] In an exemplary embodiment, the data backup method further includes:
[0058] In the preset configuration correspondence relationship between the primary CP and the backup CP, a backup CP corresponding to the primary CP is determined, and a first channel is established between the primary CP and the backup CP; based on the first channel, user data is synchronized to the backup CP through the primary CP.
[0059] The preset configuration correspondence relationship may be an address correspondence relationship. The first channel may be a CP disaster recovery group connection channel. The CP disaster recovery group connection channel is used to determine the primary and backup relationship of the CP disaster recovery group, and to perform real-time hot backup from the primary CP to the backup CP.
[0060] Specifically, the data backup system can predetermine the preset configuration correspondence between the main CP and the backup CP. The preset configuration correspondence between the main CP and the backup CP can be determined based on the address correspondence. The data backup system can determine the CP adapted to the user data based on the user data in the UP pool, such as the user service flow, and use the CP as the main CP in the CP disaster recovery group. The data backup system can find the CP corresponding to the address of the main CP based on the address of the main CP in the correspondence between the addresses of the main CP and the backup CP. The data backup system can use the CP as the backup CP in the CP disaster recovery group. The data backup system can establish a first channel based on the address of the main CP and the address of the backup CP. The data backup system can determine the main CP and the backup CP in the CP disaster recovery group through the first channel. The main CP can synchronize the user data in the UP pool to the backup CP in real time or within a certain period of time through the first channel, or the main CP can send the updated incremental user data to the backup CP through the first channel after receiving the updated user data in the UP pool. The backup CP can back up the user data in the UP pool.
[0061] In this embodiment, by establishing the first channel, the backup CP can back up the updated user data in the UP pool in real time. When an abnormality occurs in the primary CP later, the backup CP can quickly switch to the primary CP and continue to process the user data in the UP pool.
[0062] In an exemplary embodiment, the data backup method further includes:
[0063] A second channel is established between the primary CP and the backup CP; if the primary CP is determined to be online based on the second channel and the backup CP, the primary CP is determined to be normal; if the primary CP is determined to be offline based on the second channel and the backup CP, the primary CP is determined to be abnormal.
[0064] The second channel may be a heartbeat connection channel, which is used to detect whether the primary CP is online. Factors affecting the status of the primary CP may be the status of the CP itself or the connection status between the CP and the UP.
[0065] Specifically, the data backup system can establish a second channel between the primary CP and the backup CP, and the second channel can transmit a heartbeat connection message. The backup CP can receive the heartbeat connection message based on the second channel, and can determine whether the primary CP is online according to the heartbeat connection message. If the backup CP determines that the primary CP is online according to the heartbeat connection message, it can be determined that the primary CP is normal. If the backup CP determines that the primary CP is offline according to the heartbeat connection message, it is determined that the primary CP is abnormal.
[0066] In this embodiment, the state of the main CP is detected by establishing the second channel, thereby achieving real-time detection of the state of the main CP.
[0067] In an exemplary embodiment, based on the converted first primary CP, processing the user data in the UP pool corresponding to the CP disaster recovery group includes:
[0068] A third channel is established with the UP pool corresponding to the CP disaster recovery group through the converted first main CP, and user data in the UP pool is sent to the first main CP for processing through the third channel.
[0069] The third channel is the Control- / User-plane Separation Protocol (CUSP) channel established between the UP pool and the primary CP. The CUSP channel is used to implement protocol and message interaction between the UP pool and the CP.
[0070] Specifically, the converted first primary CP can establish a third channel with the UP pool corresponding to the CP disaster recovery group. The UP pool can send user data to the first primary CP through the third channel. For example, the user data can be sent to the first primary CP through the third channel in the form of a message. The first primary CP can perform user identity authentication, address allocation and management on the user data.
[0071] Specifically, the first primary CP backs up in advance the user data in the UP pool sent by the primary CP through the first channel, and the first primary CP only needs to use the third channel to receive incremental user data in the UP pool.
[0072] In this embodiment, by establishing a third channel, information interaction between the UP pool and the CP is achieved, thereby improving the processing efficiency of user data.
[0073] In an exemplary embodiment, the data backup method further includes:
[0074] For each CP disaster recovery group, when the primary CP and the backup CP in the CP disaster recovery group are both in normal status, the user data in the UP pool is sent to the primary CP through the third channel, and the user data is processed by the primary CP.
[0075] The normal state is that both the primary CP and the backup CP in the CP disaster recovery group are online, and both the primary CP and the backup CP can process data normally.
[0076] Specifically, for each CP disaster recovery group, when the main CP and the backup CP in the CP disaster recovery group are in normal state, the data backup system can establish a third channel between the UP pool and the main CP. The UP pool can send the data in the UP pool to the main CP in real time through the third channel. Exemplarily, when the UP pool first establishes a connection with the main CP, it is necessary to send all user data channels in the UP pool through the third channel to the main CP. In the subsequent data transmission process, the UP pool only needs to send the updated incremental user data in the UP pool to the main CP through the third channel. Exemplarily, the UP pool can write user data into a message and send it to the main CP in the form of a message through the third channel. The main CP performs user authentication, address allocation and management based on the received user data.
[0077] In one example, by establishing a third channel, information interaction between the UP pool and the CP is achieved, thereby improving the processing efficiency of user data.
[0078] In an exemplary embodiment, as shown in FIG1 , the data backup system includes a first UP pool, a second UP pool, a third UP pool, and a first CP, a second CP, and a third CP. The first UP pool corresponds to the first CP disaster recovery group, and the first CP is used as the primary CP of the first CP disaster recovery group, and the second CP is used as the backup CP of the first CP disaster recovery group. The second UP pool corresponds to the second CP disaster recovery group, and the second CP is used as the primary CP of the second CP disaster recovery group, and the third CP is used as the backup CP of the second CP disaster recovery group. The third UP pool corresponds to the third CP disaster recovery group, and the third CP is used as the primary CP of the third CP disaster recovery group, and the first CP is used as the backup CP of the third disaster recovery group. In each disaster recovery group, a first channel and a second channel are established between the primary CP and the backup CP, and a third channel is established between the primary CP and the UP pool.
[0079] The data backup method specifically includes the following steps:
[0080] System initialization: vBRAS is deployed in a transfer and control separation mode.
[0081] When both the UP pool and the CP are normal, in the first CP disaster recovery group, the first CP is the primary CP, the second CP is the backup CP, and the first UP pool carries the user data of UP1024-1027; in the second CP disaster recovery group, the second CP is the primary CP, the third CP is the backup CP, and the second UP pool carries the user data of UP1028-1031; in the third CP disaster recovery group, the third CP is the primary CP, the first CP is the backup CP, and the third UP pool carries the user data of UP1032-1035. At this time, the effect of user load balancing is achieved.
[0082] Considering the failure scenario, when the first CP has an abnormality, the second CP detects the abnormality of the first CP, and the second CP is converted from a backup CP to the main CP in the first CP disaster recovery group. UP1024-1027 in the first UP pool is switched to the second CP bearer. At this time, the second CP carries the user data of UP1024-1031.
[0083] Based on the above steps, when the second CP also has an abnormality, the third CP detects that the second CP has an abnormality, and the third CP is converted from a backup CP to the main CP in the second CP disaster recovery group. The user data of UP1028-1031 in the second UP pool is switched to the third CP for processing. At this time, the third CP carries the user data of UP1028-1035.
[0084] When an abnormality occurs in the first CP and the third CP, or in the second CP or the third CP, the processing process is similar to the above process, that is, the backup CP in the CP disaster recovery group is converted to the main CP, and the user data in the UP pool is transferred to the normal CP in the CP disaster recovery group for processing, which will not be repeated here.
[0085] In one instance, when abnormalities occur in both the first CP and the second CP, user data in the second UP pool and the third UP pool can be retained, which reduces the impact of the dual CP failure to a certain extent. The number of users affected by the failure drops from 100% to 33%, which can reduce the fault hazard rating and improve network reliability.
[0086] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0087] Based on the same inventive concept, the embodiment of the present application also provides a data backup device for implementing the data backup method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in the one or more data backup device embodiments provided below can refer to the limitations on the data backup method above, and will not be repeated here.
[0088] In an exemplary embodiment, as shown in FIG3 , a data backup device is provided, which is applied to a data backup system, wherein the data backup system includes a plurality of user forwarding plane UP pools; each of the UP pools corresponds to a user control plane CP disaster recovery group, and the CP disaster recovery group includes a primary CP and a backup CP; the data backup device 30 includes: a conversion module 31 and a processing module 32, wherein:
[0089] A conversion module 31 is used for converting the backup CP corresponding to each CP disaster recovery group into a primary CP when the primary CP is abnormal, so as to obtain a converted first primary CP;
[0090] The processing module 32 is used to process the user data in the UP pool corresponding to the CP disaster recovery group based on the converted first main CP.
[0091] In one example, the data backup system includes at least three UP pools and three CPs, each CP is a primary CP of a UP pool or a backup CP of another UP pool; the primary CP and the backup CP corresponding to each UP pool are different, and the conversion module 31 is further used to convert the backup CP corresponding to the first primary CP into the primary CP when an abnormality occurs in the first primary CP, so as to obtain a converted second primary CP;
[0092] Based on the converted second primary CP, the user data in the UP pool corresponding to the first primary CP is processed.
[0093] In one example, the conversion module 31 is further used to determine the backup CP corresponding to the primary CP in the preset configuration correspondence relationship between the primary CP and the backup CP, and establish a first channel between the primary CP and the backup CP, and the preset configuration correspondence relationship is an address correspondence relationship;
[0094] Based on the first channel, user data is synchronized to the backup CP through the primary CP.
[0095] In one example, the conversion module 31 is further used to establish a second channel between the primary CP and the backup CP;
[0096] If it is determined based on the second channel and the backup CP that the primary CP is online, it is determined that the primary CP is normal;
[0097] If it is determined that the main CP is in an offline state based on the second channel and the backup CP, it is determined that an abnormality occurs in the main CP.
[0098] In one example, the processing module 32 is used to establish a third channel with the UP pool corresponding to the CP disaster recovery group through the converted first primary CP, and send the user data in the UP pool to the first primary CP for processing through the third channel.
[0099] In one example, the processing module 32 is also used for sending the user data in the UP pool to the primary CP through the third channel for processing the user data through the primary CP for each CP disaster recovery group when the primary CP and the backup CP in the CP disaster recovery group are in normal state.
[0100] Each module in the above data backup device can be implemented in whole or in part by software, hardware and their combination. Each module can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.
[0101] In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG4. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store user data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a data backup method is implemented.
[0102] Those skilled in the art will understand that the structure shown in FIG. 4 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0103] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0104] For each CP disaster recovery group, when an abnormality occurs in the primary CP, the backup CP corresponding to the primary CP is converted to the primary CP to obtain the first primary CP after conversion;
[0105] Based on the converted first primary CP, the user data in the UP pool corresponding to the CP disaster recovery group is processed.
[0106] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0107] When an abnormality occurs in the first main CP, the backup CP corresponding to the first main CP is converted into the main CP to obtain a converted second main CP;
[0108] Based on the converted second primary CP, the user data in the UP pool corresponding to the first primary CP is processed.
[0109] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0110] In the preset configuration correspondence relationship between the primary CP and the backup CP, a backup CP corresponding to the primary CP is determined, and a first channel is established between the primary CP and the backup CP, wherein the preset configuration correspondence relationship is an address correspondence relationship;
[0111] Based on the first channel, user data is synchronized to the backup CP through the primary CP.
[0112] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0113] Establishing a second channel between the primary CP and the backup CP;
[0114] If it is determined based on the second channel and the backup CP that the primary CP is online, it is determined that the primary CP is normal;
[0115] If it is determined that the main CP is in an offline state based on the second channel and the backup CP, it is determined that an abnormality occurs in the main CP.
[0116] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0117] A third channel is established with the UP pool corresponding to the CP disaster recovery group through the converted first main CP, and user data in the UP pool is sent to the first main CP for processing through the third channel.
[0118] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0119] For each CP disaster recovery group, when the primary CP and the backup CP in the CP disaster recovery group are both in normal status, the user data in the UP pool is sent to the primary CP through the third channel, and the user data is processed by the primary CP.
[0120] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0121] For each CP disaster recovery group, when an abnormality occurs in the primary CP, the backup CP corresponding to the primary CP is converted to the primary CP to obtain the first primary CP after conversion;
[0122] Based on the converted first primary CP, the user data in the UP pool corresponding to the CP disaster recovery group is processed.
[0123] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0124] When an abnormality occurs in the first main CP, the backup CP corresponding to the first main CP is converted into the main CP to obtain a converted second main CP;
[0125] Based on the converted second primary CP, the user data in the UP pool corresponding to the first primary CP is processed.
[0126] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0127] In the preset configuration correspondence relationship between the primary CP and the backup CP, a backup CP corresponding to the primary CP is determined, and a first channel is established between the primary CP and the backup CP, wherein the preset configuration correspondence relationship is an address correspondence relationship;
[0128] Based on the first channel, user data is synchronized to the backup CP through the primary CP.
[0129] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0130] Establishing a second channel between the primary CP and the backup CP;
[0131] If it is determined based on the second channel and the backup CP that the primary CP is online, it is determined that the primary CP is normal;
[0132] If it is determined that the main CP is in an offline state based on the second channel and the backup CP, it is determined that an abnormality occurs in the main CP.
[0133] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0134] A third channel is established with the UP pool corresponding to the CP disaster recovery group through the converted first main CP, and user data in the UP pool is sent to the first main CP for processing through the third channel.
[0135] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0136] For each CP disaster recovery group, when the primary CP and the backup CP in the CP disaster recovery group are both in normal status, the user data in the UP pool is sent to the primary CP through the third channel, and the user data is processed by the primary CP.
[0137] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0138] For each CP disaster recovery group, when an abnormality occurs in the primary CP, the backup CP corresponding to the primary CP is converted to the primary CP to obtain the first primary CP after conversion;
[0139] Based on the converted first primary CP, the user data in the UP pool corresponding to the CP disaster recovery group is processed.
[0140] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0141] When an abnormality occurs in the first main CP, the backup CP corresponding to the first main CP is converted into the main CP to obtain a converted second main CP;
[0142] Based on the converted second primary CP, the user data in the UP pool corresponding to the first primary CP is processed.
[0143] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0144] In the preset configuration correspondence relationship between the primary CP and the backup CP, a backup CP corresponding to the primary CP is determined, and a first channel is established between the primary CP and the backup CP, wherein the preset configuration correspondence relationship is an address correspondence relationship;
[0145] Based on the first channel, user data is synchronized to the backup CP through the primary CP.
[0146] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0147] Establishing a second channel between the primary CP and the backup CP;
[0148] If it is determined based on the second channel and the backup CP that the primary CP is online, it is determined that the primary CP is normal;
[0149] If it is determined that the main CP is in an offline state based on the second channel and the backup CP, it is determined that an abnormality occurs in the main CP.
[0150] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0151] A third channel is established with the UP pool corresponding to the CP disaster recovery group through the converted first main CP, and user data in the UP pool is sent to the first main CP for processing through the third channel.
[0152] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0153] For each CP disaster recovery group, when the primary CP and the backup CP in the CP disaster recovery group are both in normal status, the user data in the UP pool is sent to the primary CP through the third channel, and the user data is processed by the primary CP.
[0154] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0155] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0156] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A data backup method, characterized in that: Applied to a data backup system, the data backup system comprising a plurality of user forwarding plane UP pools; Each of the UP pools corresponds to a user control plane CP disaster recovery group, and the CP disaster recovery group includes a primary CP and a backup CP; the method includes: For each CP disaster recovery group, when the primary CP is abnormal, the backup CP corresponding to the primary CP is converted to the primary CP to obtain a converted first primary CP; Based on the converted first main CP, user data in the UP pool corresponding to the CP disaster recovery group is processed.
2. The method according to claim 1, characterized in that The data backup system includes at least three UP pools and three CPs, each CP is a primary CP of a UP pool or a backup CP of another UP pool; the primary CP and backup CP corresponding to each UP pool are different, and the method further includes: When an abnormality occurs in the first main CP, converting the backup CP corresponding to the first main CP into a main CP to obtain a converted second main CP; Based on the converted second primary CP, user data in the UP pool corresponding to the first primary CP is processed.
3. The method according to claim 1, characterized in that The method further comprises: In a preset configuration correspondence relationship between a primary CP and a backup CP, a backup CP corresponding to the primary CP is determined, and a first channel is established between the primary CP and the backup CP, wherein the preset configuration correspondence relationship is an address correspondence relationship; Based on the first channel, the user data is synchronized to the backup CP through the primary CP.
4. The method according to claim 1, characterized in that: The method further comprises: Establishing a second channel between the primary CP and the backup CP; If it is determined that the primary CP is online based on the second channel and the backup CP, then it is determined that the primary CP is normal; If it is determined that the primary CP is in an offline state based on the second channel and the backup CP, it is determined that an abnormality occurs in the primary CP.
5. The method according to claim 1, characterized in that: The processing of user data in the UP pool corresponding to the CP disaster recovery group based on the converted first main CP includes: A third channel is established with the UP pool corresponding to the CP disaster recovery group through the converted first main CP, and the user data in the UP pool is sent to the first main CP for processing through the third channel.
6. The method according to claim 5, characterized in that The method further comprises: For each CP disaster recovery group, when the primary CP and the backup CP in the CP disaster recovery group are both in a normal state, the user data in the UP pool is sent to the primary CP through the third channel, and the user data is processed by the primary CP.
7. A data backup device, characterized in that: A data backup system is applied to a data backup system, wherein the data backup system comprises a plurality of user forwarding plane UP pools; Each of the UP pools corresponds to a user control plane CP disaster recovery group, and the CP disaster recovery group includes a primary CP and a backup CP; the device includes: A conversion module, for each CP disaster recovery group, when the primary CP is abnormal, converting the backup CP corresponding to the primary CP into the primary CP to obtain a converted first primary CP; The processing module is used to process the user data in the UP pool corresponding to the CP disaster recovery group based on the converted first main CP.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Cited By
Equipment allocation method, device and system, computer equipment, readable storage medium and program product
CN119996342A