A tunnel-protected lossless split method and apparatus
By generating a backup tunnel and switching services to the backup path before refreshing the pseudowire, the problem of service loss during tunnel protection splitting is solved, lossless splitting is achieved, and the reliability and flexibility of service transmission are improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- FIBERHOME TELECOMMUNICATION TECHNOLOGIES CO LTD
- Filing Date
- 2023-06-09
- Publication Date
- 2026-07-14
Smart Images

Figure CN116866158B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a non-destructive disassembly method and apparatus for tunnel protection. Background Technology
[0002] In the PTN communication field, information transmission tunnels are distributed with or without protection. When a service is bound to a tunnel, protection is added to the tunnel if it is currently unprotected. For example... Figure 1 As shown, when a tunnel is deployed in a protected manner, tunnel1 containing path LSP1 and tunnel2 containing path LSP2 are bound together to generate a protected tunnel1. In tunnel1, path LSP1 is the primary path and path LSP2 is the backup path. The protection group consisting of LSP1 and LSP2 is normally transmitted in the primary path LSP1. When the primary path LSP1 fails, the service is switched to the backup path LSP2 to ensure normal service transmission. After the primary path LSP1 is repaired, the service can be switched back to the primary path LSP1 for transmission.
[0003] However, when the primary path LSP1 fails and cannot be repaired, if we want to split the primary path LSP1 and the backup path LSP2 in tunnel1, use the backup path LSP2 as the primary path, and then bind it to a new tunnel to generate a protection group, since the service is transmitted on the backup path LSP2 at this time, splitting the primary path LSP1 and the backup path LSP2 requires deleting or redoing the service, which will inevitably lead to packet loss and loss of the service.
[0004] Therefore, how to avoid business losses during tunnel protection splitting is a technical problem that needs to be solved. Summary of the Invention
[0005] The main objective of this application is to provide a lossless splitting method and apparatus for tunnel protection, which aims to solve the technical problem that splitting the primary and backup paths of a tunnel path protection group will cause service loss when services are transmitted on backup paths in a tunnel.
[0006] In a first aspect, this application provides a non-destructive method for disassembling tunnel protection, wherein the primary path LSP1 and the backup path LSP2 of the tunnel protection are both located in the primary tunnel 1. The method includes the following steps:
[0007] Generate a backup tunnel tunnel2, wherein the path in the backup tunnel tunnel2 points to the backup path LSP2 in the primary tunnel tunnel1 that needs to be split;
[0008] After the service is switched from the primary path LSP1 in the primary tunnel 1 to the backup path LSP2 for transmission, the pseudowire PW carrying the service is refreshed from the primary tunnel 1 to the backup tunnel 2 so that the service can be transmitted on the path of the backup tunnel 2.
[0009] The primary path LSP1 and the backup path LSP2 in the primary tunnel 1 are split.
[0010] In some embodiments, generating the backup tunnel 2 includes:
[0011] When the tunnel corresponding to the primary path LSP1 and the tunnel corresponding to the backup path LSP2 are bound together to form a protection group, and the primary tunnel tunnel1 is generated, the tunnel corresponding to the backup path LSP2 is copied to generate the backup tunnel tunnel2.
[0012] In some embodiments, after splitting the primary path LSP1 and the backup path LSP2 in the primary tunnel 1, the method further includes:
[0013] The backup tunnel 2 is used as the primary tunnel, and the third tunnel 3 is used as the backup tunnel, forming a new tunnel protection group.
[0014] In some embodiments, after splitting the primary path LSP1 and the backup path LSP2 in the primary tunnel 1, the method further includes:
[0015] The backup tunnel 2 is used as the primary tunnel, and the split primary tunnel 1 is used as the backup tunnel, and they are bound together to form a new tunnel protection group.
[0016] In some embodiments, after splitting the primary path LSP1 and the backup path LSP2 in the primary tunnel 1, the method further includes:
[0017] If the primary path LSP1 has an unrepairable fault, then the split primary tunnel tunnel1 will be deleted.
[0018] In some embodiments, the step of refreshing the pseudowire PW carrying the service from the primary tunnel 1 to the backup tunnel 2 includes:
[0019] The first-level forwarding equivalence class (FEC) of the service is refreshed from the primary tunnel (tunnel1) to the backup tunnel (tunnel2), so that the pseudowire (PW) is refreshed to the backup tunnel (tunnel2).
[0020] Secondly, this application also provides a non-destructive splitting device for tunnel protection, wherein the primary path LSP1 and the backup path LSP2 of the tunnel protection are both located in the primary tunnel 1. The device includes:
[0021] A generation module is used to generate a backup tunnel 2, wherein the path in the backup tunnel 2 points to the backup path LSP2 in the primary tunnel 1 that needs to be split.
[0022] The transfer module is used to refresh the pseudowire PW carrying the service from the primary tunnel tunnel1 to the backup tunnel tunnel2 after the service is switched from the primary path LSP1 in the primary tunnel tunnel1 to the backup path LSP2 for transmission, so that the service can be transmitted on the path of the backup tunnel tunnel2.
[0023] The splitting module is used to split the primary path LSP1 and the backup path LSP2 in the primary tunnel 1.
[0024] In some embodiments, the generation module is further configured to:
[0025] When the tunnel corresponding to the primary path LSP1 and the tunnel corresponding to the backup path LSP2 are bound together to form a protection group, and the primary tunnel tunnel1 is generated, the tunnel corresponding to the backup path LSP2 is copied to generate the backup tunnel tunnel2.
[0026] In some embodiments, the device is also used for:
[0027] After splitting the primary path LSP1 and the backup path LSP2 in the primary tunnel 1, the backup tunnel 2 is used as the primary tunnel and the third tunnel 3 is used as the backup tunnel, and they are bound together to form a new tunnel protection group.
[0028] In some embodiments, the device is also used for:
[0029] After splitting the primary path LSP1 and the backup path LSP2 in the primary tunnel 1, the backup tunnel 2 is used as the primary tunnel, and the split primary tunnel 1 is used as the backup tunnel, and they are bound together to form a new tunnel protection group.
[0030] This application provides a lossless splitting method for tunnel protection. When both the primary path LSP1 and the backup path LSP2 are in the primary tunnel 1, a backup tunnel 2 is generated, wherein the path in the backup tunnel 2 points to the backup path LSP2 in the primary tunnel 1 that needs to be split. After the service is switched from the primary path LSP1 in the primary tunnel 1 to the backup path LSP2 for transmission, the pseudowire PW carrying the service is refreshed from the primary tunnel 1 to the backup tunnel 2, so that the service can be transmitted on the path in the backup tunnel 2. The primary path LSP1 and the backup path LSP2 in the primary tunnel 1 are then split. This method achieves the splitting of the primary and backup paths of the path protection group when the service is transmitted on the backup path of the tunnel's path protection group, ensuring lossless service transmission. Attached Figure Description
[0031] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0032] Figure 1 A schematic diagram of the tunnel deployment process with protection measures in place;
[0033] Figure 2 This is a diagram illustrating the business loss during path splitting.
[0034] Figure 3 A flowchart illustrating a non-destructive disassembly method for tunnel protection provided in an embodiment of this application;
[0035] Figure 4 A schematic diagram illustrating the specific process of non-destructive disassembly of tunnel protection provided in an embodiment of this application;
[0036] Figure 5 This is a schematic block diagram of a non-destructive dismantling device for tunnel protection.
[0037] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0038] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0039] The flowchart shown in the attached diagram is for illustrative purposes only and does not necessarily include all content and operations / steps, nor does it necessarily have to be performed in the described order. For example, some operations / steps can be broken down, combined, or partially merged, so the actual execution order may change depending on the actual situation.
[0040] This application provides a non-destructive dismantling method and apparatus for tunnel protection.
[0041] The following detailed description of some embodiments of this application is provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.
[0042] It is worth noting that, such as Figure 2 As shown, when a service is switched to the backup path LSP2 in tunnel1, if the primary path LSP1 and the backup path LSP2 in tunnel1 are split, since the service pseudowire (PW) is bound to tunnel1, and the primary path of tunnel1 is the primary path LSP1, directly splitting the primary path LSP1 and the backup path LSP2 on tunnel1 will result in the backup path LSP2 lacking a tunnel layer, thus causing the service to fail. The service can only be deleted or redone, which will inevitably lead to packet loss and loss.
[0043] Please refer to Figure 3 , Figure 3 This is a flowchart illustrating a non-destructive disassembly method for tunnel protection, provided as an embodiment of this application.
[0044] like Figure 3 As shown, the overall idea of this method includes steps S1 to S3.
[0045] Step S1: Generate a backup tunnel 2, wherein the path in the backup tunnel 2 points to the backup path LSP2 in the primary tunnel 1 that needs to be split.
[0046] Specifically, when the tunnel corresponding to the primary path LSP1 and the tunnel corresponding to the backup path LSP2 are bound together to form a protection group and the primary tunnel tunnel1 is generated, the tunnel corresponding to the backup path LSP2 is copied to generate the backup tunnel tunnel2.
[0047] Exemplary, such as Figure 4 As shown, when a tunnel is deployed with protection, a tunnel with a primary path LSP1 and a tunnel with a backup path LSP2 are deployed simultaneously. The two tunnels are then bound together as a protection group, generating a tunnel including the primary path LSP1 and the backup path LSP2. For ease of description, this embodiment names this tunnel the primary tunnel tunnel1. Path protection is formed between the primary path LSP1 and the backup path LSP2. When the two tunnels are bound together as a protection group, the tunnel with the backup path LSP2 is copied to generate an identical tunnel, which serves as a backup for the primary tunnel tunnel1. In this embodiment, the copied tunnel is named the backup tunnel tunnel2. The copied backup tunnel tunnel2 includes a path that points to the backup path LSP2. Therefore, it can be understood that the path in the backup tunnel tunnel2 is actually the same path as the backup path LSP2 in the primary tunnel tunnel1.
[0048] It is worth noting that the backup tunnel 2 obtained by duplication is protected between the primary tunnel 1 and the tunnel 2, so tunnel resources will not be wasted.
[0049] Step S2: After the service is switched from the primary path LSP1 in the primary tunnel 1 to the backup path LSP2 for transmission, the pseudowire PW carrying the service is refreshed from the primary tunnel 1 to the backup tunnel 2 so that the service can be transmitted on the path of the backup tunnel 2.
[0050] Specifically, the process of updating the pseudowire (PW) carrying the service from the primary tunnel (tunnel1) to the backup tunnel (tunnel2) includes updating the first-level forwarding equivalence class (FEC) of the service from the primary tunnel (tunnel1) to the backup tunnel (tunnel2), thereby updating the pseudowire (PW) to the backup tunnel (tunnel2) and enabling the service to be transmitted in the same way on the backup tunnel (tunnel2) as it was on the primary tunnel (tunnel1). Here, the pseudowire (PW) is a Layer 2 frame label switching path used to establish an MPLS L2VPN. The FEC (Forwarding Equivalent Class) represents a forwarding equivalence class; packets with the same forwarding processing method are grouped together, forming a single forwarding equivalence class.
[0051] Step S3: Split the primary path LSP1 and the backup path LSP2 in the primary tunnel 1.
[0052] It is worth noting that after switching the service transmission from the primary path LSP1 to the backup path LSP2, before the pseudowire PW carrying the service is refreshed from the primary tunnel 1 to the backup tunnel 2, the service is transmitted normally on the backup path LSP2 in the primary tunnel 1. After refreshing the pseudowire PW carrying the service from the primary tunnel 1 to the backup tunnel 2, the service travels along the path in the backup tunnel 2. Since the backup path LSP2 in the primary tunnel 1 and the path in the backup tunnel 2 (also referred to as LSP2) are the same path, it will not affect the service, and the service remains unaffected. Furthermore, after refreshing the pseudowire PW carrying the service from the primary tunnel 1 to the backup tunnel 2, so that the service is transmitted on the path in the backup tunnel 2, the service does not travel in the primary tunnel 1. Therefore, splitting the primary path LSP1 and the backup path LSP2 in the primary tunnel, or arbitrarily manipulating the path in the primary tunnel 1, will not affect the service. This enables the splitting of the primary and backup paths of the path protection group when services are transmitted on the backup path of the tunnel's path protection group, ensuring uninterrupted service transmission.
[0053] After splitting the primary path LSP1 and the backup path LSP2 in the primary tunnel 1, what remains is only the primary tunnel 1 without protection, which contains only the primary path LSP1. The split backup path LSP2 and the backup tunnel 2 share the same path, therefore the backup tunnel 2 is also unprotected.
[0054] In some embodiments, after splitting the primary path LSP1 and the backup path LSP2 in the primary tunnel 1, if the split primary tunnel 1 functions normally, the backup tunnel 2 can be used as the primary tunnel, and the split primary tunnel 1 can be used as the backup tunnel, binding them together to form a new tunnel protection group. Alternatively, if the primary path LSP1 has an unrepairable fault, the split primary tunnel 1 is deleted, the backup tunnel 2 is used as the primary tunnel, and the third tunnel 3 is used as the backup tunnel, binding the backup tunnel 2 and the third tunnel 3 together to form a new tunnel protection group. Even when the split primary tunnel 1 functions normally, the backup tunnel 2 can also be used as the primary tunnel, and the third tunnel 3 can be used as the backup tunnel, binding them together to form a new tunnel protection group, reserving the split primary tunnel 1 for other uses.
[0055] In some embodiments, path fault detection can be performed through the Operation Management and Maintenance (OAM) module, and the Automatic Protection Switching (ASP) module can switch services from the primary path LSP1 in the primary tunnel 1 to the backup path LSP2 for transmission. The OAM module consists of three parts: Operation, Administration, and Maintenance, and is used for testing, analyzing, predicting, planning, and configuring services and the network. The Automatic Protection Switching (APS) module is used to automatically switch over based on channel condition detected by OAM messages to protect the link. The OAM and APS modules create OAM and APS messages when transitioning from unprotected to protected conditions to detect link status and send protection switching actions.
[0056] The method of this application can be applied to a variety of scenarios, and can achieve business continuity when the path protection group is split in multiple scenarios. The following is an explanation of each scenario.
[0057] In a specific embodiment, when a service is in the primary tunnel 1, if it is desired to reserve the path in the backup tunnel 2 generated by replication for other purposes, since the relationship between the backup tunnel 2 and the primary tunnel 1 is a tunnel protection, there is no need to delete or create the service. The service can be directly split without affecting the service, ensuring that the service is undamaged.
[0058] In one specific embodiment, services begin transmission on the primary path LSP1 of the primary tunnel 1. When the primary path LSP1 fails, services are switched to the backup path LSP2 of the primary tunnel 1. Since the primary path LSP1 is unrepairable and cannot provide protection for the services, to provide protection for the services, a backup tunnel 2 can be generated by lossless splitting and copying the tunnel protection method provided in this application, and then used for service transmission. This involves splitting the primary path LSP1 and the backup path LSP2 in the primary tunnel 1, and then regenerating the protection group with the copied backup tunnel 2 and another tunnel 3, resulting in lossless service transmission. Alternatively, if the primary path LSP1 is not faulty, and it is desired to repurpose the primary path LSP1 of the primary tunnel 1, services can be switched from the primary path LSP1 to the backup path LSP2 for transmission, and tunnel protection splitting can be performed using the method described above, resulting in lossless service transmission.
[0059] It is worth noting that the non-destructive disassembly method for tunnel protection provided in this implementation can be applied to DNX chips that do not support tunnel protection.
[0060] The lossless tunnel protection splitting method provided in this application generates a backup tunnel (tunnel2), where the path in backup tunnel2 points to the backup path (LSP2) in the primary tunnel (tunnel1) to be split. After a service is switched from the primary path (LSP1) in the primary tunnel (tunnel1) to the backup path (LSP2) for transmission, the pseudowire (PW) in the primary tunnel (tunnel1) is refreshed to the backup tunnel (tunnel2) so that the service can be transmitted on the path in the backup tunnel (tunnel2). The primary path (LSP1) and the backup path (LSP2) in the primary tunnel (tunnel1) are then split. This method achieves lossless service transmission by splitting the primary and backup paths of the path protection group when a service is transmitted on the backup path of the tunnel's path protection group. It effectively ensures configuration flexibility, reduces configuration complexity, saves tunnel resources, achieves lossless transmission, and improves equipment quality during service switching.
[0061] Please refer to Figure 5 , Figure 5 A schematic block diagram of a non-destructive dismantling device for tunnel protection provided in an embodiment of this application.
[0062] like Figure 5 As shown, the device includes:
[0063] A generation module is used to generate a backup tunnel 2, wherein the path in the backup tunnel 2 points to the backup path LSP2 in the primary tunnel 1 that needs to be split.
[0064] The transfer module is used to refresh the pseudowire PW carrying the service from the primary tunnel tunnel1 to the backup tunnel tunnel2 after the service is switched from the primary path LSP1 in the primary tunnel tunnel1 to the backup path LSP2 for transmission, so that the service can be transmitted on the path of the backup tunnel tunnel2.
[0065] The splitting module is used to split the primary path LSP1 and the backup path LSP2 in the primary tunnel 1.
[0066] The generation module is further configured to:
[0067] When the tunnel corresponding to the primary path LSP1 and the tunnel corresponding to the backup path LSP2 are bound together to form a protection group, and the primary tunnel tunnel1 is generated, the tunnel corresponding to the backup path LSP2 is copied to generate the backup tunnel tunnel2.
[0068] The device is also used for:
[0069] After splitting the primary path LSP1 and the backup path LSP2 in the primary tunnel 1, the backup tunnel 2 is used as the primary tunnel and the third tunnel 3 is used as the backup tunnel, and they are bound together to form a new tunnel protection group.
[0070] The device is also used for:
[0071] After splitting the primary path LSP1 and the backup path LSP2 in the primary tunnel 1, the backup tunnel 2 is used as the primary tunnel, and the split primary tunnel 1 is used as the backup tunnel, and they are bound together to form a new tunnel protection group.
[0072] The device is also used for:
[0073] After splitting the primary path LSP1 and the backup path LSP2 in the primary tunnel 1, if the primary path LSP1 has an unrepairable fault, the split primary tunnel 1 will be deleted.
[0074] The device is also used for:
[0075] The first-level forwarding equivalence class (FEC) of the service is refreshed from the primary tunnel (tunnel1) to the backup tunnel (tunnel2), so that the pseudowire (PW) is refreshed to the backup tunnel (tunnel2).
[0076] It should be noted that those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the above-described device and its modules and units can be referred to the corresponding processes in the foregoing embodiments, and will not be repeated here.
[0077] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0078] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments. The above descriptions are merely specific implementations of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A non-destructive disassembly method for tunnel protection, characterized in that, Both the primary path LSP1 and the backup path LSP2 for tunnel protection are located in the primary tunnel 1. The method includes: Generate a backup tunnel 2, wherein the path in the backup tunnel 2 points to the backup path LSP2 in the primary tunnel 1 that needs to be split; After the service is switched from the primary path LSP1 in the primary tunnel 1 to the backup path LSP2 for transmission, the pseudowire PW carrying the service is refreshed from the primary tunnel 1 to the backup tunnel 2 so that the service can be transmitted on the path of the backup tunnel 2. The primary path LSP1 and the backup path LSP2 in the primary tunnel 1 are split; The generation of the backup tunnel tunnel2 includes: When the tunnel corresponding to the primary path LSP1 and the tunnel corresponding to the backup path LSP2 are bound together to form a protection group, and the primary tunnel tunnel1 is generated, the tunnel corresponding to the backup path LSP2 is copied to generate the backup tunnel tunnel2.
2. The non-destructive disassembly method for tunnel protection according to claim 1, characterized in that, After splitting the primary path LSP1 and the backup path LSP2 in the primary tunnel 1, the method further includes: The backup tunnel 2 is used as the primary tunnel, and the third tunnel 3 is used as the backup tunnel, forming a new tunnel protection group.
3. The non-destructive disassembly method for tunnel protection according to claim 1, characterized in that, After splitting the primary path LSP1 and the backup path LSP2 in the primary tunnel 1, the method further includes: The backup tunnel 2 is used as the primary tunnel, and the split primary tunnel 1 is used as the backup tunnel, and they are bound together to form a new tunnel protection group.
4. The non-destructive disassembly method for tunnel protection according to claim 1, characterized in that, After splitting the primary path LSP1 and the backup path LSP2 in the primary tunnel 1, the method further includes: If the primary path LSP1 has an unrepairable fault, then the split primary tunnel tunnel1 will be deleted.
5. The non-destructive disassembly method for tunnel protection according to claim 1, characterized in that, The step of updating the pseudowire PW carrying the service from the primary tunnel 1 to the backup tunnel 2 includes: The first-level forwarding equivalence class (FEC) of the service is refreshed from the primary tunnel (tunnel1) to the backup tunnel (tunnel2), so that the pseudowire (PW) is refreshed to the backup tunnel (tunnel2).
6. A non-destructive dismantling device for tunnel protection, characterized in that, The primary path LSP1 and the backup path LSP2 for tunnel protection are both located in the primary tunnel 1. The device includes: A generation module is used to generate a backup tunnel 2, wherein the path in the backup tunnel 2 points to the backup path LSP2 in the primary tunnel 1 that needs to be split. The transfer module is used to refresh the pseudowire PW carrying the service from the primary tunnel tunnel1 to the backup tunnel tunnel2 after the service is switched from the primary path LSP1 in the primary tunnel tunnel1 to the backup path LSP2 for transmission, so that the service can be transmitted on the path of the backup tunnel tunnel2. A splitting module is used to split the primary path LSP1 and the backup path LSP2 in the primary tunnel 1. The generation module is further configured to: When the tunnel corresponding to the primary path LSP1 and the tunnel corresponding to the backup path LSP2 are bound together to form a protection group, and the primary tunnel tunnel1 is generated, the tunnel corresponding to the backup path LSP2 is copied to generate the backup tunnel tunnel2.
7. The non-destructive dismantling device for tunnel protection according to claim 6, characterized in that, This device is also used for: After splitting the primary path LSP1 and the backup path LSP2 in the primary tunnel 1, the backup tunnel 2 is used as the primary tunnel and the third tunnel 3 is used as the backup tunnel, and they are bound together to form a new tunnel protection group.
8. The non-destructive dismantling device for tunnel protection according to claim 6, characterized in that, This device is also used for: After splitting the primary path LSP1 and the backup path LSP2 in the primary tunnel 1, the backup tunnel 2 is used as the primary tunnel, and the split primary tunnel 1 is used as the backup tunnel, and they are bound together to form a new tunnel protection group.