Device switching method, device, device and readable storage medium
Through the preset cycle notification and fault information notification between the active BRAS-UP and the standby BRAS-UP in the vBRAS system with separation of control and transfer, the BFD and S-CUSP protocols are used to solve the problem of prolonged active and standby switchover time and achieve rapid Fault detection and switching improve user experience.
Patent Information
- Application Number
- CN202011361252.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-27
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-11-27
AI Technical Summary
In a vBRAS system with separation of control and transfer, when the primary BRAS-UP device fails, it takes a long time for the CP to detect the failure, resulting in prolonged active-standby switchover time and poor user experience.
Network status information is notified at a preset period between the active BRAS-UP and the standby BRAS-UP, and fault information is notified to the BRAS-CP in a timely manner. BFD and S-CUSP protocols are used to transmit fault information to achieve rapid fault detection and switching.
When the active BRAS-UP fails, the switchover between the active and standby BRAS-UPs can be quickly completed, which increases the switching speed and improves the user experience.
Smart Images

Figure CN114629781B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a device switching method, apparatus, device and readable storage medium. Background Art
[0002] Broadband Remote Access Server (BRAS) is a new access gateway for broadband network applications. With the rapid increase in the number of broadband users and the development of new services such as 4K HD and the Internet of Things, BRAS devices, as the edge of the IP network and the gateway for user access, face challenges such as low equipment utilization, complex management and operation, and slow launch of new services.
[0003] For BRAS equipment, the most important step in promoting its universal evolution is the separation of forwarding and control.
[0004] The basic idea of the vBRAS (virtualized BRAS) system with control plane separation is to abstract the control plane functions on multiple BRAS devices and deploy them in a centralized cloud to form a unified BRAS controller (BRAS-CP, control plane, CP for short); at the same time, the BRAS devices or other forwarding devices without the control plane are stripped to form a BRAS forwarder (BRAS-UP, forwarding plane, UP for short). The vBRAS system with control plane separation consists of CP and UP.
[0005] In the hot standby solution of the vBRAS architecture with separation of forwarding and control, both the primary and backup UPs have table information of all users of the primary and backup UPs, and the primary and backup switching is completed under the unified control of the CP. Users go online and are processed on the primary UP, and the backup UP is not processed. Once the link failure or device failure occurs on the primary UP, the user traffic needs to be switched to the backup UP.
[0006] When a device failure (or network failure) occurs on the master UP, the master UP cannot notify the CP of the failure information. The CP can only detect the loss of connection with the master UP before it is informed of the master UP failure and performs master-slave switching.
[0007] Since it takes a long time for CP to detect the failure of the active UP, the switching time between the active and standby UP is long, resulting in a poor user experience. Summary of the invention
[0008] The embodiments of the present invention provide a device switching method, apparatus, device and readable storage medium, so as to quickly complete the switching of the main BRAS-UP and the backup BRAS-UP when the BRAS-UP device fails.
[0009] In a first aspect, an embodiment of the present invention provides a device switching method, which is applied to a master BRAS-UP of a vBRAS system, comprising:
[0010] Notify each other of their network status information with the standby BRAS-UP according to a preset period;
[0011] The method further comprises any of the following steps:
[0012] When a user-side fault or a network-side fault occurs in the primary BRAS-UP, the BRAS-CP is notified of the fault information of the primary BRAS-UP and the backup BRAS-UP is notified of the fault information of the primary BRAS-UP;
[0013] When the network status information of the standby BRAS-UP is not received for multiple consecutive times, sending the fault information of the standby BRAS-UP to the BRAS-CP;
[0014] When receiving the user side fault information or network side fault information sent by the standby BRAS-UP, the fault information of the standby BRAS-UP is sent to the BRAS-CP.
[0015] The master BRAS-UP and the standby BRAS-UP communicate with each other via BFD (Bidirectional Forwarding Detection).
[0016] The value of the diagnostic field Diag of the BFD is a preset value, which is used to indicate that the network status information of the primary BRAS-UP and / or the backup BRAS-CP is carried;
[0017] The BFD extension fields include:
[0018] LF Type, used to identify the type of local fault;
[0019] LF Argument, a parameter used to identify a local fault;
[0020] PF Type, used to identify the type of peer fault;
[0021] PF Argument: Parameter used to identify the peer fault.
[0022] The master BRAS-UP and the BRAS-CP communicate with each other through the S-CUSP (Service-Control Plane and User Plane Separated Protocol) protocol;
[0023] The S-CUSP extension field includes:
[0024] LF Type, used to identify the type of local fault;
[0025] LF Argument, a parameter used to identify a local fault;
[0026] PF Type, used to identify the type of peer fault;
[0027] PF Argument: Parameter used to identify the peer fault.
[0028] Wherein, the method further comprises:
[0029] directly receiving a first notification sent by the BRAS-CP, where the first notification is used to notify the active BRAS-UP to switch to the standby BRAS-UP; or
[0030] A first notification sent by the BRAS-CP is received through the standby BRAS-CP, where the first notification is used to notify the active BRAS-UP to switch to the standby BRAS-UP.
[0031] In a second aspect, an embodiment of the present invention further provides a device switching method, which is applied to a standby BRAS-UP of a vBRAS system, comprising:
[0032] Notify each other of their network status information with the master BRAS-UP according to a preset period;
[0033] The method further comprises any of the following steps:
[0034] When a user-side fault or a network-side fault occurs in the standby BRAS-UP, the standby BRAS-UP is notified of the fault information of the standby BRAS-UP to the BRAS-CP and the active BRAS-UP is notified of the fault information of the standby BRAS-UP;
[0035] receiving fault information of the master BRAS-UP sent by the master BRAS-UP when a user side fault or a network side fault occurs in the master BRAS-UP, and sending the fault information of the master BRAS-UP to the BRAS-CP;
[0036] When the network status information of the master BRAS-UP is not received for multiple consecutive times, the fault information of the master BRAS-UP is sent to the BRAS-CP.
[0037] The master BRAS-UP and the standby BRAS-UP communicate network status information via BFD;
[0038] The value of the diagnostic field Diag of the BFD is a preset value, which is used to indicate that the network status information of the primary BRAS-UP and / or the backup BRAS-UP is carried;
[0039] The BFD extension fields include:
[0040] LF Type, used to identify the type of local fault;
[0041] LF Argument, a parameter used to identify a local fault;
[0042] PF Type, used to identify the type of peer fault;
[0043] PF Argument: Parameter used to identify the peer fault.
[0044] Wherein, the standby BRAS-UP and the BRAS-CP communicate with each other through the S-CUSP protocol;
[0045] The S-CUSP extension field includes:
[0046] LF Type, used to identify the type of local fault;
[0047] LF Argument, a parameter used to identify a local fault;
[0048] PF Type, used to identify the type of peer fault;
[0049] PF Argument: Parameter used to identify the peer fault.
[0050] Wherein, the method further comprises:
[0051] receiving a second notification sent by the BRAS-CP; and / or
[0052] receiving a first notification sent by the BRAS-CP and sending the first notification to the primary BRAS-UP;
[0053] The first notification is used to notify the primary BRAS-UP to switch to the standby BRAS-UP, and the second notification is used to notify the standby BRAS-UP to switch to the primary BRAS-UP.
[0054] In a third aspect, an embodiment of the present invention further provides a device switching method, which is applied to a BRAS-CP of a vBRAS system, comprising:
[0055] Obtaining fault information of the primary BRAS-UP and / or the backup BRAS-UP;
[0056] Whether to perform device switching is determined according to the fault information of the primary BRAS-UP and / or the fault information of the standby BRAS-UP.
[0057] The determining whether to perform device switching according to the fault information of the primary BRAS-UP and / or the fault information of the standby BRAS-UP includes:
[0058] If the fault information notified by the master BRAS-UP or the fault information notified by the standby BRAS-UP is received, determining whether to perform device switching according to the fault information notified by the master BRAS-UP or the fault information notified by the standby BRAS-UP;
[0059] If the fault information notified by the primary BRAS-UP and the fault information notified by the backup BRAS-UP are received at the same time:
[0060] When the fault information notified by the master BRAS-UP is consistent with the fault information notified by the standby BRAS-UP, determining whether to perform device switching according to the fault information notified by the master BRAS-UP or the fault information notified by the standby BRAS-UP;
[0061] When the fault information notified by the master BRAS-UP is inconsistent with the fault information notified by the standby BRAS-UP, it is determined whether to perform device switching according to a preset strategy.
[0062] Wherein, the method further comprises:
[0063] Sending a first notification to the primary BRAS-UP, and sending a second notification to the standby BRAS-UP; or
[0064] sending a second notification to the standby BRAS-UP; or
[0065] Sending a first notification to the standby BRAS-UP so that the standby BRAS-UP sends the first notification to the primary BRAS-UP, and sending a second notification to the standby BRAS-UP;
[0066] The first notification is used to notify the master BRAS-UP to switch to the standby BRAS-UP; the second notification is used to notify the standby BRAS-UP to switch to the master BRAS-UP.
[0067] In a fourth aspect, an embodiment of the present invention provides a device switching apparatus, which is applied to a master BRAS-UP of a vBRAS system, including:
[0068] A first processing module, configured to notify the standby BRAS-UP of their respective network status information according to a preset period;
[0069] The first sending module is used to perform any of the following:
[0070] When a user-side fault or a network-side fault occurs in the primary BRAS-UP, the BRAS-CP is notified of the fault information of the primary BRAS-UP and the backup BRAS-UP is notified of the fault information of the primary BRAS-UP;
[0071] When the network status information of the standby BRAS-UP is not received for multiple consecutive times, sending the fault information of the standby BRAS-UP to the BRAS-CP;
[0072] When receiving the user side fault information or network side fault information sent by the standby BRAS-UP, the fault information of the standby BRAS-UP is sent to the BRAS-CP.
[0073] The active BRAS-UP and the standby BRAS-UP notify network status information via bidirectional forwarding detection BFD;
[0074] The value of the diagnostic field Diag of the BFD is a preset value, which is used to indicate that the network status information of the primary BRAS-UP and / or the backup BRAS-UP is carried;
[0075] The BFD extension fields include:
[0076] LF Type, used to identify the type of local fault;
[0077] LF Argument, a parameter used to identify a local fault;
[0078] PF Type, used to identify the type of peer fault;
[0079] PF Argument: Parameter used to identify the peer fault.
[0080] Wherein, the master BRAS-UP and the BRAS-CP communicate with each other via the S-CUSP protocol;
[0081] The S-CUSP extension field includes:
[0082] LF Type, used to identify the type of local fault;
[0083] LF Argument, a parameter used to identify a local fault;
[0084] PF Type, used to identify the type of peer fault;
[0085] PF Argument: Parameter used to identify the peer fault.
[0086] The device further includes: a first receiving module, configured to:
[0087] directly receiving a first notification sent by the BRAS-CP, where the first notification is used to notify the active BRAS-UP to switch to the standby BRAS-UP; or
[0088] A first notification sent by the BRAS-CP is received through the standby BRAS-CP, where the first notification is used to notify the active BRAS-UP to switch to the standby BRAS-UP.
[0089] In a fifth aspect, an embodiment of the present invention provides a device switching apparatus, which is applied to a standby BRAS-UP of a vBRAS system, including:
[0090] A first processing module, configured to notify the master BRAS-UP of respective network status information according to a preset period;
[0091] The first sending module is used to perform any of the following:
[0092] When a user-side fault or a network-side fault occurs in the standby BRAS-UP, the standby BRAS-UP is notified of the fault information of the standby BRAS-UP to the BRAS-CP and the active BRAS-UP is notified of the fault information of the standby BRAS-UP;
[0093] receiving fault information of the master BRAS-UP sent by the master BRAS-UP when a user side fault or a network side fault occurs in the master BRAS-UP, and sending the fault information of the master BRAS-UP to the BRAS-CP;
[0094] When the network status information of the master BRAS-UP is not received for multiple consecutive times, the fault information of the master BRAS-UP is sent to the BRAS-CP.
[0095] The master BRAS-UP and the standby BRAS-UP communicate network status information via BFD;
[0096] The value of the diagnostic field Diag of the BFD is a preset value, which is used to indicate that the network status information of the primary BRAS-UP and / or the backup BRAS-UP is carried;
[0097] The BFD extension fields include:
[0098] LF Type, used to identify the type of local fault;
[0099] LF Argument, a parameter used to identify a local fault;
[0100] PF Type, used to identify the type of peer fault;
[0101] PF Argument: Parameter used to identify the peer fault.
[0102] Wherein, the standby BRAS-UP and the BRAS-CP communicate with each other through the S-CUSP protocol;
[0103] The S-CUSP extension field includes:
[0104] LF Type, used to identify the type of local fault;
[0105] LF Argument, a parameter used to identify a local fault;
[0106] PF Type, used to identify the type of peer fault;
[0107] PF Argument: Parameter used to identify the peer fault.
[0108] The device further includes: a first receiving module, configured to:
[0109] receiving a second notification sent by the BRAS-CP; and / or
[0110] receiving a first notification sent by the BRAS-CP and sending the first notification to the primary BRAS-UP;
[0111] The first notification is used to notify the primary BRAS-UP to switch to the standby BRAS-UP, and the second notification is used to notify the standby BRAS-UP to switch to the primary BRAS-UP.
[0112] In a sixth aspect, an embodiment of the present invention provides a device switching apparatus, which is applied to a BRAS-CP of a vBRAS system, including:
[0113] A first acquisition module, used to acquire fault information of the primary BRAS-UP and / or fault information of the backup BRAS-UP;
[0114] The first processing module is used to determine whether to perform device switching according to the fault information of the primary BRAS-UP and / or the fault information of the backup BRAS-UP.
[0115] Wherein, the first processing module is used to:
[0116] If the fault information notified by the master BRAS-UP or the fault information notified by the standby BRAS-UP is received, determining whether to perform device switching according to the fault information notified by the master BRAS-UP or the fault information notified by the standby BRAS-UP;
[0117] If the fault information notified by the primary BRAS-UP and the fault information notified by the backup BRAS-UP are received at the same time:
[0118] When the fault information notified by the master BRAS-UP is consistent with the fault information notified by the standby BRAS-UP, determining whether to perform device switching according to the fault information notified by the master BRAS-UP or the fault information notified by the standby BRAS-UP;
[0119] When the fault information notified by the master BRAS-UP is inconsistent with the fault information notified by the standby BRAS-UP, it is determined whether to perform device switching according to a preset strategy.
[0120] The device further includes: a first sending module, configured to:
[0121] Sending a first notification to the primary BRAS-UP, and sending a second notification to the standby BRAS-UP; or
[0122] sending a second notification to the standby BRAS-UP; or
[0123] Sending a first notification to the standby BRAS-UP so that the standby BRAS-UP sends the first notification to the primary BRAS-UP, and sending a second notification to the standby BRAS-UP;
[0124] The first notification is used to notify the master BRAS-UP to switch to the standby BRAS-UP; the second notification is used to notify the standby BRAS-UP to switch to the master BRAS-UP.
[0125] In a seventh aspect, an embodiment of the present invention provides a device switching apparatus, applied to a master BRAS-UP of a vBRAS system, comprising: a processor and a transceiver;
[0126] The processor is used to notify the standby BRAS-UP of their respective network status information according to a preset period;
[0127] The transceiver is used to perform any of the following:
[0128] When a user-side fault or a network-side fault occurs in the primary BRAS-UP, the BRAS-CP is notified of the fault information of the primary BRAS-UP and the backup BRAS-UP is notified of the fault information of the primary BRAS-UP;
[0129] When the network status information of the standby BRAS-UP is not received for multiple consecutive times, sending the fault information of the standby BRAS-UP to the BRAS-CP;
[0130] When receiving the user side fault information or network side fault information sent by the standby BRAS-UP, the fault information of the standby BRAS-UP is sent to the BRAS-CP.
[0131] The active BRAS-UP and the standby BRAS-UP notify network status information via bidirectional forwarding detection BFD;
[0132] The value of the diagnostic field Diag of the BFD is a preset value, which is used to indicate that the network status information of the primary BRAS-UP and / or the backup BRAS-UP is carried;
[0133] The BFD extension fields include:
[0134] LF Type, used to identify the type of local fault;
[0135] LF Argument, a parameter used to identify a local fault;
[0136] PF Type, used to identify the type of peer fault;
[0137] PF Argument: Parameter used to identify the peer fault.
[0138] Wherein, the master BRAS-UP and the BRAS-CP communicate with each other through the S-CUSP protocol;
[0139] The S-CUSP extension field includes:
[0140] LF Type, used to identify the type of local fault;
[0141] LF Argument, a parameter used to identify a local fault;
[0142] PF Type, used to identify the type of peer fault;
[0143] PF Argument: Parameter used to identify the peer fault.
[0144] Wherein, the transceiver is also used for:
[0145] directly receiving a first notification sent by the BRAS-CP, where the first notification is used to notify the active BRAS-UP to switch to the standby BRAS-UP; or
[0146] A first notification sent by the BRAS-CP is received through the standby BRAS-CP, where the first notification is used to notify the active BRAS-UP to switch to the standby BRAS-UP.
[0147] In an eighth aspect, an embodiment of the present invention provides a device switching apparatus, applied to a standby BRAS-UP of a vBRAS system, comprising: a processor and a transceiver;
[0148] The processor is used to notify the master BRAS-UP of the respective network status information according to a preset period;
[0149] The transceiver is used to perform any of the following:
[0150] When a user-side fault or a network-side fault occurs in the standby BRAS-UP, the standby BRAS-UP is notified of the fault information of the standby BRAS-UP to the BRAS-CP and the active BRAS-UP is notified of the fault information of the standby BRAS-UP;
[0151] receiving fault information of the master BRAS-UP sent by the master BRAS-UP when a user side fault or a network side fault occurs in the master BRAS-UP, and sending the fault information of the master BRAS-UP to the BRAS-CP;
[0152] When the network status information of the master BRAS-UP is not received for multiple consecutive times, the fault information of the master BRAS-UP is sent to the BRAS-CP.
[0153] The master BRAS-UP and the standby BRAS-UP communicate network status information via BFD;
[0154] The value of the diagnostic field Diag of the BFD is a preset value, which is used to indicate that the network status information of the primary BRAS-UP and / or the backup BRAS-UP is carried;
[0155] The BFD extension fields include:
[0156] LF Type, used to identify the type of local fault;
[0157] LF Argument, a parameter used to identify a local fault;
[0158] PF Type, used to identify the type of peer fault;
[0159] PF Argument: Parameter used to identify the peer fault.
[0160] Wherein, the standby BRAS-UP and the BRAS-CP communicate with each other through the S-CUSP protocol;
[0161] The S-CUSP extension field includes:
[0162] LF Type, used to identify the type of local fault;
[0163] LF Argument, a parameter used to identify a local fault;
[0164] PF Type, used to identify the type of peer fault;
[0165] PF Argument: Parameter used to identify the peer fault.
[0166] Wherein, the transceiver is also used for:
[0167] receiving a second notification sent by the BRAS-CP; and / or
[0168] receiving a first notification sent by the BRAS-CP and sending the first notification to the primary BRAS-UP;
[0169] The first notification is used to notify the primary BRAS-UP to switch to the standby BRAS-UP, and the second notification is used to notify the standby BRAS-UP to switch to the primary BRAS-UP.
[0170] In a ninth aspect, an embodiment of the present invention provides a device switching apparatus, applied to a BRAS-CP of a vBRAS system, comprising: a processor and a transceiver;
[0171] The processor is used to obtain the fault information of the main BRAS-UP and / or the fault information of the standby BRAS-UP; and determine whether to perform device switching according to the fault information of the main BRAS-UP and / or the fault information of the standby BRAS-UP.
[0172] Wherein, the processor is used for:
[0173] If the fault information notified by the master BRAS-UP or the fault information notified by the standby BRAS-UP is received, determining whether to perform device switching according to the fault information notified by the master BRAS-UP or the fault information notified by the standby BRAS-UP;
[0174] If the fault information notified by the primary BRAS-UP and the fault information notified by the backup BRAS-UP are received at the same time:
[0175] When the fault information notified by the master BRAS-UP is consistent with the fault information notified by the standby BRAS-UP, determining whether to perform device switching according to the fault information notified by the master BRAS-UP or the fault information notified by the standby BRAS-UP;
[0176] When the fault information notified by the master BRAS-UP is inconsistent with the fault information notified by the standby BRAS-UP, it is determined whether to perform device switching according to a preset strategy.
[0177] Wherein, the processor is used for:
[0178] Sending a first notification to the primary BRAS-UP, and sending a second notification to the standby BRAS-UP; or
[0179] sending a second notification to the standby BRAS-UP; or
[0180] Sending a first notification to the standby BRAS-UP so that the standby BRAS-UP sends the first notification to the primary BRAS-UP, and sending a second notification to the standby BRAS-UP;
[0181] The first notification is used to notify the master BRAS-UP to switch to the standby BRAS-UP; the second notification is used to notify the standby BRAS-UP to switch to the master BRAS-UP.
[0182] In the tenth aspect, an embodiment of the present invention further provides a terminal device, comprising: a transceiver, a memory, a processor, and a program stored in the memory and executable on the processor, wherein the processor implements the steps in the device switching method as described above when executing the program.
[0183] In an eleventh aspect, an embodiment of the present invention further provides a readable storage medium, on which a program is stored, and when the program is executed by a processor, the steps in the device switching method as described above are implemented.
[0184] In an embodiment of the present invention, when a fault occurs in the main BRAS-UP, the fault information of the main BRAS-UP can be sent to the BRAS-CP or the backup BRAS-UP in time; or when a fault occurs in the backup BRAS-UP, the fault information of the backup BRAS-UP can be sent to the BRAS-CP, so that when the main BRAS-UP fails, the switching of the main and backup BRAS-UPs can be quickly completed. BRIEF DESCRIPTION OF THE DRAWINGS
[0185] Figure 1 is one of the flow charts of the device switching method provided by an embodiment of the present invention;
[0186] Figure 2 It is a schematic diagram of BFD in the prior art;
[0187] Figure 3 1 is a schematic diagram of the extended format of the BFD control message in an embodiment of the present invention;
[0188] Figure 4 This is the second flow chart of the device switching method provided by the embodiment of the present invention;
[0189] Figure 5 This is the third flow chart of the device switching method provided by the embodiment of the present invention;
[0190] Figure 6 This is a fourth flow chart of the device switching method provided by an embodiment of the present invention;
[0191] Figure 7 This is the fifth flow chart of the device switching method provided by the embodiment of the present invention;
[0192] Figure 8 This is the sixth flow chart of the device switching method provided by the embodiment of the present invention;
[0193] Fig. 9 This is the seventh flow chart of the device switching method provided by the embodiment of the present invention;
[0194] Fig.10 It is one of the structural diagrams of the device switching apparatus provided by the embodiment of the present invention;
[0195] Fig.11 This is the second structural diagram of the device switching apparatus provided by the embodiment of the present invention;
[0196] Fig.12 This is the third structural diagram of the device switching device provided by the embodiment of the present invention;
[0197] Fig.13 This is the fourth structural diagram of the device switching apparatus provided by the embodiment of the present invention;
[0198] Fig.14 This is the fifth structural diagram of the device switching device provided by the embodiment of the present invention;
[0199] Fig.15 This is the sixth structural diagram of the device switching apparatus provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0200] In the embodiments of the present invention, the term "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent three situations: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0201] In the embodiments of the present application, the term "plurality" refers to two or more than two, and other quantifiers are similar.
[0202] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0203] See also Figure 1 , Figure 1 is a flow chart of a device switching method provided in an embodiment of the present invention, which is applied to a master BRAS-UP of a vBRAS system. Figure 1 As shown, the following steps are included:
[0204] Step 101: Notify each other of network status information with the standby BRAS-UP according to a preset period.
[0205] In the embodiment of the present invention, a mutual detection mechanism is added between the active and standby BRAS-UPs, that is, the active and standby BRAS-UPs periodically notify each other of their own network status information. The period can be set as required.
[0206] The active BRAS-UP and the standby BRAS-CP communicate with each other through BFD.
[0207] like Figure 2 As shown in FIG. 1 , it is a schematic diagram of BFD in the prior art. In an embodiment of the present invention, the "Diag" (diagnosis) field is extended to indicate that the BFD control message carries network status information of the primary and backup BRAS-UP, such as fault information. The value of the BFD diagnostic field Diag is a preset value, which is used to indicate that the network status information of the primary BRAS-UP and / or the backup BRAS-CP is carried. The format of the BFD control message carrying network status information after extension is as follows: Figure 3 As shown, the extended field of the BFD includes:
[0208] LF Type (Local Failure Type) is used to identify the type of local fault: 1 indicates a user-side fault, 2 indicates a network-side fault, and 3 indicates a device fault.
[0209] LF Argument (Local Failure Argument), a parameter used to identify a local fault, representing detailed local UP fault information;
[0210] PF Type (Peer Failure Type) is used to identify the type of peer failure. 1 indicates a user-side failure, 2 indicates a network-side failure, and 3 indicates a device failure.
[0211] PF Argument (Peer Failure Argument) is a parameter used to identify peer failures and represents detailed peer UP failure information.
[0212] The extended Diag field value is 31, which is defined as "Failure Information Carried". When the "Diag" field value is 31, it means that the BFD control message carries the network status information of the active and standby BRAS-UP, such as fault information.
[0213] The network status information may include information about the fault, such as the fault type, information about the faulty party, and information about the device being disconnected. In the embodiment of the present invention, if the sender of the network status information is the primary BRAS-UP, then the opposite end is the backup BRAS-UP; if the sender is the backup BRAS-UP, then the opposite end is the primary BRAS-UP.
[0214] Step 102: The method further includes any of the following steps:
[0215] (1) When a user-side fault or a network-side fault occurs in the primary BRAS-UP, the BRAS-CP is notified of the fault information of the primary BRAS-UP and the backup BRAS-UP is notified of the fault information of the primary BRAS-UP;
[0216] (2) when the network status information of the standby BRAS-UP is not received for multiple consecutive times, sending the fault information of the standby BRAS-UP to the BRAS-CP;
[0217] (3) When receiving the user side fault information or network side fault information sent by the standby BRAS-UP, the standby BRAS-UP fault information is sent to the BRAS-CP.
[0218] In the embodiment of the present invention, the service-control plane and user plane separated protocol (S-CUSP) between CUs is extended to support the notification of the fault information of the active and standby BRAS-UPs to the BRAS-CP. The extended table entry information is shown in Table 1:
[0219] Table 1
[0220]
[0221] Specific:
[0222] LF Type (Local Failure Type) is used to identify the type of local fault: 1 indicates a user-side fault, 2 indicates a network-side fault, and 3 indicates a device fault.
[0223] LF Argument (Local Failure Argument), a parameter used to identify a local fault, representing detailed local UP fault information;
[0224] PF Type (Peer Failure Type) is used to identify the type of peer failure. 1 indicates a user-side failure, 2 indicates a network-side failure, and 3 indicates a device failure.
[0225] PF Argument (Peer Failure Argument) is a parameter used to identify peer failures and represents detailed peer UP failure information.
[0226] In the embodiment of the present invention, if the sender of the fault information is the master BRAS-UP, then the opposite end is the standby BRAS-UP; if the sender is the standby BRAS-UP, then the opposite end is the master BRAS-UP.
[0227] When the BRAS-CP determines to perform device switching, the method of the embodiment of the present invention may further include:
[0228] directly receiving a first notification sent by the BRAS-CP, where the first notification is used to notify the active BRAS-UP to switch to the standby BRAS-UP; or
[0229] A first notification sent by the BRAS-CP is received through the standby BRAS-CP, where the first notification is used to notify the active BRAS-UP to switch to the standby BRAS-UP.
[0230] In an embodiment of the present invention, when a fault occurs in the main BRAS-UP, the fault information of the main BRAS-UP can be sent to the BRAS-CP or the backup BRAS-UP in time; or when a fault occurs in the backup BRAS-UP, the fault information of the backup BRAS-UP can be sent to the BRAS-CP, so that when the main BRAS-UP fails, the switching of the main and backup BRAS-UPs can be quickly completed.
[0231] See also Figure 4 , Figure 4 is a flow chart of a device switching method provided in an embodiment of the present invention, which is applied to a standby BRAS-UP of a vBRAS system, such as Figure 4 As shown, the following steps are included:
[0232] Step 401: Notify each other of the network status information with the master BRAS-UP according to a preset period.
[0233] The standby BRAS-UP and the master BRAS-UP communicate with each other via BFD. The value of the diagnostic field Diag of the BFD is a preset value, which is used to indicate that the network status information of the master BRAS-UP and / or the standby BRAS-CP is carried;
[0234] The BFD extension fields include:
[0235] LF Type (Local Failure Type) is used to identify the type of local fault: 1 indicates a user-side fault, 2 indicates a network-side fault, and 3 indicates a device fault.
[0236] LF Argument (Local Failure Argument), a parameter used to identify a local fault, representing detailed local UP fault information;
[0237] PF Type (Peer Failure Type) is used to identify the type of peer failure. 1 indicates a user-side failure, 2 indicates a network-side failure, and 3 indicates a device failure.
[0238] PF Argument (Peer Failure Argument) is a parameter used to identify peer failures and represents detailed peer UP failure information.
[0239] Specifically, the extended Diag field value is 31, which is defined as: "Failure Information Carried". When the "Diag" field value is 31, it means that the BFD control message carries the network status information of the active and standby BRAS-UP.
[0240] Step 402: The method further includes any of the following steps:
[0241] (1) When a user-side fault or a network-side fault occurs in the standby BRAS-UP, the standby BRAS-UP is notified of the fault information of the standby BRAS-UP to the BRAS-CP and the active BRAS-UP is notified of the fault information of the standby BRAS-UP;
[0242] (2) receiving fault information of the primary BRAS-UP sent by the primary BRAS-UP when a user-side fault or a network-side fault occurs on the primary BRAS-UP, and sending the fault information of the primary BRAS-UP to the BRAS-CP;
[0243] (3) When the network status information of the primary BRAS-UP is not received for multiple consecutive times, the fault information of the primary BRAS-UP is sent to the BRAS-CP.
[0244] The standby BRAS-UP and the BRAS-CP communicate with each other through the S-CUSP protocol. For the extension of the S-CUSP protocol, reference may be made to the description of the above-mentioned embodiment.
[0245] When the BRAS-CP determines to perform device switching, the method of the embodiment of the present invention may further include:
[0246] receiving a second notification sent by the BRAS-CP; and / or
[0247] receiving a first notification sent by the BRAS-CP and sending the first notification to the primary BRAS-UP;
[0248] The first notification is used to notify the primary BRAS-UP to switch to the standby BRAS-UP, and the second notification is used to notify the standby BRAS-UP to switch to the primary BRAS-UP.
[0249] Afterwards, the standby BRAS-UP promoted to the main BRAS-UP sends a free ARP to the user-side switch to divert the user's upstream traffic to the standby BRAS-UP promoted to the main BRAS-UP; the standby BRAS-UP promoted to the main BRAS-UP sends the user route to the network side to divert the downstream traffic to the standby BRAS-UP.
[0250] In the embodiment of the present invention, the specific implementation forms of the first notification and the second notification are not limited, as long as they can achieve the same function.
[0251] In an embodiment of the present invention, when a fault occurs in the main BRAS-UP, the fault information of the main BRAS-UP can be sent to the BRAS-CP or the backup BRAS-UP in time; or when a fault occurs in the backup BRAS-UP, the fault information of the backup BRAS-UP can be sent to the BRAS-CP, so that when the main BRAS-UP fails, the switching of the main and backup BRAS-UPs can be quickly completed.
[0252] See also Figure 5 , Figure 5 is a flow chart of a device switching method provided by an embodiment of the present invention, which is applied to a BRAS-CP of a vBRAS system, such as Figure 5 As shown, the following steps are included:
[0253] Step 501: Obtain fault information of the active BRAS-UP and / or the standby BRAS-UP.
[0254] In actual applications, the BRAS-CP may receive fault information reported by both the active and standby BRAS-UPs at the same time, or may receive fault information reported by only one of the active and standby BRAS-UPs.
[0255] For example, when a user-side fault or a network-side fault occurs in the primary BRAS-UP, the primary BRAS-UP notifies the BRAS-CP of the fault information of the primary BRAS-UP and notifies the standby BRAS-UP of the fault information of the primary BRAS-UP; the standby BRAS-UP sends the fault information of the primary BRAS-UP to the BRAS-CP. In this case, the BRAS-CP receives the fault information reported by the primary and standby BRAS-UPs at the same time.
[0256] Step 502: Determine whether to perform device switching according to the fault information of the master BRAS-UP and / or the fault information of the backup BRAS-UP.
[0257] In this step, if the fault information notified by the master BRAS-UP or the fault information notified by the standby BRAS-UP is received, it is determined whether to perform device switching according to the fault information notified by the master BRAS-UP or the fault information notified by the standby BRAS-UP.
[0258] If the fault information notified by the master BRAS-UP and the fault information notified by the standby BRAS-UP are received at the same time: when the fault information notified by the master BRAS-UP and the fault information notified by the standby BRAS-UP are consistent, determine whether to perform device switching according to the fault information notified by the master BRAS-UP or the fault information notified by the standby BRAS-UP; when the fault information notified by the master BRAS-UP and the fault information notified by the standby BRAS-UP are inconsistent, determine whether to perform device switching according to a preset strategy. The preset strategy can be preset.
[0259] If no report is received from either party, no switching is performed.
[0260] In the embodiment of the present invention, a mutual detection mechanism is added between the master and standby BRAS-UP, that is, the network status information of each other is periodically notified to each other. If the CUs can maintain normal communication, then when a fault occurs, the master and standby BRAS-UPs can report the fault information of the other BRAS-UP to the BRAS-CP in addition to notifying their own fault information to the BRAS-CP, and the BRAS-CP decides the master-standby switch based on the reported fault information. If the channel between the master BRAS-UP and the BRAS-CP fails and cannot notify its own fault, then the standby BRAS-UP can notify the BRAS-CP of the fault of the master BRAS-UP, and the BRAS-CP decides the master-standby switch.
[0261] For BRAS-CP, the logic of its active / standby switching decision is as follows:
[0262] (1) If no fault information is received from the active or standby BRAS-UP, no active / standby switching is performed;
[0263] (2) If only one party notifies the fault information (for example, only the fault information notified by the active BRAS-UP or the standby BRAS-UP) is received, the active / standby switching decision is made based on the fault information notified by the UP.
[0264] (3) If fault information is received from both the active and standby BRAS-UPs:
[0265] If the fault information notified by the active and standby BRAS-UPs is consistent, the active / standby switchover decision is made based on the consistent fault information;
[0266] If the fault information reported by the active and standby BRAS-UPs is inconsistent, the active / standby switching is decided based on the fault information reported by both parties.
[0267] In case of a master BRAS-UP failure, the master and backup BRAS-UP periodically notify each other of their own fault information (fast cycle). Afterwards, the master and backup BRAS-UP notify the BRAS-CP of the local fault information and the received fault information of the other party. If the UP does not receive the notification information of the other UP for a long time, it is determined that the other UP is disconnected and notifies the BRAS-CP.
[0268] BRAS-CP decides on the master-slave switch by integrating various fault information notified by the master and standby BRAS-UPs. If equipment switching is to be performed, BRAS-CP notifies the standby BRAS-UP to upgrade to the master BRAS-UP, and BRAS-CP notifies the master BRAS-UP to downgrade to the standby BRAS-UP (if the communication channel between the master BRAS-UP and BRAS-CP fails, the master BRAS-UP notifies the standby BRAS-UP of the information that the master BRAS-UP has been downgraded to the standby BRAS-UP, and the standby BRAS-UP notifies the master BRAS-UP).
[0269] After being promoted to the master, the standby BRAS-UP sends a free ARP to the user-side switch to divert the user's upstream traffic to the standby BRAS-UP. After being promoted to the master, the standby BRAS-UP sends the user route to the network side to divert the downstream traffic to the standby BRAS-UP.
[0270] In an embodiment of the present invention, when a fault occurs in the main BRAS-UP, the fault information of the main BRAS-UP can be sent to the BRAS-CP or the backup BRAS-UP in time; or when a fault occurs in the backup BRAS-UP, the fault information of the backup BRAS-UP can be sent to the BRAS-CP, so that when the main BRAS-UP fails, the switching of the main and backup BRAS-UPs can be quickly completed.
[0271] See also Figure 6 , Figure 6 FIG. 1 is a flow chart of a device switching method provided by an embodiment of the present invention. In this embodiment, a user-side or network-side failure occurs in the primary BRAS-UP, but the communication channel between the primary BRAS-UP and the BRAS-CP is normal. Figure 6 As shown, the method includes:
[0272] Step 601: The master BRAS-UP and the standby BRAS-UP periodically notify their own network status, including user-side faults, network-side faults, etc.
[0273] Step 602: If the master BRAS-UP finds a local user-side fault or a network-side fault, it reports the fault information to the BRAS-CP.
[0274] Step 603: The active BRAS-UP sends the fault information to the standby BRAS-UP.
[0275] Step 604: The standby BRAS-UP reports the fault information of the active BRAS-UP to the BRAS-CP.
[0276] Step 605: The BRAS-CP decides whether to perform switching according to the reporting information of the active BRAS-UP and the standby BRAS-UP.
[0277] Step 606: If switching is performed, the BRAS-CP notifies the master BRAS-UP to downgrade to the standby BRAS-UP, and the BRAS-CP notifies the standby BRAS-UP to upgrade to the master BRAS-UP.
[0278] See also Figure 7 , Figure 7 FIG. 1 is a flow chart of a device switching method provided by an embodiment of the present invention. In this embodiment, a complete failure occurs in the main BRAS-UP. Figure 7 As shown, the method includes:
[0279] Step 701: The master BRAS-UP and the standby BRAS-UP periodically notify their own network status, including user-side failure, network-side failure, etc. Assume that the master BRAS-UP has a complete machine failure.
[0280] Step 702: If the standby BRAS-UP fails to receive the network status information of the master BRAS-UP for multiple consecutive times, it is determined that the master BRAS-UP is disconnected.
[0281] Step 703: The standby BRAS-UP reports the connection loss information of the active BRAS-UP to the BRAS-CP.
[0282] Step 704: BRAS-CP decides to perform switching according to the information reported by the standby BRAS-UP.
[0283] Step 705: BRAS-CP notifies the standby BRAS-UP to upgrade to the master BRAS-UP.
[0284] See also Figure 8 , Figure 8 FIG. 1 is a flow chart of a device switching method provided by an embodiment of the present invention. In this embodiment, the communication channel between the main BRAS-UP and the BRAS-CP fails. Figure 8 As shown, the method includes:
[0285] Step 801: The master BRAS-UP and the standby BRAS-UP periodically notify their own network status, including user-side faults, network-side faults, etc.
[0286] Step 802: The active BRAS-UP sends the fault information to the standby BRAS-UP.
[0287] Step 803: The standby BRAS-UP reports the fault information of the active BRAS-UP to the BRAS-CP.
[0288] Step 804: BRAS-CP decides whether to perform switching according to the reporting information of the master BRAS-UP and the backup BRAS-UP.
[0289] Step 805: If switching is performed, the BRAS-CP notifies the standby BRAS-UP to upgrade to the master BRAS-UP.
[0290] The BRAS-CP sends a notification to the standby BRAS-UP that the master BRAS-UP is downgraded to the standby BRAS-UP. The standby BRAS-UP sends a notification to the master BRAS-UP that the master BRAS-UP is downgraded to the standby BRAS-UP.
[0291] See also Fig. 9 , Fig. 9 1 is a flow chart of a device switching method provided by an embodiment of the present invention. In this embodiment, the communication channel between the main BRAS-UP and the backup BRAS-UP fails, and it is assumed that the failure is caused by a user side link failure of the main BRAS-UP. Fig. 9 As shown, the method includes:
[0292] Step 901: If the active BRAS-UP fails to receive network status information from the standby BRAS-UP for multiple times in a row, the standby BRAS-UP is judged to be disconnected. The active BRAS-UP sends the standby BRAS-UP disconnection information to the BRAS-CP.
[0293] Step 902: The master BRAS-UP sends the fault information to the BRAS-CP.
[0294] Step 903: If the standby BRAS-UP fails to receive the network status information of the master BRAS-UP for multiple times in a row, it is determined that the master BRAS-UP is disconnected. The standby BRAS-UP sends the disconnection information of the master BRAS-UP to the BRAS-CP.
[0295] Step 904: The BRAS-CP decides whether to perform switching according to the reporting information of the active BRAS-UP and the standby BRAS-UP.
[0296] Step 905: If switching is performed, the BRAS-CP notifies the standby BRAS-UP to upgrade to the master BRAS-UP, and notifies the master BRAS-UP to downgrade to the standby BRAS-UP.
[0297] It can be seen from the above description that in the embodiment of the present invention, when the master BRAS-UP fails or the communication channel between the master BRAS-UP and BRAS-CP fails, the switching between the master and standby BRAS-UPs can be completed quickly.
[0298] The embodiment of the present invention further provides a device switching apparatus, which is applied to a master BRAS-UP of a vBRAS system. Fig.10 , Fig.101 is a structural diagram of a device switching device provided in an embodiment of the present invention. Since the principle of the device switching device to solve the problem is similar to the device switching method in the embodiment of the present invention, the implementation of the device switching device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0299] like Fig.10 As shown, the device switching apparatus 1000 includes:
[0300] The first processing module 1001 is used to notify the standby BRAS-UP of their respective network status information according to a preset period;
[0301] The first sending module 1002 is configured to perform any one of the following:
[0302] When a user-side fault or a network-side fault occurs in the primary BRAS-UP, the BRAS control plane BRAS-CP is notified of the fault information of the primary BRAS-UP and the backup BRAS-UP is notified of the fault information of the primary BRAS-UP;
[0303] When the network status information of the standby BRAS-UP is not received for multiple consecutive times, sending the fault information of the standby BRAS-UP to the BRAS-CP;
[0304] When receiving the user side fault information or network side fault information sent by the standby BRAS-UP, the fault information of the standby BRAS-UP is sent to the BRAS-CP.
[0305] The active BRAS-UP and the standby BRAS-UP notify network status information via bidirectional forwarding detection BFD;
[0306] The value of the diagnostic field Diag of the BFD is a preset value, which is used to indicate that the network status information of the primary BRAS-UP and / or the backup BRAS-UP is carried;
[0307] The BFD extension fields include:
[0308] LF Type, used to identify the type of local fault;
[0309] LF Argument, a parameter used to identify a local fault;
[0310] PF Type, used to identify the type of peer fault;
[0311] PF Argument: Parameter used to identify the peer fault.
[0312] Wherein, the master BRAS-UP and the BRAS-CP communicate with each other through the S-CUSP protocol;
[0313] The S-CUSP extension field includes:
[0314] LF Type, used to identify the type of local fault;
[0315] LF Argument, a parameter used to identify a local fault;
[0316] PF Type, used to identify the type of peer fault;
[0317] PF Argument: Parameter used to identify the peer fault.
[0318] The device further includes: a first receiving module, configured to:
[0319] directly receiving a first notification sent by the BRAS-CP, where the first notification is used to notify the active BRAS-UP to switch to the standby BRAS-UP; or
[0320] A first notification sent by the BRAS-CP is received through the standby BRAS-CP, where the first notification is used to notify the active BRAS-UP to switch to the standby BRAS-UP.
[0321] The device provided in the embodiment of the present invention can execute the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.
[0322] The embodiment of the present invention further provides a device switching apparatus, which is applied to a standby BRAS-UP of a vBRAS system. Fig.11 , Fig.11 1 is a structural diagram of a device switching device provided in an embodiment of the present invention. Since the principle of the device switching device to solve the problem is similar to the device switching method in the embodiment of the present invention, the implementation of the device switching device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0323] like Fig.11 As shown, the device switching apparatus 1100 includes:
[0324] The first processing module 1101 is used to notify the master BRAS-UP of their respective network status information according to a preset period;
[0325] The first sending module 1102 is configured to perform any one of the following:
[0326] When a user-side fault or a network-side fault occurs in the standby BRAS-UP, the standby BRAS-UP is notified of the fault information of the standby BRAS-UP to the BRAS-CP and the active BRAS-UP is notified of the fault information of the standby BRAS-UP;
[0327] receiving fault information of the master BRAS-UP sent by the master BRAS-UP when a user side fault or a network side fault occurs in the master BRAS-UP, and sending the fault information of the master BRAS-UP to the BRAS-CP;
[0328] When the network status information of the master BRAS-UP is not received for multiple consecutive times, the fault information of the master BRAS-UP is sent to the BRAS-CP.
[0329] The master BRAS-UP and the standby BRAS-UP communicate network status information via BFD;
[0330] The value of the diagnostic field Diag of the BFD is a preset value, which is used to indicate that the network status information of the primary BRAS-UP and / or the backup BRAS-UP is carried;
[0331] The BFD extension fields include:
[0332] LF Type, used to identify the type of local fault;
[0333] LF Argument, a parameter used to identify a local fault;
[0334] PF Type, used to identify the type of peer fault;
[0335] PF Argument: Parameter used to identify the peer fault.
[0336] Wherein, the standby BRAS-UP and the BRAS-CP communicate with each other through the S-CUSP protocol;
[0337] The S-CUSP extension field includes:
[0338] LF Type, used to identify the type of local fault;
[0339] LF Argument, a parameter used to identify a local fault;
[0340] PF Type, used to identify the type of peer fault;
[0341] PF Argument: Parameter used to identify the peer fault.
[0342] The device further includes: a first receiving module, configured to:
[0343] receiving a second notification sent by the BRAS-CP; and / or
[0344] receiving a first notification sent by the BRAS-CP and sending the first notification to the primary BRAS-UP;
[0345] The first notification is used to notify the primary BRAS-UP to switch to the standby BRAS-UP, and the second notification is used to notify the standby BRAS-UP to switch to the primary BRAS-UP.
[0346] The device provided in the embodiment of the present invention can execute the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.
[0347] The embodiment of the present invention further provides a device switching apparatus, which is applied to the BRAS-CP of the vBRAS system. Fig.12 , Fig.12 1 is a structural diagram of a device switching device provided in an embodiment of the present invention. Since the principle of the device switching device to solve the problem is similar to the device switching method in the embodiment of the present invention, the implementation of the device switching device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0348] like Fig.12 As shown, the device switching apparatus 1200 includes:
[0349] The first acquisition module 1201 is used to acquire the fault information of the primary BRAS-UP and / or the fault information of the backup BRAS-UP;
[0350] The first processing module 1202 is configured to determine whether to perform device switching according to the fault information of the primary BRAS-UP and / or the fault information of the backup BRAS-UP.
[0351] Wherein, the first processing module is used to:
[0352] If the fault information notified by the master BRAS-UP or the fault information notified by the standby BRAS-UP is received, determining whether to perform device switching according to the fault information notified by the master BRAS-UP or the fault information notified by the standby BRAS-UP;
[0353] If the fault information notified by the primary BRAS-UP and the fault information notified by the backup BRAS-UP are received at the same time:
[0354] When the fault information notified by the master BRAS-UP is consistent with the fault information notified by the standby BRAS-UP, determining whether to perform device switching according to the fault information notified by the master BRAS-UP or the fault information notified by the standby BRAS-UP;
[0355] When the fault information notified by the master BRAS-UP is inconsistent with the fault information notified by the standby BRAS-UP, it is determined whether to perform device switching according to a preset strategy.
[0356] The device further includes: a first sending module, configured to:
[0357] Sending a first notification to the primary BRAS-UP, and sending a second notification to the standby BRAS-UP; or
[0358] sending a second notification to the standby BRAS-UP; or
[0359] Sending a first notification to the standby BRAS-UP so that the standby BRAS-UP sends the first notification to the primary BRAS-UP, and sending a second notification to the standby BRAS-UP;
[0360] The first notification is used to notify the master BRAS-UP to switch to the standby BRAS-UP; the second notification is used to notify the standby BRAS-UP to switch to the master BRAS-UP.
[0361] The device provided in the embodiment of the present invention can execute the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.
[0362] The embodiment of the present invention further provides a device switching apparatus, which is applied to a master BRAS-UP of a vBRAS system. Fig.13 , Fig.13 1 is a structural diagram of a device switching device provided in an embodiment of the present invention. Since the principle of the device switching device to solve the problem is similar to the device switching method in the embodiment of the present invention, the implementation of the device switching device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0363] like Fig.13 As shown, the device switching apparatus 1300 includes: a processor 1301 and a transceiver 1302;
[0364] The processor is used to notify the standby BRAS-UP of their respective network status information according to a preset period;
[0365] The transceiver is used to perform any of the following:
[0366] When a user-side fault or a network-side fault occurs in the primary BRAS-UP, the BRAS-CP is notified of the fault information of the primary BRAS-UP and the backup BRAS-UP is notified of the fault information of the primary BRAS-UP;
[0367] When the network status information of the standby BRAS-UP is not received for multiple consecutive times, sending the fault information of the standby BRAS-UP to the BRAS-CP;
[0368] When receiving the user side fault information or network side fault information sent by the standby BRAS-UP, the fault information of the standby BRAS-UP is sent to the BRAS-CP.
[0369] The active BRAS-UP and the standby BRAS-UP notify network status information via bidirectional forwarding detection BFD;
[0370] The value of the diagnostic field Diag of the BFD is a preset value, which is used to indicate that the network status information of the primary BRAS-UP and / or the backup BRAS-UP is carried;
[0371] The BFD extension fields include:
[0372] LF Type, used to identify the type of local fault;
[0373] LF Argument, a parameter used to identify a local fault;
[0374] PF Type, used to identify the type of peer fault;
[0375] PF Argument: Parameter used to identify the peer fault.
[0376] Wherein, the master BRAS-UP and the BRAS-CP communicate with each other through the S-CUSP protocol;
[0377] The S-CUSP extension field includes:
[0378] LF Type, used to identify the type of local fault;
[0379] LF Argument, a parameter used to identify a local fault;
[0380] PF Type, used to identify the type of peer fault;
[0381] PF Argument: Parameter used to identify the peer fault.
[0382] Wherein, the transceiver is also used for:
[0383] directly receiving a first notification sent by the BRAS-CP, where the first notification is used to notify the active BRAS-UP to switch to the standby BRAS-UP; or
[0384] A first notification sent by the BRAS-CP is received through the standby BRAS-CP, where the first notification is used to notify the active BRAS-UP to switch to the standby BRAS-UP.
[0385] The device provided in the embodiment of the present invention can execute the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.
[0386] The embodiment of the present invention further provides a device switching apparatus, which is applied to a standby BRAS-UP of a vBRAS system. Fig.14 , Fig.14 1 is a structural diagram of a device switching device provided in an embodiment of the present invention. Since the principle of the device switching device to solve the problem is similar to the device switching method in the embodiment of the present invention, the implementation of the device switching device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0387] like Fig.14 As shown, the device switching apparatus 1400 includes: a processor 1401 and a transceiver 1402;
[0388] The processor is used to notify the master BRAS-UP of the respective network status information according to a preset period;
[0389] The transceiver is used to perform any of the following:
[0390] When a user-side fault or a network-side fault occurs in the standby BRAS-UP, the standby BRAS-UP is notified of the fault information of the standby BRAS-UP to the BRAS-CP and the active BRAS-UP is notified of the fault information of the standby BRAS-UP;
[0391] receiving fault information of the master BRAS-UP sent by the master BRAS-UP when a user side fault or a network side fault occurs in the master BRAS-UP, and sending the fault information of the master BRAS-UP to the BRAS-CP;
[0392] When the network status information of the master BRAS-UP is not received for multiple consecutive times, the fault information of the master BRAS-UP is sent to the BRAS-CP.
[0393] The master BRAS-UP and the standby BRAS-UP communicate network status information via BFD;
[0394] The value of the diagnostic field Diag of the BFD is a preset value, which is used to indicate that the network status information of the primary BRAS-UP and / or the backup BRAS-UP is carried;
[0395] The BFD extension fields include:
[0396] LF Type, used to identify the type of local fault;
[0397] LF Argument, a parameter used to identify a local fault;
[0398] PF Type, used to identify the type of peer fault;
[0399] PF Argument: Parameter used to identify the peer fault.
[0400] Wherein, the standby BRAS-UP and the BRAS-CP communicate with each other through the S-CUSP protocol;
[0401] The S-CUSP extension field includes:
[0402] LF Type, used to identify the type of local fault;
[0403] LF Argument, a parameter used to identify a local fault;
[0404] PF Type, used to identify the type of peer fault;
[0405] PF Argument: Parameter used to identify the peer fault.
[0406] Wherein, the transceiver is also used for:
[0407] receiving a second notification sent by the BRAS-CP; and / or
[0408] receiving a first notification sent by the BRAS-CP and sending the first notification to the primary BRAS-UP;
[0409] The first notification is used to notify the primary BRAS-UP to switch to the standby BRAS-UP, and the second notification is used to notify the standby BRAS-UP to switch to the primary BRAS-UP.
[0410] The device provided in the embodiment of the present invention can execute the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.
[0411] The embodiment of the present invention further provides a device switching apparatus, which is applied to the BRAS-CP of the vBRAS system. Fig.15 , Fig.15 1 is a structural diagram of a device switching device provided in an embodiment of the present invention. Since the principle of the device switching device to solve the problem is similar to the device switching method in the embodiment of the present invention, the implementation of the device switching device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0412] like Fig.15 As shown, the device switching apparatus 1500 includes: a processor 1501 and a transceiver 1502;
[0413] The processor is used to obtain the fault information of the main BRAS-UP and / or the fault information of the standby BRAS-UP; and determine whether to perform device switching according to the fault information of the main BRAS-UP and / or the fault information of the standby BRAS-UP.
[0414] Wherein, the processor is used for:
[0415] If the fault information notified by the master BRAS-UP or the fault information notified by the standby BRAS-UP is received, determining whether to perform device switching according to the fault information notified by the master BRAS-UP or the fault information notified by the standby BRAS-UP;
[0416] If the fault information notified by the primary BRAS-UP and the fault information notified by the backup BRAS-UP are received at the same time:
[0417] When the fault information notified by the master BRAS-UP is consistent with the fault information notified by the standby BRAS-UP, determining whether to perform device switching according to the fault information notified by the master BRAS-UP or the fault information notified by the standby BRAS-UP;
[0418] When the fault information notified by the master BRAS-UP is inconsistent with the fault information notified by the standby BRAS-UP, it is determined whether to perform device switching according to a preset strategy.
[0419] Wherein, the processor is used for:
[0420] Sending a first notification to the primary BRAS-UP, and sending a second notification to the standby BRAS-UP; or
[0421] sending a second notification to the standby BRAS-UP; or
[0422] Sending a first notification to the standby BRAS-UP so that the standby BRAS-UP sends the first notification to the primary BRAS-UP, and sending a second notification to the standby BRAS-UP;
[0423] The first notification is used to notify the master BRAS-UP to switch to the standby BRAS-UP; the second notification is used to notify the standby BRAS-UP to switch to the master BRAS-UP.
[0424] The device provided in the embodiment of the present invention can execute the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.
[0425] An embodiment of the present invention further provides a terminal device, comprising: a transceiver, a memory, a processor, and a program stored in the memory and executable on the processor, wherein the processor implements the steps in the device switching method as described above when executing the program.
[0426] The embodiment of the present invention also provides a readable storage medium, on which a program is stored. When the program is executed by a processor, each process of the device switching method embodiment described above is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disk, hard disk, magnetic tape, magneto-optical disk (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid state drive (SSD)), etc.
[0427] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0428] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), and includes a number of instructions for a terminal (which can be a mobile phone, computer, server, air conditioner, or network equipment, etc.) to execute the methods described in each embodiment of the present invention.
[0429] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.
Claims
1. A device switching method, applied to a primary BRAS user plane BRAS-UP of a virtualized broadband remote access server vBRAS system, characterized in that: include: Notify each other of their network status information with the standby BRAS-UP according to a preset period; The method further comprises any of the following steps: When a user-side fault or a network-side fault occurs in the primary BRAS-UP, the BRAS control plane BRAS-CP is notified of the fault information of the primary BRAS-UP and the backup BRAS-UP is notified of the fault information of the primary BRAS-UP; When the network status information of the standby BRAS-UP is not received for multiple consecutive times, sending the fault information of the standby BRAS-UP to the BRAS-CP; When receiving the user side fault information or network side fault information sent by the standby BRAS-UP, sending the fault information of the standby BRAS-UP to the BRAS-CP; The primary BRAS-UP and the backup BRAS-UP notify network status information via bidirectional forwarding detection BFD; the value of the diagnostic field Diag of the BFD is a preset value, which is used to indicate that the network status information of the primary BRAS-UP and / or the backup BRAS-UP is carried.
2. The method according to claim 1, characterized in that The BFD extension fields include: LF Type, used to identify the type of local fault; LF Argument, a parameter used to identify a local fault; PF Type, used to identify the type of peer fault; PF Argument: Parameter used to identify the peer fault.
3. The method according to claim 1, characterized in that The master BRAS-UP and the BRAS-CP communicate with each other via the S-CUSP protocol; The S-CUSP extension field includes: LF Type, used to identify the type of local fault; LF Argument, a parameter used to identify a local fault; PF Type, used to identify the type of peer fault; PF Argument: Parameter used to identify the peer fault.
4. The method according to claim 1, characterized in that: The method further comprises: directly receiving a first notification sent by the BRAS-CP, where the first notification is used to notify the active BRAS-UP to switch to the standby BRAS-UP; or A first notification sent by the BRAS-CP is received through the standby BRAS-UP, where the first notification is used to notify the active BRAS-UP to switch to the standby BRAS-UP.
5. A device switching method, applied to a standby BRAS-UP of a vBRAS system, characterized in that: include: Notify each other of their network status information with the master BRAS-UP according to a preset period; The method further comprises any of the following steps: When a user-side fault or a network-side fault occurs in the standby BRAS-UP, the standby BRAS-UP is notified of the fault information of the standby BRAS-UP to the BRAS-CP and the active BRAS-UP is notified of the fault information of the standby BRAS-UP; receiving fault information of the master BRAS-UP sent by the master BRAS-UP when a user side fault or a network side fault occurs in the master BRAS-UP, and sending the fault information of the master BRAS-UP to the BRAS-CP; When the network status information of the master BRAS-UP is not received for multiple consecutive times, sending the fault information of the master BRAS-UP to the BRAS-CP; The primary BRAS-UP and the backup BRAS-UP notify network status information via bidirectional forwarding detection BFD; the value of the diagnostic field Diag of the BFD is a preset value, which is used to indicate that the network status information of the primary BRAS-UP and / or the backup BRAS-UP is carried.
6. The method according to claim 5, characterized in that The BFD extension fields include: LF Type, used to identify the type of local fault; LF Argument, a parameter used to identify a local fault; PF Type, used to identify the type of peer fault; PF Argument: Parameter used to identify the peer fault.
7. The method according to claim 5, characterized in that The standby BRAS-UP and the BRAS-CP communicate with each other via the S-CUSP protocol; The S-CUSP extension field includes: LF Type, used to identify the type of local fault; LF Argument, a parameter used to identify a local fault; PF Type, used to identify the type of peer fault; PF Argument: Parameter used to identify the peer fault.
8. The method according to claim 5, characterized in that The method further comprises: receiving a second notification sent by the BRAS-CP; and / or receiving a first notification sent by the BRAS-CP and sending the first notification to the primary BRAS-UP; The first notification is used to notify the primary BRAS-UP to switch to the standby BRAS-UP, and the second notification is used to notify the standby BRAS-UP to switch to the primary BRAS-UP.
9. A device switching method, applied to a BRAS-CP of a vBRAS system, characterized in that: include: Obtaining fault information of the primary BRAS-UP and / or the backup BRAS-UP; Determining whether to perform device switching according to the fault information of the primary BRAS-UP and / or the fault information of the standby BRAS-UP; The determining whether to perform device switching according to the fault information of the primary BRAS-UP and / or the fault information of the standby BRAS-UP includes: If the fault information notified by the master BRAS-UP or the fault information notified by the standby BRAS-UP is received, determining whether to perform device switching according to the fault information notified by the master BRAS-UP or the fault information notified by the standby BRAS-UP; If the fault information notified by the primary BRAS-UP and the fault information notified by the backup BRAS-UP are received at the same time: When the fault information notified by the master BRAS-UP is consistent with the fault information notified by the standby BRAS-UP, determining whether to perform device switching according to the fault information notified by the master BRAS-UP or the fault information notified by the standby BRAS-UP; When the fault information notified by the master BRAS-UP is inconsistent with the fault information notified by the standby BRAS-UP, it is determined whether to perform device switching according to a preset strategy.
10. The method according to claim 9, characterized in that The method further comprises: Sending a first notification to the primary BRAS-UP, and sending a second notification to the standby BRAS-UP; or sending a second notification to the standby BRAS-UP; or Sending a first notification to the standby BRAS-UP so that the standby BRAS-UP sends the first notification to the primary BRAS-UP, and sending a second notification to the standby BRAS-UP; The first notification is used to notify the master BRAS-UP to switch to the standby BRAS-UP; the second notification is used to notify the standby BRAS-UP to switch to the master BRAS-UP.
11. A device switching device, applied to a master BRAS-UP of a vBRAS system, characterized in that: include: A first processing module, configured to notify the standby BRAS-UP of their respective network status information according to a preset period; The first sending module is used to perform any of the following: When a user-side fault or a network-side fault occurs in the primary BRAS-UP, the BRAS-CP is notified of the fault information of the primary BRAS-UP and the backup BRAS-UP is notified of the fault information of the primary BRAS-UP; When the network status information of the standby BRAS-UP is not received for multiple consecutive times, sending the fault information of the standby BRAS-UP to the BRAS-CP; When receiving the user side fault information or network side fault information sent by the standby BRAS-UP, sending the fault information of the standby BRAS-UP to the BRAS-CP; The primary BRAS-UP and the backup BRAS-UP notify network status information via bidirectional forwarding detection BFD; the value of the diagnostic field Diag of the BFD is a preset value, which is used to indicate that the network status information of the primary BRAS-UP and / or the backup BRAS-UP is carried.
12. A device switching apparatus, applied to a standby BRAS-UP of a vBRAS system, characterized in that: include: A first processing module, configured to notify the master BRAS-UP of respective network status information according to a preset period; The first sending module is used to perform any of the following: When a user-side fault or a network-side fault occurs in the standby BRAS-UP, the standby BRAS-UP is notified of the fault information of the standby BRAS-UP to the BRAS-CP and the active BRAS-UP is notified of the fault information of the standby BRAS-UP; receiving fault information of the master BRAS-UP sent by the master BRAS-UP when a user side fault or a network side fault occurs in the master BRAS-UP, and sending the fault information of the master BRAS-UP to the BRAS-CP; When the network status information of the master BRAS-UP is not received for multiple consecutive times, sending the fault information of the master BRAS-UP to the BRAS-CP; The primary BRAS-UP and the backup BRAS-UP notify network status information via bidirectional forwarding detection BFD; the value of the diagnostic field Diag of the BFD is a preset value, which is used to indicate that the network status information of the primary BRAS-UP and / or the backup BRAS-UP is carried.
13. A device switching device, applied to BRAS-CP of a vBRAS system, characterized in that: include: A first acquisition module, used to acquire fault information of the primary BRAS-UP and / or fault information of the backup BRAS-UP; A first processing module, configured to determine whether to perform device switching according to the fault information of the primary BRAS-UP and / or the fault information of the standby BRAS-UP; Wherein, the first processing module is further used for: If the fault information notified by the master BRAS-UP or the fault information notified by the standby BRAS-UP is received, determining whether to perform device switching according to the fault information notified by the master BRAS-UP or the fault information notified by the standby BRAS-UP; If the fault information notified by the primary BRAS-UP and the fault information notified by the backup BRAS-UP are received at the same time: When the fault information notified by the master BRAS-UP is consistent with the fault information notified by the standby BRAS-UP, determining whether to perform device switching according to the fault information notified by the master BRAS-UP or the fault information notified by the standby BRAS-UP; When the fault information notified by the master BRAS-UP is inconsistent with the fault information notified by the standby BRAS-UP, it is determined whether to perform device switching according to a preset strategy.
14. A device switching device, applied to a master BRAS-UP of a vBRAS system, characterized in that: include: processors and transceivers; The processor is used to notify the standby BRAS-UP of their respective network status information according to a preset period; The transceiver is used to perform any of the following: When a user-side fault or a network-side fault occurs in the primary BRAS-UP, the BRAS-CP is notified of the fault information of the primary BRAS-UP and the backup BRAS-UP is notified of the fault information of the primary BRAS-UP; When the network status information of the standby BRAS-UP is not received for multiple consecutive times, sending the fault information of the standby BRAS-UP to the BRAS-CP; When receiving the user side fault information or network side fault information sent by the standby BRAS-UP, sending the fault information of the standby BRAS-UP to the BRAS-CP; The primary BRAS-UP and the backup BRAS-UP notify network status information via bidirectional forwarding detection BFD; the value of the diagnostic field Diag of the BFD is a preset value, which is used to indicate that the network status information of the primary BRAS-UP and / or the backup BRAS-UP is carried.
15. A device switching apparatus, applied to a standby BRAS-UP of a vBRAS system, characterized in that: include: processors and transceivers; The processor is used to notify the master BRAS-UP of the respective network status information according to a preset period; The transceiver is used to perform any of the following: When a user-side fault or a network-side fault occurs in the standby BRAS-UP, the standby BRAS-UP is notified of the fault information of the standby BRAS-UP to the BRAS-CP and the active BRAS-UP is notified of the fault information of the standby BRAS-UP; receiving fault information of the master BRAS-UP sent by the master BRAS-UP when a user side fault or a network side fault occurs in the master BRAS-UP, and sending the fault information of the master BRAS-UP to the BRAS-CP; When the network status information of the master BRAS-UP is not received for multiple consecutive times, sending the fault information of the master BRAS-UP to the BRAS-CP; The primary BRAS-UP and the backup BRAS-UP notify network status information via bidirectional forwarding detection BFD; the value of the diagnostic field Diag of the BFD is a preset value, which is used to indicate that the network status information of the primary BRAS-UP and / or the backup BRAS-UP is carried.
16. A device switching apparatus, applied to a BRAS-CP of a vBRAS system, characterized in that: include: processors and transceivers; The processor is used to obtain fault information of the primary BRAS-UP and / or fault information of the backup BRAS-UP; Determining whether to perform device switching according to the fault information of the primary BRAS-UP and / or the fault information of the standby BRAS-UP; Wherein, the processor is further used for: If the fault information notified by the master BRAS-UP or the fault information notified by the standby BRAS-UP is received, determining whether to perform device switching according to the fault information notified by the master BRAS-UP or the fault information notified by the standby BRAS-UP; If the fault information notified by the primary BRAS-UP and the fault information notified by the backup BRAS-UP are received at the same time: When the fault information notified by the master BRAS-UP is consistent with the fault information notified by the standby BRAS-UP, determining whether to perform device switching according to the fault information notified by the master BRAS-UP or the fault information notified by the standby BRAS-UP; When the fault information notified by the master BRAS-UP is inconsistent with the fault information notified by the standby BRAS-UP, it is determined whether to perform device switching according to a preset strategy.
17. A communication device comprising: A transceiver, a memory, a processor and a program stored in the memory and executable on the processor; wherein the processor is used to read the program in the memory to implement the steps in the device switching method as described in any one of claims 1 to 10.
18. A readable storage medium for storing a program, characterized in that: When the program is executed by a processor, the steps in the device switching method according to any one of claims 1 to 10 are implemented.
