WO2017066971A1 - Method and device for removing a residual label switching path (lsp) - Google Patents

Method and device for removing a residual label switching path (lsp) Download PDF

Info

Publication number
WO2017066971A1
WO2017066971A1 PCT/CN2015/092586 CN2015092586W WO2017066971A1 WO 2017066971 A1 WO2017066971 A1 WO 2017066971A1 CN 2015092586 W CN2015092586 W CN 2015092586W WO 2017066971 A1 WO2017066971 A1 WO 2017066971A1
Authority
WO
WIPO (PCT)
Prior art keywords
lsp
current
residual
node
group
Prior art date
Application number
PCT/CN2015/092586
Other languages
French (fr)
Chinese (zh)
Inventor
冯皓宇
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2015/092586 priority Critical patent/WO2017066971A1/en
Publication of WO2017066971A1 publication Critical patent/WO2017066971A1/en

Links

Images

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and apparatus for clearing a residual label switching path LSP.
  • IP bearer network such as routing problems, quality of service (QoS) guarantees, and the like.
  • QoS quality of service
  • the future service is mainly based on bursty data services, and the IP bearer network has insufficient processing capability for such services.
  • ATM Asynchronous Transfer Mode
  • TAG SWITC H IP Traffic Control
  • IP and ATM convergence technologies such as LAN Emulation (LANE), IPOA (IP Over ATM), and Label Switching (TAG SWITC H) can only solve local problems. Take care of the overall situation.
  • a transport network supporting Multiprotocol Label Switching (MPLS) and Generalized Multiprotocol Label Switching (GMPLS) is an open communication network that uses tags to guide data at high speed. , efficient transmission network.
  • multi-protocol means that it can support multiple network switching technologies, such as packet switching, time-switching, and wavelength switching.
  • the value of this label switching technology is to introduce the connection mode feature in a connectionless network, reduce the complexity of the network, and be compatible with existing mainstream network technologies, which can reduce the network cost and provide IP services. Ensure QoS and security.
  • a node detects that a resource occupation state of a link changes, And determining whether the resource occupation status of the two ends of the link is consistent by the Open Shortest Path First (OSPF) or the Constraint-based Shortest Path First (CSPF), if the link is consistent. If the resource usage status of the two ends is inconsistent, the link is determined to be a residual link, and the link is cleared. If the resources at both ends of the link are in the same state, the link is determined to be a normal link. Clean up. However, it is necessary to determine whether the link is deleted by the resource occupancy status of the two ends of the link.
  • OSPF Open Shortest Path First
  • CSPF Constraint-based Shortest Path First
  • both ends are residual resources and the occupied status is the same, the link cannot be determined as a residual link, and the corresponding link cannot be performed. Residual cleaning.
  • the state of the two ends of the link may be updated in the future, resulting in inconsistent state of the two ends of the link, thereby causing the normal link to be misidentified as a residual link.
  • the error cleaned up the normal resources. Therefore, in the prior art, there is a problem that the residual resources cannot be completely cleaned or the residual resources are erroneously cleaned up.
  • the embodiment of the invention provides a method and a device for clearing a residual label switching path LSP, which are used to solve the problem of residual link misjudgment, which cannot effectively clean up residual resources or incorrectly clean up normal resources.
  • the first aspect is a method for clearing a residual label switching path LSP, including:
  • the first node receives a residual LSP clearing request for the current LSP, where the residual LSP clearing request carries at least one parent object encoding information and at least one partner object encoding information, where the parent object encoding information is used to indicate the current LSP a parent path, where the partner object encoding information is used to indicate an alternate path of the current LSP;
  • the first node determines that the LSPs in the same group as the current LSP form the first LSP group according to the path information of all the LSPs that are saved by the first LSP and the residual LSP clearing request.
  • the first LSP group is a set of LSPs established by the same service as the current LSP;
  • the first node, in the first LSP group, the LSP that is not indicated by the residual LSP clearing request is used as the second LSP group, and the LSP in the second LSP group is used as the residual LSP;
  • the first node clears an LSP in the second LSP group.
  • the method further includes:
  • the first node filters out an LSP whose time-scale value of the LSP in the second LSP group is greater than the time-scale value of the current LSP as a non-residual LSP, and the non-residual LSP is from the second LSP group. delete;
  • the residual LSP clearing request further carries a time stamp value of the current LSP, and the time stamp value of the current LSP is used to identify a serial number when the current LSP is newly created.
  • the first node is configured according to a path message of all LSPs saved by the first node and the residual LSP.
  • the clearing request determines that there is an LSP in the same group as the current LSP, including:
  • the LSP that meets the following at least one condition is an LSP that is in the same group as the current LSP according to the path information of all the LSPs that are saved by the first LSP and the residual LSP clearing request:
  • Condition 1 the same as the head node management address of the current LSP
  • Condition 2 the same as the last node management address of the current LSP
  • Condition 3 the identity of the tunnel where the current LSP is located is the same
  • the residual LSP clearing request carries the head node management address of the current LSP, the last node management address of the current LSP, the identity identifier of the tunnel where the current LSP is located, and the path identifier of the current LSP.
  • the first node is in the first LSP group
  • the residual The LSP that is not indicated by the LSP clearing request is used as the second LSP group, including:
  • the first node uses each LSP in the first LSP group as the LSP to be determined, and performs:
  • the first node clears an LSP in the second LSP group, including :
  • the first node performs the LSP in each of the second LSP groups as a residual LSP, and performs:
  • the first node If the first node is the first node in the current LSP, the first node sends a path clearing message for the current residual LSP to the neighboring downstream node of the first node in the current residual LSP; or
  • the first node If the first node is an intermediate node in the current LSP, the first node sends a path clear message for the current residual LSP to the neighboring downstream node of the first node in the current residual LSP. And sending a path error message for the current residual LSP to the neighboring upstream node of the first node in the residual path; or
  • the first node If the first node is the last node in the current LSP, the first node sends a path error message for the current residual LSP to the neighboring upstream node of the first node in the current residual path.
  • an apparatus for clearing a residual label switching path LSP includes:
  • a receiving unit configured to receive a residual LSP clearing request for the current LSP, where the residual LSP clearing request carries at least one parent object encoding information and at least one partner object encoding information, where the parent object encoding information is used to indicate the current a parent path of the LSP, where the partner object encoding information is used to indicate an alternate path of the current LSP;
  • the first LSP group is a set of LSPs established by the same service as the current LSP;
  • the LSP that is not indicated by the residual LSP clearing request in the first LSP group is used as the second LSP group, and the LSP in the second LSP group is used as the residual LSP;
  • a clearing unit configured to clear an LSP in the second LSP group.
  • the clearing unit clears the second Before the LSP in the LSP group, it also includes:
  • a screening unit configured to filter out an LSP whose time-scale value of the LSP in the second LSP group is greater than a time-scale value of the current LSP as a non-residual LSP, and the non-residual LSP from the second LSP group delete;
  • the residual LSP clearing request further carries a time stamp value of the current LSP, and the time stamp value of the current LSP is used to identify a serial number when the current LSP is newly created.
  • the LSP that meets the following at least one condition is an LSP that is in the same group as the current LSP according to the path information of all LSPs that are saved by the LSP and the residual LSP clearing request:
  • Condition 1 the same as the head node management address of the current LSP
  • Condition 2 the same as the last node management address of the current LSP
  • Condition 3 the identity of the tunnel where the current LSP is located is the same
  • the residual LSP clearing request carries the head node management address of the current LSP, the last node management address of the current LSP, the identity identifier of the tunnel where the current LSP is located, and the path identifier of the current LSP.
  • the processing unit is specifically configured to:
  • Each LSP in the first LSP group is used as the LSP to be determined, and respectively:
  • the clearing unit is specifically used to clear an LSP in the second LSP group :
  • the LSP in each of the second LSP groups is used as a residual LSP, and respectively:
  • the device is an intermediate node in the current LSP, send a path clear message for the current residual LSP to the neighboring downstream node of the first node in the current residual LSP, and go to the residual path.
  • An adjacent upstream node of the first node sends a path error message for the current residual LSP;
  • a label switching router in a third aspect, includes a transceiver, a processor, and a memory.
  • the transceiver, the processor, and the memory are connected to each other;
  • the transceiver is configured to receive a residual LSP clearing request for the current LSP, where the residual LSP clearing request carries at least one parent object encoding information and at least one partner object encoding information, where the parent object encoding information is used to indicate a parent path of the current LSP, the partner The object coding information is used to indicate an alternate path of the current LSP;
  • a processor configured to determine, by using a path message of all the LSPs that are saved by the root and the LSP clearing request that is in the same LSP, that the LSPs in the same group as the current LSP form the first LSP group, where the first The LSP group is a set of LSPs established by the same service as the current LSP; and the LSP that is not indicated by the residual LSP clearing request in the first LSP group is used as the second LSP group, and the LSP in the second LSP group is used as a residual LSP; and used to clear the second LSP group LSP;
  • a memory for storing program code executed by the processor.
  • the first node receives a residual LSP clearing request for the current LSP, where the residual LSP clearing request carries at least one parent object encoding information and at least one partner object encoding information, which are preset objects extended in the signaling protocol, the parent object
  • the encoding information is used to indicate the parent path of the current LSP
  • the partner object encoding information is used to indicate the alternate path of the current LSP.
  • the residual LSP clearing request may be carried in the existing LSP establishment request or the refresh request without adding an additional processing procedure.
  • the first node determines that the LSPs in the same group as the current LSP form the first LSP group according to the path information of the LSPs and the residual LSP clearing request that are saved by the first LSP.
  • the first LSP group is the first LSP group.
  • the solution of the present application combines the path information standard object to clear the residual LSPs in the same group of services, and finally implements residual LSP clearing in the entire network.
  • the first node uses the LSP that is not indicated by the residual LSP clearing request in the first LSP group as the second LSP group, and uses the LSP in the second LSP group as the residual LSP, and further uses the time stamp for the LSP in the second LSP group. The value is filtered to make the determination of the residual LSP more accurate. Finally, the first node clears the LSP in the second LSP group. Therefore, the method provided by the embodiment of the invention can achieve the high efficiency of the residual cleaning, and improve the reliability of the residual cleaning and the survivability of the service in the network.
  • 1 is a basic network architecture of an MPLS and GMPLS network in the background art of the present invention
  • FIG. 2 is a flowchart of an overview of clearing a residual label switching path LSP according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a definition of a parent object according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a partner object definition according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a time stamp value definition according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a process of creating a silver-level service according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a process of creating a 1+1 service according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a re-routing process of a silver-level service according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of a process of establishing a re-routing of a 1+1 service according to an embodiment of the present invention.
  • FIG. 10 is a specific flowchart of clearing residual LSPs in a process of returning a diamond service in the embodiment of the present invention.
  • FIG. 11 is a schematic diagram of a routing connection of a returnable diamond service according to an embodiment of the present invention.
  • FIG. 12 is a schematic diagram of a new process of returning a diamond service according to an embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of an apparatus for clearing a residual label switching path LSP according to an embodiment of the present invention.
  • FIG. 14 is a schematic structural diagram of a label switching router according to an embodiment of the present invention.
  • the embodiment of the invention provides a method and a device for clearing a residual label switching path LSP, which are used to solve the problem of residual link misjudgment, which cannot effectively clean up residual resources or incorrectly clean up normal resources.
  • the method and the device are based on the same inventive concept. Since the principles of the method and the device for solving the problem are similar, the implementation of the device and the method can be referred to each other, and the repeated description is not repeated.
  • the residual LSP refers to a protocol soft state control block in which an LSP remains on the control plane
  • the residual resource refers to a resource remaining in the forwarding layer corresponding to the residual LSP, such as an actual wavelength, a channel, a time slot, or Bandwidth, etc.
  • the intermediate node of the path since the intermediate node of the path is unstable, for example, the intermediate node may be in a reset state and cannot process the protocol message, resulting in failure to complete the entire end-to-end LSP. Deletion process, resulting in residue;
  • an embodiment of the present invention provides a method for clearing a residual label switching path LSP, including:
  • Step 200 The first node receives a residual LSP clear request for the current LSP.
  • the residual LSP clearing request carries at least one parent object encoding information and at least one partner object encoding information.
  • the parent object encoding information is used to indicate a parent path of the current LSP, and the partner object encoding information is used to indicate an alternate path of the current LSP.
  • the residual LSP clearing request may be initiated at the same time when the LSP is established, that is, the residual LSP clearing request is carried in the LSP establishment request, or may be initiated when the operator triggers the refresh process for an LSP, that is, the residual LSP is cleared.
  • the request is carried in the LSP refresh request.
  • the parent object and the partner object are both preset objects, and can be represented by a new set of objects extended by the Resource Reservation Protocol (RSVP).
  • RSVP Resource Reservation Protocol
  • the parent object (parent OBJ) is used to indicate the parent path of the current LSP, that is, which LSP is rerouted by the current LSP. See Figure 3 for the definition of parent OBJ.
  • the residual LSP clearing request may carry multiple parent object encoding information. Preferably, the number of parent object encoding information is generally less than or equal to 2.
  • the path with the active/standby attribute has three LSPs, namely LSP1, LSP2, and LSP3.
  • LSP1 reroutes LSP2 and LSP2 reroutes LSP3.
  • the parent 1 of LSP3 is the LSP ID of LSP2, and parent2 is the LSP ID of LSP1.
  • the parent1 of LSP2 is the LSP ID of LSP1.
  • the number of the parent object coding information is 2, and the parent OBJ code information for LSP1 is: (parent1:0/parent2:0);
  • the parent OBJ encoding information for LSP2 is: (parent1:1/parent2:0);
  • the parent OBJ encoding information for LSP3 is: (parent1:2/parent2:1).
  • the partner object is used to indicate the alternate path of the current LSP, that is, the current LSP has an active/standby relationship with which LSPs. See Figure 4 for the definition of partner OBJ.
  • the LSP clearing request may carry multiple partner object encoding information, and the number of partner object encoding information is generally less than or equal to 2.
  • the primary path has two LSPs, namely LSP1 and LSP3, and LSP1 reroutes LSP3.
  • the backup path has one LSP, that is, LSP2, which is the backup path of LSP1 and LSP3.
  • LSP2 reroutes LSP4, that is for LSP4.
  • Partner1 is the LSP ID of LSP3
  • partner2 is the LSP ID of LSP1.
  • the number of the partner object coding information is 2, and the partner OBJ coding information for LSP1 is: (partner 1:2/parent2:0);
  • the partner OBJ encoding information for LSP2 is: (partner 1:1/partner2:0);
  • the partner OBJ encoding information for LSP3 is: (partner 1:2/partner2:0);
  • the partner OBJ encoding information for LSP4 is: (partner 1:3/partner2:1);
  • the residual LSP clearing request may further carry a timestamp of the current LSP, where the timestamp value is a serial number that identifies the current LSP newly created. See Figure 5 for the definition of the timeStamp object.
  • the new LSP-1 is from the first node A to the last node D, and the path of the LSP-1 is ABD, and the path information standard object of the LSP-1 is [1.1.1.1/1.1.1.4/1/1] because it is newly built.
  • the parent object encoding information and partner object encoding information of LSP-1 are: (parent1:0/parent2:0), (partner1:0/partner2:0), The time scale value is timestamp(1).
  • the path information standard object here is referred to as a quad group, including a head node management address, a last node management address, a tunnel identity, and a path identifier, which are contents specified by the standard protocol.
  • the new working path LSP-1 and the protection path LSP-2 are from the first node A to the last node D
  • the path of the LSP-1 is ACD
  • the path of the LSP-2 is ABD
  • the path information standard object of the LSP-1 is [1.1.1.1/1.1.1.4/1/1]
  • the path information standard object of LSP-2 is [1.1.1.1/1.1.1.4/1/2] because it is a new 1+1 service, LSP-1 and LSP.
  • the parent object encoding information and partner object encoding information of LSP-1 are: (parent1:0/parent2:0), (partner1:2/partner2:0)
  • the timestamp value is timestamp(1).
  • the parent object encoding information of LSP-2 and the partner object encoding information are: (parent1:0/parent2:0), (partner1:1/partner2:0), and the timestamp value is timestamp. (2).
  • the re-routing process is established for the silver service.
  • LSP-2 Re-routing the silver-level service shown in Figure 6.
  • the path of the LSP-1 is ABD, and the path information standard object of the LSP is [1.1.1.1/1.1.1.4/1/1].
  • the path of the new LSP-2 is re-routed.
  • the information standard object is [1.1.1.1/1.1.1.4/1/2], and the path of LSP-2 is ACD.
  • LSP-2 is a rerouting silver service, LSP-2 has a parent path but no alternate path.
  • the parent object coding information and partner object coding information of LSP-2 are: (parent1:1/parent2:0), (partner1:0/partner2:0), and the timestamp value is timestamp(2).
  • the re-routing process is established for the 1+1 service.
  • LSP-3 Rerouting is performed for the 1+1 service shown in FIG. 7, and LSP-1 is rerouted to obtain LSP-3.
  • the path of LSP3 is ABCD, and the path information standard object of the new LSP-3 for rerouting is [1.1.1.1/1.1.1.4/1/3]. Because LSP-3 is a rerouting 1+1 service, LSP-3 has a parent. The path also has an alternate path. Therefore, the parent object encoding information and the partner object encoding information of LSP-3 are: (parent1:1/parent2:0), (partner1:2/partner2:0), and the timestamp value is timestamp (3). ).
  • Step 210 The first node determines that the LSPs in the same group as the current LSP form the first LSP group according to the path information of the LSPs and the residual LSP clearing request that are saved by the first LSP.
  • An LSP group is a group of LSPs established by the same service as the current LSP.
  • the first node determines, according to the path message of all the LSPs and the residual LSP clearing request that is saved by the first node, that the LSP that meets the following conditions is an LSP that is in the same group as the current LSP:
  • Condition 1 the same as the head node management address of the current LSP
  • Condition 2 the same as the management address of the last node of the current LSP
  • Condition 3 Same as the identity of the tunnel where the current LSP is located.
  • the residual LSP clearing request carries the management address of the first node of the current LSP, the management address of the last node of the current LSP, the identity of the tunnel where the current LSP is located, and the path identifier of the current LSP.
  • the first node management address of the current LSP, the management address of the last node of the current LSP, the identity of the tunnel where the current LSP is located, and the path identifier of the current LSP are the standard information of the path information of the current LSP, which is the content specified by the standard protocol.
  • LSP3 is from the first node A to the last node D, and the path information standard object of the node B and the node C, that is, ABCD, LSP3 is [1.1.1.1/1.1.1.4/1/3], that is, the head node management address 1.1.1.1, the last node management address 1.1.1.4, the tunnel identity 1, the path identifier 3, referred to as the quad.
  • the node A receives the residual LSP clearing request for the LSP3, and determines that the LSP that satisfies at least one of the following conditions is an LSP of the same group as the LSP3 according to the path information of all the LSPs and the residual LSP clearing request.
  • Condition 1 The same as the head node management address of LSP3;
  • Condition 3 Same as the identity of the tunnel where LSP3 is located.
  • Node A determines that LSP1 and LSP2 meet the three conditions. These LSPs are the same as the first ternary of the quaternary LSP3 and belong to the first LSP group.
  • the first node determines that there is no LSP in the same group as the current LSP according to the path message standard object of the current LSP, and if the residual LSP clear request is carried in the LSP establishment request or the LSP refresh request, the current LSP is completed or The path refresh process of the i-th LSP.
  • Step 220 The first node uses the LSP that is not indicated by the residual LSP clearing request in the first LSP group as the second LSP group, and uses the LSP in the second LSP group as the residual LSP.
  • the first node uses each LSP in the first LSP group as the LSP to be determined, and respectively performs:
  • the LSP that does not belong to the second LSP group in the first LSP group indicates the path indicated by the parent or partner in the LSP establishment request. If there is no LSP belonging to the second LSP group, it indicates that there is no residual path in node A.
  • the first node filters out the LSPs in the second LSP group.
  • the LSP of the current LSP time-scale value is used as the non-residual LSP, and the non-residual LSP is deleted from the second LSP group.
  • the residual LSP clearing request also carries the timestamp value of the current LSP, and the current LSP timestamp value is used to identify the serial number of the current LSP.
  • a filtering process is added because there is a special case.
  • the downstream node restarts and recovers, if the new path (new_LSP) is established from the upstream node to the downstream node and the residual LSP is being recovered synchronously, the residual LSP may be normal.
  • the LSP (new_LSP) error is cleared.
  • the path established after LSP2 may be deleted by mistake. Therefore, special treatment is required for these situations.
  • LSP-1 is the original path, and LSP-2 is rerouted by LSP-1.
  • the first node has deleted LSP-2, but there may be residual LSP-2 on the downstream node.
  • the node sends a synchronization recovery message.
  • LSP-3 is the rerouting path of LSP-1.
  • the first node is also sending an LSP establishment message downstream to LSP-3. If the LSP establishment message of the rerouted LSP-3 is sent to the node P to complete the establishment process of the new LSP-3, the synchronization recovery message for the LSP-2 subsequently arrives at the node P, which is carried by the synchronization recovery message for the LSP-2. Both parent and partner do not indicate LSP-3.
  • the LSP-3 may be directly removed as a residual LSP. Therefore, you need to compare the time-scale values of LSP-3 and LSP-2 before deleting LSP-3.
  • the time stamp value is greater than the time stamp value of LSP-2. Therefore, LSP-3 cannot be deleted as a residual LSP.
  • Step 230 The first node clears the LSP in the second LSP group.
  • the first node uses the LSP in each second LSP group as a residual LSP to initiate the deletion of the end-to-end residual LSP.
  • the following three scenarios are included:
  • the first node if the first node is the first node in the current LSP, the first node sends a path clear message for the current residual LSP, that is, PathTear, to the neighboring downstream node of the first node in the current residual LSP.
  • a path clear message for the current residual LSP that is, PathTear
  • the residual LSP is found to be LSP-2, that is, ACD, and the first node (Node A) sends PathTear to LSP-2 to the node C. After the node C is cleaned, the node D is cleared to the node D. Send PathTear for LSP-2.
  • the second case if the first node is an intermediate node in the current LSP, the first node sends a path clear message for the current residual LSP, that is, PathTear, to the neighboring downstream node of the first node in the current residual LSP, and the residual path
  • the neighboring upstream node of the first node sends a path error message for the current residual LSP, that is, PathErr.
  • the first node is an intermediate node (Node C)
  • the residual LSP is found to be LSP-2, that is, ACD
  • the intermediate node Node C
  • the third case if the first node is the last node in the current LSP, the first node sends a path error message for the current residual LSP, that is, PathErr, to the neighboring upstream node of the first node in the current residual path.
  • PathErr a path error message for the current residual LSP
  • the residual LSP is found to be LSP-2, that is, ACD, and the last node (node D) sends PathErr to the LSP-2 to the node C. After the node C is cleaned up, the node is sent to the node. A sends a PathErr for LSP-2.
  • the route that the primary path LSP-1 passes is A-B-D
  • the route that the standby path LSP-2 passes is A-C-D.
  • the primary path LSP-1 is faulty, and the LSP-3 is rerouted.
  • the route that passes is A-B-E-D.
  • LSP-3 initiates a return after the LSP-1 alarm disappears, and deletes LSP-3 after returning. Deletion of LSP-3 due to unstable downstream communication or intermediate node reset
  • the signaling message does not complete the end-to-end deletion process, and the downstream node has LSP-3 remaining, assuming that LSP-3 remains in Node B, Node E, and Node D.
  • the standby path LSP-2 is faulty, and the LSP-4 is rerouted.
  • the route that passes is A-C-E-D.
  • Step 1001 The node E receives an LSP establishment request for the LSP-4, and the LSP establishment request carries a residual LSP clearing request for the LSP-4.
  • the residual LSP clear request for LSP-4 is generated by the node A code.
  • the path information standard object of LSP-4 is [1.1.1.1/1.1.1.4/1/4], and the parent object coding information and partner object coding information of LSP-4 are: (parent1:2/parent2:0), ( Partner1:1/partner2:0), the timestamp value is timestamp(4).
  • LSP-3 has been deleted and therefore will not be encoded in the parent object encoding information and partner object encoding information of LSP-4.
  • Step 1002 Node E parses the residual LSP clear request for LSP-4.
  • Step 1003 The node E determines the LSP attributed to the first LSP group according to the existing path information and the residual LSP clearing request for the LSP-4.
  • the path information stored in node E includes: the path information standard object of LSP-1 is [1.1.1.1/1.1.1.4/1/1], and the path information standard object of LSP-2 is [1.1.1.1/1.1.1.4/ 1/2], the path information standard object of LSP-3 is [1.1.1.1/1.1.1.4/1/3].
  • the node E has not deleted the LSP-3 because the downstream communication is unstable or the intermediate node is reset. Therefore, the path information standard object of the LSP-3 is also stored.
  • the node E determines that LSP-1, LSP-2, and LSP-3 meet the three conditions according to the path information standard object of LSP-4, which is the same as the first ternary of the quaternary LSP-4. Therefore, LSP-1 and LSP -2, LSP-3 are all attributed to the first LSP group.
  • Step 1004 The node E determines, for each LSP in the first LSP group, whether it is a path indicated by a parent or a partner, and determines an LSP that belongs to the second LSP group.
  • the parent object coding information parent1:2 of LSP-4 indicates that LSP-2 is the parent path of LSP-4, and the partner object coding information partner1:1 indicates that LSP-1 is an alternate path of LSP-4, therefore,
  • the LSP-3 in an LSP group belongs to the second LSP group.
  • Step 1005 Node E determines that LSP-3 is a residual LSP.
  • Step 1006 Node E initiates residual LSP clearing for LSP-3.
  • the route that the LSP-3 passes is ABED
  • the node E is the intermediate node in the LSP-4
  • the node E sends the PathTear for the LSP-3 to the adjacent downstream node D of the node E in the LSP-3
  • the LSP- The neighboring upstream node B of the node E sends the PathErr for the LSP-3.
  • the node B completes the cleaning of the LSP-3, it continues to send the PathErr for the LSP-3 to the node A. This way LSP-3 can be completely cleaned up.
  • the method provided in the embodiment of the present invention is completely based on the existing GMPLS protocol, and fully integrates with the existing signaling establishment process, does not need to add an additional processing flow, improves the efficiency of the residual cleaning, and only needs to be extended in the signaling protocol.
  • the preset object combined with the path information standard object to determine the same group of service paths, can accurately determine the residual LSP, improve the reliability of the residual cleanup and the survivability of the service in the network.
  • an embodiment of the present invention provides an apparatus for clearing a residual label switching path LSP, including:
  • the receiving unit 1301 is configured to receive a residual LSP clearing request for the current LSP, where the residual LSP clearing request carries at least one parent object encoding information and at least one partner object encoding information, where the parent object encoding information is used to indicate a parent path of the current LSP.
  • the partner object encoding information is used to indicate an alternate path of the current LSP;
  • the processing unit 1302 is configured to determine, according to the path message of all the LSPs that are saved by the LSP and the residual LSP clearing request, that the LSPs in the same group as the current LSP form the first LSP group, where the first LSP group is formed.
  • An LSP group is a group of LSPs established by the same service as the current LSP.
  • the LSP in the first LSP group that is not indicated by the residual LSP clearing request is used as the second LSP group, and the LSP in the second LSP group is used as the residual LSP;
  • the clearing unit 1303 is configured to clear an LSP in the second LSP group.
  • the clearing unit 1303 further includes:
  • the filtering unit 1304 is configured to filter out an LSP whose time-scale value of the LSP in the second LSP group is greater than the time-scale value of the current LSP as a non-residual LSP, and delete the non-residual LSP from the second LSP group;
  • the residual LSP clearing request also carries the timestamp value of the current LSP, and the current LSP timestamp value is used to identify the serial number of the current LSP.
  • the processing unit 1302 is specifically configured to: when the LSPs in the same group as the current LSP are determined according to the path information of the LSPs and the residual LSP clearing request that are saved by the LSP.
  • the LSP that satisfies at least one of the following conditions is an LSP that is in the same group as the current LSP according to the path information of the LSP and the residual LSP clearing request that are saved by the LSP.
  • Condition 1 the same as the head node management address of the current LSP
  • Condition 2 the same as the management address of the last node of the current LSP
  • Condition 3 The identity of the tunnel where the current LSP is located is the same;
  • the residual LSP clearing request carries the management address of the first node of the current LSP, the management address of the last node of the current LSP, the identity of the tunnel where the current LSP is located, and the path identifier of the current LSP.
  • the processing unit 1302 is specifically configured to:
  • Each LSP in the first LSP group is used as the LSP to be determined, and respectively:
  • the clearing unit 1303 is specifically configured to:
  • the LSP in each second LSP group is used as a residual LSP.
  • Path error message of the LSP or
  • a path error message for the current residual LSP is sent to the neighboring upstream node of the first node in the current residual path.
  • each functional module in each embodiment of the present application may be used. It can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules if implemented in the form of software functional modules and sold or used as separate products, may be stored in a computer readable storage medium.
  • a computer readable storage medium A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
  • FIG. 14 is a schematic structural diagram of a label switching router according to an embodiment of the present invention.
  • the device includes a transceiver 1401, a processor 1402, and a memory 1403.
  • the transceiver 1401, the processor 1402, and the memory 1403 are connected to each other.
  • the specific connecting medium between the above components is not limited in the embodiment of the present invention.
  • the memory 1403, the processor 1402, and the transceiver 1401 are connected by a bus 1404 in FIG. 14.
  • the bus is shown by a thick line in FIG. 14, and the connection manner between other components is only schematically illustrated. , not limited to.
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 14, but it does not mean that there is only one bus or one type of bus.
  • the transceiver 1401 is configured to receive a residual LSP clearing request for the current LSP, where the residual LSP clearing request carries at least one parent object encoding information and at least one partner object encoding information, where the parent object encoding information is used to indicate The parent path of the current LSP, the partner object encoding information is used to indicate the alternate path of the current LSP.
  • the processor 1402 is configured to determine, by using the path information of all the LSPs that are saved by the root and the LSP clearing request that is in the same LSP, that the LSPs in the same group as the current LSP form the first LSP group, where An LSP group is a set of LSPs established by the same service as the current LSP; and an LSP that is not indicated by the residual LSP clearing request in the first LSP group is used as the second LSP group, and the LSP in the second LSP group is used as the LSP. a residual LSP; and used to clear an LSP in the second LSP group.
  • the memory 1403 is configured to store the program code executed by the processor 1402, and may be a volatile memory, such as a random access memory (English: random-access memory, abbreviation: RAM);
  • the memory 1403 may also be a non-volatile memory (English: non-volatile memory), such as read-only memory (English: read-only memory, abbreviation: ROM), flash memory (English: flash memory), hard disk (English: hard Disk drive, abbreviated: HDD) or solid state drive (English: solid-state drive, SSD), or memory 1403 can be used to carry or store desired program code in the form of an instruction or data structure and can be accessed by a computer. Any other medium, but not limited to this.
  • the memory 1403 may be a combination of the above memories.
  • the processor 1402 in the embodiment of the present invention may be a central processing unit (CPU).
  • CPU central processing unit
  • the first node receives a residual LSP clearing request for the current LSP, where the residual LSP clearing request carries at least one parent object encoding information and at least one partner object encoding information, which are pre-expanded in the signaling protocol.
  • the parent object encoding information is used to indicate the parent path of the current LSP
  • the partner object encoding information is used to indicate the alternate path of the current LSP.
  • the residual LSP clearing request may be carried in the existing LSP establishment request or the refresh request, without adding Additional processing flow.
  • the first node determines that the LSPs in the same group as the current LSP form the first LSP group according to the path information of the LSPs and the residual LSP clearing request that are saved by the first LSP.
  • the first LSP group is the first LSP group.
  • the solution of the present application combines the path information standard object to clear the residual LSP in the same group of services, the most Finally, the residual LSP is cleared in the whole network.
  • the first node uses the LSP that is not indicated by the residual LSP clearing request in the first LSP group as the second LSP group, and uses the LSP in the second LSP group as the residual LSP, and further uses the time stamp for the LSP in the second LSP group.
  • the value is filtered to make the determination of the residual LSP more accurate. Finally, the first node clears the LSP in the second LSP group.
  • the method provided by the embodiment of the invention can achieve the high efficiency of the residual cleaning, and improve the reliability of the residual cleaning and the survivability of the service in the network.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. Instructions are provided for implementation in the flowchart The steps of a process or a plurality of processes and/or block diagrams of a function specified in a block or blocks.

