Primary and standby pseudowire switching method, device, storage medium and electronic device
The method and device improve main backup line switching efficiency by directly switching to backup links and batch-processing VPN services, addressing slow switching and data loss issues in network devices with multiple VPN services.
Patent Information
- Application Number
- CN202111583351.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-22
- Publication Date
- 2025-07-15
- Estimated Expiration
- 2041-12-22
AI Technical Summary
The master-subsidiary pseudo-line switching method in the prior art is inefficient and cannot achieve fast batch switching, which may lead to traffic loss and service interruption.
Receive message information in the main link, respond to abnormal message information, close the main link and open the backup link, and switch the VPN service of the main pseudo-line to the backup pseudo-line in turn, and realize batch switching through the coordinated work of the forwarding layer, the intermediate layer and the protocol layer.
It improves the speed and efficiency of main and backup pseudo-line switching, reduces data loss, and achieves fast service switching.
Smart Images

Figure CN116389190B_ABST
Abstract
Description
Background Art
[0002] In abnormal scenarios such as link disconnection, oscillation, or congestion, when a primary link of a network device carries multiple VPN (Virtual Private Network) services, it is necessary to quickly and batch switch traffic to a backup link after detecting a communication failure to reduce the impact on each service.
[0003] The primary-secondary pseudowire switching method in the prior art has low efficiency and cannot achieve fast batch switching, which may cause problems such as traffic loss and interruption of each service.
[0004] It should be noted that the information disclosed in the above background art section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to those of ordinary skill in the art. Summary of the Invention
[0005] The purpose of the present disclosure is to provide a primary-secondary pseudowire switching method, a primary-secondary pseudowire switching device, a computer-readable medium, and an electronic device, thereby at least to a certain extent improving the switching speed of the primary-secondary pseudowire and enhancing the switching efficiency.
[0006] According to the first aspect of the present disclosure, a primary-secondary pseudowire switching method is provided, including: receiving the packet information of each primary pseudowire in the primary link; in response to the abnormal packet information, closing the primary link and opening the backup link corresponding to the primary link; according to the abnormal packet information, sequentially switching the VPN services of each primary pseudowire to the backup pseudowires respectively corresponding to each primary pseudowire.
[0007] According to the second aspect of the present disclosure, a primary-secondary pseudowire switching device is provided, including: a forwarding layer for receiving the packet information of each primary pseudowire in the primary link and, in response to the abnormal packet information, sending the abnormal packet information to the intermediate layer; an intermediate layer for receiving the abnormal packet information and generating a switching control instruction according to the abnormal packet information, so that the forwarding layer closes the primary link and opens the backup link corresponding to the primary link, and at the same time reports the abnormal packet information to the protocol layer; a protocol layer for sequentially switching the VPN services of each primary pseudowire to the backup pseudowires respectively corresponding to each primary pseudowire according to the abnormal packet information.
[0008] According to the third aspect of the present disclosure, a computer-readable medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented.
[0009] According to a fourth aspect of the present disclosure, there is provided an electronic device, comprising: one or more processors; and a memory for storing one or more programs, which, when executed by the one or more processors, cause the one or more processors to implement the above-described method.
[0010] The primary and standby pseudowire switching method provided by an embodiment of the present disclosure receives the packet information of each primary pseudowire in the primary link; in response to abnormal packet information, closes the primary link and opens the standby link corresponding to the primary link; and sequentially switches the VPN services of each primary pseudowire to the standby pseudowires respectively corresponding to each primary pseudowire according to the abnormal packet information. Compared with the prior art, when the link is abnormal, the primary link is directly switched to the standby link, and at the same time, according to the abnormal packet information of each primary pseudowire, the VPN services of each primary pseudowire are sequentially switched to the standby pseudowires respectively corresponding to each primary pseudowire, realizing the batch switching of the primary and standby pseudowires, improving the switching speed of the primary and standby pseudowires, enhancing the switching efficiency, and reducing data loss.
[0011] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The accompanying drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present disclosure and, together with the specification, are used to explain the principles of the present disclosure. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and those of ordinary skill in the art can also obtain other drawings based on these drawings without creative efforts. In the drawings:
[0013] Figure 1 Data flow diagram of primary and standby pseudowire switching in the related art;
[0014] Figure 2 Schematically showing a flowchart of a primary and standby pseudowire switching method in an exemplary embodiment of the present disclosure;
[0015] Figure 3 Schematically showing a data flow diagram of a primary and standby pseudowire switching in an exemplary embodiment of the present disclosure;
[0016] Figure 4 Schematically showing a detailed flowchart of a primary and standby pseudowire switching method in an exemplary embodiment of the present disclosure;
[0017] Figure 5 Showing a schematic diagram of an electronic device to which the embodiments of the present disclosure can be applied. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0018] Example embodiments will now be described more fully with reference to the accompanying drawings. However, the example embodiments can be implemented in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The features, structures, or characteristics described may be combined in any suitable manner in one or more embodiments.
[0019] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus repeated descriptions thereof will be omitted. Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0020] In the related art, as shown in Figure 1 in the active / standby switching network environment where multiple active pseudowires are carried on the active link, when the active link fails, that is, the data transmission line between device 1 and device 2 is disconnected, the OAM (Operation Administration and Maintenance) processor 111 of the forwarding layer 11 of device 1 detects the link failure between forwarding points through the BFD (Bidirectional Forwarding Detection) exception message information of each active pseudowire, and notifies the middleware layer in sequence. After receiving the failure information of each active pseudowire, the intermediate layer 12 notifies the protocol layer 13 in sequence. After the protocol layer 13 completes the active / standby pseudowire switching at the service level, it then notifies the forwarding layer 11 to perform the active / standby pseudowire switching at the hardware level. In the prior art, the entire switching process of each active pseudowire is independent during the active / standby pseudowire switching, and the chip layer is notified after the operation of the protocol layer 13 is completed. Such a process makes it impossible to quickly batch-switch the active / standby pseudowires, which may cause problems such as traffic loss and interruption of each service.
[0021] Based on the above at least one technical problem, the present application first provides a method for switching active / standby pseudowires, Figure 2 shows the flow of a method for switching active / standby pseudowires in this exemplary embodiment, including the following steps:
[0022] Step S210, receiving the message information of each active pseudowire in the active link;
[0023] Step S220, in response to the exception of the exception message information, closing the active link and opening the standby link corresponding to the active link;
[0024] Step S230: According to the exception message information, sequentially switch the VPN services of each of the active pseudowires to the standby pseudowires respectively corresponding to each of the active pseudowires.
[0025] Compared with the prior art, the above active / standby pseudowire switching method directly switches the active link to the standby link when a link exception occurs, and at the same time, according to the exception message information of each active pseudowire, sequentially switches the VPN services of each of the active pseudowires to the standby pseudowires respectively corresponding to each of the active pseudowires, realizing batch switching of the active / standby pseudowires, improving the switching speed of the active / standby pseudowires, enhancing the switching efficiency, and reducing data loss.
[0026] In step S210, receive the message information of each active pseudowire in the active link.
[0027] In step S220, in response to the exception of the message information, close the active link and activate the standby link corresponding to the active link.
[0028] In an exemplary embodiment, referring to Figure 3 as shown, the above active / standby link switching method can be executed by a processor. Among them, the above processor may include a forwarding layer 11, an intermediate layer 12, and a protocol layer 13. Among them, the above forwarding layer 11 can respond to the exception information in the active link and obtain the exception message information of each active pseudowire in the active link.
[0029] Specifically, the message information of each active pseudowire in the above active link can be utilized by the forwarding layer 11. Among them, the above message information may be BFD (Bidirectional Forwarding Detection) message information, and it is judged. When the exception message information is abnormal, that is, when a link failure is detected, the above active link is closed, and the standby link related to the active link is activated, so that the active pseudowires are batch switched to the standby pseudowires.
[0030] In this exemplary embodiment, when the forwarding layer 11 detects that the message information is abnormal, it can sequentially upload the above exception message information to the above intermediate layer 12. Among them, the reporting order of each exception message information is random or can be set according to user requirements, and no specific limitation is made in this exemplary real-time manner.
[0031] In this exemplary embodiment, when the intermediate layer 12 receives the above exception message information, it will notify the forwarding layer to close the above active link and activate the above standby link, batch complete the active / standby switching of the pseudowires, that is, batch complete the process of switching the active pseudowires to the standby pseudowires. At the same time, the intermediate layer 12 can report the above exception message information to the above protocol layer 13.
[0032] In this exemplary embodiment, the intermediate layer 12 may be the software layer of the processor. Specifically, the intermediate layer 12 may generate a switching control instruction according to the above abnormal message information, and feedback the switching control instruction to the forwarding layer 11. Then, the forwarding layer 11 completes the switching from the primary link to the backup link according to the above switching control instruction, and further completes the primary / backup switching of all the pseudowires carried in the primary link.
[0033] In step S230, according to the abnormal message information, the VPN services of each of the primary pseudowires are sequentially switched to the backup pseudowires corresponding to each of the primary pseudowires.
[0034] In an exemplary embodiment of the present disclosure, after receiving the above abnormal message information, the intermediate layer 12 may report the above abnormal message information to the protocol layer 13, so that the protocol layer 13 can sequentially switch the VPN services of each of the primary pseudowires to the backup pseudowires corresponding to each of the primary pseudowires according to the above abnormal message information.
[0035] In another exemplary embodiment, the intermediate layer 12 may directly generate a protocol switching signal corresponding to each abnormal message information, and the protocol layer 13 completes the switching of the VPN service according to the above protocol switching signal.
[0036] Specifically, referring to Figure 3 , when the protocol layer 13 receives the abnormal message information, it may adjust the status value of the primary pseudowire corresponding to the above abnormal message information to DOWN, and adjust the status value of the backup pseudowire corresponding to the above abnormal message information to UP, so as to complete the conversion of the VPN service of the primary pseudowire to the above backup pseudowire.
[0037] In this exemplary embodiment, the protocol layer 13 can generate a switching process display interface when converting the VPN service, and the above switching process display interface can display the switching progress of the above VPN service.
[0038] In this exemplary embodiment, multiple backup pseudowires in the above backup link may be connected to the same device or to different devices. For example, each backup pseudowire is connected to one device. For example, N - 1 backup pseudowires are respectively connected to devices 3 to device N. Device 1 may be the device where the above processor is located, that is, the device of the data sender; or every two backup pseudowires are connected to one device, etc. It can also be customized according to user requirements and is not specifically limited in this exemplary embodiment.
[0039] In this exemplary embodiment, referring to Figure 4 shown, the above primary / backup pseudowire switching method is specifically described.
[0040] Specifically, step S410 can be executed first. The OAM processor of the forwarding layer 11 detects through the BFD exception message information of each primary pseudowire, and then step S420 is executed to determine whether the above primary link is abnormal. If so, step S430 is executed to notify the intermediate layer 12 of the failure of each primary pseudowire and execute subsequent steps. If not, it ends. Then step S440 can be executed to determine whether the intermediate layer 12 receives the primary pseudowire failure information for the first time. If so, steps S450 and S460 are executed simultaneously to report to the protocol layer 13 for the switching of the primary and standby pseudowire VPN services. The intermediate layer 12 notifies the forwarding layer 11 to complete the switching of the primary and standby links. If not, step S470 is executed to notify the protocol layer 13 to perform the switching of the primary and standby pseudowire VPN services for the remaining primary pseudowires.
[0041] In the present exemplary embodiment, a primary and standby pseudowire switching device is further provided. Referring to Figure 3 as shown, it may include a forwarding layer 11, an intermediate layer 12, and a protocol layer 13. Among them, the above forwarding layer 11 is used to receive the message information of each primary pseudowire in the primary link, and in response to the exception of the exception message information, send the exception message information to the intermediate layer 12. The intermediate layer 12 can be used to receive the exception message information and generate a switching control instruction according to the exception message information, so that the forwarding layer 11 closes the primary link and opens the standby link corresponding to the primary link, and at the same time reports the exception message information to the protocol layer 13. The protocol layer 13 can be used to sequentially switch the VPN services of each primary pseudowire to the standby pseudowires respectively corresponding to each primary pseudowire according to the exception message information.
[0042] In the present exemplary embodiment, the message information of each primary pseudowire in the above primary link of the forwarding layer 11 can be utilized. Among them, the above message information can be BFD (Bidirectional Forwarding Detection) exception message information, and it is judged. When the message information is abnormal, that is, when a link failure is detected, the above primary link is closed and the standby link related to the primary link is started.
[0043] In the present exemplary embodiment, when the forwarding layer 11 detects that the message information is abnormal, the above abnormal message information can be sequentially uploaded to the above intermediate layer 12. Among them, the reporting order of each abnormal message information is random or can be set according to user requirements, and no specific limitation is made in the present exemplary real-time manner.
[0044] In the present exemplary embodiment, when the intermediate layer 12 receives the above abnormal message information, it closes the above primary link, opens the above standby link, and batch-completes the primary and standby switching of the pseudowire. At the same time, the intermediate layer 12 can report the above abnormal message information to the above protocol layer 13.
[0045] In this exemplary embodiment, the middle layer 12 may be the software layer of the processor. Specifically, the middle layer 12 may generate a handover control instruction according to the above abnormal message information, and feedback the handover control instruction to the forwarding layer 11, and the forwarding layer 11 completes the handover from the primary link to the standby link according to the above handover control instruction.
[0046] In an exemplary embodiment of the present disclosure, after receiving the above abnormal message information, the middle layer 12 may report the above abnormal message information to the protocol layer 13, so that the protocol layer 13 can sequentially switch the VPN services of each primary pseudowire to the standby pseudowires respectively corresponding to each primary pseudowire according to the above abnormal message information.
[0047] Specifically, referring to Figure 3 , when the protocol layer 13 receives the abnormal message information, it may adjust the status value of the primary pseudowire corresponding to the above abnormal message information to DOWN, and adjust the status value of the standby pseudowire corresponding to the above abnormal message information to UP, so as to complete the conversion of the VPN service of the primary pseudowire to the above standby pseudowire.
[0048] In this exemplary embodiment, the protocol layer 13 can generate a handover process display interface when converting the VPN service, and the handover process display interface can display the handover progress of the above VPN service.
[0049] In this exemplary embodiment, multiple standby pseudowires in the above standby link may be connected to the same device or different devices. For example, each standby pseudowire is connected to one device. For example, N-1 standby pseudowires are respectively connected to devices 3 to device N. Device 1 may be the device where the above processor is located, that is, the device of the data sender; or every two standby pseudowires may be connected to one device, etc. It can also be customized according to user needs and is not specifically limited in this exemplary embodiment.
[0050] It should be noted that the above devices 2 to device N may be multiple receiving units in a terminal. When device 2 is abnormal, the data reception of the above terminal can be completed through devices 3 to device N.
[0051] In summary, in this exemplary embodiment, compared with the prior art, when a link anomaly occurs, the primary link is directly switched to the standby link. At the same time, according to the anomaly message information of each primary pseudowire, the VPN services of each primary pseudowire are sequentially switched to the standby pseudowires respectively corresponding to the primary pseudowires, achieving batch switching of the primary and standby pseudowires, improving the switching speed of the primary and standby pseudowires, enhancing the switching efficiency, and reducing data loss. When the intermediate layer 12 receives the anomaly message information in this solution, a control instruction is directly issued by the intermediate layer 12 to cause the forwarding layer 11 to complete the switching of the primary link to the standby link. At the same time, the anomaly message information is reported to the protocol layer 13, and the protocol layer 13 completes the switching of the VPN service, enabling batch completion of the switching of the primary and standby pseudowires, enhancing the switching efficiency, and further reducing data loss during the switching of the primary and standby pseudowires.
[0052] The exemplary embodiment of the present disclosure further provides an electronic device for executing the above primary and standby pseudowire switching method. The electronic device may include a processor and a memory. The memory is used to store executable instructions of the processor, and the processor is configured to execute the above image quality evaluation method by executing the executable instructions.
[0053] Next, taking the mobile terminal 500 in Figure 5 as an example, the structure of the electronic device will be described exemplarily. Those skilled in the art should understand that, except for components specifically for mobile purposes, Figure 5 the structure in
[0054] can also be applied to fixed-type devices. Figure 5 As shown in
[0055] The processor 501 may include one or more processing units. For example, the processor 510 may include an AP (Application Processor), a modem processor, a GPU (Graphics Processing Unit), an ISP (Image Signal Processor), a controller, an encoder, a decoder, a DSP (Digital Signal Processor), a baseband processor, and / or an NPU (Neural-Network Processing Unit), etc. The image quality evaluation method in this exemplary embodiment may be executed by the AP, the GPU, or the DSP. When the method involves neural network-related processing, it may be executed by the NPU.
[0056] Among them, the processor 501 may include a forwarding layer, an intermediate layer, and a protocol layer. The forwarding layer 11 is used to receive the packet information of each primary pseudowire in the primary link, and in response to the exception of the exception packet information, send the exception packet information to the intermediate layer 12. The intermediate layer 12 may be used to receive the exception packet information and generate a handover control instruction according to the exception packet information, so that the forwarding layer 11 closes the primary link and opens the standby link corresponding to the primary link. At the same time, the exception packet information is reported to the protocol layer 13. The protocol layer 13 may be used to sequentially switch the VPN services of each primary pseudowire to the standby pseudowires respectively corresponding to each primary pseudowire according to the exception packet information.
[0057] The processor 501 may be connected to the memory 502 or other components through the bus 503.
[0058] The memory 502 may be used to store computer-executable program code, and the executable program code includes instructions. The processor 501 executes various functional applications and data processing of the mobile terminal 500 by running the instructions stored in the memory 502. The memory 502 may also store application data, such as storing files such as images and videos.
[0059] The communication function of the mobile terminal 500 may be implemented by a mobile communication module 504, an antenna 1, a wireless communication module 505, an antenna 2, a modem processor, a baseband processor, etc. The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. The mobile communication module 504 may provide mobile communication solutions such as 5G, 3G, 4G, 5G, etc. applied to the mobile terminal 500. The wireless communication module 505 may provide wireless communication solutions such as wireless local area network, Bluetooth, and near field communication applied to the mobile terminal 500.
[0060] The display screen 506 is used to implement display functions, such as displaying user interfaces, images, videos, etc. The camera module 507 is used to implement shooting functions, such as shooting images, videos, etc. The audio module 508 is used to implement audio functions, such as playing audio, collecting voices, etc. The power module 509 is used to implement power management functions, such as charging the battery, powering the device, monitoring the battery status, etc. The sensor module 510 may include a depth sensor 5101, a pressure sensor 5102, a gyroscope sensor 5103, a barometric pressure sensor 5104, etc., to implement corresponding sensing and detection functions.
[0061] It should be noted that the above-mentioned drawings are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, rather than for limiting purposes. It is easy to understand that the processes shown in the above-mentioned drawings do not indicate or limit the chronological order of these processes. Additionally, it is also easy to understand that these processes may be executed synchronously or asynchronously in, for example, multiple modules.
[0062] Those skilled in the art to which the present disclosure pertains can understand that various aspects of the present disclosure can be implemented as a system, a method, or a program product. Therefore, various aspects of the present disclosure can be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software aspects, which can be collectively referred to herein as "circuitry", "module", or "system".
[0063] The exemplary embodiments of the present disclosure also provide a computer-readable storage medium, on which a program product capable of implementing the above methods of this specification is stored. In some possible implementation manners, various aspects of the present disclosure can also be implemented in the form of a program product, which includes program code. When the program product runs on a terminal device, the program code is used to cause the terminal device to execute the steps according to various exemplary embodiments of the present disclosure described in the "Exemplary Method" section of this specification.
[0064] It should be noted that the computer-readable medium shown in the present disclosure can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0065] In this disclosure, a computer-readable storage medium can be any tangible medium that contains or stores a program, which can be used by or in conjunction with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on a computer-readable medium can be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0066] In addition, program code for performing the operations of this disclosure can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and also including conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computing device, partially on the user's device, executed as a stand-alone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device can be connected to the user's computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or, it can be connected to an external computing device (for example, by using an Internet service provider to connect through the Internet).
[0067] Those skilled in the art will readily conceive of other embodiments of this disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include known common knowledge or conventional technical means in this technical field not disclosed in this disclosure. The specification and examples are only to be considered as exemplary, and the true scope and spirit of this disclosure are pointed out by the claims.
[0068] It should be understood that this disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is only limited by the appended claims.
Claims
1. A method for primary and standby pseudowire switching, characterized in that including: Receiving message information of each primary pseudowire in the primary link; Responding to the abnormality of the message information, closing the primary link, and activating a standby link corresponding to the primary link; According to the abnormal message information, sequentially switching the VPN services of each of the primary pseudowires to the standby pseudowires respectively corresponding to each of the primary pseudowires; Wherein, the responding to the abnormality of the message information, closing the primary link, and activating a standby link corresponding to the primary link includes: Using the forwarding layer to receive the message information of the primary pseudowire, and when the message information is abnormal, transmitting the abnormal message information to the middle layer; Controlling, through the middle layer, the forwarding layer to close the primary link and activate a standby link corresponding to the primary link; and simultaneously reporting the abnormal message information to the protocol layer, so that the protocol layer, according to the abnormal message information, sequentially switches the VPN services of each of the primary pseudowires to the standby pseudowires respectively corresponding to each of the primary pseudowires.
2. The method according to claim 1, wherein Closing the primary link and activating a standby link corresponding to the primary link includes: The middle layer receives the abnormal message information, generates a switching control instruction according to the abnormal message information, and the forwarding layer closes the primary link and activates a standby link corresponding to the primary link according to the switching control instruction.
3. The method according to claim 1, characterized in that, Before sequentially switching the VPN services of each of the primary pseudowires to the standby pseudowires respectively corresponding to each of the primary pseudowires according to the abnormal message information, the method further includes: Determining the reporting order of the abnormal message information corresponding to each of the primary pseudowires.
4. The method according to claim 3, characterized in that, The sequentially switching the VPN services of each of the primary pseudowires to the standby pseudowires respectively corresponding to each of the primary pseudowires according to the abnormal message information includes: According to the reporting order of the abnormal message information, sequentially switching the VPN services of each of the primary pseudowires to the standby pseudowires respectively corresponding to each of the primary pseudowires.
5. The method according to claim 1, wherein The method further includes: Generating a switching process display interface and displaying the switching progress of the VPN service.
6. A primary / backup pseudowire switching device, characterized in that including: A forwarding layer, configured to receive message information of each primary pseudowire in the primary link, and respond to the abnormality of the message information, and send the abnormal message information to the middle layer; A middle layer, configured to receive the abnormal message information, and generate a switching control instruction according to the abnormal message information, so that the forwarding layer closes the primary link and activates a standby link corresponding to the primary link according to the switching control instruction, and simultaneously reports the abnormal message information to the protocol layer; A protocol layer, configured to sequentially switch the VPN services of each of the primary pseudowires to the standby pseudowires respectively corresponding to each of the primary pseudowires according to the abnormal message information.
7. The device according to claim 6, wherein, The forwarding layer determines the reporting order of the abnormal message information corresponding to each of the primary pseudowires, so that the protocol layer sequentially switches the VPN services of each of the primary pseudowires to the standby pseudowires respectively corresponding to each of the primary pseudowires according to the reporting order of the abnormal message information.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by a processor, it implements the primary and standby pseudowire switching method according to any one of claims 1 to 5.
9. An electronic device, characterized in that, including: One or more processors; And A memory for storing one or more programs, which, when executed by the one or more processors, cause the one or more processors to implement the primary / backup pseudowire switching method according to any one of claims 1 to 5.
Citation Information
Patent Citations
A service protection method and access device
CN102282805A