Disaster recovery method and system of core network equipment, electronic equipment and storage medium
The described method and system for core network disaster recovery improve fault detection efficiency by converting abnormal signals from secondary devices into recognizable formats for primary devices, reducing network latency and ensuring timely fault response, thus enhancing communication network stability.
Patent Information
- Application Number
- CN202311287608.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-27
- Publication Date
- 2025-03-28
AI Technical Summary
Current core network disaster recovery methods using heartbeat detection are inefficient due to network latency, leading to delayed fault detection and network instability, particularly in high-precision industrial communication environments.
A method and system for core network disaster recovery that involves receiving abnormal signals from secondary disaster recovery devices, converting them into recognizable signals for primary devices, and determining whether to change the primary and secondary device states based on the current status, allowing for immediate and accurate detection of faults without repeated message exchange.
This approach enhances the reliability of fault detection and reduces network latency, ensuring timely response to core network device failures and maintaining communication network stability by eliminating the need for multiple message interactions between primary and secondary devices.
Smart Images

Figure CN119729561A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of mobile communication technology, and in particular to a disaster recovery method, system, electronic device and storage medium for core network equipment. Background Art
[0002] At present, in the process of core network disaster recovery, a link-based heartbeat detection method is usually used to determine whether each core network device has a fault (for example, the device is down, power is off, or the link with other network element devices is interrupted, etc.). However, the above detection method will have network delays and cannot repair the faults in the core network equipment in time, resulting in certain network fluctuations. Summary of the invention
[0003] The present application provides a disaster recovery method, system, electronic device and storage medium for core network equipment.
[0004] In a first aspect, an embodiment of the present application provides a disaster recovery method for a core network device, which is applied to a first abnormal disaster recovery device, the method comprising: receiving an abnormal signal sent by a second abnormal disaster recovery device; wherein the abnormal signal is used to indicate that a fault has occurred in the second core network device, and the second abnormal disaster recovery device is used to perform abnormality detection on the second core network device; converting the abnormal signal into a signal that can be recognized by the core network device; sending the converted abnormal signal to the first core network device; wherein the first core network device and the second core network device are in a master-slave relationship with each other, and the first core network device determines whether to change the master-slave state of the first core network device based on the converted abnormal signal and the master-slave state information of the first core network device.
[0005] In the second aspect, an embodiment of the present application provides a disaster recovery method for a core network device, which is applied to a first core network device, the method comprising: receiving a converted abnormal signal sent by a first abnormal disaster recovery device; wherein the converted abnormal signal is a signal obtained by converting the abnormal signal, and the abnormal signal is used to indicate that a second core network device has a fault; the second core network device and the first core network device are in a master-slave relationship with each other; and determining whether to change the master-slave state of the first core network device based on the converted abnormal signal and the current master-slave state information of the first core network device.
[0006] In a third aspect, an embodiment of the present application provides a disaster recovery method for a core network device. The disaster recovery method for a core network device is applied to a second abnormal disaster recovery device, and the method includes: detecting the second core network device to obtain a detection signal; determining whether the second core network device fails based on the detection signal; in the event that the second core network device fails, sending an abnormal signal to the first abnormal disaster recovery device; wherein the abnormal signal is used to indicate that the second core network device has a fault.
[0007] In a fourth aspect, an embodiment of the present application provides a disaster recovery system for core network equipment, the system comprising: a first abnormal disaster recovery device, a first core network device, a second abnormal disaster recovery device and a second core network device; wherein the first abnormal disaster recovery device is communicatively connected to the second abnormal disaster recovery device, and the first core network device and the second core network device are in a master-slave relationship with each other; the first abnormal disaster recovery device is used to execute a disaster recovery method for the core network equipment applied to the first abnormal disaster recovery device; the second abnormal disaster recovery device is used to execute a disaster recovery method for the core network equipment applied to the second abnormal disaster recovery device; the first core network device is used to execute a disaster recovery method for the core network equipment applied to the first core network device.
[0008] In the fifth aspect, an embodiment of the present application provides an electronic device, comprising: one or more processors; a memory, on which one or more programs are stored, and when the one or more programs are executed by one or more processors, the one or more processors implement the disaster recovery method of any core network device in the embodiment of the present application.
[0009] In a sixth aspect, an embodiment of the present application provides a readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the disaster recovery method of any core network device in the embodiment of the present application.
[0010] According to the disaster recovery method, system, electronic device and storage medium of the core network device of the embodiment of the present application, by receiving the abnormal signal sent by the second abnormal disaster recovery device, the abnormal signal is used to indicate that the second core network device has a fault, and the second abnormal disaster recovery device is used to perform abnormal detection on the second core network device, so as to accurately and timely know whether the second core network device has an abnormality; then, the first abnormal disaster recovery device converts the abnormal signal into a signal that can be recognized by the core network device, which is conducive to the first core network device to respond to the abnormal signal in time; the converted abnormal signal is sent to the first core network device, and the first core network device and the second core network device are in a master-slave relationship with each other. The first core network device determines whether to change the master-slave state of the first core network device based on the converted abnormal signal and the master-slave state information of the first core network device. There is no need for the first core network device and the second core network device to exchange messages multiple times, and the working status of the opposite core network device can be accurately known, thereby improving the reliability of detection and reducing the network delay generated during fault detection.
[0011] With regard to the above embodiments and other aspects of the present application and their implementation, further description is provided in the accompanying drawings, detailed description and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 A block diagram showing the composition of a disaster recovery system for a core network device provided in a related embodiment.
[0013] Figure 2 A flow chart of a disaster recovery method for a core network device provided in an embodiment of the present application is shown.
[0014] Figure 3 A flow chart of a disaster recovery method for a core network device provided in an embodiment of the present application is shown.
[0015] Figure 4 A flow chart of a disaster recovery method for a core network device provided in an embodiment of the present application is shown.
[0016] Figure 5 A block diagram showing the composition of a first abnormal disaster recovery device provided in an embodiment of the present application is shown.
[0017] Figure 6 A block diagram showing the composition of the first core network device provided in an embodiment of the present application is shown.
[0018] Figure 7 A block diagram showing the composition of a second abnormal disaster recovery device provided in an embodiment of the present application is shown.
[0019] Figure 8 A block diagram showing the composition of a disaster recovery system for a core network device provided in an embodiment of the present application is shown.
[0020] Fig. 9 A schematic diagram of the information interaction process of each device in a disaster recovery system of a core network device provided in an embodiment of the present application is shown.
[0021] Fig.10 A schematic diagram of the architecture of a computing device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solution and advantages of the present application more clear, the embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other arbitrarily without conflict.
[0023] Figure 1 FIG. 2 shows a block diagram of a disaster recovery system for a core network device provided in a related embodiment. Figure 1 As shown, the first core network device 111 and the second core network device 112 are core network devices that carry the same type of services, wherein the first core network device 111 is connected to n base stations (such as the first base station 121, the second base station 122, ..., the nth base station 12n), n represents the number of base stations, and n is an integer greater than or equal to 1; at the same time, the second core network device 112 is also connected to the above-mentioned n base stations.
[0024] At the same time, each base station will select the primary core network device among the first core network device 111 and the second core network device 112 as the target device for access.
[0025] Among them, the first core network device 111 and the second core network device 112 send heartbeat detection messages to each other, realize the negotiation process of the main device and the backup device, and determine whether the opposite core network device fails based on the detection of the heartbeat message. When it is determined that the opposite core network device has sent a fault, the main and backup switching is performed.
[0026] However, the above detection method usually requires multiple detection cycles to confirm the link status and whether the core network device on the other end has a fault, which increases the network delay between the two core network devices. The faulty core network device cannot be maintained and repaired in time, which will cause certain network fluctuations and cannot meet the reliability requirements of the communication network. Especially for industrial production industries with high network delay accuracy, it reduces the communication efficiency between devices.
[0027] The present application provides a disaster recovery method, system, electronic device and storage medium for core network equipment to solve the above problems.
[0028] Figure 2 A schematic diagram of a process flow of a disaster recovery method for a core network device provided in an embodiment of the present application is shown. The disaster recovery method for the core network device can be applied to a first abnormal disaster recovery device. Figure 2 As shown, the disaster recovery method of the core network equipment in the embodiment of the present application includes but is not limited to the following steps.
[0029] Step S201: receiving an abnormality signal sent by a second abnormality disaster recovery device.
[0030] The abnormal signal is used to indicate that a fault occurs in the second core network device, and the second abnormal disaster recovery device is used to perform abnormality detection on the second core network device.
[0031] Step S202: convert the abnormal signal into a signal that can be recognized by the core network device.
[0032] For example, when the abnormal signal is a power-off signal, the power-off signal may be converted into a converted abnormal signal recognizable by the first core network device, such as a binary symbol (eg, using a binary symbol "1" to represent a power-off signal).
[0033] For another example, when the abnormal signal represents the degree of change in the amplitude of voltage or current, the abnormal signal can be converted into an identifier that can be recognized by the core network device (for example, the identifier of normal operation of the second core network device is pre-set as "M", and the identifier of abnormal operation is pre-set as "N"). When the abnormal signal is received, it is converted into the identifier "N", so that the first core network device can quickly and accurately know whether the first core network device has an abnormality.
[0034] Step S203: Send the converted abnormal signal to the first core network device.
[0035] Among them, the first core network device and the second core network device are in a master-slave relationship with each other, and the first core network device determines whether to change the master-slave state of the first core network device based on the converted abnormal signal and the master-slave state information of the first core network device.
[0036] In this embodiment, by receiving an abnormal signal sent by the second abnormal disaster recovery device, the abnormal signal is used to indicate that a fault has occurred in the second core network device, and the second abnormal disaster recovery device is used to perform abnormal detection on the second core network device, so as to accurately and timely know whether an abnormality has occurred in the second core network device; then, the first abnormal disaster recovery device converts the abnormal signal into a signal that can be recognized by the core network device, which is conducive to the first core network device to respond to the abnormal signal in a timely manner; the converted abnormal signal is sent to the first core network device, and the first core network device and the second core network device are in a master-slave relationship with each other. The first core network device determines whether to change the master-slave state of the first core network device based on the converted abnormal signal and the current master-slave state information of the first core network device. There is no need for the first core network device and the second core network device to exchange messages multiple times, and the working status of the opposite core network device can be accurately known, thereby improving the reliability of detection and reducing the network delay generated during fault detection.
[0037] Figure 3 A schematic diagram of a process flow of a disaster recovery method for a core network device provided in an embodiment of the present application is shown. The disaster recovery method for a core network device can be applied to a first core network device. Figure 3 As shown, the disaster recovery method of the core network equipment in the embodiment of the present application includes but is not limited to the following steps.
[0038] Step S301: receiving a converted abnormal signal sent by a first abnormal disaster recovery device.
[0039] The converted abnormal signal is a signal obtained by converting the abnormal signal, and the abnormal signal is used to indicate that a fault occurs in the second core network device; the second core network device and the first core network device are in a master-standby relationship with each other.
[0040] Step S302: Determine whether to change the active / standby state of the first core network device according to the converted abnormal signal and the current active / standby state information of the first core network device.
[0041] In this embodiment, by analyzing the converted abnormal signal received from the first abnormal disaster recovery device, it is determined that the second core network device has a fault. Without the need for multiple message interactions between the first core network device and the second core network device, the working status of the second core network device can be accurately known, thereby improving the reliability of detection and reducing the network delay generated during the fault detection process. Furthermore, based on the converted abnormal signal and the current active-standby status information of the first core network device, it is determined whether to change the active-standby status of the first core network device, so as to clarify which core network device is used as the active device, reduce network fluctuations, meet the reliability requirements of the communication network, and improve the communication efficiency between various devices in the communication network.
[0042] In some exemplary embodiments, determining whether to change the active / standby state of the first core network device according to the converted abnormal signal and the active / standby state information of the first core network device in step S302 may be implemented in the following manner:
[0043] When it is determined that the first core network device is currently in a standby state, the first core network device is switched from the standby state to the active state; when it is determined that the first core network device is currently in the active state, the active and standby states of the first core network device are kept unchanged.
[0044] By using the first core network device in the standby state as the main core network device, it can be ensured that when the second core network device fails, the communication network can still work normally, thereby ensuring the stability of the communication network. When it is determined that the first core network device is currently in the main state, a converted abnormal signal indicating that the second core network device has failed is received, indicating that the second core network device as the backup has failed. At this time, the main and standby states of the first core network device can be kept unchanged, thereby ensuring the normal operation of the communication network.
[0045] At the same time, the first core network equipment can also promptly remind the operation and maintenance personnel (such as by issuing an alarm message, etc.) to repair the second core network equipment to ensure that the second core network equipment can be repaired in time, which is conducive to the stable operation of the subsequent communication network.
[0046] In some exemplary embodiments, after the first core network device is switched from a standby state to an active state, the method further includes: sending a core network device change notification message to a network element device that is communicatively connected to the second core network device.
[0047] The core network device change notification message is used to indicate that the first core network device is used to replace the second core network device to provide communication services for the network element device. For example, the core network device change notification message includes the identifier of the first core network device and the active / standby status of the first core network device.
[0048] By sending a core network device change notification message to the network element device (for example, a base station, etc.) that is communicatively connected to the second core network device, each network element device can be informed that the first core network device will provide it with communication services, and the relevant configuration information (for example, the identification of the core network device, the port number of the core network device, etc.) of each network element device in the message interacting with the core network device can be changed in a timely manner, thereby reducing the occurrence of abnormalities such as communication failures caused by changes in the core network device and improving communication stability.
[0049] In some exemplary embodiments, after determining whether to change the active-standby state of the first core network device based on the converted abnormal signal and the current active-standby state information of the first core network device in step S302, the method further includes: generating abnormal alarm information of the core network device, and sending the abnormal alarm information of the core network device to the management device.
[0050] The abnormal alarm information of the core network device includes the core network device identification; the management device is used to repair the second core network device and / or the first core network device.
[0051] The management device can quickly locate which core network device has an abnormality based on the core network device identifier in the received core network device abnormality alarm information, and accurately repair the abnormal core network device, so that the abnormal core network device can quickly return to normal operation and ensure the stability of the communication network.
[0052] Figure 4 A flow chart of a disaster recovery method for a core network device provided by an embodiment of the present application is shown. The disaster recovery method for the core network device can be applied to a second abnormal disaster recovery device, which can be arranged inside or outside the second core network device.
[0053] like Figure 4 As shown, the disaster recovery method of the core network equipment in the embodiment of the present application includes but is not limited to the following steps.
[0054] Step S401: Detect the second core network device to obtain a detection signal.
[0055] Among them, the detection signal is used to characterize the real-time working status of the second core network device. Through the detection signal, it can be determined whether the second core network device has an abnormality and whether the abnormality affects the normal operation of the second core network device.
[0056] Step S402: Determine whether a fault occurs in the second core network device based on the detection signal.
[0057] If the second core network device fails, execute step S403; otherwise, end the process.
[0058] Step S403: Send an abnormality signal to the first abnormality disaster recovery device.
[0059] The abnormal signal is used to indicate that a fault occurs in the second core network device.
[0060] When the second abnormal disaster recovery device is arranged inside the second core network device, and the second abnormal disaster recovery device 821 determines through a detection signal that the second core network device has a fault (for example, the operating voltage of the second core network device is lower than 85% of the preset voltage threshold), a capacitor device arranged inside the second core network device can be used to accumulate a portion of electricity through charging and discharging, and an abnormal signal generated based on the detection signal can be sent to the first abnormal disaster recovery device.
[0061] For example, the capacitor device is charged when the second core network device is working normally; when it is determined that the second core network device has a fault, the capacitor device can be enabled as a backup power supply for the faulty second core network device, and its stored electricity can be used to send an abnormal signal, so that the first abnormal disaster recovery device can promptly receive the abnormal signal used to characterize the failure of the second core network device, and promptly inform the first core network device, so that the first core network device can quickly take response measures (such as replacing the second core network device to provide communication services for other network element devices in the communication network, etc.), thereby ensuring the stability of the communication network.
[0062] In this embodiment, a detection signal is obtained by detecting the second core network device, so that it is clear through the detection signal whether the second core network device has an abnormality and whether the abnormality affects the normal operation of the second core network device. There is no need to frequently send heartbeat detection messages to the second core network device through the first core network device, thereby reducing the message interaction between the two core network devices; whether the second core network device has a fault is determined according to the detection signal. When the second core network device has a fault, an abnormal signal is sent to the first abnormal disaster recovery device, so that the first abnormal disaster recovery device can transmit the information that the second core network device has a fault to the first core network device through the abnormal signal, and then the first core network device replaces the second core network device through the master-slave switching to continue to provide communication services for the network element devices in the communication network, thereby reducing the possibility of network paralysis and improving the reliability of the communication network.
[0063] In some exemplary embodiments, where the detection signal is an operating voltage signal of the second core network device, determining whether the second core network device is faulty based on the detection signal in step S402 can be implemented in the following manner: determining whether the operating voltage signal of the second core network device is within a preset voltage range; if the operating voltage signal of the second core network device is within the preset voltage range, determining that the second core network device is not faulty; if the operating voltage signal of the second core network device is not within the preset voltage range, determining that the second core network device is faulty.
[0064] Among them, the preset voltage range includes at least one preset voltage threshold (for example, 85% of the working voltage of the second core network device is set as the preset voltage threshold). When the working voltage of the second core network device is lower than 85% of its working voltage, it can be determined that the working voltage signal of the second core network device is not within the preset voltage range. At this time, it is determined that the second core network device has a fault. It can accurately measure whether the second core network device has a fault, thereby improving the efficiency of fault locating.
[0065] In some embodiments, the preset voltage range may be set between a first preset voltage threshold and a second preset voltage threshold, wherein the first preset voltage threshold is smaller than the second preset voltage threshold.
[0066] For example, the working voltage of the second core network device is set to A, and the preset voltage range is 80%A~99%A. When the working voltage corresponding to the working voltage signal of the second core network device obtained by detection is within 80%A~99%A, it indicates that the second core network device has no faults; when the working voltage corresponding to the working voltage signal of the second core network device obtained by detection is not within 80%A~99%A, it indicates that the second core network device has failed and needs to be repaired in time.
[0067] By adopting the above-mentioned judgment method to determine whether the second core network device has a fault, the fault status of the second core network can be judged quickly and accurately, thereby improving the efficiency of fault locating.
[0068] In some exemplary embodiments, where the detection signal is a working current signal of the second core network device, determining whether the second core network device has a fault based on the detection signal in step S402 can be implemented in the following manner: determining whether the working current signal of the second core network device is within a preset current range; if the working current signal of the second core network device is within the preset current range, determining that the second core network device has not a fault; if the working current signal of the second core network device is not within the preset current range, determining that the second core network device has a fault.
[0069] Among them, the preset current range includes at least one preset current threshold (for example, 70% of the working current of the second core network device is set as the preset current threshold). When the working current of the second core network device is lower than 70% of its working current, it can be determined that the working current signal of the second core network device is not within the preset current range. At this time, it is determined that the second core network device has a fault. It can accurately measure whether the second core network device has a fault, thereby improving the fault location efficiency.
[0070] In some embodiments, the preset current range may be set between a first preset current threshold and a second preset current threshold, wherein the first preset current threshold is smaller than the second preset current threshold.
[0071] For example, the working current of the second core network device is set to B, and the preset current range is 70%*B~99%*B. When the working current corresponding to the working current signal of the second core network device obtained by detection is within 70%*B~99%*B, it indicates that the second core network device has no faults; when the working current corresponding to the working current signal of the second core network device obtained by detection is not within 70%*B~99%*B, it indicates that the second core network device has failed and needs to be repaired in time.
[0072] By adopting the above-mentioned judgment method to determine whether the second core network device has a fault, the fault status of the second core network can be judged quickly and accurately, thereby improving the efficiency of fault locating.
[0073] The following is a detailed description of the device according to the embodiment of the present application in conjunction with the accompanying drawings. Figure 5 FIG. 1 is a block diagram showing the composition of a first abnormal disaster recovery device provided in an embodiment of the present application. Figure 5 As shown, the first abnormal disaster recovery device 500 includes but is not limited to the following modules.
[0074] The first receiving module 501 is configured to receive an abnormality signal sent by the second abnormality disaster recovery device.
[0075] The abnormal signal is used to indicate that a fault occurs in the second core network device, and the second abnormal disaster recovery device is used to perform abnormality detection on the second core network device.
[0076] The signal conversion module 502 is configured to convert the abnormal signal into a signal that can be recognized by the core network device.
[0077] The first sending module 503 is configured to send the converted abnormal signal to the first core network device; wherein the first core network device and the second core network device are in a master-slave relationship with each other, and the first core network device determines whether to change the master-slave state of the first core network device based on the converted abnormal signal and the master-slave state information of the first core network device.
[0078] It should be noted that the first abnormal disaster recovery device 500 in this embodiment can implement any disaster recovery method of a core network device applied to the first abnormal disaster recovery device in the embodiments of the present application.
[0079] According to the first abnormal disaster recovery device of the embodiment of the present application, by receiving the abnormal signal sent by the second abnormal disaster recovery device, the abnormal signal is used to indicate that the second core network device has a fault, and the second abnormal disaster recovery device is used to perform abnormal detection on the second core network device, so as to accurately and timely know whether the second core network device has an abnormality; then, the first abnormal disaster recovery device converts the abnormal signal into a signal that can be recognized by the core network device, which is conducive to the first core network device to respond to the abnormal signal in time; the converted abnormal signal is sent to the first core network device, and the first core network device and the second core network device are in a master-slave relationship with each other. The first core network device determines whether to change the master-slave state of the first core network device based on the converted abnormal signal and the master-slave state information of the first core network device. There is no need for the first core network device and the second core network device to exchange messages multiple times, and the working status of the opposite core network device can be accurately known, thereby improving the reliability of detection and reducing the network delay generated during fault detection.
[0080] Figure 6 FIG. 1 shows a block diagram of the first core network device provided in an embodiment of the present application. Figure 6 As shown, the first core network device 600 includes but is not limited to the following modules.
[0081] The second receiving module 601 is configured to receive a converted abnormal signal sent by the first abnormal disaster recovery device; wherein the converted abnormal signal is a signal obtained by converting the abnormal signal, and the abnormal signal is used to indicate that a fault has occurred in the second core network device; the second core network device and the first core network device are in a master-slave relationship with each other.
[0082] The state determination module 602 is configured to determine whether to change the active / standby state of the first core network device according to the converted abnormal signal and the current active / standby state information of the first core network device.
[0083] It should be noted that the first core network device 600 in this embodiment can implement any disaster recovery method of a core network device applied to the first core network device in the embodiments of the present application.
[0084] According to the first core network device of the embodiment of the present application, the converted abnormal signal sent by the received first abnormal disaster recovery device is analyzed by the second receiving module to determine that the second core network device has a fault. The working status of the second core network device can be accurately known without the need for multiple message interactions between the first core network device and the second core network device, thereby improving the reliability of detection and reducing the network delay generated during the fault detection process; further, the status determination module is used to determine whether to change the active / standby status of the first core network device based on the converted abnormal signal and the current active / standby status information of the first core network device, so as to clarify which core network device is used as the active device, reduce network fluctuations, meet the reliability requirements of the communication network, and improve the communication efficiency between various devices in the communication network.
[0085] Figure 7 FIG. 2 shows a block diagram of the second abnormal disaster recovery device provided in an embodiment of the present application. Figure 7 As shown, the second abnormal disaster recovery device 700 includes but is not limited to the following modules.
[0086] The detection module 701 is configured to detect the second core network device to obtain a detection signal.
[0087] The fault judgment module 702 is configured to determine whether a fault occurs in the second core network device according to the detection signal.
[0088] The second sending module 703 is configured to send an abnormal signal to the first abnormal disaster recovery device when a fault occurs in the second core network device; wherein the abnormal signal is used to indicate that a fault occurs in the second core network device.
[0089] In some embodiments, the second abnormal disaster recovery device 700 also includes: a signal conversion unit (not shown in the figure), which is used to convert the abnormal signal into a signal that can be recognized by the core network device so that the second core network device can process the abnormal signal.
[0090] It should be noted that the second abnormal disaster recovery device 700 in this embodiment can implement any disaster recovery method of a core network device applied to the second abnormal disaster recovery device in the embodiments of the present application.
[0091] According to the second abnormal disaster recovery device of the embodiment of the present application, the second core network device is detected by the detection module to obtain a detection signal, so that it is easy to clarify whether the second core network device has an abnormality and whether the abnormality affects the normal operation of the second core network device through the detection signal. There is no need to frequently send heartbeat detection messages to the second core network device through the first core network device, thereby reducing the message interaction between the two core network devices; a fault judgment module is used to determine whether the second core network device has a fault according to the detection signal. When the second core network device has a fault, an abnormal signal is sent to the first abnormal disaster recovery device using the second sending module, so that the first abnormal disaster recovery device can transmit the information that the second core network device has a fault to the first core network device through the abnormal signal, and then the first core network device replaces the second core network device through the master-slave switching to continue to provide communication services for the network element devices in the communication network, thereby reducing the possibility of network paralysis and improving the reliability of the communication network.
[0092] Figure 8 FIG. 1 is a block diagram showing a disaster recovery system for a core network device provided in an embodiment of the present application. Figure 8 As shown, the disaster recovery system of the core network equipment includes but is not limited to the following equipment.
[0093] The first core network device 810, the second core network device 820, the base station 830 and the terminal 840. The first core network device 810 is internally provided with a first abnormality disaster recovery device 811, and the second core network device 820 is internally provided with a second abnormality disaster recovery device 821.
[0094] The first abnormal disaster recovery device 811 is connected to the second abnormal disaster recovery device 821 for communication. Figure 8 In the solid line connection mode shown, communication signals are transmitted between the first abnormal disaster recovery device 811 and the second abnormal disaster recovery device.
[0095] It should be noted that the first core network device 810 and the second core network device 820 may also adopt Figure 8 The dotted line connection shown is used for communication based on the heartbeat detection link.
[0096] The first core network device 810 and the second core network device 820 are in a master-slave relationship with each other; the first abnormal disaster recovery device 811 is used to execute the disaster recovery method of the core network device applied to the first abnormal disaster recovery device; the second abnormal disaster recovery device 821 is used to execute the disaster recovery method of the core network device applied to the second abnormal disaster recovery device; the first core network device 810 is used to execute the disaster recovery method of the core network device applied to the first core network device.
[0097] In some exemplary embodiments, the first abnormal disaster recovery device 811 is connected to the first core network device 810; and the second abnormal disaster recovery device 821 is connected to the second core network device 820. For example, the first abnormal disaster recovery device 811 is arranged outside the first core network device 810, and it can detect whether the first core network device 810 has an abnormality by means of a network cable or a wireless connection.
[0098] Similarly, the second abnormal disaster recovery device 821 is also arranged outside the second core network device 820, and can detect whether there is an abnormality in the second core network device 820 through a network cable or a wireless connection.
[0099] For example, the first abnormal disaster recovery device 811 executes the following method: receiving an abnormal signal sent by the second abnormal disaster recovery device 821; wherein the abnormal signal is used to indicate that the second core network device 820 has a fault, and the second abnormal disaster recovery device 821 is used to perform abnormality detection on the second core network device 820; converting the abnormal signal into a signal that can be recognized by the core network device; sending the converted abnormal signal to the first core network device 810; the first core network device 810 determines whether to change the master-slave state of the first core network device 810 based on the converted abnormal signal and the current master-slave state information of the first core network device 810.
[0100] For another example, the first core network device 810 executes the following method: receiving a converted abnormal signal sent by the first abnormal disaster recovery device 811; wherein the converted abnormal signal is a signal obtained by converting the abnormal signal, and the abnormal signal is used to indicate that the second core network device 820 has a fault; based on the converted abnormal signal and the current active-standby status information of the first core network device 810, determining whether to change the active-standby status of the first core network device 810.
[0101] For another example, the second abnormal disaster recovery device 821 executes the following method: detect the second core network device 820 to obtain a detection signal; determine whether the second core network device 820 has a fault based on the detection signal; when the second core network device 820 has a fault, send an abnormal signal to the first abnormal disaster recovery device 811; wherein the abnormal signal is used to indicate that the second core network device 820 has a fault.
[0102] In some embodiments, if the second abnormal disaster recovery device 821 is arranged inside the second core network device 820, when the second abnormal disaster recovery device 821 determines through a detection signal that the second core network device 820 has a fault (for example, the operating voltage of the second core network device 820 is lower than 85% of the preset voltage threshold), it can be achieved by using a capacitor device arranged inside the second core network device 820 to accumulate a portion of electricity through charging and discharging, and send an abnormal signal generated based on the detection signal to the first abnormal disaster recovery device 811.
[0103] When the first abnormal disaster recovery device 811 detects that there is an abnormality in the first core network device 810 (for example, the first core network device 810 loses power, or the voltage of the first core network device 810 is not within a preset voltage range, etc.), the first abnormal disaster recovery device 811 will send an abnormal signal to the second abnormal disaster recovery device 821, and then the second abnormal disaster recovery device 821 will convert the abnormal signal into a signal that can be recognized by the core network device, and then send the converted abnormal signal to the second core network device 820.
[0104] When the second core network device 820 receives the converted abnormal signal, if the current active-standby state of the second core network device 820 is the standby state, it will change the standby state to the active state to replace the first core network device 810 to continue to provide communication services for other network element devices, thereby realizing rapid detection of abnormalities and state switching between the active and standby core network devices, reducing the disaster recovery switching delay, and improving the reliability of the core network disaster recovery system.
[0105] Fig. 9 The following is a schematic diagram showing the information interaction process of each device in a disaster recovery system of a core network device provided by an embodiment of the present application. Fig. 9 As shown, the method for information interaction between various devices in the disaster recovery system of the core network device in the embodiment of the present application includes but is not limited to the following steps.
[0106] Step S901 , initializing the active / standby state of the first core network device 810 and the active / standby state of the second core network device 820 .
[0107] Among them, the active and standby states of the first core network device 810 can be determined to be active and the active and standby states of the second core network device 820 can be determined to be standby by means of heartbeat detection; the active and standby states of the first core network device 810 and the active and standby states of the second core network device 820 can also be determined according to pre-configuration information. This application does not limit this, and other unspecified methods for initializing the active and standby states of the core network devices are also within the protection scope of this application and will not be described in detail here.
[0108] Step S902 , connecting the communication unit of the first abnormal disaster recovery device 811 and the second abnormal disaster recovery device 821 .
[0109] In step S903, a communication connection is established between the base station 830 and the first core network device 810, and it is determined that the active / standby state of the first core network device 810 is the active state.
[0110] The communication connection between the base station 830 and the first core network device 810 may be a connection via an S1 interface or an N2 interface.
[0111] In step S904, a communication connection is established between the base station 830 and the second core network device 820, and it is clarified that the active / standby state of the second core network device 820 is the standby state.
[0112] The communication connection between the base station 830 and the second core network device 820 may also be a connection via an S1 interface or an N2 interface.
[0113] Step S905: the first abnormal disaster recovery device 811 detects the first core network device 810 to obtain a detection signal.
[0114] The detection signal indicates whether the working current signal of the first core network device 810 is within a preset current range, and / or indicates whether the working voltage signal of the first core network device 810 is within a preset voltage range.
[0115] For example, when the detection signal indicates that the operating voltage of the first core network device 810 is lower than 85% of the rated voltage, it is determined that the first core network device 810 is faulty and cannot operate normally, and step S906 needs to be executed.
[0116] It should be noted that the first abnormal disaster recovery device 811 can be set inside the first core network device 810, and can also be set outside the first core network device 810, and is communicatively connected to the first core network device 810.
[0117] Step S906 , when it is determined that the detection signal indicates that the first core network device 810 has a fault, the first abnormal disaster recovery device 811 sends an abnormal signal to the second abnormal disaster recovery device 821 .
[0118] The abnormal signal is used to indicate that a fault occurs in the second core network device.
[0119] Step S907 : the second abnormality disaster recovery device 821 performs signal conversion on the received abnormality signal to obtain the converted abnormality signal that can be recognized by the second core network device 820 .
[0120] For example, when the abnormal signal is a power-off signal, the power-off signal may be converted into a binary symbol recognizable by the second core network device 820 (eg, using a binary symbol "1" to represent a power-off signal).
[0121] Step S908 : The second abnormal disaster recovery device 821 sends the converted abnormal signal to the second core network device 820 .
[0122] Step S909, when the second core network device 820 receives the converted abnormal signal, based on the current active-standby state information of the second core network device 820 and the converted abnormal signal, the second core network device 820 determines to change its active-standby state to the active state.
[0123] Since the active-standby state of the second core network device 820 is the standby state when executing step S901 initialization, and at this time, according to the converted abnormal signal, it can be known that the first core network device 810 has a fault, therefore, the second core network device 820 converts its active-standby state to the active state.
[0124] Step S910 , the second core network device 820 sends a core network device change notification message to the base station 830 .
[0125] Among them, the core network device change notification message is used to represent the use of the second core network device 820 to replace the first core network device 810 to provide communication services for the base station 830.
[0126] In some embodiments, while executing step S910, the second core network device 820 also generates core network device abnormality alarm information; and sends the core network device abnormality alarm information to a management device (not shown in the figure).
[0127] The core network device abnormal alarm information includes a core network device identifier (eg, a device identifier of the first core network device 810 ), and the management device is used to repair the first core network device 810 .
[0128] When the second core network device 820 works as the main core network device, the second abnormal disaster recovery device 821 also executes step S911 to detect the second core network device 820 in real time to determine whether the second core network device 820 fails.
[0129] Step S911: the second abnormal disaster recovery device 821 detects the second core network device 820 to obtain a detection signal.
[0130] For example, the detection signal indicates that the operating current signal of the second core network device 820 is not within the preset current range, such as the operating current is lower than 80% of the rated current, etc. It can be determined that the second core network device 820 has a fault and generates an abnormal signal.
[0131] Step S912 : The second abnormal disaster recovery device 821 sends an abnormal signal to the first abnormal disaster recovery device 811 .
[0132] Step S913: the first abnormality disaster recovery device 811 performs signal conversion on the received detection signal to obtain a converted abnormality signal.
[0133] Step S914 : the first abnormal disaster recovery device 811 sends the converted abnormal signal to the first core network device 810 .
[0134] It should be noted that the first core network device 810 can return to normal working status after being repaired by the management device; however, during the period when the second core network device 820 does not fail, the master-slave status of the first core network device 810 will be set to the standby status.
[0135] Step S915, after receiving the converted abnormal signal, the first core network device 810 determines to change its active-standby state to the active state based on the current active-standby state information (i.e., standby state) of the first core network device 810 and the converted abnormal signal.
[0136] Similarly, the first core network device 810 will also send a core network device change notification message to the base station 830 , and the core network device change notification message is used to indicate that the first core network device 810 is used to replace the second core network device 820 to provide communication services for the base station 830 .
[0137] In this embodiment, an abnormal disaster recovery device (e.g., the first abnormal disaster recovery device 811) detects the core network device corresponding to it (e.g., the first core network device 810) to obtain a detection signal, so that it is clear through the detection signal whether the core network device has an abnormality and whether the abnormality affects the normal operation of the core network device. There is no need to frequently send heartbeat detection messages from the first core network device 810 to the second core network device 820, thereby reducing the message interaction between the two core network devices; then, it is determined whether the first core network device 810 has a fault based on the detection signal. In the event that the first core network device 810 has a fault, the first abnormal disaster recovery device 811 sends a heartbeat detection message to the second abnormal disaster recovery device 820. 821 sends an abnormal signal so that the second abnormal disaster recovery device 821 can transmit the information that the first core network device 810 has failed to the second core network device 820 through the abnormal signal, and then the second core network device 820 replaces the first core network device 810 through the master-slave switching method to continue to provide communication services for the network element devices in the communication network, thereby reducing the possibility of network paralysis and improving the reliability of the communication network. Similarly, the second abnormal disaster recovery device 821 will also detect the second core network device 820 in order to timely know the working status of the second core network device 820, so that each core network device can work normally, and provide stable and reliable communication services for each network element device in the communication network.
[0138] It should be clear that the present invention is not limited to the specific configurations and processes described in the above embodiments and shown in the figures. For the convenience and brevity of description, a detailed description of the known methods is omitted here, and the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments, which will not be repeated here.
[0139] Fig.10 A schematic diagram of the architecture of a computing device provided by an embodiment of the present application is shown. Fig.10 As shown, the computing device 1000 includes an input device 1001, an input interface 1002, a central processing unit 1003, a memory 1004, an output interface 1005, and an output device 1006. The input interface 1002, the central processing unit 1003, the memory 1004, and the output interface 1005 are connected to each other via a bus 1007, and the input device 1001 and the output device 1006 are connected to the bus 1007 via the input interface 1002 and the output interface 1005, respectively, and are further connected to other components of the computing device 1000.
[0140] Specifically, the input device 1001 receives input information from the outside and transmits the input information to the central processing unit 1003 through the input interface 1002; the central processing unit 1003 processes the input information based on the computer executable instructions stored in the memory 1004 to generate output information, temporarily or permanently stores the output information in the memory 1004, and then transmits the output information to the output device 1006 through the output interface 1005; the output device 1006 outputs the output information to the outside of the computing device 1000 for user use.
[0141] In one embodiment, Fig.10 The computing device shown can be implemented as an electronic device, which may include: a memory configured to store a program; a processor configured to run the program stored in the memory to execute the disaster recovery method of the core network device described in the above embodiment.
[0142] In one embodiment, Fig.10 The computing device shown can be implemented as a disaster recovery system for a core network device, which may include: a memory configured to store programs; a processor configured to run the programs stored in the memory to execute the disaster recovery method for the core network device described in the above embodiment.
[0143] The above is only an exemplary embodiment of the present application and is not intended to limit the scope of protection of the present application. In general, various embodiments of the present application can be implemented in hardware or special circuits, software, logic or any combination thereof. For example, some aspects can be implemented in hardware, while other aspects can be implemented in firmware or software that can be executed by a controller, a microprocessor or other computing device, although the present application is not limited thereto.
[0144] Embodiments of the present application may be implemented by a processor executing computer program instructions, such as in a processor entity, or by hardware, or by a combination of software and hardware. The computer program instructions may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages.
[0145] The block diagram of any logic flow in the accompanying drawings of the present application can represent program steps, or can represent interconnected logic circuits, modules and functions, or can represent a combination of program steps and logic circuits, modules and functions. The computer program can be stored on a memory. The memory can have any type suitable for the local technical environment and can be implemented using any suitable data storage technology, such as but not limited to read-only memory (ROM), random access memory (RAM), optical memory device and system (digital versatile disc DVD or CD disc), etc. Computer-readable media may include non-transient storage media. The processor can be any type suitable for the local technical environment, such as but not limited to a general-purpose computer, a special-purpose computer, a microprocessor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a programmable logic device (FGPA) and a processor based on a multi-core processor architecture.
[0146] By way of exemplary and non-limiting examples, a detailed description of exemplary embodiments of the present application has been provided above. However, various modifications and adjustments to the above embodiments will be apparent to those skilled in the art when considered in conjunction with the accompanying drawings and claims, but will not depart from the scope of the present invention. Therefore, the proper scope of the present invention will be determined according to the claims.
Claims
1. A disaster recovery method for core network equipment, characterized in that: Applied to a first abnormal disaster recovery device, the method includes: Receiving an abnormal signal sent by a second abnormal disaster recovery device; wherein the abnormal signal is used to indicate that a second core network device has a fault, and the second abnormal disaster recovery device is used to perform abnormality detection on the second core network device; Converting the abnormal signal into a signal that can be recognized by the core network device; The converted abnormal signal is sent to the first core network device; wherein, the first core network device and the second core network device are in a master-slave relationship with each other, and the first core network device determines whether to change the master-slave state of the first core network device based on the converted abnormal signal and the master-slave state information of the first core network device.
2. A disaster recovery method for a core network device, applied to a first core network device, the method comprising: Receiving a converted abnormal signal sent by the first abnormal disaster recovery device; wherein the converted abnormal signal is a signal obtained by converting the abnormal signal, and the abnormal signal is used to indicate that a second core network device has a fault; the second core network device and the first core network device are in a master-slave relationship with each other; Determine whether to change the active / standby state of the first core network device according to the converted abnormal signal and the active / standby state information of the first core network device.
3. The disaster recovery method for core network equipment according to claim 2, characterized in that: The determining whether to change the active / standby state of the first core network device according to the converted abnormal signal and the active / standby state information of the first core network device currently includes: When it is determined that the first core network device is currently in a standby state, switching the first core network device from the standby state to an active state; When it is determined that the first core network device is currently in the active state, the active and standby states of the first core network device are kept unchanged.
4. The disaster recovery method for core network equipment according to claim 3, characterized in that: After switching the first core network device from the standby state to the active state, the method further includes: A core network device change notification message is sent to a network element device that is communicatively connected to the second core network device, wherein the core network device change notification message is used to indicate that the first core network device is used to replace the second core network device to provide communication services for the network element device.
5. The disaster recovery method for core network equipment according to any one of claims 2 to 4, characterized in that: After determining whether to change the active / standby state of the first core network device according to the converted abnormal signal and the active / standby state information of the first core network device, the method further includes: Generate core network device abnormality alarm information, wherein the core network device abnormality alarm information includes a core network device identifier; The abnormal alarm information of the core network device is sent to a management device, and the management device is used to repair the second core network device and / or the first core network device.
6. A disaster recovery method for a core network device, applied to a second abnormal disaster recovery device, the method comprising: Detecting the second core network device to obtain a detection signal; Determine whether the second core network device fails according to the detection signal; In the event that the second core network device fails, an abnormal signal is sent to the first abnormal disaster recovery device; wherein the abnormal signal is used to indicate that the second core network device fails.
7. The disaster recovery method for core network equipment according to claim 6, wherein: The detection signal is a working voltage signal of the second core network device, and determining whether the second core network device fails according to the detection signal includes: Determining whether the operating voltage signal of the second core network device is within a preset voltage range; When the operating voltage signal of the second core network device is within the preset voltage range, determining that the second core network device has no fault; When the operating voltage signal of the second core network device is not within the preset voltage range, it is determined that a fault occurs in the second core network device.
8. The disaster recovery method for core network equipment according to claim 6, wherein: The detection signal is a working current signal of the second core network device, and determining whether the second core network device fails according to the detection signal includes: Determining whether the operating current signal of the second core network device is within a preset current range; When the operating current signal of the second core network device is within the preset current range, determining that the second core network device has no fault; When the operating current signal of the second core network device is not within the preset current range, it is determined that a fault occurs in the second core network device.
9. A disaster recovery system for core network equipment, characterized in that: include: A first abnormal disaster recovery device, a first core network device, a second abnormal disaster recovery device, and a second core network device; The first abnormal disaster recovery device is in communication connection with the second abnormal disaster recovery device, and the first core network device and the second core network device are in a master-slave relationship with each other; The first abnormal disaster recovery device is used to execute the disaster recovery method of the core network device according to claim 1; The second abnormal disaster recovery device is used to execute the disaster recovery method of the core network device according to any one of claims 6 to 8; The first core network device is used to execute the disaster recovery method for the core network device according to any one of claims 2 to 5.
10. The system according to claim 9, characterized in that The second abnormal disaster recovery device is arranged inside the second core network equipment; Alternatively, the second abnormal disaster recovery device is connected to the second core network equipment.
11. The system according to claim 9, characterized in that The first abnormal disaster recovery device is arranged inside the first core network equipment; Alternatively, the first abnormal disaster recovery device is connected to the first core network equipment.
12. An electronic device, characterized in that: include: one or more processors; A memory having one or more programs stored thereon, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the disaster recovery method for the core network device as described in claim 1, or the disaster recovery method for the core network device as described in any one of claims 2 to 5, or the disaster recovery method for the core network device as described in any one of claims 6 to 8.
13. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by the processor, it implements the disaster recovery method of the core network device as described in 1, or, the disaster recovery method of the core network device as described in any one of claims 2 to 5, or, the disaster recovery method of the core network device as described in any one of claims 6 to 8.