Abstract

The present invention relates to the technical field of communications, and especially relates to a method and a device for removing a residual label switching path (LSP), so as to resolve the problems of wrongly removing a normal resource or not being able to effectively remove a residual resource due to residual link erroneous determination. Said method is: a first node receiving a residual LSP removing request corresponding to a current LSP; when the first node determines, according to the path information of all LSPs stored by itself and the residual LSP removing request, an LSP belonging to the same group as the current LSP exists, forming a first LSP group of all LSPs belonging to the same group as the current LSP; the first node setting an LSP, among the first LSP group, not indicated by the residual LSP removing request as a second LSP group, and setting the LSP in the second LSP group as a residual LSP; the first node removing the LSP in the second LSP group. This can achieve the efficiency of the residual removing, and improving the reliability of the residual removing and the survivability of the services in the network.

Description

一种清除残留标签交换路径LSP的方法及装置Method and device for clearing residual label switching path LSP 技术领域Technical field
本发明涉及通信技术领域,特别是涉及一种清除残留标签交换路径LSP的方法及装置。The present invention relates to the field of communications technologies, and in particular, to a method and apparatus for clearing a residual label switching path LSP.
背景技术Background technique
因特网的迅猛发展对IP的承载网络提出各种挑战,例如,路由问题、服务质量(Quality of Service,QoS)保障问题等。例如,未来的业务以突发性数据业务为主,而IP的承载网络对这种业务的处理能力不够,异步传输模式(Asynchronous Transfer Mode,ATM)的网络对这种业务的处理效率不足,且传输和交换成本较高,此外,各种IP与ATM融合的技术如局域网仿真(LAN Emulation,LANE),IPOA(IP Over ATM),标记交换(TAG SWITC H)等也只能解决局部问题,不能兼顾全局。The rapid development of the Internet poses various challenges to the IP bearer network, such as routing problems, quality of service (QoS) guarantees, and the like. For example, the future service is mainly based on bursty data services, and the IP bearer network has insufficient processing capability for such services. The Asynchronous Transfer Mode (ATM) network has insufficient processing efficiency for such services, and Transmission and switching costs are high. In addition, various IP and ATM convergence technologies such as LAN Emulation (LANE), IPOA (IP Over ATM), and Label Switching (TAG SWITC H) can only solve local problems. Take care of the overall situation.
目前,网络的发展正朝向宽带化、智能化和一体化的趋势发展。参阅图1所示,支持多协议标签交换(Multiprotocol Label Switching,MPLS)以及通用多协议标签交换(Generalized Multiprotocol Label Switching,GMPLS)的传送网络,是一种在开放的通信网上,利用标签引导数据高速、高效传输的网络。其中,多协议的含义是指可以支持多种网络交换技术,如包交换、时分交换、波长交换等。这种标签交换技术的价值在于能够在一个无连接的网络中引入连接模式的特性,减少了网络的复杂性,且兼容现有各种主流网络技术,能够降低网络成本,在提供IP业务的同时确保QoS和安全性。At present, the development of the network is moving towards the trend of broadband, intelligence and integration. Referring to FIG. 1 , a transport network supporting Multiprotocol Label Switching (MPLS) and Generalized Multiprotocol Label Switching (GMPLS) is an open communication network that uses tags to guide data at high speed. , efficient transmission network. Among them, the meaning of multi-protocol means that it can support multiple network switching technologies, such as packet switching, time-switching, and wavelength switching. The value of this label switching technology is to introduce the connection mode feature in a connectionless network, reduce the complexity of the network, and be compatible with existing mainstream network technologies, which can reduce the network cost and provide IP services. Ensure QoS and security.
但是,随着MPLS/GMPLS网络规模和业务量越来越大,存量网络越来越多,由于频繁的业务倒换或通信异常,在长期运行的网络中,将会存在不少的残留业务(资源)没有及时释放掉,这些残留的业务若不能得到及时清理,将会严重影响到业务的生存性。However, as the scale and traffic of MPLS/GMPLS networks become larger and larger, there are more and more network of resources. Due to frequent service switching or communication anomalies, there will be many residual services in the long-running network. If it is not released in time, if these residual businesses cannot be cleaned up in time, it will seriously affect the survivability of the business.
现有技术中,当节点检测得知某一条链路的资源占用状态发生变化时, 进一步通过路由协议开放式最短路径优先(Open Shortest Path First,OSPF)或基于约束的最短路径优先(Constraint-based Shortest Path First,CSPF)判断该链路两端的资源占用状态是否一致,若该链路两端的资源占用状态不一致,则判断该链路为残留链路,对该链路进行清理;若该链路两端的资源占用状态一致,则判断该链路为正常链路,不针对该链路进行清理。但是,由于需要通过链路两端的资源占用状态判断是否对该链路进行删除,因此假如两端都是残留的资源,占用状态一致,则无法确定该链路为残留链路,不能进行相应的残留清理。此外,由于通过路由协议洪泛消息具有一定的时延,就可能出现链路两端的状态未来得及更新,导致链路两端的状态不一致,因此造成将正常链路误判为残留链路的可能,而错误清理了正常的资源。因此,现有技术中,存在不能完全清理残留资源或错误清理残留资源的问题。In the prior art, when a node detects that a resource occupation state of a link changes, And determining whether the resource occupation status of the two ends of the link is consistent by the Open Shortest Path First (OSPF) or the Constraint-based Shortest Path First (CSPF), if the link is consistent. If the resource usage status of the two ends is inconsistent, the link is determined to be a residual link, and the link is cleared. If the resources at both ends of the link are in the same state, the link is determined to be a normal link. Clean up. However, it is necessary to determine whether the link is deleted by the resource occupancy status of the two ends of the link. Therefore, if both ends are residual resources and the occupied status is the same, the link cannot be determined as a residual link, and the corresponding link cannot be performed. Residual cleaning. In addition, since the flooding of the message through the routing protocol has a certain delay, the state of the two ends of the link may be updated in the future, resulting in inconsistent state of the two ends of the link, thereby causing the normal link to be misidentified as a residual link. The error cleaned up the normal resources. Therefore, in the prior art, there is a problem that the residual resources cannot be completely cleaned or the residual resources are erroneously cleaned up.
发明内容Summary of the invention
本发明实施例提供一种清除残留标签交换路径LSP的方法及装置,用以解决残留链路误判,不能有效清理残留资源或错误清理正常资源的问题。The embodiment of the invention provides a method and a device for clearing a residual label switching path LSP, which are used to solve the problem of residual link misjudgment, which cannot effectively clean up residual resources or incorrectly clean up normal resources.
本发明实施例提供的具体技术方案如下:The specific technical solutions provided by the embodiments of the present invention are as follows:
第一方面,一种清除残留标签交换路径LSP的方法,包括:The first aspect is a method for clearing a residual label switching path LSP, including:
第一节点接收针对当前LSP的残留LSP清除请求,其中,所述残留LSP清除请求携带至少一个父对象编码信息和至少一个伙伴对象编码信息,所述父对象编码信息用于指示所述当前LSP的父路径,所述伙伴对象编码信息用于指示所述当前LSP的备用路径;The first node receives a residual LSP clearing request for the current LSP, where the residual LSP clearing request carries at least one parent object encoding information and at least one partner object encoding information, where the parent object encoding information is used to indicate the current LSP a parent path, where the partner object encoding information is used to indicate an alternate path of the current LSP;
所述第一节点根据自身保存的所有LSP的路径消息和所述残留LSP清除请求确定存在与所述当前LSP同组的LSP时,将所有与所述当前LSP同组的LSP构成第一LSP组,其中,所述第一LSP组是指针对与所述当前LSP相同的业务建立的一组LSP;The first node determines that the LSPs in the same group as the current LSP form the first LSP group according to the path information of all the LSPs that are saved by the first LSP and the residual LSP clearing request. The first LSP group is a set of LSPs established by the same service as the current LSP;
所述第一节点将所述第一LSP组中,所述残留LSP清除请求未指示的LSP作为第二LSP组,并将所述第二LSP组中的LSP作为残留LSP; The first node, in the first LSP group, the LSP that is not indicated by the residual LSP clearing request is used as the second LSP group, and the LSP in the second LSP group is used as the residual LSP;
所述第一节点清除所述第二LSP组中的LSP。The first node clears an LSP in the second LSP group.
结合第一方面,在第一方面的第一种可能的实现方式中,在所述第一节点将所述第二LSP组中的LSP均为残留LSP之后,在所述第一节点清除所述第二LSP组中的LSP之前,还包括:With reference to the first aspect, in a first possible implementation manner of the first aspect, after the first node sends the LSP in the second LSP group to a residual LSP, the first node clears the Before the LSP in the second LSP group, the method further includes:
所述第一节点筛选出所述第二LSP组中LSP的时标值大于所述当前LSP的时标值的LSP作为非残留LSP,并将所述非残留LSP从所述第二LSP组中删除;The first node filters out an LSP whose time-scale value of the LSP in the second LSP group is greater than the time-scale value of the current LSP as a non-residual LSP, and the non-residual LSP is from the second LSP group. delete;
其中,所述残留LSP清除请求还携带所述当前LSP的时标值,所述当前LSP的时标值用于标识所述当前LSP新建时的流水号。The residual LSP clearing request further carries a time stamp value of the current LSP, and the time stamp value of the current LSP is used to identify a serial number when the current LSP is newly created.
结合第一方面或第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,所述第一节点根据自身保存的所有LSP的路径消息和所述残留LSP清除请求确定存在与所述当前LSP同组的LSP,包括:With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the first node is configured according to a path message of all LSPs saved by the first node and the residual LSP. The clearing request determines that there is an LSP in the same group as the current LSP, including:
所述第一节点根据自身保存的所有LSP的路径消息和所述残留LSP清除请求,确定满足以下至少一个条件的LSP为与所述当前LSP同组的LSP:And determining, by the first node, the LSP that meets the following at least one condition is an LSP that is in the same group as the current LSP according to the path information of all the LSPs that are saved by the first LSP and the residual LSP clearing request:
条件1:与所述当前LSP的首节点管理地址相同;Condition 1: the same as the head node management address of the current LSP;
条件2:与所述当前LSP的末节点管理地址相同;Condition 2: the same as the last node management address of the current LSP;
条件3:与所述当前LSP所在隧道的身份标识相同;Condition 3: the identity of the tunnel where the current LSP is located is the same;
其中,所述残留LSP清除请求携带所述当前LSP的首节点管理地址,所述当前LSP的末节点管理地址,所述当前LSP所在隧道的身份标识,以及所述当前LSP的路径标识。The residual LSP clearing request carries the head node management address of the current LSP, the last node management address of the current LSP, the identity identifier of the tunnel where the current LSP is located, and the path identifier of the current LSP.
结合第一方面,或以上第一方面的任何一种可能的实现方式,在第一方面的第三种可能的实现方式中,所述第一节点将所述第一LSP组中,所述残留LSP清除请求未指示的LSP作为第二LSP组,包括:With reference to the first aspect, or any one of the foregoing possible implementation manners of the first aspect, in the third possible implementation manner of the first aspect, the first node is in the first LSP group, the residual The LSP that is not indicated by the LSP clearing request is used as the second LSP group, including:
所述第一节点将所述第一LSP组中的每一个LSP作为待判定LSP,分别执行:The first node uses each LSP in the first LSP group as the LSP to be determined, and performs:
所述第一节点判断当前待判定LSP是否为所述父对象编码信息指示的所述当前LSP的父路径; Determining, by the first node, whether the current LSP to be determined is a parent path of the current LSP indicated by the parent object coding information;
若否,则继续判断所述当前待判定LSP是否为所述伙伴对象编码信息指示的所述当前LSP的备用路径;If yes, proceed to determine whether the current LSP to be determined is an alternate path of the current LSP indicated by the partner object coding information;
若否,则确定所述当前待判定LSP归属于第二LSP组。If no, it is determined that the current to-be-determined LSP belongs to the second LSP group.
结合第一方面,或以上第一方面的任何一种可能的实现方式,在第一方面的第四种可能的实现方式中,所述第一节点清除所述第二LSP组中的LSP,包括:With reference to the first aspect, or any one of the foregoing possible implementation manners of the first aspect, in the fourth possible implementation manner of the first aspect, the first node clears an LSP in the second LSP group, including :
所述第一节点将每一个所述第二LSP组中的LSP作为一个残留LSP,分别执行:The first node performs the LSP in each of the second LSP groups as a residual LSP, and performs:
若所述第一节点为所述当前LSP中的首节点,所述第一节点向所述当前残留LSP中所述第一节点的相邻下游节点发送针对所述当前残留LSP的路径清除消息;或者If the first node is the first node in the current LSP, the first node sends a path clearing message for the current residual LSP to the neighboring downstream node of the first node in the current residual LSP; or
若所述第一节点为所述当前LSP中的中间节点,所述第一节点向所述当前残留LSP中所述第一节点的相邻下游节点发送针对所述当前残留LSP的路径清除消息,并向所述残留路径中所述第一节点的相邻上游节点发送针对所述当前残留LSP的路径错误消息;或者If the first node is an intermediate node in the current LSP, the first node sends a path clear message for the current residual LSP to the neighboring downstream node of the first node in the current residual LSP. And sending a path error message for the current residual LSP to the neighboring upstream node of the first node in the residual path; or
若所述第一节点为所述当前LSP中的末节点,所述第一节点向所述当前残留路径中所述第一节点的相邻上游节点发送针对所述当前残留LSP的路径错误消息。If the first node is the last node in the current LSP, the first node sends a path error message for the current residual LSP to the neighboring upstream node of the first node in the current residual path.
第二方面,一种清除残留标签交换路径LSP的装置,包括:In a second aspect, an apparatus for clearing a residual label switching path LSP includes:
接收单元,用于接收针对当前LSP的残留LSP清除请求,其中,所述残留LSP清除请求携带至少一个父对象编码信息和至少一个伙伴对象编码信息,所述父对象编码信息用于指示所述当前LSP的父路径,所述伙伴对象编码信息用于指示所述当前LSP的备用路径;a receiving unit, configured to receive a residual LSP clearing request for the current LSP, where the residual LSP clearing request carries at least one parent object encoding information and at least one partner object encoding information, where the parent object encoding information is used to indicate the current a parent path of the LSP, where the partner object encoding information is used to indicate an alternate path of the current LSP;
处理单元,用于根据自身保存的所有LSP的路径消息和所述残留LSP清除请求确定存在与所述当前LSP同组的LSP时,将所有与所述当前LSP同组的LSP构成第一LSP组,其中,所述第一LSP组是指针对与所述当前LSP相同的业务建立的一组LSP; a processing unit, configured to determine, according to the path message of all the LSPs saved by the LSP and the residual LSP clearing request, that the LSPs in the same group as the current LSP form the first LSP group The first LSP group is a set of LSPs established by the same service as the current LSP;
以及将所述第一LSP组中,所述残留LSP清除请求未指示的LSP作为第二LSP组,并将所述第二LSP组中的LSP作为残留LSP;And the LSP that is not indicated by the residual LSP clearing request in the first LSP group is used as the second LSP group, and the LSP in the second LSP group is used as the residual LSP;
清除单元,用于清除所述第二LSP组中的LSP。And a clearing unit, configured to clear an LSP in the second LSP group.
结合第二方面,在第二方面的第一种可能的实现方式中,在所述处理单元将所述第二LSP组中的LSP均为残留LSP之后,在所述清除单元清除所述第二LSP组中的LSP之前,还包括:With reference to the second aspect, in a first possible implementation manner of the second aspect, after the processing unit uses the LSPs in the second LSP group as residual LSPs, the clearing unit clears the second Before the LSP in the LSP group, it also includes:
筛选单元,用于筛选出所述第二LSP组中LSP的时标值大于所述当前LSP的时标值的LSP作为非残留LSP,并将所述非残留LSP从所述第二LSP组中删除;a screening unit, configured to filter out an LSP whose time-scale value of the LSP in the second LSP group is greater than a time-scale value of the current LSP as a non-residual LSP, and the non-residual LSP from the second LSP group delete;
其中,所述残留LSP清除请求还携带所述当前LSP的时标值,所述当前LSP的时标值用于标识所述当前LSP新建时的流水号。The residual LSP clearing request further carries a time stamp value of the current LSP, and the time stamp value of the current LSP is used to identify a serial number when the current LSP is newly created.
结合第二方面或第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,根据自身保存的所有LSP的路径消息和所述残留LSP清除请求确定存在与所述当前LSP同组的LSP时,所述处理单元具体用于:With reference to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, determining, by using a path message of all LSPs saved by the LSP and the residual LSP clearing request, When the current LSP is in the same group as the LSP, the processing unit is specifically configured to:
根据自身保存的所有LSP的路径消息和所述残留LSP清除请求,确定满足以下至少一个条件的LSP为与所述当前LSP同组的LSP:The LSP that meets the following at least one condition is an LSP that is in the same group as the current LSP according to the path information of all LSPs that are saved by the LSP and the residual LSP clearing request:
条件1:与所述当前LSP的首节点管理地址相同;Condition 1: the same as the head node management address of the current LSP;
条件2:与所述当前LSP的末节点管理地址相同;Condition 2: the same as the last node management address of the current LSP;
条件3:与所述当前LSP所在隧道的身份标识相同;Condition 3: the identity of the tunnel where the current LSP is located is the same;
其中,所述残留LSP清除请求携带所述当前LSP的首节点管理地址,所述当前LSP的末节点管理地址,所述当前LSP所在隧道的身份标识,以及所述当前LSP的路径标识。The residual LSP clearing request carries the head node management address of the current LSP, the last node management address of the current LSP, the identity identifier of the tunnel where the current LSP is located, and the path identifier of the current LSP.
结合第二方面或第二方面的第一种可能的实现方式,在第二方面的第三种可能的实现方式中,将所述第一LSP组中,所述残留LSP清除请求未指示的LSP作为第二LSP组时,所述处理单元具体用于:With reference to the second aspect, or the first possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the LSP that is not indicated by the residual LSP clear request in the first LSP group When the second LSP group is used, the processing unit is specifically configured to:
将所述第一LSP组中的每一个LSP作为待判定LSP,分别执行:Each LSP in the first LSP group is used as the LSP to be determined, and respectively:
判断当前待判定LSP是否为所述父对象编码信息指示的所述当前LSP的 父路径;Determining whether the current LSP to be determined is the current LSP indicated by the parent object coding information Parent path
若否,则继续判断所述当前待判定LSP是否为所述伙伴对象编码信息指示的所述当前LSP的备用路径;If yes, proceed to determine whether the current LSP to be determined is an alternate path of the current LSP indicated by the partner object coding information;
若否,则确定所述当前待判定LSP归属于第二LSP组。If no, it is determined that the current to-be-determined LSP belongs to the second LSP group.
结合第二方面或第二方面的第一种可能的实现方式,在第二方面的第四种可能的实现方式中,清除所述第二LSP组中的LSP时,所述清除单元具体用于:With the second aspect or the first possible implementation manner of the second aspect, in a fourth possible implementation manner of the second aspect, the clearing unit is specifically used to clear an LSP in the second LSP group :
将每一个所述第二LSP组中的LSP作为一个残留LSP,分别执行:The LSP in each of the second LSP groups is used as a residual LSP, and respectively:
若所述装置为所述当前LSP中的首节点,向所述当前残留LSP中所述第一节点的相邻下游节点发送针对所述当前残留LSP的路径清除消息;或者If the device is the first node in the current LSP, send a path clear message for the current residual LSP to the neighboring downstream node of the first node in the current residual LSP; or
若所述装置为所述当前LSP中的中间节点,向所述当前残留LSP中所述第一节点的相邻下游节点发送针对所述当前残留LSP的路径清除消息,并向所述残留路径中所述第一节点的相邻上游节点发送针对所述当前残留LSP的路径错误消息;或者If the device is an intermediate node in the current LSP, send a path clear message for the current residual LSP to the neighboring downstream node of the first node in the current residual LSP, and go to the residual path. An adjacent upstream node of the first node sends a path error message for the current residual LSP; or
若所述装置为所述当前LSP中的末节点,向所述当前残留路径中所述第一节点的相邻上游节点发送针对所述当前残留LSP的路径错误消息。If the device is the last node in the current LSP, send a path error message for the current residual LSP to the neighboring upstream node of the first node in the current residual path.
第三方面,一种标签交换路由器,包括收发器、处理器、存储器。收发器、处理器以及存储器相互连接;In a third aspect, a label switching router includes a transceiver, a processor, and a memory. The transceiver, the processor, and the memory are connected to each other;
收发器,用于接收针对当前LSP的残留LSP清除请求,其中,残留LSP清除请求携带至少一个父对象编码信息和至少一个伙伴对象编码信息,父对象编码信息用于指示当前LSP的父路径,伙伴对象编码信息用于指示当前LSP的备用路径;The transceiver is configured to receive a residual LSP clearing request for the current LSP, where the residual LSP clearing request carries at least one parent object encoding information and at least one partner object encoding information, where the parent object encoding information is used to indicate a parent path of the current LSP, the partner The object coding information is used to indicate an alternate path of the current LSP;
处理器,用于根根据自身保存的所有LSP的路径消息和残留LSP清除请求确定存在与当前LSP同组的LSP时,将所有与当前LSP同组的LSP构成第一LSP组,其中,第一LSP组是指针对与当前LSP相同的业务建立的一组LSP;以及将第一LSP组中,残留LSP清除请求未指示的LSP作为第二LSP组,并将第二LSP组中的LSP作为残留LSP;以及用于清除第二LSP组中的 LSP;a processor, configured to determine, by using a path message of all the LSPs that are saved by the root and the LSP clearing request that is in the same LSP, that the LSPs in the same group as the current LSP form the first LSP group, where the first The LSP group is a set of LSPs established by the same service as the current LSP; and the LSP that is not indicated by the residual LSP clearing request in the first LSP group is used as the second LSP group, and the LSP in the second LSP group is used as a residual LSP; and used to clear the second LSP group LSP;
存储器,用于存储处理器执行的程序代码。A memory for storing program code executed by the processor.
本发明有益效果如下:The beneficial effects of the present invention are as follows:
第一节点接收针对当前LSP的残留LSP清除请求,其中,残留LSP清除请求携带至少一个父对象编码信息和至少一个伙伴对象编码信息,这些对象为在信令协议中扩展的预设对象,父对象编码信息用于指示当前LSP的父路径,伙伴对象编码信息用于指示当前LSP的备用路径,该残留LSP清除请求可以携带于现有的LSP建立请求或刷新请求中,不必增加额外的处理流程。第一节点根据自身保存的所有LSP的路径消息和残留LSP清除请求确定存在与当前LSP同组的LSP时,将所有与当前LSP同组的LSP构成第一LSP组,其中,第一LSP组是指针对与当前LSP相同的业务建立的一组LSP。本申请的方案结合路径信息标准对象对同一组业务中的残留LSP进行清除,最终实现在全网的残留LSP清除。第一节点将第一LSP组中,残留LSP清除请求未指示的LSP作为第二LSP组,并将第二LSP组中的LSP作为残留LSP,且进一步对第二LSP组中的LSP采用时标值进行筛选,能够使确定残留LSP更加准确,最后第一节点清除第二LSP组中的LSP。因此,采用本发明实施例提供的方法能够实现残留清理的高效性,提升了残留清理的可靠性和网络中业务的生存性。The first node receives a residual LSP clearing request for the current LSP, where the residual LSP clearing request carries at least one parent object encoding information and at least one partner object encoding information, which are preset objects extended in the signaling protocol, the parent object The encoding information is used to indicate the parent path of the current LSP, and the partner object encoding information is used to indicate the alternate path of the current LSP. The residual LSP clearing request may be carried in the existing LSP establishment request or the refresh request without adding an additional processing procedure. The first node determines that the LSPs in the same group as the current LSP form the first LSP group according to the path information of the LSPs and the residual LSP clearing request that are saved by the first LSP. The first LSP group is the first LSP group. A set of LSPs established by the pointer to the same service as the current LSP. The solution of the present application combines the path information standard object to clear the residual LSPs in the same group of services, and finally implements residual LSP clearing in the entire network. The first node uses the LSP that is not indicated by the residual LSP clearing request in the first LSP group as the second LSP group, and uses the LSP in the second LSP group as the residual LSP, and further uses the time stamp for the LSP in the second LSP group. The value is filtered to make the determination of the residual LSP more accurate. Finally, the first node clears the LSP in the second LSP group. Therefore, the method provided by the embodiment of the invention can achieve the high efficiency of the residual cleaning, and improve the reliability of the residual cleaning and the survivability of the service in the network.
附图说明DRAWINGS
图1为本发明背景技术中MPLS和GMPLS网络的基本网络架构;1 is a basic network architecture of an MPLS and GMPLS network in the background art of the present invention;
图2为本发明实施例中清除残留标签交换路径LSP的概述流程图;2 is a flowchart of an overview of clearing a residual label switching path LSP according to an embodiment of the present invention;
图3为本发明实施例中父对象定义的结构示意图;3 is a schematic structural diagram of a definition of a parent object according to an embodiment of the present invention;
图4为本发明实施例中伙伴对象定义的结构示意图;4 is a schematic structural diagram of a partner object definition according to an embodiment of the present invention;
图5为本发明实施例中时标值定义的结构示意图;FIG. 5 is a schematic structural diagram of a time stamp value definition according to an embodiment of the present invention; FIG.
图6为本发明实施例中银级业务新建过程示意图;6 is a schematic diagram of a process of creating a silver-level service according to an embodiment of the present invention;
图7为本发明实施例中1+1业务新建过程示意图; FIG. 7 is a schematic diagram of a process of creating a 1+1 service according to an embodiment of the present invention;
图8为本发明实施例中银级业务的重路由建立过程示意图;FIG. 8 is a schematic diagram of a re-routing process of a silver-level service according to an embodiment of the present invention; FIG.
图9为本发明实施例中1+1业务的重路由建立过程示意图;FIG. 9 is a schematic diagram of a process of establishing a re-routing of a 1+1 service according to an embodiment of the present invention;
图10为本发明实施例中可返回钻石业务新建过程清除残留LSP的具体流程图;FIG. 10 is a specific flowchart of clearing residual LSPs in a process of returning a diamond service in the embodiment of the present invention; FIG.
图11为本发明实施例中可返回钻石业务路由连接示意图;11 is a schematic diagram of a routing connection of a returnable diamond service according to an embodiment of the present invention;
图12为本发明实施例中可返回钻石业务新建过程示意图;FIG. 12 is a schematic diagram of a new process of returning a diamond service according to an embodiment of the present invention; FIG.
图13为本发明实施例中清除残留标签交换路径LSP的装置结构示意图FIG. 13 is a schematic structural diagram of an apparatus for clearing a residual label switching path LSP according to an embodiment of the present invention;
图14为本发明实施例中标签交换路由器结构示意图。FIG. 14 is a schematic structural diagram of a label switching router according to an embodiment of the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例提供一种清除残留标签交换路径LSP的方法及装置,用以解决残留链路误判,不能有效清理残留资源或错误清理正常资源的问题。其中,方法和装置是基于同一发明构思的,由于方法及装置解决问题的原理相似,因此装置与方法的实施可以相互参见,重复之处不再赘述。The embodiment of the invention provides a method and a device for clearing a residual label switching path LSP, which are used to solve the problem of residual link misjudgment, which cannot effectively clean up residual resources or incorrectly clean up normal resources. The method and the device are based on the same inventive concept. Since the principles of the method and the device for solving the problem are similar, the implementation of the device and the method can be referred to each other, and the repeated description is not repeated.
在本发明实施例中,残留LSP是指在控制平面上残留了LSP的协议软状态控制块,而残留资源是指对应残留LSP在转发层面残留的资源,比如实际的波长、通道、时隙或带宽等。In the embodiment of the present invention, the residual LSP refers to a protocol soft state control block in which an LSP remains on the control plane, and the residual resource refers to a resource remaining in the forwarding layer corresponding to the residual LSP, such as an actual wavelength, a channel, a time slot, or Bandwidth, etc.
在标签交换网络中,残留LSP产生的主要原因有以下几方面:In the label switching network, the main reasons for the residual LSP are as follows:
第一,在LSP的删除过程中,由于通信协议的稳定性不足造成消息丢包,导致没有完成整个端到端的LSP删除过程,产生残留;First, in the process of deleting the LSP, the message is lost due to insufficient stability of the communication protocol, and the entire end-to-end LSP deletion process is not completed, resulting in a residue;
第二,在LSP的删除过程中,由于路径的中间节点不稳定,例如,中间节点可能正处于复位状态不能处理协议消息,导致没有完成整个端到端的LSP 删除过程,产生残留;Second, in the process of deleting the LSP, since the intermediate node of the path is unstable, for example, the intermediate node may be in a reset state and cannot process the protocol message, resulting in failure to complete the entire end-to-end LSP. Deletion process, resulting in residue;
第三,在LSP的删除过程中,由于协议软件自身的可靠性或稳定性问题,例如,可能出现软件异常不能正常处理协议消息的情形,导致没有完成整个端到端的LSP删除过程,产生残留。Third, in the process of deleting the LSP, due to the reliability or stability of the protocol software itself, for example, a software exception may not be processed normally, and the entire end-to-end LSP deletion process is not completed, resulting in a residue.
下面结合附图对本发明优选的实施方式进行详细说明。Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
参阅图2所示,本发明实施例提供一种清除残留标签交换路径LSP的方法,包括:Referring to FIG. 2, an embodiment of the present invention provides a method for clearing a residual label switching path LSP, including:
步骤200:第一节点接收针对当前LSP的残留LSP清除请求。Step 200: The first node receives a residual LSP clear request for the current LSP.
其中,残留LSP清除请求携带至少一个父对象编码信息和至少一个伙伴对象编码信息,父对象编码信息用于指示当前LSP的父路径,伙伴对象编码信息用于指示当前LSP的备用路径。The residual LSP clearing request carries at least one parent object encoding information and at least one partner object encoding information. The parent object encoding information is used to indicate a parent path of the current LSP, and the partner object encoding information is used to indicate an alternate path of the current LSP.
具体的,这里的残留LSP清除请求可以在LSP建立时同时发起,即将残留LSP清除请求携带于LSP建立请求中,也可以在由操作人员触发针对某个LSP的刷新过程时发起,即将残留LSP清除请求携带于LSP刷新请求中。Specifically, the residual LSP clearing request may be initiated at the same time when the LSP is established, that is, the residual LSP clearing request is carried in the LSP establishment request, or may be initiated when the operator triggers the refresh process for an LSP, that is, the residual LSP is cleared. The request is carried in the LSP refresh request.
这里的父对象和伙伴对象均为预设对象,可以用资源预留协议(Resource Reservation Protocol,RSVP)扩展的一组新的对象表示,下面主要介绍父对象和伙伴对象具体含义和用途:The parent object and the partner object are both preset objects, and can be represented by a new set of objects extended by the Resource Reservation Protocol (RSVP). The following mainly introduces the specific meaning and purpose of the parent object and the partner object:
第一,父对象(parent OBJ),用于指示当前LSP的父路径,即当前LSP是由哪个LSP重路由出来的。参阅图3所示为parent OBJ的定义。在残留LSP清除请求中可以携带多个父对象编码信息,优选的,父对象编码信息的数量一般小于等于2。The parent object (parent OBJ) is used to indicate the parent path of the current LSP, that is, which LSP is rerouted by the current LSP. See Figure 3 for the definition of parent OBJ. The residual LSP clearing request may carry multiple parent object encoding information. Preferably, the number of parent object encoding information is generally less than or equal to 2.
例如,同主备属性的路径有3条LSP,分别为LSP1、LSP2、LSP3,LSP1重路由出LSP2,LSP2重路由出LSP3,则对于LSP3的parent1是LSP2的LSP ID,parent2是LSP1的LSP ID。LSP2的parent1是LSP1的LSP ID。For example, the path with the active/standby attribute has three LSPs, namely LSP1, LSP2, and LSP3. LSP1 reroutes LSP2 and LSP2 reroutes LSP3. The parent 1 of LSP3 is the LSP ID of LSP2, and parent2 is the LSP ID of LSP1. . The parent1 of LSP2 is the LSP ID of LSP1.
具体的,以父对象编码信息数量为2为例,针对LSP1的parent OBJ编码信息分别为:(parent1:0/parent2:0);Specifically, the number of the parent object coding information is 2, and the parent OBJ code information for LSP1 is: (parent1:0/parent2:0);
针对LSP2的parent OBJ编码信息分别为:(parent1:1/parent2:0); The parent OBJ encoding information for LSP2 is: (parent1:1/parent2:0);
针对LSP3的parent OBJ编码信息分别为:(parent1:2/parent2:1)。The parent OBJ encoding information for LSP3 is: (parent1:2/parent2:1).
第二,伙伴对象(partner OBJ),用于指示当前LSP的备用路径,即当前LSP是跟哪些LSP存在主备关系。参阅图4所示,为partner OBJ的定义。在残留LSP清除请求中可以携带多个伙伴对象编码信息,伙伴对象编码信息的数量一般小于等于2。Second, the partner object (OBB) is used to indicate the alternate path of the current LSP, that is, the current LSP has an active/standby relationship with which LSPs. See Figure 4 for the definition of partner OBJ. The LSP clearing request may carry multiple partner object encoding information, and the number of partner object encoding information is generally less than or equal to 2.
例如,主路径有2条LSP,分别为LSP1、LSP3,LSP1重路由出LSP3,备路径有1条LSP,即LSP2,为LSP1和LSP3的备路径,当LSP2重路由出来LSP4时,那对于LSP4的partner1是LSP3的LSP ID,partner2是LSP1的LSP ID。For example, the primary path has two LSPs, namely LSP1 and LSP3, and LSP1 reroutes LSP3. The backup path has one LSP, that is, LSP2, which is the backup path of LSP1 and LSP3. When LSP2 reroutes LSP4, that is for LSP4. Partner1 is the LSP ID of LSP3, and partner2 is the LSP ID of LSP1.
具体的,以伙伴对象编码信息数量为2为例,针对LSP1的partner OBJ编码信息分别为:(partner 1:2/parent2:0);Specifically, the number of the partner object coding information is 2, and the partner OBJ coding information for LSP1 is: (partner 1:2/parent2:0);
针对LSP2的partner OBJ编码信息分别为:(partner 1:1/partner2:0);The partner OBJ encoding information for LSP2 is: (partner 1:1/partner2:0);
针对LSP3的partner OBJ编码信息分别为:(partner 1:2/partner2:0);The partner OBJ encoding information for LSP3 is: (partner 1:2/partner2:0);
针对LSP4的partner OBJ编码信息分别为:(partner 1:3/partner2:1);The partner OBJ encoding information for LSP4 is: (partner 1:3/partner2:1);
可选的,残留LSP清除请求还可以携带当前LSP的时标值(timestamp),其中,时标值为标识当前LSP新建时的流水号。参阅图5所示,为timeStamp对象的定义。Optionally, the residual LSP clearing request may further carry a timestamp of the current LSP, where the timestamp value is a serial number that identifies the current LSP newly created. See Figure 5 for the definition of the timeStamp object.
下面具体说明残留LSP清除请求中父对象编码信息和伙伴对象编码信息是如何编码生成的。The following describes in detail how the parent object coding information and the partner object coding information are encoded in the residual LSP clear request.
参阅图6所示,为银级业务新建过程。See Figure 6 for a new process for the silver business.
具体的,新建LSP-1从首节点A到末节点D,LSP-1的路径为A-B-D,LSP-1的路径信息标准对象为【1.1.1.1/1.1.1.4/1/1】,因为是新建银级业务,没有父LSP和主备LSP存在,因此LSP-1的父对象编码信息和伙伴对象编码信息分别为:(parent1:0/parent2:0),(partner1:0/partner2:0),时标值为timestamp(1)。Specifically, the new LSP-1 is from the first node A to the last node D, and the path of the LSP-1 is ABD, and the path information standard object of the LSP-1 is [1.1.1.1/1.1.1.4/1/1] because it is newly built. In the silver service, there is no parent LSP or active/standby LSP. Therefore, the parent object encoding information and partner object encoding information of LSP-1 are: (parent1:0/parent2:0), (partner1:0/partner2:0), The time scale value is timestamp(1).
这里的路径信息标准对象简称四元组,包括首节点管理地址,末节点管理地址,隧道的身份标识,以及路径标识,为标准协议规定的内容。The path information standard object here is referred to as a quad group, including a head node management address, a last node management address, a tunnel identity, and a path identifier, which are contents specified by the standard protocol.
参阅图7所示,为1+1业务新建过程。 Refer to Figure 7 for the 1+1 service creation process.
具体的,新建工作路径LSP-1和保护路径LSP-2,从首节点A到末节点D,LSP-1的路径为A-C-D,LSP-2的路径为A-B-D,LSP-1的路径信息标准对象为【1.1.1.1/1.1.1.4/1/1】,LSP-2的路径信息标准对象为【1.1.1.1/1.1.1.4/1/2】,因为是新建1+1业务,LSP-1和LSP-2之间存在主备关系,而没有父子关系,因此LSP-1的父对象编码信息和伙伴对象编码信息分别为:(parent1:0/parent2:0),(partner1:2/partner2:0),时标值为timestamp(1),LSP-2的父对象编码信息和伙伴对象编码信息分别:(parent1:0/parent2:0),(partner1:1/partner2:0),时标值为timestamp(2)。Specifically, the new working path LSP-1 and the protection path LSP-2 are from the first node A to the last node D, the path of the LSP-1 is ACD, the path of the LSP-2 is ABD, and the path information standard object of the LSP-1 is [1.1.1.1/1.1.1.4/1/1], the path information standard object of LSP-2 is [1.1.1.1/1.1.1.4/1/2] because it is a new 1+1 service, LSP-1 and LSP. There is an active/standby relationship between -2 and no parent-child relationship. Therefore, the parent object encoding information and partner object encoding information of LSP-1 are: (parent1:0/parent2:0), (partner1:2/partner2:0) The timestamp value is timestamp(1). The parent object encoding information of LSP-2 and the partner object encoding information are: (parent1:0/parent2:0), (partner1:1/partner2:0), and the timestamp value is timestamp. (2).
参阅图8所示,为银级业务的重路由建立过程。Referring to FIG. 8, the re-routing process is established for the silver service.
针对图6所示的银级业务进行重路由,LSP-1的路径为A-B-D,LSP的路径信息标准对象为【1.1.1.1/1.1.1.4/1/1】,重路由新LSP-2的路径信息标准对象为【1.1.1.1/1.1.1.4/1/2】,LSP-2的路径为A-C-D,因为LSP-2是重路由银级业务,LSP-2有父路径,但没有备用路径,因此LSP-2的父对象编码信息和伙伴对象编码信息分别为:(parent1:1/parent2:0),(partner1:0/partner2:0),时标值为timestamp(2)。Re-routing the silver-level service shown in Figure 6. The path of the LSP-1 is ABD, and the path information standard object of the LSP is [1.1.1.1/1.1.1.4/1/1]. The path of the new LSP-2 is re-routed. The information standard object is [1.1.1.1/1.1.1.4/1/2], and the path of LSP-2 is ACD. Because LSP-2 is a rerouting silver service, LSP-2 has a parent path but no alternate path. The parent object coding information and partner object coding information of LSP-2 are: (parent1:1/parent2:0), (partner1:0/partner2:0), and the timestamp value is timestamp(2).
参阅图9所示,为1+1业务的重路由建立过程。Referring to FIG. 9, the re-routing process is established for the 1+1 service.
针对图7所示的1+1业务进行重路由,对LSP-1进行重路由得到LSP-3。LSP3的路径为A-B-C-D,重路由的新LSP-3的路径信息标准对象为【1.1.1.1/1.1.1.4/1/3】,因为LSP-3是重路由1+1业务,LSP-3有父路径,也有备用路径,因此LSP-3的父对象编码信息和伙伴对象编码信息分别为:(parent1:1/parent2:0),(partner1:2/partner2:0),时标值为timestamp(3)。Rerouting is performed for the 1+1 service shown in FIG. 7, and LSP-1 is rerouted to obtain LSP-3. The path of LSP3 is ABCD, and the path information standard object of the new LSP-3 for rerouting is [1.1.1.1/1.1.1.4/1/3]. Because LSP-3 is a rerouting 1+1 service, LSP-3 has a parent. The path also has an alternate path. Therefore, the parent object encoding information and the partner object encoding information of LSP-3 are: (parent1:1/parent2:0), (partner1:2/partner2:0), and the timestamp value is timestamp (3). ).
步骤210:第一节点根据自身保存的所有LSP的路径消息和残留LSP清除请求确定存在与当前LSP同组的LSP时,将所有与当前LSP同组的LSP构成第一LSP组,其中,第一LSP组是指针对与当前LSP相同的业务建立的一组LSP。Step 210: The first node determines that the LSPs in the same group as the current LSP form the first LSP group according to the path information of the LSPs and the residual LSP clearing request that are saved by the first LSP. An LSP group is a group of LSPs established by the same service as the current LSP.
具体的,第一节点根据自身保存的所有LSP的路径消息和残留LSP清除请求,确定满足以下至少一个条件的LSP为与当前LSP同组的LSP: Specifically, the first node determines, according to the path message of all the LSPs and the residual LSP clearing request that is saved by the first node, that the LSP that meets the following conditions is an LSP that is in the same group as the current LSP:
条件1:与当前LSP的首节点管理地址相同;Condition 1: the same as the head node management address of the current LSP;
条件2:与当前LSP的末节点管理地址相同;Condition 2: the same as the management address of the last node of the current LSP;
条件3:与当前LSP所在隧道的身份标识相同。Condition 3: Same as the identity of the tunnel where the current LSP is located.
这里只需满足一个条件就可以判断一个LSP与当前LSP属于同一业务组,即归属于第一LSP组。其中,残留LSP清除请求携带当前LSP的首节点管理地址,当前LSP的末节点管理地址,当前LSP所在隧道的身份标识,以及当前LSP的路径标识。这里的当前LSP的首节点管理地址,当前LSP的末节点管理地址,当前LSP所在隧道的身份标识,以及当前LSP的路径标识为当前LSP的路径信息标准对象,为标准协议规定的内容。It is only necessary to satisfy a condition that an LSP belongs to the same service group as the current LSP, that is, belongs to the first LSP group. The residual LSP clearing request carries the management address of the first node of the current LSP, the management address of the last node of the current LSP, the identity of the tunnel where the current LSP is located, and the path identifier of the current LSP. The first node management address of the current LSP, the management address of the last node of the current LSP, the identity of the tunnel where the current LSP is located, and the path identifier of the current LSP are the standard information of the path information of the current LSP, which is the content specified by the standard protocol.
例如,LSP3为从首节点A到末节点D,中间经过节点B和节点C,即A-B-C-D,LSP3的路径信息标准对象为【1.1.1.1/1.1.1.4/1/3】,即首节点管理地址1.1.1.1,末节点管理地址1.1.1.4,隧道的身份标识1,路径标识3,简称四元组。当LSP3新建时,这里假设节点A接收针对LSP3的残留LSP清除请求,根据自身保存的所有LSP的路径消息和该残留LSP清除请求,确定满足以下至少一个条件的LSP为与LSP3同组的LSP:For example, LSP3 is from the first node A to the last node D, and the path information standard object of the node B and the node C, that is, ABCD, LSP3 is [1.1.1.1/1.1.1.4/1/3], that is, the head node management address 1.1.1.1, the last node management address 1.1.1.4, the tunnel identity 1, the path identifier 3, referred to as the quad. When the LSP3 is newly created, it is assumed that the node A receives the residual LSP clearing request for the LSP3, and determines that the LSP that satisfies at least one of the following conditions is an LSP of the same group as the LSP3 according to the path information of all the LSPs and the residual LSP clearing request.
条件1:与LSP3的首节点管理地址相同;Condition 1: The same as the head node management address of LSP3;
条件2:与LSP3的末节点管理地址相同;Condition 2: Same as the management address of the last node of LSP3;
条件3:与LSP3所在隧道的身份标识相同。Condition 3: Same as the identity of the tunnel where LSP3 is located.
节点A确定LSP1、LSP2均满足三个条件,这些LSP与LSP3的四元组的前三元相同,属于第一LSP组。Node A determines that LSP1 and LSP2 meet the three conditions. These LSPs are the same as the first ternary of the quaternary LSP3 and belong to the first LSP group.
此外,第一节点根据当前LSP的路径消息标准对象确定不存在与当前LSP同组的LSP时,若残留LSP清除请求携带于LSP建立请求或LSP刷新请求中,则继续当前LSP的建路流程或第i个LSP的路径刷新流程。In addition, the first node determines that there is no LSP in the same group as the current LSP according to the path message standard object of the current LSP, and if the residual LSP clear request is carried in the LSP establishment request or the LSP refresh request, the current LSP is completed or The path refresh process of the i-th LSP.
步骤220:第一节点将第一LSP组中,残留LSP清除请求未指示的LSP作为第二LSP组,并将第二LSP组中的LSP作为残留LSP。Step 220: The first node uses the LSP that is not indicated by the residual LSP clearing request in the first LSP group as the second LSP group, and uses the LSP in the second LSP group as the residual LSP.
具体的,第一节点将第一LSP组中的每一个LSP作为待判定LSP,分别执行: Specifically, the first node uses each LSP in the first LSP group as the LSP to be determined, and respectively performs:
第一节点判断当前待判定LSP是否为父对象编码信息指示的当前LSP的父路径;Determining, by the first node, whether the current LSP to be determined is a parent path of the current LSP indicated by the parent object coding information;
若否,则继续判断当前待判定LSP是否为伙伴对象编码信息指示的当前LSP的备用路径;If not, proceed to determine whether the current LSP to be determined is an alternate path of the current LSP indicated by the partner object coding information;
若否,则确定当前待判定LSP归属于第二LSP组。If no, it is determined that the current LSP to be determined belongs to the second LSP group.
因此,第一LSP组中不归属与第二LSP组的LSP,表明为LSP建立请求中的parent或partner指示的路径。若没有属于第二LSP组的LSP,则表明节点A不存在残留路径。Therefore, the LSP that does not belong to the second LSP group in the first LSP group indicates the path indicated by the parent or partner in the LSP establishment request. If there is no LSP belonging to the second LSP group, it indicates that there is no residual path in node A.
此外,在第一节点将第二LSP组中的LSP均为残留LSP之后,在第一节点清除第二LSP组中的LSP之前,第一节点筛选出第二LSP组中LSP的时标值大于当前LSP的时标值的LSP作为非残留LSP,并将非残留LSP从第二LSP组中删除。其中,残留LSP清除请求还携带当前LSP的时标值,当前LSP的时标值用于标识当前LSP新建时的流水号。In addition, after the LSPs in the second LSP group are the residual LSPs, the first node filters out the LSPs in the second LSP group. The LSP of the current LSP time-scale value is used as the non-residual LSP, and the non-residual LSP is deleted from the second LSP group. The residual LSP clearing request also carries the timestamp value of the current LSP, and the current LSP timestamp value is used to identify the serial number of the current LSP.
这里增加一个筛选流程是因为还存在一种特殊情况,在下游节点重启恢复时,如果新路径(new_LSP)从上游节点向下游节点建立,残留LSP正在同步恢复,那么此残留LSP可能会将正常的LSP(即new_LSP)错误清理掉。或者,在针对LSP2进行刷新时,也可能将LSP2后建立的路径造成误删。因此,对这些情形需要进行特殊处理。Here, a filtering process is added because there is a special case. When the downstream node restarts and recovers, if the new path (new_LSP) is established from the upstream node to the downstream node and the residual LSP is being recovered synchronously, the residual LSP may be normal. The LSP (new_LSP) error is cleared. Alternatively, when refreshing for LSP2, the path established after LSP2 may be deleted by mistake. Therefore, special treatment is required for these situations.
例如,LSP-1是原始路径、LSP-2是由LSP-1重路由出来的,首节点已经删除LSP-2,但在下游节点可能存在残留LSP-2,此时,针对LSP-2向下游节点发送同步恢复消息。LSP-3是LSP-1的重路由路径,此时首节点也正在针对LSP-3向下游发送LSP建立消息。如果重路由的LSP-3的LSP建立消息发送到达节点P完成新的LSP-3的建立流程,针对LSP-2的同步恢复消息随后到达节点P时,由于针对LSP-2的同步恢复消息携带的parent和partner均没有指示LSP-3,可能直接将LSP-3当作残留LSP错误清除掉,因此需要在删除LSP-3前比较LSP-3和LSP-2的时标值,由于LSP-3的时标值大于LSP-2的时标值,所以,LSP-3不能被当作残留LSP删除。 For example, LSP-1 is the original path, and LSP-2 is rerouted by LSP-1. The first node has deleted LSP-2, but there may be residual LSP-2 on the downstream node. The node sends a synchronization recovery message. LSP-3 is the rerouting path of LSP-1. At this time, the first node is also sending an LSP establishment message downstream to LSP-3. If the LSP establishment message of the rerouted LSP-3 is sent to the node P to complete the establishment process of the new LSP-3, the synchronization recovery message for the LSP-2 subsequently arrives at the node P, which is carried by the synchronization recovery message for the LSP-2. Both parent and partner do not indicate LSP-3. The LSP-3 may be directly removed as a residual LSP. Therefore, you need to compare the time-scale values of LSP-3 and LSP-2 before deleting LSP-3. The time stamp value is greater than the time stamp value of LSP-2. Therefore, LSP-3 cannot be deleted as a residual LSP.
步骤230:第一节点清除第二LSP组中的LSP。Step 230: The first node clears the LSP in the second LSP group.
第一节点将每一个第二LSP组中的LSP作为一个残留LSP,发起完成删除端到端的残留LSP,具体包括以下三种情况:The first node uses the LSP in each second LSP group as a residual LSP to initiate the deletion of the end-to-end residual LSP. The following three scenarios are included:
第一种情况:若第一节点为当前LSP中的首节点,第一节点向当前残留LSP中第一节点的相邻下游节点发送针对当前残留LSP的路径清除消息,即PathTear。In the first case, if the first node is the first node in the current LSP, the first node sends a path clear message for the current residual LSP, that is, PathTear, to the neighboring downstream node of the first node in the current residual LSP.
例如,第一节点为首节点(节点A)时,发现残留LSP为LSP-2,即A-C-D,首节点(节点A)向节点C发送针对LSP-2的PathTear,节点C清理完成后,向节点D发送针对LSP-2的PathTear。For example, when the first node is the head node (Node A), the residual LSP is found to be LSP-2, that is, ACD, and the first node (Node A) sends PathTear to LSP-2 to the node C. After the node C is cleaned, the node D is cleared to the node D. Send PathTear for LSP-2.
第二种情况:若第一节点为当前LSP中的中间节点,第一节点向当前残留LSP中第一节点的相邻下游节点发送针对当前残留LSP的路径清除消息,即PathTear,并向残留路径中第一节点的相邻上游节点发送针对当前残留LSP的路径错误消息,即PathErr。The second case: if the first node is an intermediate node in the current LSP, the first node sends a path clear message for the current residual LSP, that is, PathTear, to the neighboring downstream node of the first node in the current residual LSP, and the residual path The neighboring upstream node of the first node sends a path error message for the current residual LSP, that is, PathErr.
例如,第一节点为中间节点(节点C)时,发现残留LSP为LSP-2,即A-C-D,中间节点(节点C)向节点D发送针对LSP-2的PathTear,向节点A发送针对LSP-2的PathErr。For example, when the first node is an intermediate node (Node C), the residual LSP is found to be LSP-2, that is, ACD, and the intermediate node (Node C) sends PathTear for LSP-2 to Node D, and sends LSP-2 to Node A. PathErr.
第三种情况:若第一节点为当前LSP中的末节点,第一节点向当前残留路径中第一节点的相邻上游节点发送针对当前残留LSP的路径错误消息,即PathErr。The third case: if the first node is the last node in the current LSP, the first node sends a path error message for the current residual LSP, that is, PathErr, to the neighboring upstream node of the first node in the current residual path.
例如,第一节点为末节点(节点D)时,发现残留LSP为LSP-2,即A-C-D,末节点(节点D)向节点C发送针对LSP-2的PathErr,节点C清理完成后,向节点A发送针对LSP-2的PathErr。For example, when the first node is the last node (node D), the residual LSP is found to be LSP-2, that is, ACD, and the last node (node D) sends PathErr to the LSP-2 to the node C. After the node C is cleaned up, the node is sent to the node. A sends a PathErr for LSP-2.
实施例1:Example 1:
参阅图10、图11和图12所示,为可返回钻石业务,主路径LSP-1经过的路由为A-B-D,备路径LSP-2经过的路由A-C-D。主路径LSP-1故障,重路由出来LSP-3,经过的路由为A-B-E-D。LSP-3在LSP-1告警消失后发起返回,返回后删除LSP-3。由于下游通信不稳定或中间节点复位,导致删除LSP-3 的信令消息未完成端到端删除流程,下游节点残留了LSP-3,假设节点B、节点E、节点D都残留了LSP-3。Referring to FIG. 10, FIG. 11, and FIG. 12, in order to return the diamond service, the route that the primary path LSP-1 passes is A-B-D, and the route that the standby path LSP-2 passes is A-C-D. The primary path LSP-1 is faulty, and the LSP-3 is rerouted. The route that passes is A-B-E-D. LSP-3 initiates a return after the LSP-1 alarm disappears, and deletes LSP-3 after returning. Deletion of LSP-3 due to unstable downstream communication or intermediate node reset The signaling message does not complete the end-to-end deletion process, and the downstream node has LSP-3 remaining, assuming that LSP-3 remains in Node B, Node E, and Node D.
现在,备路径LSP-2故障,重路由出来LSP-4,经过的路由为A-C-E-D。Now, the standby path LSP-2 is faulty, and the LSP-4 is rerouted. The route that passes is A-C-E-D.
步骤1001:节点E接收针对LSP-4的LSP建立请求,该LSP建立请求携带针对LSP-4的残留LSP清除请求。Step 1001: The node E receives an LSP establishment request for the LSP-4, and the LSP establishment request carries a residual LSP clearing request for the LSP-4.
针对LSP-4的残留LSP清除请求由节点A编码生成。The residual LSP clear request for LSP-4 is generated by the node A code.
LSP-4的路径信息标准对象为【1.1.1.1/1.1.1.4/1/4】,LSP-4的父对象编码信息和伙伴对象编码信息分别为:(parent1:2/parent2:0),(partner1:1/partner2:0),时标值为timestamp(4)。LSP-3已删除,因此不会编码在LSP-4的父对象编码信息和伙伴对象编码信息中。The path information standard object of LSP-4 is [1.1.1.1/1.1.1.4/1/4], and the parent object coding information and partner object coding information of LSP-4 are: (parent1:2/parent2:0), ( Partner1:1/partner2:0), the timestamp value is timestamp(4). LSP-3 has been deleted and therefore will not be encoded in the parent object encoding information and partner object encoding information of LSP-4.
步骤1002:节点E解析针对LSP-4的残留LSP清除请求。Step 1002: Node E parses the residual LSP clear request for LSP-4.
步骤1003:节点E根据已存的路径信息和针对LSP-4的残留LSP清除请求,确定归属于第一LSP组的LSP。Step 1003: The node E determines the LSP attributed to the first LSP group according to the existing path information and the residual LSP clearing request for the LSP-4.
节点E已存的路径信息包括:LSP-1的路径信息标准对象为【1.1.1.1/1.1.1.4/1/1】,LSP-2的路径信息标准对象为【1.1.1.1/1.1.1.4/1/2】,LSP-3的路径信息标准对象为【1.1.1.1/1.1.1.4/1/3】。节点E由于下游通信不稳定或中间节点复位中,还未删除LSP-3,因此还保存有LSP-3的路径信息标准对象。The path information stored in node E includes: the path information standard object of LSP-1 is [1.1.1.1/1.1.1.4/1/1], and the path information standard object of LSP-2 is [1.1.1.1/1.1.1.4/ 1/2], the path information standard object of LSP-3 is [1.1.1.1/1.1.1.4/1/3]. The node E has not deleted the LSP-3 because the downstream communication is unstable or the intermediate node is reset. Therefore, the path information standard object of the LSP-3 is also stored.
节点E根据LSP-4的路径信息标准对象确定LSP-1、LSP-2、LSP-3均满足三个条件,与LSP-4的四元组的前三元相同,因此,LSP-1、LSP-2、LSP-3均归属于第一LSP组。The node E determines that LSP-1, LSP-2, and LSP-3 meet the three conditions according to the path information standard object of LSP-4, which is the same as the first ternary of the quaternary LSP-4. Therefore, LSP-1 and LSP -2, LSP-3 are all attributed to the first LSP group.
步骤1004:节点E针对第一LSP组中的每一个LSP,分别判断其是否为parent或partner指示的路径,确定属于第二LSP组的LSP。Step 1004: The node E determines, for each LSP in the first LSP group, whether it is a path indicated by a parent or a partner, and determines an LSP that belongs to the second LSP group.
具体的,LSP-4的父对象编码信息parent1:2,指示LSP-2为LSP-4的父路径,伙伴对象编码信息partner1:1,指示LSP-1为LSP-4的备用路径,因此,第一LSP组中的LSP-3归属于第二LSP组。Specifically, the parent object coding information parent1:2 of LSP-4 indicates that LSP-2 is the parent path of LSP-4, and the partner object coding information partner1:1 indicates that LSP-1 is an alternate path of LSP-4, therefore, The LSP-3 in an LSP group belongs to the second LSP group.
步骤1005:节点E确定LSP-3为残留LSP。Step 1005: Node E determines that LSP-3 is a residual LSP.
步骤1006:节点E发起针对LSP-3的残留LSP清除。 Step 1006: Node E initiates residual LSP clearing for LSP-3.
具体的,LSP-3经过的路由为A-B-E-D,节点E为LSP-4中的中间节点,节点E向LSP-3中节点E的相邻下游节点D发送针对LSP-3的PathTear,并向LSP-3中节点E的相邻上游节点B发送针对LSP-3的PathErr,当节点B完成LSP-3的清理后,继续向节点A发送针对LSP-3的PathErr。这样LSP-3就可以被完全清理掉了。Specifically, the route that the LSP-3 passes is ABED, the node E is the intermediate node in the LSP-4, and the node E sends the PathTear for the LSP-3 to the adjacent downstream node D of the node E in the LSP-3, and the LSP- The neighboring upstream node B of the node E sends the PathErr for the LSP-3. After the node B completes the cleaning of the LSP-3, it continues to send the PathErr for the LSP-3 to the node A. This way LSP-3 can be completely cleaned up.
本发明实施例中提供的方法完全基于现有GMPLS协议,与现有的信令建立流程完全融合,不需要增加额外的处理流程,提升了残留清理的高效性,只需要在信令协议中扩展预设的对象,结合路径信息标准对象确定同组业务路径,就能实现准确确定残留LSP,提升了残留清理的可靠性和网络中业务的生存性。The method provided in the embodiment of the present invention is completely based on the existing GMPLS protocol, and fully integrates with the existing signaling establishment process, does not need to add an additional processing flow, improves the efficiency of the residual cleaning, and only needs to be extended in the signaling protocol. The preset object, combined with the path information standard object to determine the same group of service paths, can accurately determine the residual LSP, improve the reliability of the residual cleanup and the survivability of the service in the network.
参阅图13所示,本发明实施例提供一种清除残留标签交换路径LSP的装置,包括:Referring to FIG. 13, an embodiment of the present invention provides an apparatus for clearing a residual label switching path LSP, including:
接收单元1301,用于接收针对当前LSP的残留LSP清除请求,其中,残留LSP清除请求携带至少一个父对象编码信息和至少一个伙伴对象编码信息,父对象编码信息用于指示当前LSP的父路径,伙伴对象编码信息用于指示当前LSP的备用路径;The receiving unit 1301 is configured to receive a residual LSP clearing request for the current LSP, where the residual LSP clearing request carries at least one parent object encoding information and at least one partner object encoding information, where the parent object encoding information is used to indicate a parent path of the current LSP. The partner object encoding information is used to indicate an alternate path of the current LSP;
处理单元1302,用于根据自身保存的所有LSP的路径消息和残留LSP清除请求确定存在与当前LSP同组的LSP时,将所有与当前LSP同组的LSP构成第一LSP组,其中,第一LSP组是指针对与当前LSP相同的业务建立的一组LSP;The processing unit 1302 is configured to determine, according to the path message of all the LSPs that are saved by the LSP and the residual LSP clearing request, that the LSPs in the same group as the current LSP form the first LSP group, where the first LSP group is formed. An LSP group is a group of LSPs established by the same service as the current LSP.
以及将第一LSP组中,残留LSP清除请求未指示的LSP作为第二LSP组,并将第二LSP组中的LSP作为残留LSP;And the LSP in the first LSP group that is not indicated by the residual LSP clearing request is used as the second LSP group, and the LSP in the second LSP group is used as the residual LSP;
清除单元1303,用于清除第二LSP组中的LSP。The clearing unit 1303 is configured to clear an LSP in the second LSP group.
可选的,在处理单元1302将第二LSP组中的LSP均为残留LSP之后,在清除单元1303清除第二LSP组中的LSP之前,还包括:Optionally, after the processing unit 1302 removes the LSPs in the second LSP group from the LSPs in the second LSP group, the clearing unit 1303 further includes:
筛选单元1304,用于筛选出第二LSP组中LSP的时标值大于当前LSP的时标值的LSP作为非残留LSP,并将非残留LSP从第二LSP组中删除; The filtering unit 1304 is configured to filter out an LSP whose time-scale value of the LSP in the second LSP group is greater than the time-scale value of the current LSP as a non-residual LSP, and delete the non-residual LSP from the second LSP group;
其中,残留LSP清除请求还携带当前LSP的时标值,当前LSP的时标值用于标识当前LSP新建时的流水号。The residual LSP clearing request also carries the timestamp value of the current LSP, and the current LSP timestamp value is used to identify the serial number of the current LSP.
可选的,根据自身保存的所有LSP的路径消息和残留LSP清除请求确定存在与当前LSP同组的LSP时,处理单元1302具体用于:Optionally, the processing unit 1302 is specifically configured to: when the LSPs in the same group as the current LSP are determined according to the path information of the LSPs and the residual LSP clearing request that are saved by the LSP.
根据自身保存的所有LSP的路径消息和残留LSP清除请求,确定满足以下至少一个条件的LSP为与当前LSP同组的LSP:The LSP that satisfies at least one of the following conditions is an LSP that is in the same group as the current LSP according to the path information of the LSP and the residual LSP clearing request that are saved by the LSP.
条件1:与当前LSP的首节点管理地址相同;Condition 1: the same as the head node management address of the current LSP;
条件2:与当前LSP的末节点管理地址相同;Condition 2: the same as the management address of the last node of the current LSP;
条件3:与当前LSP所在隧道的身份标识相同;Condition 3: The identity of the tunnel where the current LSP is located is the same;
其中,残留LSP清除请求携带当前LSP的首节点管理地址,当前LSP的末节点管理地址,当前LSP所在隧道的身份标识,以及当前LSP的路径标识。The residual LSP clearing request carries the management address of the first node of the current LSP, the management address of the last node of the current LSP, the identity of the tunnel where the current LSP is located, and the path identifier of the current LSP.
可选的,将第一LSP组中,残留LSP清除请求未指示的LSP作为第二LSP组时,处理单元1302具体用于:Optionally, when the LSP that is not indicated by the residual LSP clearing request is used as the second LSP group in the first LSP group, the processing unit 1302 is specifically configured to:
将第一LSP组中的每一个LSP作为待判定LSP,分别执行:Each LSP in the first LSP group is used as the LSP to be determined, and respectively:
判断当前待判定LSP是否为父对象编码信息指示的当前LSP的父路径;Determining whether the current LSP to be determined is a parent path of the current LSP indicated by the parent object coding information;
若否,则继续判断当前待判定LSP是否为伙伴对象编码信息指示的当前LSP的备用路径;If not, proceed to determine whether the current LSP to be determined is an alternate path of the current LSP indicated by the partner object coding information;
若否,则确定当前待判定LSP归属于第二LSP组。If no, it is determined that the current LSP to be determined belongs to the second LSP group.
可选的,清除第二LSP组中的LSP时,清除单元1303具体用于:Optionally, when the LSP in the second LSP group is cleared, the clearing unit 1303 is specifically configured to:
将每一个第二LSP组中的LSP作为一个残留LSP,分别执行:The LSP in each second LSP group is used as a residual LSP.
若装置为当前LSP中的首节点,向当前残留LSP中第一节点的相邻下游节点发送针对当前残留LSP的路径清除消息;或者If the device is the first node in the current LSP, send a path clear message for the current residual LSP to the neighboring downstream node of the first node in the current residual LSP; or
若装置为当前LSP中的中间节点,向当前残留LSP中第一节点的相邻下游节点发送针对当前残留LSP的路径清除消息,并向残留路径中第一节点的相邻上游节点发送针对当前残留LSP的路径错误消息;或者If the device is an intermediate node in the current LSP, send a path clear message for the current residual LSP to the neighboring downstream node of the first node in the current residual LSP, and send the current residual to the adjacent upstream node of the first node in the residual path. Path error message of the LSP; or
若装置为当前LSP中的末节点,向当前残留路径中第一节点的相邻上游节点发送针对当前残留LSP的路径错误消息。 If the device is the last node in the current LSP, a path error message for the current residual LSP is sent to the neighboring upstream node of the first node in the current residual path.
需要说明的是,本发明实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。It should be noted that, in the embodiment of the present invention, the division of the module is schematic, and only one logical function is divided. In actual implementation, there may be another division manner. In addition, each functional module in each embodiment of the present application may be used. It can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated modules, if implemented in the form of software functional modules and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application, in essence or the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
本发明实施例还提供了一种标签交换路由器,如图14所示,图14为本发明实施例中标签交换路由器的结构示意图,该设备包括收发器1401、处理器1402、存储器1403。收发器1401、处理器1402以及存储器1403相互连接。本发明实施例中不限定上述部件之间的具体连接介质。本发明实施例在图14中以存储器1403、处理器1402以及收发器1401之间通过总线1404连接,总线在图14中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图14中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The embodiment of the present invention further provides a label switching router. As shown in FIG. 14, FIG. 14 is a schematic structural diagram of a label switching router according to an embodiment of the present invention. The device includes a transceiver 1401, a processor 1402, and a memory 1403. The transceiver 1401, the processor 1402, and the memory 1403 are connected to each other. The specific connecting medium between the above components is not limited in the embodiment of the present invention. In the embodiment of the present invention, the memory 1403, the processor 1402, and the transceiver 1401 are connected by a bus 1404 in FIG. 14. The bus is shown by a thick line in FIG. 14, and the connection manner between other components is only schematically illustrated. , not limited to. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 14, but it does not mean that there is only one bus or one type of bus.
本发明实施例中,收发器1401,用于接收针对当前LSP的残留LSP清除请求,其中,残留LSP清除请求携带至少一个父对象编码信息和至少一个伙伴对象编码信息,父对象编码信息用于指示当前LSP的父路径,伙伴对象编码信息用于指示当前LSP的备用路径。 In the embodiment of the present invention, the transceiver 1401 is configured to receive a residual LSP clearing request for the current LSP, where the residual LSP clearing request carries at least one parent object encoding information and at least one partner object encoding information, where the parent object encoding information is used to indicate The parent path of the current LSP, the partner object encoding information is used to indicate the alternate path of the current LSP.
处理器1402,用于根根据自身保存的所有LSP的路径消息和残留LSP清除请求确定存在与当前LSP同组的LSP时,将所有与当前LSP同组的LSP构成第一LSP组,其中,第一LSP组是指针对与当前LSP相同的业务建立的一组LSP;以及将第一LSP组中,残留LSP清除请求未指示的LSP作为第二LSP组,并将第二LSP组中的LSP作为残留LSP;以及用于清除第二LSP组中的LSP。The processor 1402 is configured to determine, by using the path information of all the LSPs that are saved by the root and the LSP clearing request that is in the same LSP, that the LSPs in the same group as the current LSP form the first LSP group, where An LSP group is a set of LSPs established by the same service as the current LSP; and an LSP that is not indicated by the residual LSP clearing request in the first LSP group is used as the second LSP group, and the LSP in the second LSP group is used as the LSP. a residual LSP; and used to clear an LSP in the second LSP group.
本发明实施例中存储器1403,用于存储处理器1402执行的程序代码,可以是易失性存储器(英文:volatile memory),例如随机存取存储器(英文:random-access memory,缩写:RAM);存储器1403也可以是非易失性存储器(英文:non-volatile memory),例如只读存储器(英文:read-only memory,缩写:ROM),快闪存储器(英文:flash memory),硬盘(英文:hard disk drive,缩写:HDD)或固态硬盘(英文:solid-state drive,缩写:SSD)、或者存储器1403是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器1403可以是上述存储器的组合。In the embodiment of the present invention, the memory 1403 is configured to store the program code executed by the processor 1402, and may be a volatile memory, such as a random access memory (English: random-access memory, abbreviation: RAM); The memory 1403 may also be a non-volatile memory (English: non-volatile memory), such as read-only memory (English: read-only memory, abbreviation: ROM), flash memory (English: flash memory), hard disk (English: hard Disk drive, abbreviated: HDD) or solid state drive (English: solid-state drive, SSD), or memory 1403 can be used to carry or store desired program code in the form of an instruction or data structure and can be accessed by a computer. Any other medium, but not limited to this. The memory 1403 may be a combination of the above memories.
本发明实施例中处理器1402,可以是一个中央处理单元(英文:central processing unit,简称CPU)。The processor 1402 in the embodiment of the present invention may be a central processing unit (CPU).
综上所述,第一节点接收针对当前LSP的残留LSP清除请求,其中,残留LSP清除请求携带至少一个父对象编码信息和至少一个伙伴对象编码信息,这些对象为在信令协议中扩展的预设对象,父对象编码信息用于指示当前LSP的父路径,伙伴对象编码信息用于指示当前LSP的备用路径,该残留LSP清除请求可以携带于现有的LSP建立请求或刷新请求中,不必增加额外的处理流程。In summary, the first node receives a residual LSP clearing request for the current LSP, where the residual LSP clearing request carries at least one parent object encoding information and at least one partner object encoding information, which are pre-expanded in the signaling protocol. For example, the parent object encoding information is used to indicate the parent path of the current LSP, and the partner object encoding information is used to indicate the alternate path of the current LSP. The residual LSP clearing request may be carried in the existing LSP establishment request or the refresh request, without adding Additional processing flow.
第一节点根据自身保存的所有LSP的路径消息和残留LSP清除请求确定存在与当前LSP同组的LSP时,将所有与当前LSP同组的LSP构成第一LSP组,其中,第一LSP组是指针对与当前LSP相同的业务建立的一组LSP。本申请的方案结合路径信息标准对象对同一组业务中的残留LSP进行清除,最 终实现在全网的残留LSP清除。The first node determines that the LSPs in the same group as the current LSP form the first LSP group according to the path information of the LSPs and the residual LSP clearing request that are saved by the first LSP. The first LSP group is the first LSP group. A set of LSPs established by the pointer to the same service as the current LSP. The solution of the present application combines the path information standard object to clear the residual LSP in the same group of services, the most Finally, the residual LSP is cleared in the whole network.
第一节点将第一LSP组中,残留LSP清除请求未指示的LSP作为第二LSP组,并将第二LSP组中的LSP作为残留LSP,且进一步对第二LSP组中的LSP采用时标值进行筛选,能够使确定残留LSP更加准确,最后第一节点清除第二LSP组中的LSP。The first node uses the LSP that is not indicated by the residual LSP clearing request in the first LSP group as the second LSP group, and uses the LSP in the second LSP group as the residual LSP, and further uses the time stamp for the LSP in the second LSP group. The value is filtered to make the determination of the residual LSP more accurate. Finally, the first node clears the LSP in the second LSP group.
因此,采用本发明实施例提供的方法能够实现残留清理的高效性,提升了残留清理的可靠性和网络中业务的生存性。Therefore, the method provided by the embodiment of the invention can achieve the high efficiency of the residual cleaning, and improve the reliability of the residual cleaning and the survivability of the service in the network.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图 一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. Instructions are provided for implementation in the flowchart The steps of a process or a plurality of processes and/or block diagrams of a function specified in a block or blocks.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While the preferred embodiment of the invention has been described, it will be understood that Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and the modifications and
显然,本领域的技术人员可以对本发明实施例进行各种改动和变型而不脱离本发明实施例的精神和范围。这样,倘若本发明实施例的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。 It is apparent that those skilled in the art can make various modifications and variations to the embodiments of the invention without departing from the spirit and scope of the embodiments of the invention. Thus, it is intended that the present invention cover the modifications and modifications of the embodiments of the invention.

