Disaster recovery switching method and device of gateway and electronic equipment
By generating northbound instructions and link aggregation group reorganization rules when the gateway goes offline, a fast and unaffected switchover for gateway disaster recovery is achieved, solving the problem of the impact of multiple cutovers on existing network services in the existing technology and improving the efficiency of disaster recovery switchover.
Patent Information
- Application Number
- CN202410250446.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-05
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2044-03-05
AI Technical Summary
During the gateway disaster recovery networking process, when evolving from a single-gateway existing network to a dual-gateway hot standby network, multiple cutovers are required, which affects the operation of existing network services.
When the first gateway goes offline, a northbound command is generated to open a dedicated transmission line from the downstream network element to the second gateway. Based on the link aggregation group reorganization rules, a disaster recovery switching command is generated to migrate the service data to the second gateway, thereby achieving rapid disaster recovery switching.
The disaster recovery switchover process does not affect the operation of existing network services, improves the efficiency of disaster recovery switchover, and reduces the impact of gateway shutdown on services.
Smart Images

Figure CN118827338B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication, in particular to a gateway disaster recovery switching method and device, electronic equipment and storage medium. BACKGROUND
[0002] In related technologies, hot backup networking or stacked networking is usually performed in the process of gateway disaster recovery networking. However, from single gateway live network networking to double gateway hot backup networking, in this evolution process, multiple cutovers are required, which has a great impact on live network service operation. SUMMARY
[0003] The present application aims to at least solve one of the technical problems in the related art to some extent.
[0004] To this end, the first object of the present application is to provide a gateway disaster recovery switching method to achieve no impact on live network service and fast disaster recovery switching in the process of disaster recovery switching. Moreover, the networking implementation process of the networking mode of the present application does not affect the live network service, so that the problem of multiple cutovers and great impact on live network service encountered in the hot backup networking implementation process can be avoided.
[0005] The second object of the present application is to provide a device.
[0006] The third object of the present application is to provide an electronic equipment.
[0007] The fourth object of the present application is to provide a computer readable storage medium.
[0008] The fifth object of the present application is to provide a computer program product.
[0009] To achieve the above objects, the first aspect of the present application provides a gateway disaster recovery switching method, comprising:
[0010] In response to detecting that the first gateway is offline, the M physical interfaces of the second gateway are controlled to be turned on; wherein M is a positive integer;
[0011] According to the M physical interfaces, a northbound instruction is generated; wherein the northbound instruction is used to open M transmission private lines of the second gateway for the first gateway.
[0012] Based on a link aggregation group reorganization rule, a disaster recovery switching instruction is generated and sent to the second gateway; wherein the disaster recovery switching instruction is used to migrate the service data of the first gateway to the second gateway.
[0013] To achieve the above objects, the second aspect of the present application provides a gateway disaster recovery switching device, comprising:
[0014] The control module is configured to control the M physical interfaces of the second gateway to be turned on in response to detecting that the first gateway is off-network; wherein M is a positive integer.
[0015] The first generation module is configured to generate a northbound instruction according to the M physical interfaces; wherein the northbound instruction is used to open M transmission private lines from the first gateway to the second gateway.
[0016] The second generation module is configured to generate a disaster recovery switching instruction based on a link aggregation group reorganization rule.
[0017] The sending module is configured to send the disaster recovery switching instruction to the second gateway; wherein the disaster recovery switching instruction is used to migrate service data of the first gateway to the second gateway.
[0018] To achieve the above object, the third aspect of the present application provides an electronic device, comprising: a processor, and a memory connected with the processor in communication;
[0019] The memory stores computer execution instructions.
[0020] The processor executes the computer execution instructions stored in the memory to implement the method of the first aspect of the present application.
[0021] To achieve the above object, the fourth aspect of the present application provides a computer readable storage medium, the computer readable storage medium stores computer execution instructions, and the computer execution instructions are executed by the processor to implement the method of the first aspect of the present application.
[0022] To achieve the above object, the fifth aspect of the present application provides a computer program product, comprising a computer program, and the computer program is executed by the processor to implement the method of the first aspect of the present application.
[0023] The gateway disaster recovery switching method, device, electronic device and storage medium provided by the present application can generate a northbound instruction according to the physical interfaces of the second gateway when the first gateway is off-network, open transmission private lines from the first gateway to the second gateway based on the northbound instruction, so that the disaster recovery links (i.e. transmission private lines) required for the disaster recovery switching of the second gateway are separated from the existing network device, and the data configuration of the gateway of the existing network does not need to be changed, so that the operation of the existing network service is not affected during the disaster recovery switching process. Furthermore, the disaster recovery switching instruction is generated based on a link aggregation group reorganization rule, the instruction generation efficiency is high, the disaster recovery switching efficiency is improved, the fast disaster recovery switching is realized, and the influence of the gateway off-network on the service is reduced.
[0024] Additional aspects and advantages of the present application will be in part apparent and in part pointed out hereinafter. Attached Figure Description
[0025] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein:
[0026] Figure 1 A flowchart illustrating a gateway disaster recovery switching method provided in an embodiment of this application;
[0027] Figure 2 This is a schematic diagram of a hot standby network upgrade.
[0028] Figure 3 A schematic diagram illustrating the gateway disaster recovery networking method provided in the embodiments of this application;
[0029] Figure 4 A flowchart illustrating another gateway disaster recovery switching method provided in this application embodiment;
[0030] Figure 5 A flowchart illustrating another gateway disaster recovery switching method provided in this application embodiment;
[0031] Figure 6 A structural diagram of a disaster recovery switching system provided in an embodiment of this application;
[0032] Figure 7 This is a schematic diagram of the structure of a gateway disaster recovery switching device provided in an embodiment of this application. Detailed Implementation
[0033] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.
[0034] The following description, with reference to the accompanying drawings, describes a gateway disaster recovery switching method, apparatus, electronic device, and storage medium according to embodiments of this application.
[0035] Figure 1 This is a flowchart illustrating a gateway disaster recovery switching method provided in an embodiment of this application.
[0036] In related technologies, hot standby networking or stacking networking is usually performed during gateway disaster recovery networking. Taking the gateway as a Broadband Remote Access Server (BRAS) as an example, Figure 2 This is a schematic diagram of a hot standby network upgrade. Figure 2The middle OLT (Optical Line Terminal) refers to an optical line terminal, which is an important local terminal equipment. However, from the single gateway network in the existing network to the network evolution of the dual gateway hot standby, the evolution process needs to be cut several times, and the influence on the operation of the existing network service is large.
[0037] To solve the problem, the embodiment of the application provides a gateway disaster recovery switching method to realize the disaster recovery switching without affecting the existing network service and quickly performing the disaster recovery switching, taking the gateway as the BRAS for example, Figure 3 The gateway disaster recovery network mode provided by the embodiment of the application is shown in the figure, wherein the transmission network has a plurality of transmission devices, Figure 3 The network mode shown in the figure does not need to change the data configuration of the gateway in the existing network, and does not affect the existing network service in the network implementation process. The network mode only occupies the transmission device port, does not increase the load of the transmission network in the daily situation, and only occupies the bandwidth of the transmission network in the fault disaster recovery switching.
[0038] As Figure 1 The disaster recovery switching method of the gateway includes the following steps:
[0039] Step 101, in response to detecting that the first gateway is off-network, the M physical interfaces of the second gateway are controlled to be started.
[0040] In the application, the network access and pre-configuration of the second gateway can be completed in advance, wherein the second gateway is a disaster recovery gateway, and the second gateway can be one or more, which is not limited.
[0041] Taking the metropolitan area network as an example, if only one disaster recovery gateway is needed in a city, the disaster recovery gateway can be used as the disaster recovery backup network element of all gateways in the city.
[0042] Taking the metropolitan area network as an example, the gateway in the application can be a service control gateway, wherein the service control gateway can include a BRAS, a service router (SR) and the like.
[0043] Taking the gateway as the BRAS and the second gateway as the disaster recovery BRAS as an example, Table 1 is the pre-configuration data item of the disaster recovery BRAS.
[0044] Table 1: Pre-configuration data item of disaster recovery BRAS
[0045]
[0046] Wherein, the IGP (Interior Gateway Protocol) is an interior gateway protocol, the BGP (Border Gateway Protocol) is a border gateway protocol, the MPLS (Multi-Protocol Label Switching) is a multi-protocol label switching, the OSPF (Open Shortest Path First) is an open shortest path first, which is a dynamic routing protocol and belongs to a link state routing protocol, the NAT (Network Address Translation) is a network address translation, and the MP-BGP (Multiprotocol Border Gateway Protocol) is a multi-protocol border gateway protocol.
[0047] In the application, the network management system can periodically detect the network state of the gateway, and if it is detected that the first gateway is offline, M physical interfaces of the second gateway can be selected and controlled to be turned on. The M physical interfaces are downlink physical interfaces.
[0048] As an implementation manner, when the network management system detects that the first gateway is offline, the number K of the downlink network elements of the first gateway can be determined, and M physical interfaces can be selected from the physical interface set of the second gateway according to the number K of the downlink network elements, and then the M physical interfaces are controlled to be turned on.
[0049] Wherein, M can be greater than or equal to K, and K is a positive integer. For example, if each of the K downlink network elements needs only one physical link for disaster recovery switching, M is equal to K. If a downlink network element of the K downlink network elements needs multiple physical links for disaster recovery switching (for example, multiple GE link aggregation to improve link bandwidth), M is greater than K.
[0050] For example, M idle physical interfaces can be randomly selected from the physical interface set of the second gateway, where idle means in an off state.
[0051] In the application, the downlink network element of the first gateway can be an OLT or other devices, which is not limited.
[0052] In step 102, northbound instructions are generated according to the M physical interfaces.
[0053] Wherein, the northbound instructions can be used to open M transmission private lines from the downlink network element of the first gateway to the second gateway, and the M transmission private lines can be used to transmit data, for example, the data frames in a virtual local area network (VLAN) can be transmitted, so that when disaster recovery, the service traffic can be guided from the first gateway to the second gateway through the transmission private line.
[0054] The underhanging network element of the first gateway can refer to a subordinate network element connected to the first gateway.
[0055] For example, the transmission private line can be a pseudo-wire, a virtual circuit, a circuit switch, or the like.
[0056] In the present application, the network management system can determine M first physical ports of the first transmission device to which the M physical interfaces of the second gateway are pre-connected, and M second physical ports of the second transmission device to which the K underhanging network elements of the first gateway are pre-connected, and obtain port information of the M first physical ports and port information of the M second physical ports, take the first physical ports as the A end of the transmission circuit, and take the second physical ports as the Z end of the transmission circuit, and then generate the northbound instruction according to the port information of the M pairs of A end and Z end. Thus, in the network reconstruction stage, only the ports of the underhanging network elements to the transmission device need to be pre-occupied, without implementing network disconnection, and without affecting the operation of the existing service.
[0057] The first transmission device and the second transmission device are devices in a transmission network, and there are multiple transmission devices in the transmission network.
[0058] In the present application, the network management system can issue a northbound instruction to a transmission network operation and maintenance center (OMC) system, and the transmission network OMC system can issue the northbound instruction to the corresponding transmission device in the transmission network, so as to open M transmission private lines in the transmission network, thereby constructing a layer 2 data channel between the underhanging network elements of the first gateway and the second gateway, and transmitting all VLANs.
[0059] In the present application, after the northbound instruction is successfully issued, the link layer discovery protocol (LLDP) protocol can be used to confirm that the M links between the K underhanging network elements and the second gateway are in normal communication.
[0060] In step 103, a disaster recovery switching instruction is generated based on a link aggregation group reorganization rule, and is sent to the second gateway.
[0061] The disaster recovery switching instruction can be used to migrate the service data of the first gateway to the second gateway.
[0062] The link aggregation group reorganization rule can be to map the M physical interfaces of the second gateway to the link aggregation group numbers of the original first gateway to which the underhanging network elements at the opposite end of the transmission private line belong, and to reorganize the link aggregation groups of the second gateway.
[0063] Taking the gateway as the BRAS as an example, the link aggregation group reorganization rule can be to map the M physical interfaces of the disaster recovery BRAS to the link aggregation group number of the original home BRAS of the OLT at the opposite end of the transmission private line, and to reorganize the link aggregation group of the disaster recovery BRAS network element.
[0064] In the present application, the disaster recovery switching instruction is generated based on the link aggregation group reorganization rule, wherein the disaster recovery switching instruction can be used to migrate the service data of the first gateway to the second gateway.
[0065] In the present application, the disaster recovery switching instruction can include a link aggregation group configuration instruction, and the network management system can generate the link aggregation group configuration instruction by the following method: the latest configuration file of the first gateway can be obtained according to the date information of the configuration file, and the numbers of the K link aggregation groups corresponding to the K network elements hung below the first gateway can be obtained from the configuration file; wherein K is a positive integer less than or equal to M; the mapping relationship between the M physical interfaces and the K link aggregation groups can be determined according to the mapping relationship between the M transmission private lines and the K network elements hung below; and the link aggregation group configuration instruction can be generated according to the mapping relationship.
[0066] The link aggregation group configuration instruction can be used to bind the physical interfaces of the second gateway and the K link aggregation groups.
[0067] Optionally, the latest configuration file of the first gateway can be read from the gateway configuration file storage according to the date information of the configuration file.
[0068] For dynamic IP address services (such as broadband services), when disaster recovery switching occurs, the IP address of the user is changed to an IP address in the address pool preconfigured by the disaster recovery BRAS, and the routing information of these IP addresses can be pre-published into the BGP protocol, so that the disaster recovery switching instruction does not need to be configured. For static IP address services (such as private line services), when disaster recovery switching occurs, the IP address of the user needs to remain unchanged, so that not only the VPN instance, the service sub-interface, the static route, the IP address pool of the shared gateway, the static user data, etc. are configured, but also the Internet private line service IP routing is introduced into the BGP protocol, and the MPLS-VPN service routing is introduced into the MP-BGP.
[0069] Optionally, the disaster recovery switching instruction can also include a virtual private network (VPN) instance configuration instruction, and the network management system can find the VPN instance configuration instruction of the target service in the latest configuration file of the first gateway according to the corresponding characteristic string of the VPN instance configuration, and obtain the VPN instance configuration instruction from the configuration file.
[0070] The target service can include an MPLS VPN service or other VPN services, etc., which are not limited.
[0071] For example, the corresponding flag string of the VPN instance configuration can be "ip vpn-instance", and the command starting with "ip vpn-instance" and the specific configuration instructions included in the command can be found in the configuration file to obtain the VPN instance configuration instructions.
[0072] Optionally, the disaster recovery switching instructions can further include service sub-interface configuration instructions, and the network management system can find the configuration instructions of the service sub-interfaces of each link aggregation group in the latest configuration file of the first gateway according to the numbers of the K link aggregation groups, and obtain the service sub-interface configuration instructions from the configuration file.
[0073] For example, the configuration command code segment of the corresponding service sub-interface can be found in the latest configuration file of the first gateway according to the numbers of the K link aggregation groups, and the configuration command code segment is copied to obtain the configuration instructions of the service sub-interface.
[0074] Optionally, the disaster recovery switching instructions can further include static route configuration instructions, and the network management system can find the static route configuration instructions in the latest configuration file of the first gateway according to the corresponding flag string of the static route configuration, and obtain the static route configuration instructions from the configuration file.
[0075] For example, the corresponding flag string of the static route configuration can be "ip route-static", and the configuration command lines starting with "ip route-static" can be found, which are the static route configuration instructions, and the configuration command lines are copied to obtain the static route configuration instructions.
[0076] Optionally, the disaster recovery switching instructions can further include dedicated line service address pool configuration instructions, and the network management system can find the dedicated line service address pool configuration instructions in the latest configuration file of the first gateway according to the flag information of the dedicated line service address pool, and obtain the dedicated line service address pool configuration instructions from the configuration file.
[0077] For example, the flag information of the dedicated line service address pool can be the "excluded-ip-address" field, and the field can be found in the latest configuration file of the first gateway, and the code segment containing the field is copied to obtain the dedicated line service address pool configuration instructions.
[0078] Optionally, the disaster recovery switching instructions can further include static dedicated line user configuration instructions, and the network management system can find the static dedicated line user configuration instructions in the latest configuration file of the first gateway according to the corresponding flag string of the static dedicated line user configuration, and obtain the static dedicated line user configuration instructions from the configuration file.
[0079] For example, the corresponding mark string of the static line user configuration can be "static-user", and the "static-user" can be used as a matching condition to find the required static line user configuration instruction.
[0080] Optionally, the disaster recovery switching instruction can further include an IP prefix list configuration instruction. The network management system can obtain a prefix list name of the Internet line service, and find the IP prefix list configuration instruction of the line service in the latest configuration file of the first gateway according to the prefix list name, and then obtain the IP prefix list configuration instruction from the configuration file.
[0081] For example, the prefix list name of the Internet line service of the FJFZ-JiKe of a certain city metropolitan area network can be "ip-prefix FJFZ-JiKe", and the "ip-prefix FJFZ-JiKe" can be used as a matching condition to find the code segment containing the "ip-prefix FJFZ-JiKe" from the latest configuration file of the first gateway, and then copy the code segment to obtain the IP prefix list configuration instruction of the line service.
[0082] Optionally, the disaster recovery switching instruction can further include a route import configuration instruction. The network management system can find the route import configuration instruction in the latest configuration file of the first gateway according to the corresponding mark string of the route import configuration, and then obtain the route import configuration instruction from the configuration file.
[0083] The route import configuration instruction can be used to import the VPN instance route into the MP-BGP, for example, the VPN instance route can be the MPLS-VPN service route.
[0084] For example, the corresponding mark string of the route import configuration can be "ipv4-family vpn-instance", and all configuration command lines starting with "ipv4-family vpn-instance" and the specific configuration instructions (such as ending with #) included therein can be found in the latest configuration file of the first gateway.
[0085] Taking the gateway as the BRAS as an example, the following describes the generation method of the required disaster recovery switching instruction in combination with Table 2.
[0086] Table 2 Generation method of disaster recovery switching instruction required by disaster recovery BRAS
[0087]
[0088]
[0089]
[0090]
[0091]
[0092] Since the link aggregation group reorganization rule can make the link aggregation group number of the second gateway consistent with the number of the original link aggregation group of the first gateway in the corresponding OLT, the instructions required for subsequent other configuration items only need to be directly searched and copied from the device configuration file (saved before the failure) of the off-network first gateway, and the copied configuration instructions can be directly added to the disaster recovery switching instruction set, without the need for conversion of these instructions, thus realizing the "translation" disaster recovery switching instruction generation method, improving the instruction generation efficiency, and thereby improving the disaster recovery switching efficiency and realizing fast disaster recovery switching.
[0093] The disaster recovery switching instruction in the present application can include link aggregation group configuration instructions, and can also include one or more of VPN instance configuration instructions, service sub-interface configuration instructions, static route configuration instructions, dedicated line service address pool configuration instructions, static dedicated line user configuration instructions, IP prefix list configuration instructions, and route import configuration instructions.
[0094] In the present application, the network management system can send the disaster recovery switching instruction to the second gateway, and the second gateway can migrate the service data of the first gateway to the second gateway according to the disaster recovery switching instruction, thereby realizing the configuration of the second gateway. Here, the migration of the service data to the second gateway can be understood as the configuration of the second gateway.
[0095] In the embodiment of the present application, by generating the northbound instruction according to the physical interface of the second gateway when the first gateway is off-network, the transmission dedicated line from the first gateway to the second gateway is opened based on the northbound instruction, and thus the disaster recovery link (i.e., the transmission dedicated line) required for the disaster recovery switching of the second gateway and the second gateway are both separated from the existing network device, without the need to change the data configuration of the gateway of the existing network, thereby not affecting the operation of the existing network service during the disaster recovery switching, and based on the link aggregation group reorganization rule, the disaster recovery switching instruction is generated, the instruction generation efficiency is high, the disaster recovery switching efficiency is improved, fast disaster recovery switching is realized, and the impact of the gateway off-network on the service is reduced.
[0096] Figure 4 A flowchart of another gateway disaster recovery switching method provided by the embodiment of the present application.
[0097] As shown in Figure 4 , the gateway disaster recovery switching method can include the following steps:
[0098] Step 401, in response to detecting that the first gateway is off-network, controlling to start M physical interfaces of the second gateway.
[0099] Step 402, generating a northbound instruction according to the M physical interfaces.
[0100] Step 403: Based on the link aggregation group reorganization rules, generate a disaster recovery switching instruction and send it to the second gateway.
[0101] In this application, steps 401-403 can be found in other embodiments of this application, and therefore will not be repeated here.
[0102] Step 404: In response to the detection that the first gateway has resumed network access, a service rollback command is sent to the second gateway.
[0103] In this application, the network management system can detect whether the first gateway has resumed network access via ping. If the first gateway, which was previously out of the network, can be reached via ping, it indicates that the first gateway has resumed network access. If the first gateway has resumed network access, a service rollback command can be generated and sent to the second gateway.
[0104] The service rollback command can be used to shut down M physical interfaces of the second gateway and delete configuration data generated by the disaster recovery switchover command. The M physical interfaces of the second gateway that are shut down here refer to the M physical interfaces that were enabled when the first gateway was taken offline.
[0105] Optionally, when deleting configuration data generated by disaster recovery switching instructions, the data can be deleted in reverse order of the instruction generation order. For example, the order of deleting configuration data can be the reverse of the order listed in Table 2.
[0106] In this embodiment of the application, when a gateway is detected to be offline, disaster recovery switching can be achieved without affecting the operation of existing network services. When the offline gateway is detected to be back online, a service rollback instruction is sent to the disaster recovery gateway, so that the service data is migrated back to the gateway that has been restored to the network, thus ensuring service quality.
[0107] To facilitate understanding of the gateway disaster recovery switching method in this application, we will take a BRAS gateway as an example, and then combine it with the following... Figure 5 and Figure 6 To explain, Figure 5 This is a flowchart illustrating another gateway disaster recovery switching method provided in an embodiment of this application. Figure 6 This is a structural diagram of a disaster recovery switching system provided in an embodiment of this application.
[0108] like Figure 5 As shown, the disaster recovery switching methods for gateways include:
[0109] Step 1: Complete the network access and pre-configuration of the disaster recovery BRAS.
[0110] In this application, the pre-configuration of the disaster recovery BRAS can be found in the above embodiments, so it will not be repeated here.
[0111] Step 2: detecting that the BRAS is off-line, and emergently opening the downlink physical interface of the disaster recovery BRAS.
[0112] Taking the metropolitan area network as an example, in the embodiment, the network management system can poll to detect whether the BRAS in the metropolitan area network is off-line. If it is detected that the BRAS is off-line, the downlink physical interface of the disaster recovery BRAS is emergently opened.
[0113] Step 3: automatically opening the transmission private line between the OLT and the disaster recovery BRAS, and transparently transmitting all VLANs.
[0114] The OLT here can refer to a network element hung below the off-line BRAS.
[0115] The network management system can generate a northbound instruction according to the opened downlink physical interface of the disaster recovery BRAS, and send the northbound instruction to the transmission network OMC system (such as shown in Figure 6 ), so that the transmission network OMC system issues the northbound instruction to the transmission device in the transmission network, to open the transmission private line between the OLT and the disaster recovery BRAS.
[0116] Step 4: generating a disaster recovery switching instruction based on a link aggregation group reorganization rule, and sending the disaster recovery switching instruction to the disaster recovery BRAS, to realize gateway switching.
[0117] In the embodiment, the link aggregation group configuration instruction can be generated based on the link aggregation group reorganization rule.
[0118] As shown in Figure 6 , the network management system can also read the latest configuration file of the off-line BRAS from the BRAS configuration file storage. Then, the network management system can generate configuration instructions of other configuration items based on the configuration file.
[0119] In the embodiment, the detailed process of generating the disaster recovery switching instruction can be referred to the above-mentioned embodiments, and thus will not be described here again.
[0120] As shown in Figure 6 , the network management system can send the generated disaster recovery switching instruction to the disaster recovery BRAS, to realize service switching.
[0121] Step 5: detecting that the off-line BRAS recovers to be on-line, and executing a service rollback instruction.
[0122] The gateway disaster recovery switching method of the embodiment can have the following advantages:
[0123] 1. The network upgrade process does not affect existing network services. The gateway disaster recovery switching method of this application does not require changing the data configuration of the existing gateway device (BRAS device). When a fault occurs, the network management system configures data in the disaster recovery BRAS network element and switches the OLT gateway to the disaster recovery BRAS network element. Therefore, the disaster recovery switching method of this application only needs to occupy the port from the OLT to the transmission equipment in advance during the network upgrade phase, without implementing network cutover, and does not affect the operation of existing services. Furthermore, the disaster recovery networking method of this application, as determined by the method, separates the disaster recovery link and disaster recovery BRAS network element required by the disaster recovery switching method from the existing network equipment. The network implementation process will not cause interruption of existing network services, and the networking method only occupies the transmission equipment port, which does not increase the load on the transmission network under normal circumstances, and only occupies the bandwidth of the transmission network during fault disaster recovery switching. This disaster recovery networking method can be integrated with... Figure 2 The hot standby networking solutions in the two systems are compatible with each other and can be implemented simultaneously.
[0124] 2. The gateway disaster recovery switching instruction generation method of this application is based on the link aggregation group reorganization rule, and realizes the "shifting" disaster recovery switching instruction generation method, which improves the instruction generation efficiency and solves the disaster recovery switching of broadband services and leased line services.
[0125] To implement the above embodiments, this application also proposes a gateway disaster recovery switching device.
[0126] Figure 7 This is a schematic diagram of the structure of a gateway disaster recovery switching device provided in an embodiment of this application.
[0127] like Figure 7 As shown, the disaster recovery switching device 700 of the gateway includes:
[0128] Control module 710 is used to control the opening of M physical interfaces of the second gateway in response to the detection that the first gateway has disconnected from the network; where M is a positive integer;
[0129] The first generation module 720 is used to generate northbound instructions based on the M physical interfaces; wherein, the northbound instructions are used to open M dedicated transmission lines from the downstream network element of the first gateway to the second gateway;
[0130] The second generation module 730 is used to generate disaster recovery switching instructions based on the link aggregation group reorganization rules;
[0131] The sending module 740 is used to send data to the second gateway; wherein the disaster recovery switching instruction is used to migrate the service data of the first gateway to the second gateway.
[0132] Furthermore, in one possible implementation of this application embodiment, the disaster recovery switching instruction includes a link aggregation group configuration instruction, and the second generation module 730 is used for:
[0133] acquire a latest configuration file of the first gateway;
[0134] acquire, from the configuration file, numbers of K link aggregation groups corresponding to K network elements hung under the first gateway; wherein K is a positive integer less than or equal to M;
[0135] determine a mapping relationship between the M transmission leased lines and the K network elements hung under according to a mapping relationship between the M transmission leased lines and the K network elements hung under;
[0136] generate the link aggregation group configuration instruction according to the mapping relationship; wherein the link aggregation group configuration instruction is used to bind the physical interfaces of the second gateway and the K link aggregation groups.
[0137] Further, in a possible implementation manner of the embodiment of the present application, the disaster recovery switching instruction further comprises a virtual private network (VPN) instance configuration instruction, and the second generating module 730 is configured to:
[0138] find the VPN instance configuration instruction of the target service in the configuration file according to a flag character string corresponding to the VPN instance configuration;
[0139] acquire the VPN instance configuration instruction from the configuration file.
[0140] Further, in a possible implementation manner of the embodiment of the present application, the disaster recovery switching instruction further comprises a service sub-interface configuration instruction, and the second generating module 730 is configured to:
[0141] find the service sub-interface configuration instruction of each link aggregation group in the configuration file according to the numbers of the K link aggregation groups;
[0142] acquire the service sub-interface configuration instruction from the configuration file.
[0143] Further, in a possible implementation manner of the embodiment of the present application, the disaster recovery switching instruction further comprises a static route configuration instruction, and the second generating module 730 is configured to:
[0144] find the static route configuration instruction in the configuration file according to a flag character string corresponding to the static route configuration;
[0145] acquire the static route configuration instruction from the configuration file.
[0146] Further, in a possible implementation manner of the embodiment of the present application, the disaster recovery switching instruction further comprises a leased line service address pool configuration instruction, and the second generating module 730 is configured to:
[0147] According to the mark information of the dedicated line service address pool, the configuration file is searched for a dedicated line service address pool configuration instruction;
[0148] The dedicated line service address pool configuration instruction is acquired from the configuration file.
[0149] Further, in a possible implementation manner of the embodiment of the application, the disaster recovery switching instruction further comprises a static dedicated line user configuration instruction, and the second generating module 730 is configured to:
[0150] According to a mark string corresponding to the static dedicated line user configuration, the configuration file is searched for a static dedicated line user configuration instruction;
[0151] The static dedicated line user configuration instruction is acquired from the configuration file.
[0152] Further, in a possible implementation manner of the embodiment of the application, the disaster recovery switching instruction further comprises an IP prefix list configuration instruction, and the second generating module 730 is configured to:
[0153] An IP prefix list name of the Internet dedicated line service is acquired;
[0154] According to the IP prefix list name, the configuration file is searched for an IP prefix list configuration instruction of the dedicated line service;
[0155] The IP prefix list configuration instruction is acquired from the configuration file.
[0156] Further, in a possible implementation manner of the embodiment of the application, the disaster recovery switching instruction further comprises a route introduction configuration instruction, and the second generating module 730 is configured to:
[0157] According to a mark string corresponding to the route introduction configuration, the configuration file is searched for a route introduction configuration instruction, wherein the route introduction configuration instruction is used to introduce a VPN instance route into a multi-protocol border gateway protocol (MP-BGP);
[0158] The route introduction configuration instruction is acquired from the configuration file.
[0159] Further, in a possible implementation manner of the embodiment of the application, the control module 710 is configured to:
[0160] In response to detecting that the first gateway is off-network, the number K of network elements hung below the first gateway is determined;
[0161] According to the number K of the network elements hung below, the M physical interfaces are selected from a physical interface set of the second gateway, wherein M is greater than or equal to K;
[0162] The M physical interfaces are controlled to be turned on.
[0163] Further, in a possible implementation of the embodiment of the application, the first generating module 720 is configured to:
[0164] determine M first physical ports of a first transmission device to which the M physical interfaces are pre-connected, and M second physical ports of a second transmission device to which K network elements under the first gateway are pre-connected; wherein the first physical ports are A ends of transmission circuits, and the second physical ports are Z ends of transmission circuits;
[0165] obtain port information of the M first physical ports and port information of the M second physical ports;
[0166] generate the northbound instruction according to the M pairs of A ends and Z ends of the port information.
[0167] Further, in a possible implementation of the embodiment of the application, the apparatus can further include:
[0168] a third generating module configured to generate a service rollback instruction in response to detecting that the first gateway resumes online; wherein the service rollback instruction is used to close the M physical interfaces and delete configuration data generated by the disaster recovery switching instruction;
[0169] The sending module 740 is further configured to send the service rollback instruction to the second gateway.
[0170] It should be noted that the foregoing explanation and description of the method embodiment of the gateway disaster recovery switching also apply to the apparatus embodiment of the gateway disaster recovery switching, which will not be repeated here.
[0171] In the embodiment of the application, when the first gateway is offline, a northbound instruction is generated according to the physical interfaces of the second gateway, and a transmission private line from the network elements under the first gateway to the second gateway is opened based on the northbound instruction, so that the disaster recovery link required by the second gateway disaster recovery switching and the second gateway are both separated from the existing network device, and the data configuration of the gateway of the existing network does not need to be changed, so that the operation of the existing network service is not affected in the disaster recovery switching process, and the disaster recovery switching instruction is generated based on the link aggregation group reconfiguration rule, the instruction generation efficiency is high, the disaster recovery switching efficiency is improved, the fast disaster recovery switching is realized, and the impact of the gateway offline on the service is reduced.
[0172] In order to implement the above-mentioned embodiments, the application further provides an electronic device, including a processor and a memory connected with the processor in communication; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory to implement the method provided by the foregoing embodiments.
[0173] To achieve the above-mentioned embodiments, the present application further provides a computer readable storage medium, wherein the computer readable storage medium stores computer execution instructions, and the computer execution instructions are executed by a processor to implement the method provided by the foregoing embodiments.
[0174] To achieve the above-mentioned embodiments, the present application further provides a computer program product, comprising a computer program, wherein the computer program is executed by a processor to implement the method provided by the foregoing embodiments.
[0175] The collection, storage, use, processing, transmission, provision and disclosure of user personal information involved in the present application comply with relevant laws and regulations and do not violate public order and good customs.
[0176] It should be noted that the personal information from the user should be collected for legal and reasonable purposes, and should not be shared or sold outside these legal uses. In addition, such collection / sharing should be carried out after the user's informed consent is received, including but not limited to informing the user to read the user agreement / user notice before the user uses the function, and signing the agreement / authorization including authorization of relevant user information. In addition, any necessary steps should be taken to protect and ensure access to such personal information data, and to ensure that other people with access to personal information data comply with their privacy policy and processes.
[0177] The present application is expected to provide embodiments in which the user can selectively prevent the use or access of personal information data. That is, the present disclosure is expected to provide hardware and / or software to prevent or block access to such personal information data. Once the personal information data is no longer needed, the risk is minimized by limiting data collection and deleting data. In addition, such personal information is de-identified, if applicable, to protect the privacy of the user.
[0178] In the foregoing embodiment description, the description of the terms "one embodiment", "some embodiments", "an example", "a specific example", or "some examples" means that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In the present specification, the illustrative description of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any appropriate manner in any one or more embodiments or examples. In addition, the skilled in the art can combine and combine the different embodiments or examples described in the specification and the features of the different embodiments or examples, without contradiction.
[0179] Moreover, the terms "first", "second", "third", etc. are used herein only to describe different steps or categories of steps in a claim for patent purposes, and are not to be construed as indicating or implying relative importance of one step to another or a quantity of steps. Thus, features defined with "first", "second" or "third" can explicitly or implicitly include at least one of the features. In the description of the present application, the meaning of "plurality" is at least two, for example, two, three, etc., unless otherwise explicitly and specifically limited.
[0180] Any process or method descriptions or blocks in flow charts herein and elsewhere can be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps in the process, and alternate implementations are possible. In some embodiments, the processes or methods described in flow charts herein and elsewhere can be tailored by reordering steps and / or adding or omitting one or more of the described steps, and the order of the steps can or can not be specifically mentioned or critical. One of ordinary skill in the art will recognize that the steps in the processes or methods described herein and elsewhere can be implemented by processor-executable code stored on a computer-readable medium, which can be incorporated in software, applied to the process or method, or otherwise used to implement the process or method.
[0181] Logic and / or steps represented in flow charts herein and elsewhere, for example, can be embodied in computer-readable instructions, statements, or in the form of one or more modules, segments, or portions of code that implement specified logical functions. Such computer-readable instructions can be loaded onto a computer, in one or more ways, and executed thereby. Such computer-readable instructions can include, for example, instructions in a computer-readable form, computer-executable instructions, or instructions that modify the operation of or management of the computer or components thereof, or a combination thereof. For purposes of this application, a "computer-readable medium" can be any apparatus that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. Computer readable medium can typically be a computer- readable storage medium. The computer-readable storage medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a propagation medium. The computer-readable storage medium can also be any appropriate combination of the computer-readable media described above. The computer-readable storage medium can be a computer- readable storage medium that can be any medium that can be used to store the desired information or data structure or instruction which can be accessed by a computer.
[0182] It should be understood that parts of the present application can be realized in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be realized as software or firmware stored in a memory and executed by a suitable instruction execution system. As such, if realized in hardware, and in another embodiment, any one or a combination of the following technologies known in the art can be used: discrete logic circuitry having logic gates for implementing logic functions on data signals, application specific integrated circuits having appropriate combinational logic gates, programmable gate arrays (PGA), field programmable gate arrays (FPGA), and the like.
[0183] Those skilled in the art of the present technology can understand that all or part of the steps carried out by the above-mentioned embodiments can be completed by a program instructing the relevant hardware, and the program can be stored in a computer readable storage medium. When the program is executed, it includes one of the steps of the method embodiments or a combination thereof.
[0184] In addition, the functional units in each embodiment of the present application can be integrated into one processing module, or each unit can exist physically alone, or two or more units can be integrated into one module. The integrated module can be realized in the form of hardware or in the form of a software functional module. When the integrated module is realized in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer readable storage medium.
[0185] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it should be understood that the above embodiments are exemplary and cannot be understood as limiting the present application, and those skilled in the art can make changes, modifications, replacements and variations to the above embodiments within the scope of the present application.
Claims
1. A disaster recovery switching method for a gateway, characterized in that, Includes the following steps: In response to the detection that the first gateway has disconnected from the network, control the activation of M physical interfaces of the second gateway; where M is a positive integer; Based on the M physical interfaces, a northbound command is generated; wherein, the northbound command is used to open M dedicated transmission lines from the downstream network element of the first gateway to the second gateway; Based on the link aggregation group reorganization rules, a disaster recovery switching instruction is generated and sent to the second gateway; wherein, the disaster recovery switching instruction is used to migrate the service data of the first gateway to the second gateway; The disaster recovery switching instruction includes a link aggregation group configuration instruction, and the generation of the disaster recovery switching instruction based on the link aggregation group reorganization rule includes: Obtain the latest configuration file of the first gateway; Obtain the numbers of the K link aggregation groups corresponding to the K downstream network elements of the first gateway from the configuration file; where K is a positive integer less than or equal to M; Based on the mapping relationship between the M dedicated transmission lines and the K downstream network elements, determine the mapping relationship between the M physical interfaces and the K link aggregation groups; Based on the mapping relationship, the link aggregation group configuration instruction is generated; wherein, the link aggregation group configuration instruction is used to bind the physical interface of the second gateway to the K link aggregation groups.
2. The method as described in claim 1, characterized in that, The disaster recovery switching command also includes a VPN instance configuration command. The generation of the disaster recovery switching command based on the link aggregation group reorganization rule includes: Based on the identifier string corresponding to the VPN instance configuration, locate the VPN instance configuration instruction for the target service in the configuration file; Obtain the VPN instance configuration instructions from the configuration file.
3. The method as described in claim 1, characterized in that, The disaster recovery switching instruction also includes service sub-interface configuration instructions. The generation of the disaster recovery switching instruction based on the link aggregation group reorganization rules includes: Based on the numbers of the K link aggregation groups, locate the configuration instructions for the service sub-interfaces of each link aggregation group in the configuration file; Obtain the configuration instructions for the business sub-interface from the configuration file.
4. The method as described in claim 1, characterized in that, The disaster recovery switching instruction also includes a static routing configuration instruction. The generation of the disaster recovery switching instruction based on the link aggregation group reorganization rule includes: Based on the identifier string corresponding to the static route configuration, locate the static route configuration instruction in the configuration file; Obtain the static route configuration instructions from the configuration file.
5. The method as described in claim 1, characterized in that, The disaster recovery switching instruction also includes a dedicated line service address pool configuration instruction. The generation of the disaster recovery switching instruction based on the link aggregation group reorganization rules includes: Based on the flag information of the leased line service address pool, locate the leased line service address pool configuration instruction in the configuration file; Obtain the dedicated line service address pool configuration instructions from the configuration file.
6. The method as described in claim 1, characterized in that, The disaster recovery switching instruction also includes a static leased line user configuration instruction. The generation of the disaster recovery switching instruction based on the link aggregation group reorganization rules includes: Based on the identifier string corresponding to the static leased line user configuration, the static leased line user configuration instruction is found in the configuration file. Obtain the static leased line user configuration instructions from the configuration file.
7. The method as described in claim 1, characterized in that, The disaster recovery switching instruction also includes an IP prefix list configuration instruction. The generation of the disaster recovery switching instruction based on the link aggregation group reorganization rule includes: Retrieve the prefix list of names for internet leased line services; Based on the prefix list name, locate the IP prefix list configuration instruction for the leased line service in the configuration file; Obtain the IP prefix list configuration instructions from the configuration file.
8. The method as described in claim 1, characterized in that, The disaster recovery switching instruction also includes a route import configuration instruction. The generation of the disaster recovery switching instruction based on the link aggregation group reorganization rule includes: Based on the identifier string corresponding to the route import configuration, the route import configuration instruction is located in the configuration file; wherein, the route import configuration instruction is used to route the VPN instance into the Multiprotocol Border Gateway Protocol (MP-BGP). Obtain the route import configuration instructions from the configuration file.
9. The method as described in claim 1, characterized in that, The response to detecting that the first gateway has disconnected from the network, controlling the activation of M downstream physical interfaces of the second gateway, includes: In response to detecting that the first gateway has left the network, the number K of the downstream network elements of the first gateway is determined; Based on the number K of the downstream network elements, select M physical interfaces from the physical interface set of the second gateway; wherein M is greater than or equal to K; Control the activation of the M physical interfaces.
10. The method as described in claim 1, characterized in that, The process of generating northbound commands based on the M downstream physical interfaces includes: The M first physical ports of the first transmission device pre-connected to the M physical interfaces are determined, and the M second physical ports of the second transmission device pre-connected to the K downstream network elements of the first gateway are determined; wherein: the first physical port is the A end of the transmission circuit, and the second physical port is the Z end of the transmission circuit; Obtain the port information of the M first physical ports and the port information of the M second physical ports; The northbound command is generated based on the port information of M to A and Z ends.
11. The method according to any one of claims 1-10, characterized in that, Also includes: In response to detecting that the first gateway has resumed network access, a service rollback instruction is generated and sent to the second gateway; wherein, the service rollback instruction is used to shut down the M physical interfaces and delete the configuration data generated by the disaster recovery switchover instruction.
12. A disaster recovery switching device for a gateway, characterized in that, include: The control module is used to control the opening of M physical interfaces of the second gateway in response to the detection that the first gateway has disconnected from the network; where M is a positive integer. The first generation module is used to generate northbound instructions based on the M physical interfaces; wherein, the northbound instructions are used to open M dedicated transmission lines from the downstream network element of the first gateway to the second gateway; The second generation module is used to generate disaster recovery switching instructions based on link aggregation group reorganization rules. The disaster recovery switching instructions include link aggregation group configuration instructions. Generating the disaster recovery switching instructions based on the link aggregation group reorganization rules includes: obtaining the latest configuration file of the first gateway; obtaining the numbers of the K link aggregation groups corresponding to the K downstream network elements of the first gateway from the configuration file; where K is a positive integer less than or equal to M; determining the mapping relationship between the M physical interfaces and the K link aggregation groups according to the mapping relationship between the M dedicated transmission lines and the K downstream network elements; generating the link aggregation group configuration instructions according to the mapping relationship; wherein the link aggregation group configuration instructions are used to bind the physical interfaces of the second gateway to the K link aggregation groups. A sending module is used to send data to the second gateway; wherein the disaster recovery switching instruction is used to migrate the service data of the first gateway to the second gateway.
13. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1-11.
14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-11.
15. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method of any one of claims 1-11.
Citation Information
Patent Citations
A method and system of updating conversation allocation in link aggregation
CN105122749A
Method and system of supporting operator commands in link aggregation group
CN105706393A