Business processing method and device, computer equipment, storage medium and program product
By introducing a statistical and comparison mechanism for heartbeat packets between the primary and backup control planes in the vBRAS system, forwarding plane faults can be accurately identified, frequent service switching can be avoided, and system stability can be ensured.
Patent Information
- Application Number
- CN202410951577.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-11-12
AI Technical Summary
In the vBRAS system, congestion in the IP bearer network leads to random loss of heartbeat packets in the forwarding plane, causing the control plane to misjudge forwarding plane failures, resulting in frequent service switching and affecting system stability.
When packet loss is detected on the forwarding plane, the primary and backup control planes count the number of heartbeat packets on each forwarding plane and compare it with the number of normal heartbeat packets within the reference period to accurately determine whether there is a forwarding plane fault in the vBRAS system. Service switching is only performed when a fault is confirmed.
This avoids frequent service switching caused by packet loss in the forwarding plane due to network congestion, ensuring the stable operation of the vBRAS system.
Smart Images

Figure CN118945038A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a service processing method, apparatus, computer equipment, storage medium and program product. Background Art
[0002] The vBRAS (Virtual Broadband Remote Access Server) system can provide access to a large number of broadband users to meet the needs of various types of operators and service providers. In the vBRAS system, the main control plane and the forwarding plane send heartbeat messages in both directions through the signaling channel. If the main control plane does not receive the heartbeat message from the forwarding plane within the specified time, the main control plane will determine that the forwarding plane is faulty and send the user information on the forwarding plane to other forwarding planes to complete user switching.
[0003] However, since the signaling between the control plane and the forwarding plane is carried through the IP (Internet Protocol) bearer network, when the IP bearer network is congested, the forwarding plane heartbeat message will be randomly lost, the control plane will misjudge that the forwarding plane has a fault, and control frequent service switching between different forwarding planes, resulting in unstable system operation and affecting user experience. Summary of the invention
[0004] Based on this, it is necessary to provide a service processing method, device, computer equipment, storage medium and program product for the above technical problems, which can accurately determine whether a conversion plane failure occurs in the vBRAS system, thereby avoiding frequent switching of services between different forwarding planes, thereby ensuring the stability of the system operation.
[0005] In a first aspect, the present application provides a service processing method, which is applied to a main control plane in a vBRAS system, including:
[0006] When packet loss is detected on any forwarding plane in the vBRAS system, determine the number of first heartbeat messages of the heartbeat messages of each forwarding plane received within a first timing period, and obtain the number of second heartbeat messages of the heartbeat messages of each forwarding plane received by the standby control plane in the vBRAS system within the first timing period;
[0007] Determining whether the vBRAS system has a forwarding plane failure according to the number of first heartbeat messages and the number of second heartbeat messages of each forwarding plane, and the number of normal heartbeat messages of the heartbeat messages of each forwarding plane received within a reference period;
[0008] If so, the user information associated with the failed forwarding plane is switched to another forwarding plane in the vBRAS system.
[0009] In one of the embodiments, determining whether the vBRAS system has a forwarding plane failure according to the number of first heartbeat messages and the number of second heartbeat messages of each forwarding plane, and the number of normal heartbeat messages of the heartbeat messages of each forwarding plane received within a reference period, includes:
[0010] For each forwarding plane, the number of first heartbeat messages of the forwarding plane is compared with the number of normal heartbeat messages corresponding to the forwarding plane for consistency, to obtain a first comparison result, and the number of second heartbeat messages of the forwarding plane is compared with the number of normal heartbeat messages corresponding to the forwarding plane for consistency, to obtain a second comparison result;
[0011] According to the first comparison results and the second comparison results corresponding to each forwarding plane, it is determined whether the vBRAS system has a forwarding plane fault.
[0012] In one of the embodiments, determining whether the vBRAS system has a forwarding plane failure according to the first comparison result and the second comparison result corresponding to each forwarding plane includes:
[0013] If, according to the first comparison result and the second comparison result corresponding to each forwarding plane, it is determined that both the main control plane and the standby control plane have detected packet loss on one forwarding plane, and the forwarding planes detected by the main control plane and the standby control plane to have packet loss are the same, then determine the number of third heartbeat messages of the heartbeat messages of each forwarding plane received within the second timing period, and obtain the number of fourth heartbeat messages of the heartbeat messages of each forwarding plane received by the standby control plane within the second timing period;
[0014] It is determined whether the vBRAS system has a forwarding plane failure according to the number of third heartbeat messages, the number of fourth heartbeat messages, the first comparison result, and the second comparison result corresponding to each forwarding plane.
[0015] In one of the embodiments, determining whether the vBRAS system has a forwarding plane failure according to the number of third heartbeat messages, the number of fourth heartbeat messages, the first comparison result, and the second comparison result corresponding to each forwarding plane includes:
[0016] For each forwarding plane, the number of the third heartbeat messages of the forwarding plane is compared with the number of normal heartbeat messages corresponding to the forwarding plane for consistency to obtain a third comparison result, and the number of the fourth heartbeat messages of the forwarding plane is compared with the number of normal heartbeat messages corresponding to the forwarding plane for consistency to obtain a fourth comparison result;
[0017] If the first comparison result and the third comparison result of each forwarding plane are the same, and the second comparison result and the fourth comparison result are the same, it is determined that a forwarding plane failure exists in the vBRAS system.
[0018] In one of the embodiments, determining whether the vBRAS system has a forwarding plane failure according to the first comparison result and the second comparison result corresponding to each forwarding plane includes:
[0019] If, according to the first comparison result and the second comparison result corresponding to each forwarding plane, it is determined that the primary control plane and / or the standby control plane detects packet loss on at least two forwarding planes, it is determined that there is no forwarding plane failure in the vBRAS system; or,
[0020] If it is determined according to the first comparison result and the second comparison result corresponding to each forwarding plane that the primary control plane detects packet loss on a forwarding plane, and the backup control plane does not detect a forwarding plane with packet loss, it is determined that there is no forwarding plane failure in the vBRAS system.
[0021] In one of the embodiments, if it is determined according to the first comparison result and the second comparison result corresponding to each forwarding plane that the primary control plane detects that a forwarding plane has packet loss, and the standby control plane does not detect the forwarding plane with packet loss, then after determining that there is no forwarding plane failure in the vBRAS system, the method further includes:
[0022] The standby control plane is used as a new main control plane.
[0023] In one of the embodiments, determining the number of first heartbeat messages of the heartbeat messages of each forwarding plane received within the first timing period includes:
[0024] Starting a master timer associated with the primary control plane;
[0025] When it is detected that the timing duration of the main timer reaches the first timing period, the heartbeat messages of each forwarding plane received within the first timing period are counted to obtain the number of first heartbeat messages corresponding to each forwarding plane.
[0026] In one of the embodiments, the obtaining the number of second heartbeat messages of the heartbeat messages of each forwarding plane received by the standby control plane in the vBRAS system within the first timing period includes:
[0027] While starting a main timer associated with the main control plane, sending a timing start instruction to the standby control plane;
[0028] The timing start instruction is used to instruct the standby control plane to start the standby timer, and when the timing duration of the standby timer reaches the first timing period, the heartbeat messages of each forwarding plane received within the first timing period are counted to obtain the number of second heartbeat messages of each forwarding plane;
[0029] Receive the number of second heartbeat messages of each forwarding plane sent by the standby control plane.
[0030] In a second aspect, the present application provides a service processing method, which is applied to a standby control plane in a vBRAS system, including:
[0031] Counting the heartbeat messages of each forwarding plane received within the first timing period to obtain the number of second heartbeat messages of each forwarding plane;
[0032] The number of second heartbeat messages of each forwarding plane is sent to the main control plane, so that the main control plane determines whether there is a forwarding plane failure in the vBRAS system according to the number of first heartbeat messages and the number of second heartbeat messages of each forwarding plane, and the number of normal heartbeat messages of the heartbeat messages of each forwarding plane received within a reference period, and when it is determined that there is a forwarding plane failure, switches user information associated with the failed forwarding plane to other forwarding planes in the vBRAS system.
[0033] In one embodiment, counting the heartbeat messages received on each forwarding plane within the first timing period to obtain the number of second heartbeat messages on each forwarding plane includes:
[0034] When receiving a timing start instruction sent by the primary control plane, starting a standby timer associated with the standby control plane;
[0035] When it is detected that the timing duration of the standby timer reaches the first timing period, the heartbeat messages of each forwarding plane received within the first timing period are counted to obtain the number of second heartbeat messages of each forwarding plane.
[0036] In a third aspect, the present application further provides a service processing device, configured in a main control plane of a vBRAS system, including:
[0037] A quantity acquisition module is used to determine the number of first heartbeat messages of heartbeat messages of each forwarding plane received within a first timing period when a packet loss phenomenon is detected in any forwarding plane in the vBRAS system, and to obtain the number of second heartbeat messages of heartbeat messages of each forwarding plane received by the standby control plane in the vBRAS system within the first timing period;
[0038] A fault determination module, configured to determine whether the vBRAS system has a forwarding plane fault according to the number of first heartbeat messages and the number of second heartbeat messages of each forwarding plane, and the number of normal heartbeat messages of the heartbeat messages of each forwarding plane received within a reference period;
[0039] The service processing module is used to switch the user information associated with the failed forwarding plane to other forwarding planes in the vBRAS system if any.
[0040] In a fourth aspect, the present application further provides a service processing device, configured in a standby control plane in a vBRAS system, including:
[0041] A quantity statistics module, used to count the heartbeat messages of each forwarding plane received within the first timing period to obtain the number of second heartbeat messages of each forwarding plane;
[0042] A quantity sending module is used to send the number of second heartbeat messages of each forwarding plane to the main control plane, so that the main control plane determines whether there is a forwarding plane failure in the vBRAS system according to the number of first heartbeat messages and the number of second heartbeat messages of each forwarding plane, and the number of normal heartbeat messages of the heartbeat messages of each forwarding plane received within a reference period, and when it is determined that there is a forwarding plane failure, switches user information associated with the failed forwarding plane to other forwarding planes in the vBRAS system.
[0043] In a fifth aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the first aspect and / or the second aspect when executing the computer program.
[0044] In a sixth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the first aspect and / or the second aspect mentioned above when executed by a processor.
[0045] In a seventh aspect, the present application further provides a computer program product, comprising a computer program, which implements the steps of the first aspect and / or the second aspect when executed by a processor.
[0046] The above-mentioned business processing method, apparatus, computer equipment, storage medium and program product, when the main control plane in the vBRAS system detects that any forwarding plane in the vBRAS system has packet loss, obtains the number of first heartbeat messages of heartbeat messages of each forwarding plane received by the main control plane within a first timing period, and obtains the number of second heartbeat messages of heartbeat messages of each forwarding plane received by the standby control plane in the vBRAS system within the first timing period, and according to the number of first heartbeat messages and the number of second heartbeat messages of each forwarding plane, and the number of normal heartbeat messages of heartbeat messages of each forwarding plane received within a reference period, it can be accurately determined whether the vBRAS system has a forwarding plane failure; further, when there is a forwarding plane failure in the vBRAS system, the user information associated with the failed forwarding plane is switched to other forwarding planes in the vBRAS system. The above scheme introduces the number of normal heartbeat messages as a reference when packet loss is detected in any forwarding plane, and introduces the number of second heartbeat messages corresponding to each forwarding plane of the standby control plane within the first timing period as a comparison. It can accurately determine whether there is a forwarding plane failure in the vBRAS system, and perform service switching when there is a forwarding plane failure. Compared with the method of performing service switching when packet loss is detected in any forwarding plane in the prior art, it avoids frequent service switching caused by forwarding plane packet loss due to network congestion, and realizes stable operation of the vBRAS system. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0048] Figure 1 An application environment diagram of a business processing method in an embodiment;
[0049] Figure 2 A flowchart of a business processing method in an embodiment;
[0050] Figure 3 A schematic diagram of a process for determining whether a vBRAS system has a forwarding plane failure in an embodiment;
[0051] Figure 4 A schematic diagram of a process for determining whether a vBRAS system has a forwarding plane failure in another embodiment;
[0052] Figure 5 A schematic diagram of a process of determining whether a vBRAS system has a forwarding plane failure in another embodiment;
[0053] Figure 6 A schematic diagram of a process for determining the number of first heartbeat messages in an embodiment;
[0054] Figure 7 A schematic diagram of a process for determining the number of second heartbeat messages in an embodiment;
[0055] Figure 8 is a flowchart of a business processing method in another embodiment;
[0056] Fig. 9 A schematic diagram of a process for obtaining the number of second heartbeat messages in an embodiment;
[0057] Fig.10 is a signaling diagram of a service processing method in an embodiment;
[0058] Fig.11 is a structural block diagram of a service processing device in an embodiment;
[0059] Fig.12 is a structural block diagram of a service processing device in another embodiment;
[0060] Fig.13 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0061] 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.
[0062] The service processing method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown in the figure, the main control plane 101 is the core of the vBRAS system, responsible for completing control plane functions such as user identity authentication, address allocation and management; the standby control plane 102 is the standby control plane; the forwarding plane 103 is responsible for completing forwarding plane functions such as user service traffic forwarding and traffic control, and the number of forwarding planes is multiple.
[0063] In one embodiment, Figure 2 As shown, a service processing method is provided, which can be executed by the main control plane and the standby control plane in cooperation. In this embodiment, the method is applied to Figure 1 The main control plane in the example is used to illustrate, and the specific steps include:
[0064] S201, when packet loss is detected in any forwarding plane in the vBRAS system, determine the number of first heartbeat messages of heartbeat messages of each forwarding plane received within a first timing period, and obtain the number of second heartbeat messages of heartbeat messages of each forwarding plane received by the standby control plane in the vBRAS system within the first timing period.
[0065] The first timing cycle is a timing cycle of a preset duration. The number of first heartbeat messages of each forwarding plane is the number of heartbeat messages sent by the forwarding plane received by the primary control plane within the first timing cycle; correspondingly, the number of second heartbeat messages of each forwarding plane is the number of heartbeat messages sent by the forwarding plane received by the backup control plane within the first timing cycle.
[0066] Optionally, if the main control plane in the vBRAS system does not receive a heartbeat message sent by any forwarding plane within a preset time, it indicates that packet loss occurs on the forwarding plane, that is, the main control plane detects that packet loss occurs on the forwarding plane.
[0067] Optionally, when packet loss occurs on any forwarding plane in the vBRAS system, the main control plane will count the number of first heartbeat messages sent by each forwarding plane and received within the first timing period; at the same time, according to the start time of the first timing period, a message statistics request including the first timing period and the start time of the first timing period is sent to the backup forwarding plane.
[0068] Further, after receiving the message statistics request, the backup forwarding plane counts the number of second heartbeat messages of the heartbeat messages sent by each forwarding plane received by the backup forwarding plane within the first timing cycle, and sends it to the main forwarding plane. At this time, the main forwarding plane can obtain the number of second heartbeat messages of the heartbeat messages of each forwarding plane received by the backup control plane in the vBRAS system within the first timing cycle.
[0069] S202, judging whether there is a forwarding plane failure in the vBRAS system according to the number of first heartbeat messages and the number of second heartbeat messages of each forwarding plane, and the number of normal heartbeat messages of each forwarding plane received within a reference period; if there is, executing S203; if not, executing S204.
[0070] The reference period is the period corresponding to when there is no packet loss on the forwarding plane, and the duration of the reference period is the same as the duration of the first timing period. The number of normal heartbeat messages of each forwarding plane is the number of heartbeat messages sent by the forwarding plane received by the main control plane within the reference period, or the number of heartbeat messages sent by the forwarding plane received by the standby control plane within the reference period.
[0071] Optionally, as an optional method, the number of first heartbeat messages and the number of second heartbeat messages of each forwarding plane, as well as the number of normal heartbeat messages of each forwarding plane received within a reference period can be input into a fault judgment model. The fault judgment model judges whether there is a forwarding plane fault in the vBRAS system based on the number of first heartbeat messages, the number of second heartbeat messages and the number of normal heartbeat messages of each forwarding plane, and outputs the faulty forwarding plane when there is a forwarding plane fault in the vBRAS system.
[0072] S203: Switch user information associated with the failed forwarding plane to another forwarding plane in the vBRAS system.
[0073] Optionally, if a forwarding plane failure occurs in the vBRAS system, user information associated with the failed forwarding plane is switched to another forwarding plane in the vBRAS system according to a preset backup rule.
[0074] S204: Do not perform service switching on the forwarding plane where packet loss occurs in the vBRAS system.
[0075] Optionally, since there is no forwarding plane failure in the vBRAS system, the packet loss phenomenon on the forwarding plane in the vBRAS system may be caused by a signaling channel failure, and therefore there is no need to perform service switching on the forwarding plane where the packet loss phenomenon occurs in the vBRAS system.
[0076] In the above-mentioned service processing method, when packet loss is detected in any forwarding plane in the vBRAS system, the number of first heartbeat messages of heartbeat messages of each forwarding plane received by the main control plane within the first timing period is obtained, and the number of second heartbeat messages of heartbeat messages of each forwarding plane received by the standby control plane in the vBRAS system within the first timing period is obtained, and according to the number of first heartbeat messages and the number of second heartbeat messages of each forwarding plane, and the number of normal heartbeat messages of heartbeat messages of each forwarding plane received within the reference period, it can be accurately determined whether there is a forwarding plane failure in the vBRAS system; further, when there is a forwarding plane failure in the vBRAS system, the user information associated with the failed forwarding plane is switched to other forwarding planes in the vBRAS system. The above scheme introduces the number of normal heartbeat messages as a reference when packet loss is detected in any forwarding plane, and introduces the number of second heartbeat messages corresponding to each forwarding plane of the standby control plane within the first timing period as a comparison. It can accurately determine whether there is a forwarding plane failure in the vBRAS system, and perform service switching when there is a forwarding plane failure. Compared with the method of performing service switching when packet loss is detected in any forwarding plane in the prior art, it avoids frequent service switching caused by forwarding plane packet loss due to network congestion, and realizes stable operation of the vBRAS system.
[0077] Optionally, in one embodiment, Figure 3 As shown, a method for determining whether a vBRAS system has a forwarding plane failure is provided, which specifically includes the following steps:
[0078] S301, for each forwarding plane, the number of first heartbeat messages on the forwarding plane is compared with the number of normal heartbeat messages corresponding to the forwarding plane for consistency to obtain a first comparison result, and the number of second heartbeat messages on the forwarding plane is compared with the number of normal heartbeat messages corresponding to the forwarding plane for consistency to obtain a second comparison result.
[0079] Among them, the first comparison result is the result obtained after consistency comparison between the number of first heartbeat messages and the number of normal heartbeat messages; the second comparison result is the result obtained after consistency comparison between the number of second heartbeat messages and the number of normal heartbeat messages.
[0080] Optionally, for each forwarding plane, the number of first heartbeat messages of the forwarding plane is compared with the number of normal heartbeat messages corresponding to the forwarding plane for consistency. If they are consistent, the first comparison result is consistent, that is, no packet loss occurs on the forwarding plane; if they are inconsistent, the first comparison result is inconsistent, that is, packet loss occurs on the forwarding plane.
[0081] Correspondingly, for each forwarding plane, the number of second heartbeat messages of the forwarding plane is compared with the number of normal heartbeat messages corresponding to the forwarding plane for consistency. If they are consistent, the first comparison result is consistent, that is, no packet loss occurs on the forwarding plane; if they are inconsistent, the second comparison result is inconsistent, that is, packet loss occurs on the forwarding plane.
[0082] S302: Determine whether there is a forwarding plane failure in the vBRAS system according to the first comparison result and the second comparison result corresponding to each forwarding plane.
[0083] Optionally, the first comparison result and the second comparison result corresponding to each forwarding plane can be compared and analyzed to determine whether there is a faulty forwarding plane in the vBRAS system. If so, it can be determined that there is a forwarding plane fault in the vBRAS system; if not, it can be determined that there is no forwarding plane fault in the vBRAS system.
[0084] In this embodiment, by introducing the first comparison result and the second comparison result, since the number of second heartbeat messages of each forwarding plane is obtained by statistics of the standby control plane, the second comparison result can be used as a reference, and combined with the first comparison result, it can be accurately determined whether there is a forwarding plane failure in the vBRAS system, avoiding misjudgment caused by failure of the main control plane.
[0085] Optionally, in order to ensure the accuracy of the determined faulty forwarding plane, a second timing cycle may be started after the first timing cycle, and the number of heartbeat messages of each forwarding plane in the second timing cycle may be used to determine whether the vBRAS system has a forwarding plane fault. Figure 4 As shown, another method for determining whether a vBRAS system has a forwarding plane failure is provided, which specifically includes the following steps:
[0086] S401, if it is determined, based on the first comparison result and the second comparison result corresponding to each forwarding plane, that both the main control plane and the standby control plane have detected packet loss on one forwarding plane, and the forwarding planes detected with packet loss by the main control plane and the standby control plane are the same, then determine the number of third heartbeat messages of the heartbeat messages of each forwarding plane received within the second timing period, and obtain the number of fourth heartbeat messages of the heartbeat messages of each forwarding plane received by the standby control plane within the second timing period.
[0087] The second timing cycle is a timing cycle after the first timing cycle, and the duration of the second timing cycle is the same as the duration of the first timing cycle.
[0088] Exemplarily, according to the first comparison result and the second comparison result corresponding to each forwarding plane, it is determined that both the main control plane and the backup control plane have detected a forwarding plane with packet loss, and the forwarding planes detected by the main control plane and the backup control plane with packet loss are the same. It can be that according to the first comparison result corresponding to each forwarding plane, the first forwarding plane number and the first forwarding plane identifier of the forwarding plane where the packet loss phenomenon occurs in the main control plane are determined; at the same time, according to the second comparison result corresponding to each forwarding plane, the second forwarding plane number and the second forwarding plane identifier of the forwarding plane where the packet loss phenomenon occurs in the backup control plane are determined. Further, if the first forwarding plane number and the second forwarding plane number are both 1, and the first forwarding plane identifier and the second forwarding plane identifier are the same, it can be determined that both the main control plane and the backup control plane have detected a forwarding plane with packet loss, and the forwarding planes detected by the main control plane and the backup control plane with packet loss are the same.
[0089] Optionally, if it is determined that both the main control plane and the backup control plane have detected a forwarding plane with packet loss, and the forwarding planes detected by the main control plane and the backup control plane with packet loss are the same, it means that only one and the same forwarding plane of the main control plane and the backup control plane has packet loss, that is, the forwarding plane with packet loss may be faulty. However, in order to more accurately determine whether the forwarding plane has a fault, a second timing cycle can be started, and the number of third heartbeat messages of the heartbeat messages of each forwarding plane received within the second timing cycle can be determined, and the number of fourth heartbeat messages of the heartbeat messages of each forwarding plane received by the backup control plane within the second timing cycle can be obtained.
[0090] S402: Determine whether there is a forwarding plane failure in the vBRAS system according to the number of third heartbeat messages, the number of fourth heartbeat messages, the first comparison result, and the second comparison result corresponding to each forwarding plane.
[0091] Optionally, the number of third heartbeat messages corresponding to each forwarding plane and the first comparison result are analyzed, and the number of fourth heartbeat messages corresponding to each forwarding plane and the second comparison result are analyzed to determine whether the vBRAS system has a faulty forwarding plane. If so, it can be determined that the vBRAS system has a forwarding plane fault; if not, it can be determined that the vBRAS system does not have a forwarding plane fault.
[0092] In this embodiment, when it is determined that only one and the same forwarding plane of the primary control plane and the backup control plane has packet loss, a second timing period is introduced, and based on the number of third heartbeat messages and the number of fourth heartbeat messages corresponding to each forwarding plane obtained in the second timing period, and the first comparison result and the second comparison result obtained in the first timing period, it can be accurately determined whether there is a faulty forwarding plane in the vBRAS system, and further it can be accurately determined whether there is a forwarding plane failure in the vBRAS system.
[0093] Optionally, in order to more accurately determine whether the vBRAS system has a forwarding plane failure, based on the above embodiment, in one embodiment, Figure 5 As shown, another method for determining whether a vBRAS system has a forwarding plane failure is provided, which specifically includes the following steps:
[0094] S501, for each forwarding plane, the number of third heartbeat messages on the forwarding plane is compared with the number of normal heartbeat messages corresponding to the forwarding plane for consistency to obtain a third comparison result, and the number of fourth heartbeat messages on the forwarding plane is compared with the number of normal heartbeat messages corresponding to the forwarding plane for consistency to obtain a fourth comparison result.
[0095] Among them, the third comparison result is the result obtained after consistency comparison between the number of third heartbeat messages and the number of normal heartbeat messages; the fourth comparison result is the result obtained after consistency comparison between the number of fourth heartbeat messages and the number of normal heartbeat messages.
[0096] Optionally, for each forwarding plane, the number of third heartbeat messages of the forwarding plane is compared for consistency with the number of normal heartbeat messages corresponding to the forwarding plane. If they are consistent, the third comparison result is consistent, that is, no packet loss occurs on the forwarding plane; if they are inconsistent, the third comparison result is inconsistent, that is, packet loss occurs on the forwarding plane.
[0097] Correspondingly, for each forwarding plane, the number of the fourth heartbeat messages of the forwarding plane is compared with the number of normal heartbeat messages corresponding to the forwarding plane for consistency. If they are consistent, the fourth comparison result is consistent, that is, no packet loss occurs on the forwarding plane; if they are inconsistent, the fourth comparison result is inconsistent, that is, packet loss occurs on the forwarding plane.
[0098] S502: If the first comparison result and the third comparison result of each forwarding plane are the same, and the second comparison result and the fourth comparison result are the same, it is determined that a forwarding plane failure exists in the vBRAS system.
[0099] Optionally, if the first comparison result of each forwarding plane is the same as the third comparison result, it means that the forwarding plane where packet loss occurs in the main control plane within the first timing period and the second timing period is the same; correspondingly, if the second comparison result is the same as the fourth comparison result, it means that the forwarding plane where packet loss occurs in the backup control plane within the first timing period and the second timing period is the same, that is, packet loss occurs on the same forwarding plane within the first timing period and the second timing period; at this time, it can be determined that the forwarding plane has a fault, and it can be determined that there is a forwarding plane fault in the vBRAS system.
[0100] In this embodiment, by introducing the third comparison result and the fourth comparison result, and combining the first comparison result and the second comparison result, it is possible to accurately determine that the vBRAS system has a forwarding plane fault.
[0101] Optionally, in the vBRAS system, in addition to the packet loss that occurs when the forwarding plane fails, the failure of the signaling channel between the control plane and the forwarding plane will also cause packet loss on the forwarding plane. Correspondingly, if it is determined that the main control plane and / or the backup control plane detects packet loss on at least two forwarding planes based on the first comparison result and the second comparison result corresponding to each forwarding plane, it is determined that there is no forwarding plane failure in the vBRAS system, and there may be a signaling channel failure. That is, if the main control plane detects packet loss on at least two forwarding planes, or the backup control plane detects packet loss on at least two forwarding planes, or both the main control plane and the backup control plane detect packet loss on at least two forwarding planes, it can be directly determined that there is no forwarding plane failure in the vBRAS system, but a signaling channel failure.
[0102] Optionally, if it is determined that the main control plane has detected a forwarding plane with packet loss, and the backup control plane has not detected a forwarding plane with packet loss, based on the first comparison result and the second comparison result corresponding to each forwarding plane, it can also be determined that there is no forwarding plane failure in the vBRAS system, and there may be a signaling channel failure. That is, only the main control plane detects that there is packet loss in one forwarding plane. It should be noted that by comparing and analyzing the number of forwarding planes with packet loss in the main control plane and the number of forwarding planes with packet loss in the backup control plane, the cases where there is no forwarding plane failure in the vBRAS system are listed, which provides a basis for subsequent fault handling.
[0103] It should be noted that, if, according to the first comparison result and the second comparison result corresponding to each forwarding plane, it is determined that the main control plane detects that a forwarding plane has packet loss, and the standby control plane does not detect the forwarding plane with packet loss, that is, only the main control plane detects that a forwarding plane has packet loss, it can be determined that the signaling channel between the main control plane and the forwarding plane has a fault. At this time, the standby control plane is used as the new main control plane according to the fault handling process. In this way, the normal operation and stability of the vBRAS system can be guaranteed.
[0104] Optionally, the duration of the first timing cycle can be controlled by a timer to ensure the accuracy of the determined number of first heartbeat messages. Figure 6 As shown, a method for determining the number of first heartbeat messages is provided, which specifically includes the following steps:
[0105] S601, start a master timer associated with a primary control plane.
[0106] Among them, the main timer is a device with a timing function that is associated with the main control plane.
[0107] Optionally, when packet loss is detected in any forwarding plane in the vBRAS system, a start instruction is immediately sent to a master timer associated with the master control plane to start the master timer associated with the master control plane.
[0108] S602: When it is detected that the timing duration of the main timer reaches the first timing period, count the heartbeat messages of each forwarding plane received within the first timing period to obtain the number of first heartbeat messages corresponding to each forwarding plane.
[0109] Optionally, when it is detected that the timing duration of the main timer reaches the duration corresponding to the first timing period, the main timer is stopped, and the number of heartbeat messages received on each forwarding plane within the first timing period is counted to obtain the number of first heartbeat messages corresponding to each forwarding plane.
[0110] In this embodiment, by introducing a timer for timing, the duration of the first timing period can be accurately controlled, and the heartbeat messages received on each forwarding plane are counted within the first timing period, thereby ensuring the accuracy of the determined number of first heartbeat messages.
[0111] Optionally, in order to ensure the accuracy of the number of second heartbeat messages obtained, in one embodiment, Figure 7 As shown, a method for obtaining the number of second heartbeat messages is provided, which specifically includes the following steps:
[0112] S701, while starting a main timer associated with the main control plane, sending a timing start instruction to the standby control plane.
[0113] Among them, the timing start instruction is used to instruct the standby control plane to start the standby timer, and when the timing duration of the standby timer reaches the duration corresponding to the first timing period, the heartbeat messages of each forwarding plane received within the first timing period are counted to obtain the number of second heartbeat messages of each forwarding plane.
[0114] Optionally, when starting the main timer associated with the main control plane, it is necessary to send a timing start instruction to the standby control plane; further, after receiving the timing start instruction, the standby control plane starts the standby timer associated with the standby control plane, and when the timing duration of the standby timer reaches the duration corresponding to the first timing period, the heartbeat messages of each forwarding plane received in the first timing period are counted to obtain the number of second heartbeat messages of each forwarding plane.
[0115] S702: Receive the number of second heartbeat messages of each forwarding plane sent by the standby control plane.
[0116] Optionally, after obtaining the number of second heartbeat messages of each forwarding plane through statistics, the standby control plane sends the number of second heartbeat messages to the active control plane; at this time, the active control plane can receive the number of second heartbeat messages of each forwarding plane sent by the standby control plane.
[0117] In this embodiment, by sending a timing start instruction to the standby controller, the time synchronization of the first timing cycle of the standby controller and the first timing cycle of the main controller can be ensured, and the accuracy and reference of the determined number of second heartbeat messages of each forwarding plane can be further ensured.
[0118] In one embodiment, Figure 8 As shown, a business processing method is provided, which is applied to Figure 1 The following steps are specifically included:
[0119] S801: Count the heartbeat messages received on each forwarding plane within a first timing period to obtain the number of second heartbeat messages on each forwarding plane.
[0120] Optionally, the number of heartbeat messages of each forwarding plane received within the first timing period is counted to obtain the number of second heartbeat messages of each forwarding plane.
[0121] S802, sending the number of second heartbeat messages of each forwarding plane to the main control plane, so that the main control plane determines whether there is a forwarding plane failure in the vBRAS system according to the number of first heartbeat messages and the number of second heartbeat messages of each forwarding plane, and the number of normal heartbeat messages of the heartbeat messages of each forwarding plane received within a reference period, and when it is determined that there is a forwarding plane failure, switches the user information associated with the failed forwarding plane to other forwarding planes in the vBRAS system.
[0122] Optionally, after obtaining the number of second heartbeat messages of each forwarding plane, the number of second heartbeat messages of each forwarding plane is sent to the main control plane. Correspondingly, after receiving the number of second heartbeat messages of each forwarding plane, the main control plane determines whether there is a forwarding plane failure in the vBRAS system according to the number of first heartbeat messages and the number of second heartbeat messages of each forwarding plane, and the number of normal heartbeat messages of the heartbeat messages of each forwarding plane received within the reference period, and if it is determined that there is a forwarding plane failure, switches the user information associated with the failed forwarding plane to other forwarding planes in the vBRAS system.
[0123] In this embodiment, the number of second heartbeat messages of each forwarding plane is obtained by counting the heartbeat messages of each forwarding plane received within the first timing period, and the number of second heartbeat messages of each forwarding plane is sent to the main control plane, so that the main control plane determines whether there is a forwarding plane failure in the vBRAS system based on the number of first heartbeat messages and the number of second heartbeat messages of each forwarding plane, and the number of normal heartbeat messages of the heartbeat messages of each forwarding plane received within the reference period, and when it is determined that there is a forwarding plane failure, the user information associated with the failed forwarding plane is switched to other forwarding planes in the vBRAS system. The above scheme, by counting the number of heartbeat messages of each forwarding plane within the first timing period, provides accurate reference data, i.e., the number of second heartbeat messages of each forwarding plane, for the main control plane in the process of determining whether there is a forwarding plane failure in the vBRAS system.
[0124] Optionally, in order to ensure the accuracy of the determined number of second heartbeat messages, in one embodiment, Fig. 9 As shown, a method for obtaining the number of second heartbeat messages is provided, which specifically includes the following steps:
[0125] S901: When receiving a timing start instruction sent by a primary control plane, start a standby timer associated with a standby control plane.
[0126] Optionally, when a timing start instruction sent by the primary control plane is received, a start instruction is sent to the associated standby timer to start the standby timer associated with the standby control plane.
[0127] S902: When it is detected that the timing duration of the standby timer reaches the first timing period, count the heartbeat messages of each forwarding plane received within the first timing period to obtain the number of second heartbeat messages of each forwarding plane.
[0128] Optionally, when it is detected that the timing duration of the backup timer reaches the duration corresponding to the first timing period, the backup timer is stopped, and the number of heartbeat messages received on each forwarding plane within the first timing period is counted to obtain the number of second heartbeat messages corresponding to each forwarding plane.
[0129] In this embodiment, the backup timer is started according to the timing start instruction sent by the main control plane, thereby ensuring the time synchronization between the main controller and the backup controller, and the heartbeat messages received from each forwarding plane are counted within the first timing cycle, thereby ensuring the accuracy and reference of the determined second heartbeat message quantity.
[0130] Fig.10 FIG. 1 is a flow chart of a service processing method in another embodiment. Based on the above embodiment, this embodiment provides an optional example of a service processing method. Fig.10 The specific implementation process is as follows:
[0131] S1001: When the primary control plane detects packet loss on any forwarding plane in the vBRAS system, the primary control plane starts a primary timer associated with the primary control plane and sends a timing start instruction to the backup control plane.
[0132] S1002: When the master control plane detects that the timing duration of the master timer reaches a first timing period, the master control plane counts the heartbeat messages received from each forwarding plane within the first timing period to obtain the number of first heartbeat messages corresponding to each forwarding plane.
[0133] S1003: When the standby control plane receives the timing start instruction sent by the active control plane, the standby control plane starts the standby timer associated with the standby control plane.
[0134] S1004, when the standby control plane detects that the timing duration of the standby timer reaches the first timing period, it counts the heartbeat messages of each forwarding plane received within the first timing period, obtains the number of second heartbeat messages of each forwarding plane, and sends the number of second heartbeat messages of each forwarding plane to the main control plane.
[0135] S1005: The active control plane receives the number of second heartbeat messages of each forwarding plane sent by the standby control plane.
[0136] S1006, the main control plane performs a consistency comparison between the number of first heartbeat messages of each forwarding plane and the number of corresponding normal heartbeat messages to obtain the first comparison result of each forwarding plane, and performs a consistency comparison between the number of second heartbeat messages of each forwarding plane and the number of corresponding normal heartbeat messages to obtain the second comparison result of each forwarding plane.
[0137] S1007, if the main control plane determines, based on the first comparison result and the second comparison result corresponding to each forwarding plane, that both the main control plane and the standby control plane have detected packet loss on a forwarding plane, and the forwarding planes detected by the main control plane and the standby control plane to have packet loss are the same, then the main timer is controlled to restart, and a retiming instruction is sent to the standby control plane.
[0138] S1008: When the master control plane detects that the timing duration of the master timer reaches the second timing period, it counts the heartbeat messages received from each forwarding plane within the second timing period to obtain the number of third heartbeat messages corresponding to each forwarding plane.
[0139] S1009: When the standby control plane receives the re-timing instruction sent by the active control plane, the standby control plane controls the standby timer to restart.
[0140] S1010, when the standby control plane detects that the timing duration of the standby timer reaches the second timing period, it counts the heartbeat messages of each forwarding plane received within the second timing period, obtains the number of fourth heartbeat messages of each forwarding plane, and sends the number of fourth heartbeat messages of each forwarding plane to the main control plane.
[0141] S1011: The active control plane receives the number of fourth heartbeat messages of each forwarding plane sent by the standby control plane.
[0142] S1012, the main control plane performs a consistency comparison between the number of third heartbeat messages of each forwarding plane and the number of corresponding normal heartbeat messages to obtain the third comparison result of each forwarding plane, and performs a consistency comparison between the number of fourth heartbeat messages of each forwarding plane and the number of corresponding normal heartbeat messages to obtain the fourth comparison result of each forwarding plane.
[0143] S1013: If the main control plane determines that the first comparison result and the third comparison result of each forwarding plane are the same, and the second comparison result and the fourth comparison result are the same, it is determined that there is a forwarding plane failure in the vBRAS system.
[0144] Optionally, if it is determined, based on the first comparison result and the second comparison result corresponding to each forwarding plane, that the main control plane and / or the backup control plane detects packet loss on at least two forwarding planes, then it is determined that there is no forwarding plane failure in the vBRAS system; or, if it is determined, based on the first comparison result and the second comparison result corresponding to each forwarding plane, that the main control plane detects packet loss on one forwarding plane, and the backup control plane does not detect a forwarding plane with packet loss, then it is determined that there is no forwarding plane failure in the vBRAS system, and the backup control plane is used as the new main control plane.
[0145] S1014: Switch user information associated with the failed forwarding plane to another forwarding plane in the vBRAS system.
[0146] The specific process of the above S1001-S1014 can be found in the description of the above method embodiment. The implementation principle and technical effect are similar and will not be repeated here.
[0147] 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.
[0148] Based on the same inventive concept, the embodiment of the present application also provides a business processing device for implementing the business processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the one or more business processing device embodiments provided below can refer to the limitations on the business processing method above, and will not be repeated here.
[0149] In one embodiment, Fig.11 As shown, a service processing device 1 is provided, comprising: a quantity acquisition module 10, a fault determination module 20 and a service processing module 30, wherein:
[0150] The quantity acquisition module 10 is used to determine the first number of heartbeat messages of each forwarding plane received within a first timing period when packet loss is detected in any forwarding plane in the vBRAS system, and to obtain the second number of heartbeat messages of each forwarding plane received by the standby control plane in the vBRAS system within the first timing period.
[0151] The fault determination module 20 is used to determine whether the vBRAS system has a forwarding plane fault according to the number of first heartbeat messages and the number of second heartbeat messages of each forwarding plane and the number of normal heartbeat messages of each forwarding plane received within a reference period.
[0152] The service processing module 30 is configured to switch the user information associated with the failed forwarding plane to other forwarding planes in the vBRAS system, if any.
[0153] The above-mentioned business processing device, when detecting packet loss on any forwarding plane in the vBRAS system, obtains the number of first heartbeat messages of heartbeat messages of each forwarding plane received by the main control plane within the first timing period, and obtains the number of second heartbeat messages of heartbeat messages of each forwarding plane received by the standby control plane in the vBRAS system within the first timing period, and according to the number of first heartbeat messages and the number of second heartbeat messages of each forwarding plane, and the number of normal heartbeat messages of heartbeat messages of each forwarding plane received within the reference period, it can be accurately determined whether there is a forwarding plane failure in the vBRAS system; further, when there is a forwarding plane failure in the vBRAS system, user information associated with the failed forwarding plane is switched to other forwarding planes in the vBRAS system. The above scheme introduces the number of normal heartbeat messages as a reference when packet loss is detected in any forwarding plane, and introduces the number of second heartbeat messages corresponding to each forwarding plane of the standby control plane within the first timing period as a comparison. It can accurately determine whether there is a forwarding plane failure in the vBRAS system, and perform service switching when there is a forwarding plane failure. Compared with the method of performing service switching when packet loss is detected in any forwarding plane in the prior art, it avoids frequent service switching caused by forwarding plane packet loss due to network congestion, and realizes stable operation of the vBRAS system.
[0154] In one embodiment, the fault determination module 20 includes:
[0155] The result determination unit is used to, for each forwarding plane, perform a consistency comparison between the number of first heartbeat messages on the forwarding plane and the number of normal heartbeat messages corresponding to the forwarding plane to obtain a first comparison result, and to perform a consistency comparison between the number of second heartbeat messages on the forwarding plane and the number of normal heartbeat messages corresponding to the forwarding plane to obtain a second comparison result.
[0156] The fault determination unit is used to determine whether the vBRAS system has a forwarding plane fault according to the first comparison result and the second comparison result corresponding to each forwarding plane.
[0157] In one embodiment, the fault determination unit includes:
[0158] The quantity determination slave unit is used to determine the third number of heartbeat messages of each forwarding plane received within the second timing period, and obtain the fourth number of heartbeat messages of each forwarding plane received by the standby control plane within the second timing period, if it is determined, based on the first comparison result and the second comparison result corresponding to each forwarding plane, that both the main control plane and the standby control plane have detected packet loss on a forwarding plane, and the forwarding planes detected with packet loss by the main control plane and the standby control plane are the same.
[0159] The fault determination slave unit is used to determine whether the vBRAS system has a forwarding plane fault according to the number of third heartbeat messages, the number of fourth heartbeat messages, the first comparison result and the second comparison result corresponding to each forwarding plane.
[0160] In one embodiment, the fault determination slave unit is specifically configured to:
[0161] For each forwarding plane, the number of third heartbeat messages of the forwarding plane is compared with the number of normal heartbeat messages corresponding to the forwarding plane for consistency to obtain a third comparison result, and the number of fourth heartbeat messages of the forwarding plane is compared with the number of normal heartbeat messages corresponding to the forwarding plane for consistency to obtain a fourth comparison result; if the first comparison result of each forwarding plane is the same as the third comparison result, and the second comparison result is the same as the fourth comparison result, it is determined that there is a forwarding plane failure in the vBRAS system.
[0162] In one embodiment, the fault determination unit is further configured to:
[0163] If, according to the first comparison result and the second comparison result corresponding to each forwarding plane, it is determined that the main control plane and / or the standby control plane detects packet loss on at least two forwarding planes, it is determined that there is no forwarding plane failure in the vBRAS system; or, if, according to the first comparison result and the second comparison result corresponding to each forwarding plane, it is determined that the main control plane detects packet loss on one forwarding plane, and the standby control plane does not detect a forwarding plane with packet loss, it is determined that there is no forwarding plane failure in the vBRAS system.
[0164] In one embodiment, the fault determination unit is further configured to:
[0165] The standby control plane is used as a new main control plane.
[0166] In one embodiment, the quantity acquisition module 10 is specifically used for:
[0167] Start the main timer associated with the main control plane; when it is detected that the timing duration of the main timer reaches the first timing period, count the heartbeat messages of each forwarding plane received within the first timing period to obtain the number of first heartbeat messages corresponding to each forwarding plane.
[0168] In one embodiment, the quantity acquisition module 10 is further used for:
[0169] While starting the main timer associated with the main control plane, send a timing start instruction to the standby control plane; wherein the timing start instruction is used to instruct the standby control plane to start the standby timer, and when the timing duration of the standby timer reaches the first timing period, count the heartbeat messages of each forwarding plane received within the first timing period to obtain the number of second heartbeat messages of each forwarding plane; receive the number of second heartbeat messages of each forwarding plane sent by the standby control plane.
[0170] In one embodiment, Fig.12 As shown, a service processing device 2 is provided, including: a quantity counting module 40 and a quantity sending module 50, wherein:
[0171] The quantity counting module 40 is used to count the heartbeat messages of each forwarding plane received within the first timing period to obtain the number of second heartbeat messages of each forwarding plane.
[0172] The quantity sending module 50 is used to send the number of second heartbeat messages of each forwarding plane to the main control plane, so that the main control plane determines whether there is a forwarding plane failure in the vBRAS system based on the number of first heartbeat messages and the number of second heartbeat messages of each forwarding plane, and the number of normal heartbeat messages of the heartbeat messages of each forwarding plane received within a reference period, and when it is determined that there is a forwarding plane failure, switches the user information associated with the failed forwarding plane to other forwarding planes in the vBRAS system.
[0173] In one embodiment, the quantity statistics module 40 is specifically used for:
[0174] When receiving the timing start instruction sent by the main control plane, start the standby timer associated with the standby control plane; when detecting that the timing duration of the standby timer reaches the first timing period, count the heartbeat messages of each forwarding plane received within the first timing period to obtain the number of second heartbeat messages of each forwarding plane.
[0175] Each module in the above-mentioned business processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.
[0176] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Fig.13 As shown. 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 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 business processing method is implemented.
[0177] Those skilled in the art will understand that Fig.13 The structure shown in the figure is only a block diagram of a part of the 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 those shown in the figure, or combine certain components, or have a different arrangement of components.
[0178] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps of the above-mentioned business processing method when executing the computer program.
[0179] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned business processing method are implemented.
[0180] In one embodiment, a computer program product is provided, including a computer program, which implements the steps of the above-mentioned business processing method when executed by a processor.
[0181] It should be noted that the data involved in this application (including but not limited to data used for analysis, storage, display, etc.) are all information and data fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0182] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods 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 this application can include at least one of non-volatile 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), magnetoresistive 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, etc., but are not limited to this.
[0183] The technical features of the above embodiments may be arbitrarily combined. 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 specification.
[0184] 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 business processing method, characterized in that: Applied to a main control plane in a virtualized broadband remote access server vBRAS system, the method comprises: When packet loss is detected on any forwarding plane in the vBRAS system, determine the number of first heartbeat messages of the heartbeat messages of each forwarding plane received within a first timing period, and obtain the number of second heartbeat messages of the heartbeat messages of each forwarding plane received by the standby control plane in the vBRAS system within the first timing period; Determining whether the vBRAS system has a forwarding plane failure according to the number of first heartbeat messages and the number of second heartbeat messages of each forwarding plane, and the number of normal heartbeat messages of the heartbeat messages of each forwarding plane received within a reference period; If so, the user information associated with the failed forwarding plane is switched to another forwarding plane in the vBRAS system.
2. The method according to claim 1, characterized in that The determining whether the vBRAS system has a forwarding plane fault according to the number of first heartbeat messages and the number of second heartbeat messages of each forwarding plane, and the number of normal heartbeat messages of the heartbeat messages of each forwarding plane received within a reference period, includes: For each forwarding plane, the number of first heartbeat messages of the forwarding plane is compared with the number of normal heartbeat messages corresponding to the forwarding plane for consistency, to obtain a first comparison result, and the number of second heartbeat messages of the forwarding plane is compared with the number of normal heartbeat messages corresponding to the forwarding plane for consistency, to obtain a second comparison result; According to the first comparison results and the second comparison results corresponding to each forwarding plane, it is determined whether the vBRAS system has a forwarding plane fault.
3. The method according to claim 2, characterized in that The determining, according to the first comparison results and the second comparison results corresponding to each forwarding plane, whether the vBRAS system has a forwarding plane fault includes: If, according to the first comparison result and the second comparison result corresponding to each forwarding plane, it is determined that both the main control plane and the standby control plane have detected packet loss on one forwarding plane, and the forwarding planes detected by the main control plane and the standby control plane to have packet loss are the same, then determine the number of third heartbeat messages of the heartbeat messages of each forwarding plane received within the second timing period, and obtain the number of fourth heartbeat messages of the heartbeat messages of each forwarding plane received by the standby control plane within the second timing period; It is determined whether the vBRAS system has a forwarding plane failure according to the number of third heartbeat messages, the number of fourth heartbeat messages, the first comparison result, and the second comparison result corresponding to each forwarding plane.
4. The method according to claim 3, characterized in that The determining whether the vBRAS system has a forwarding plane failure according to the number of third heartbeat messages, the number of fourth heartbeat messages, the first comparison result, and the second comparison result corresponding to each forwarding plane includes: For each forwarding plane, the number of the third heartbeat messages of the forwarding plane is compared with the number of normal heartbeat messages corresponding to the forwarding plane for consistency to obtain a third comparison result, and the number of the fourth heartbeat messages of the forwarding plane is compared with the number of normal heartbeat messages corresponding to the forwarding plane for consistency to obtain a fourth comparison result; If the first comparison result and the third comparison result of each forwarding plane are the same, and the second comparison result and the fourth comparison result are the same, it is determined that a forwarding plane failure exists in the vBRAS system.
5. The method according to claim 2, characterized in that: The determining, according to the first comparison results and the second comparison results corresponding to each forwarding plane, whether the vBRAS system has a forwarding plane fault includes: If, according to the first comparison result and the second comparison result corresponding to each forwarding plane, it is determined that the primary control plane and / or the standby control plane detects packet loss on at least two forwarding planes, it is determined that there is no forwarding plane failure in the vBRAS system; or, If it is determined according to the first comparison result and the second comparison result corresponding to each forwarding plane that the primary control plane detects packet loss on a forwarding plane, and the backup control plane does not detect a forwarding plane with packet loss, it is determined that there is no forwarding plane failure in the vBRAS system.
6. The method according to claim 5, characterized in that If it is determined according to the first comparison result and the second comparison result corresponding to each forwarding plane that the primary control plane detects that a forwarding plane has packet loss, and the standby control plane does not detect a forwarding plane with packet loss, then after it is determined that there is no forwarding plane failure in the vBRAS system, the method further includes: The standby control plane is used as a new main control plane.
7. The method according to claim 1, characterized in that The determining of the number of first heartbeat messages of the heartbeat messages of each forwarding plane received within the first timing period includes: Starting a master timer associated with the primary control plane; When it is detected that the timing duration of the main timer reaches the first timing period, the heartbeat messages of each forwarding plane received within the first timing period are counted to obtain the number of first heartbeat messages corresponding to each forwarding plane.
8. The method according to claim 7, characterized in that The obtaining the number of second heartbeat messages of the heartbeat messages of each forwarding plane received by the standby control plane in the vBRAS system within the first timing period includes: While starting a main timer associated with the main control plane, sending a timing start instruction to the standby control plane; The timing start instruction is used to instruct the standby control plane to start the standby timer, and when the timing duration of the standby timer reaches the first timing period, the heartbeat messages of each forwarding plane received within the first timing period are counted to obtain the number of second heartbeat messages of each forwarding plane; Receive the number of second heartbeat messages of each forwarding plane sent by the standby control plane.
9. A business processing method, characterized in that: Applied to a standby control plane in a vBRAS system, the method comprises: Counting the heartbeat messages of each forwarding plane received within the first timing period to obtain the number of second heartbeat messages of each forwarding plane; The number of second heartbeat messages of each forwarding plane is sent to the main control plane, so that the main control plane determines whether there is a forwarding plane failure in the vBRAS system according to the number of first heartbeat messages and the number of second heartbeat messages of each forwarding plane, and the number of normal heartbeat messages of the heartbeat messages of each forwarding plane received within a reference period, and when it is determined that there is a forwarding plane failure, switches user information associated with the failed forwarding plane to other forwarding planes in the vBRAS system.
10. The method according to claim 9, characterized in that The step of counting the heartbeat messages received on each forwarding plane within the first timing period to obtain the number of second heartbeat messages on each forwarding plane includes: When receiving a timing start instruction sent by the primary control plane, starting a standby timer associated with the standby control plane; When it is detected that the timing duration of the standby timer reaches the first timing period, the heartbeat messages of each forwarding plane received within the first timing period are counted to obtain the number of second heartbeat messages of each forwarding plane.
11. A service processing device, characterized in that: A main control plane configured in a vBRAS system, the device comprising: A quantity acquisition module is used to determine the number of first heartbeat messages of heartbeat messages of each forwarding plane received within a first timing period when a packet loss phenomenon is detected in any forwarding plane in the vBRAS system, and to obtain the number of second heartbeat messages of heartbeat messages of each forwarding plane received by the standby control plane in the vBRAS system within the first timing period; A fault determination module, configured to determine whether the vBRAS system has a forwarding plane fault according to the number of first heartbeat messages and the number of second heartbeat messages of each forwarding plane, and the number of normal heartbeat messages of the heartbeat messages of each forwarding plane received within a reference period; The service processing module is used to switch the user information associated with the failed forwarding plane to other forwarding planes in the vBRAS system if any.
12. A service processing device, characterized in that: A standby control plane configured in a vBRAS system, the device comprising: A quantity statistics module, used to count the heartbeat messages of each forwarding plane received within the first timing period to obtain the number of second heartbeat messages of each forwarding plane; A quantity sending module is used to send the number of second heartbeat messages of each forwarding plane to the main control plane, so that the main control plane determines whether there is a forwarding plane failure in the vBRAS system according to the number of first heartbeat messages and the number of second heartbeat messages of each forwarding plane, and the number of normal heartbeat messages of the heartbeat messages of each forwarding plane received within a reference period, and when it is determined that there is a forwarding plane failure, switches user information associated with the failed forwarding plane to other forwarding planes in the vBRAS system.
13. 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 10 are implemented.
14. 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 10 are implemented.
15. 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 10 are implemented.