Claims (10)

  1. 一种清除残留标签交换路径LSP的方法,其特征在于,包括:A method for clearing a residual label switching path LSP, comprising:
    第一节点接收针对当前LSP的残留LSP清除请求,其中,所述残留LSP清除请求携带至少一个父对象编码信息和至少一个伙伴对象编码信息,所述父对象编码信息用于指示所述当前LSP的父路径,所述伙伴对象编码信息用于指示所述当前LSP的备用路径;The first node receives a residual LSP clearing request for the current LSP, where the residual LSP clearing request carries at least one parent object encoding information and at least one partner object encoding information, where the parent object encoding information is used to indicate the current LSP a parent path, where the partner object encoding information is used to indicate an alternate path of the current LSP;
    所述第一节点根据自身保存的所有LSP的路径消息和所述残留LSP清除请求确定存在与所述当前LSP同组的LSP时,将所有与所述当前LSP同组的LSP构成第一LSP组,其中,所述第一LSP组是指针对与所述当前LSP相同的业务建立的一组LSP;The first node determines that the LSPs in the same group as the current LSP form the first LSP group according to the path information of all the LSPs that are saved by the first LSP and the residual LSP clearing request. The first LSP group is a set of LSPs established by the same service as the current LSP;
    所述第一节点将所述第一LSP组中,所述残留LSP清除请求未指示的LSP作为第二LSP组,并将所述第二LSP组中的LSP作为残留LSP;The first node, in the first LSP group, the LSP that is not indicated by the residual LSP clearing request is used as the second LSP group, and the LSP in the second LSP group is used as the residual LSP;
    所述第一节点清除所述第二LSP组中的LSP。The first node clears an LSP in the second LSP group.
  2. 如权利要求1所述的方法,其特征在于,在所述第一节点将所述第二LSP组中的LSP均为残留LSP之后,在所述第一节点清除所述第二LSP组中的LSP之前,还包括:The method according to claim 1, wherein after the first node is the residual LSP in the second LSP group, the first node clears the second LSP group. Before the LSP, it also includes:
    所述第一节点筛选出所述第二LSP组中LSP的时标值大于所述当前LSP的时标值的LSP作为非残留LSP,并将所述非残留LSP从所述第二LSP组中删除;The first node filters out an LSP whose time-scale value of the LSP in the second LSP group is greater than the time-scale value of the current LSP as a non-residual LSP, and the non-residual LSP is from the second LSP group. delete;
    其中,所述残留LSP清除请求还携带所述当前LSP的时标值,所述当前LSP的时标值用于标识所述当前LSP新建时的流水号。The residual LSP clearing request further carries a time stamp value of the current LSP, and the time stamp value of the current LSP is used to identify a serial number when the current LSP is newly created.
  3. 如权利要求1或2所述的方法,其特征在于,所述第一节点根据自身保存的所有LSP的路径消息和所述残留LSP清除请求确定存在与所述当前LSP同组的LSP,包括:The method according to claim 1 or 2, wherein the first node determines that there is an LSP in the same group as the current LSP according to the path message of all the LSPs saved by the first LSP and the residual LSP clearing request, including:
    所述第一节点根据自身保存的所有LSP的路径消息和所述残留LSP清除请求,确定满足以下至少一个条件的LSP为与所述当前LSP同组的LSP: And determining, by the first node, the LSP that meets the following at least one condition is an LSP that is in the same group as the current LSP according to the path information of all the LSPs that are saved by the first LSP and the residual LSP clearing request:
    条件1:与所述当前LSP的首节点管理地址相同;Condition 1: the same as the head node management address of the current LSP;
    条件2:与所述当前LSP的末节点管理地址相同;Condition 2: the same as the last node management address of the current LSP;
    条件3:与所述当前LSP所在隧道的身份标识相同;Condition 3: the identity of the tunnel where the current LSP is located is the same;
    其中,所述残留LSP清除请求携带所述当前LSP的首节点管理地址,所述当前LSP的末节点管理地址,所述当前LSP所在隧道的身份标识,以及所述当前LSP的路径标识。The residual LSP clearing request carries the head node management address of the current LSP, the last node management address of the current LSP, the identity identifier of the tunnel where the current LSP is located, and the path identifier of the current LSP.
  4. 如权利要求1或2所述的方法,其特征在于,所述第一节点将所述第一LSP组中,所述残留LSP清除请求未指示的LSP作为第二LSP组,包括:The method according to claim 1 or 2, wherein the first node, in the first LSP group, the LSP that is not indicated by the residual LSP clearing request is used as the second LSP group, and includes:
    所述第一节点将所述第一LSP组中的每一个LSP作为待判定LSP,分别执行:The first node uses each LSP in the first LSP group as the LSP to be determined, and performs:
    所述第一节点判断当前待判定LSP是否为所述父对象编码信息指示的所述当前LSP的父路径;Determining, by the first node, whether the current LSP to be determined is a parent path of the current LSP indicated by the parent object coding information;
    若否,则继续判断所述当前待判定LSP是否为所述伙伴对象编码信息指示的所述当前LSP的备用路径;If yes, proceed to determine whether the current LSP to be determined is an alternate path of the current LSP indicated by the partner object coding information;
    若否,则确定所述当前待判定LSP归属于第二LSP组。If no, it is determined that the current to-be-determined LSP belongs to the second LSP group.
  5. 如权利要求1或2所述的方法,其特征在于,所述第一节点清除所述第二LSP组中的LSP,包括:The method of claim 1 or 2, wherein the clearing, by the first node, the LSP in the second LSP group comprises:
    所述第一节点将每一个所述第二LSP组中的LSP作为一个残留LSP,分别执行:The first node performs the LSP in each of the second LSP groups as a residual LSP, and performs:
    若所述第一节点为所述当前LSP中的首节点,所述第一节点向所述当前残留LSP中所述第一节点的相邻下游节点发送针对所述当前残留LSP的路径清除消息;或者If the first node is the first node in the current LSP, the first node sends a path clearing message for the current residual LSP to the neighboring downstream node of the first node in the current residual LSP; or
    若所述第一节点为所述当前LSP中的中间节点,所述第一节点向所述当前残留LSP中所述第一节点的相邻下游节点发送针对所述当前残留LSP的路径清除消息,并向所述残留路径中所述第一节点的相邻上游节点发送针对所述当前残留LSP的路径错误消息;或者If the first node is an intermediate node in the current LSP, the first node sends a path clear message for the current residual LSP to the neighboring downstream node of the first node in the current residual LSP. And sending a path error message for the current residual LSP to the neighboring upstream node of the first node in the residual path; or
    若所述第一节点为所述当前LSP中的末节点,所述第一节点向所述当前 残留路径中所述第一节点的相邻上游节点发送针对所述当前残留LSP的路径错误消息。If the first node is the last node in the current LSP, the first node is to the current node A neighboring upstream node of the first node in the residual path sends a path error message for the current residual LSP.
  6. 一种清除残留标签交换路径LSP的装置,其特征在于,包括:An apparatus for removing a residual label switching path LSP, comprising:
    接收单元,用于接收针对当前LSP的残留LSP清除请求,其中,所述残留LSP清除请求携带至少一个父对象编码信息和至少一个伙伴对象编码信息,所述父对象编码信息用于指示所述当前LSP的父路径,所述伙伴对象编码信息用于指示所述当前LSP的备用路径;a receiving unit, configured to receive a residual LSP clearing request for the current LSP, where the residual LSP clearing request carries at least one parent object encoding information and at least one partner object encoding information, where the parent object encoding information is used to indicate the current a parent path of the LSP, where the partner object encoding information is used to indicate an alternate path of the current LSP;
    处理单元,用于根据自身保存的所有LSP的路径消息和所述残留LSP清除请求确定存在与所述当前LSP同组的LSP时,将所有与所述当前LSP同组的LSP构成第一LSP组,其中,所述第一LSP组是指针对与所述当前LSP相同的业务建立的一组LSP;a processing unit, configured to determine, according to the path message of all the LSPs saved by the LSP and the residual LSP clearing request, that the LSPs in the same group as the current LSP form the first LSP group The first LSP group is a set of LSPs established by the same service as the current LSP;
    以及将所述第一LSP组中,所述残留LSP清除请求未指示的LSP作为第二LSP组,并将所述第二LSP组中的LSP作为残留LSP;And the LSP that is not indicated by the residual LSP clearing request in the first LSP group is used as the second LSP group, and the LSP in the second LSP group is used as the residual LSP;
    清除单元,用于清除所述第二LSP组中的LSP。And a clearing unit, configured to clear an LSP in the second LSP group.
  7. 如权利要求6所述的装置,其特征在于,在所述处理单元将所述第二LSP组中的LSP均为残留LSP之后,在所述清除单元清除所述第二LSP组中的LSP之前,还包括:The apparatus according to claim 6, wherein after the processing unit sets the LSPs in the second LSP group to be residual LSPs, before the clearing unit clears the LSPs in the second LSP group ,Also includes:
    筛选单元,用于筛选出所述第二LSP组中LSP的时标值大于所述当前LSP的时标值的LSP作为非残留LSP,并将所述非残留LSP从所述第二LSP组中删除;a screening unit, configured to filter out an LSP whose time-scale value of the LSP in the second LSP group is greater than a time-scale value of the current LSP as a non-residual LSP, and the non-residual LSP from the second LSP group delete;
    其中,所述残留LSP清除请求还携带所述当前LSP的时标值,所述当前LSP的时标值用于标识所述当前LSP新建时的流水号。The residual LSP clearing request further carries a time stamp value of the current LSP, and the time stamp value of the current LSP is used to identify a serial number when the current LSP is newly created.
  8. 如权利要求6或7所述的装置,其特征在于,根据自身保存的所有LSP的路径消息和所述残留LSP清除请求确定存在与所述当前LSP同组的LSP时,所述处理单元具体用于:The apparatus according to claim 6 or 7, wherein the processing unit is specifically configured to use an LSP that is in the same group as the current LSP according to a path message of all LSPs that is saved by itself and the residual LSP clearing request. to:
    根据自身保存的所有LSP的路径消息和所述残留LSP清除请求,确定满足以下至少一个条件的LSP为与所述当前LSP同组的LSP: The LSP that meets the following at least one condition is an LSP that is in the same group as the current LSP according to the path information of all LSPs that are saved by the LSP and the residual LSP clearing request:
    条件1:与所述当前LSP的首节点管理地址相同;Condition 1: the same as the head node management address of the current LSP;
    条件2:与所述当前LSP的末节点管理地址相同;Condition 2: the same as the last node management address of the current LSP;
    条件3:与所述当前LSP所在隧道的身份标识相同;Condition 3: the identity of the tunnel where the current LSP is located is the same;
    其中,所述残留LSP清除请求携带所述当前LSP的首节点管理地址,所述当前LSP的末节点管理地址,所述当前LSP所在隧道的身份标识,以及所述当前LSP的路径标识。The residual LSP clearing request carries the head node management address of the current LSP, the last node management address of the current LSP, the identity identifier of the tunnel where the current LSP is located, and the path identifier of the current LSP.
  9. 如权利要求6或7所述的装置,其特征在于,将所述第一LSP组中,所述残留LSP清除请求未指示的LSP作为第二LSP组时,所述处理单元具体用于:The apparatus according to claim 6 or 7, wherein, when the LSP that is not indicated by the residual LSP clearing request is used as the second LSP group in the first LSP group, the processing unit is specifically configured to:
    将所述第一LSP组中的每一个LSP作为待判定LSP,分别执行:Each LSP in the first LSP group is used as the LSP to be determined, and respectively:
    判断当前待判定LSP是否为所述父对象编码信息指示的所述当前LSP的父路径;Determining whether the current LSP to be determined is the parent path of the current LSP indicated by the parent object coding information;
    若否,则继续判断所述当前待判定LSP是否为所述伙伴对象编码信息指示的所述当前LSP的备用路径;If yes, proceed to determine whether the current LSP to be determined is an alternate path of the current LSP indicated by the partner object coding information;
    若否,则确定所述当前待判定LSP归属于第二LSP组。If no, it is determined that the current to-be-determined LSP belongs to the second LSP group.
  10. 如权利要求6或7所述的装置,其特征在于,清除所述第二LSP组中的LSP时,所述清除单元具体用于:The apparatus according to claim 6 or 7, wherein the clearing unit is specifically configured to: when the LSP in the second LSP group is cleared;
    将每一个所述第二LSP组中的LSP作为一个残留LSP,分别执行:The LSP in each of the second LSP groups is used as a residual LSP, and respectively:
    若所述装置为所述当前LSP中的首节点,向所述当前残留LSP中所述第一节点的相邻下游节点发送针对所述当前残留LSP的路径清除消息;或者If the device is the first node in the current LSP, send a path clear message for the current residual LSP to the neighboring downstream node of the first node in the current residual LSP; or
    若所述装置为所述当前LSP中的中间节点,向所述当前残留LSP中所述第一节点的相邻下游节点发送针对所述当前残留LSP的路径清除消息,并向所述残留路径中所述第一节点的相邻上游节点发送针对所述当前残留LSP的路径错误消息;或者If the device is an intermediate node in the current LSP, send a path clear message for the current residual LSP to the neighboring downstream node of the first node in the current residual LSP, and go to the residual path. An adjacent upstream node of the first node sends a path error message for the current residual LSP; or
    若所述装置为所述当前LSP中的末节点,向所述当前残留路径中所述第一节点的相邻上游节点发送针对所述当前残留LSP的路径错误消息。 If the device is the last node in the current LSP, send a path error message for the current residual LSP to the neighboring upstream node of the first node in the current residual path.
PCT/CN2015/092586 2015-10-22 2015-10-22 Method and device for removing a residual label switching path (lsp) WO2017066971A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/092586 WO2017066971A1 (en) 2015-10-22 2015-10-22 Method and device for removing a residual label switching path (lsp)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/092586 WO2017066971A1 (en) 2015-10-22 2015-10-22 Method and device for removing a residual label switching path (lsp)

Publications (1)

Publication Number Publication Date
WO2017066971A1 true WO2017066971A1 (en) 2017-04-27

Family

ID=58556649

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/092586 WO2017066971A1 (en) 2015-10-22 2015-10-22 Method and device for removing a residual label switching path (lsp)

Country Status (1)

Country Link
WO (1) WO2017066971A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350789A (en) * 2008-09-17 2009-01-21 杭州华三通信技术有限公司 Method and apparatus for clearing residual LSP banding
US7881210B2 (en) * 2008-10-09 2011-02-01 At&T Intellectual Property I, L.P. Method and apparatus for identifying label distribution protocol flapping events
CN103229458A (en) * 2012-11-28 2013-07-31 华为技术有限公司 Residual information processing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350789A (en) * 2008-09-17 2009-01-21 杭州华三通信技术有限公司 Method and apparatus for clearing residual LSP banding
US7881210B2 (en) * 2008-10-09 2011-02-01 At&T Intellectual Property I, L.P. Method and apparatus for identifying label distribution protocol flapping events
CN103229458A (en) * 2012-11-28 2013-07-31 华为技术有限公司 Residual information processing method and device

Similar Documents

Publication Publication Date Title
US10250459B2 (en) Bandwidth on-demand services in multiple layer networks
CN104954256A (en) Apparatus, system, and method for reconfiguring point-to-multipoint label-switched paths
US7289429B2 (en) System and method to perform non-service effecting bandwidth reservation using a reservation signaling protocol
CN108141410B (en) Make-before-break mechanism for label switched paths
KR101468763B1 (en) Rsvp-te enhancement for mpls-frr bandwidth optimization
WO2009092249A1 (en) Method and network device for realizing protection for a shared mesh
CN101640637A (en) Resource reservation protocol tunnel management method based on flow rate engineering and system thereof
EP2555469B1 (en) Fault protection method and device
CN101646105B (en) Method, system and equipment for service recovery
CN100550840C (en) The steady method for restarting of CR-LSR
CN100502528C (en) Method for realizing association between optical interconnection in automatic exchanging optical network
CN106302165A (en) The guard method of a kind of point-to-multi-point tunnel and device
WO2009155799A1 (en) Method for recovering information based on graceful restarting and the router thereof
WO2018149294A1 (en) Method and apparatus for processing service flow in packet network
WO2017066971A1 (en) Method and device for removing a residual label switching path (lsp)
US8462617B2 (en) Method for relieving failure, and packet communication device
CN110247845B (en) Method for generating protection route in communication network
CN107181684A (en) A kind of method and apparatus of response to network change in topology
CN102571576B (en) The method of Graceful Restart and routing device in a kind of multi-protocol label switching network
CN106411751B (en) Path optimization method and device
JP4377822B2 (en) Failure location detection method and failure location detection device
KR100349655B1 (en) Path setup method for path protection/recovery in MPLS networks and path recovery method using the same
US9686188B2 (en) Method and apparatus for node realignment in a telecommunications network
WO2013033997A1 (en) Method and system for implementing cross reversal of control plane
CN115211088B (en) Apparatus and method for recovering label switched paths in a network

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15906489

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15906489

Country of ref document: EP

Kind code of ref document: A1