WO2011157130A2 - Path establishment method and apparatus - Google Patents

Path establishment method and apparatus Download PDF

Info

Publication number
WO2011157130A2
WO2011157130A2 PCT/CN2011/074983 CN2011074983W WO2011157130A2 WO 2011157130 A2 WO2011157130 A2 WO 2011157130A2 CN 2011074983 W CN2011074983 W CN 2011074983W WO 2011157130 A2 WO2011157130 A2 WO 2011157130A2
Authority
WO
WIPO (PCT)
Prior art keywords
path
node
protection
section
message
Prior art date
Application number
PCT/CN2011/074983
Other languages
French (fr)
Chinese (zh)
Other versions
WO2011157130A3 (en
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 CN201180000670.8A priority Critical patent/CN102204190B/en
Priority to PCT/CN2011/074983 priority patent/WO2011157130A2/en
Publication of WO2011157130A2 publication Critical patent/WO2011157130A2/en
Publication of WO2011157130A3 publication Critical patent/WO2011157130A3/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing

Definitions

  • the embodiments of the present invention relate to communication technologies, and in particular, to a path establishment method and apparatus. Background technique
  • P2MP Multicast technology is a transmission technology that transmits services from a single sender to multiple receivers. It is first applied to IP networks. As people's demand for communication has become higher and higher, the demand for large bandwidth multicast services such as video conferencing, video on demand, and multi-party data block backup has begun to emerge.
  • the multicast tree refers to a single fixed source bandwidth between a source network element and multiple sink network elements in the transport network. To the tree connection.
  • the mechanisms for ensuring survivability include the protection mechanism and the recovery mechanism (Res torat ion).
  • the protection mechanism refers to establishing a protection path for the protected connection before the failure occurs. After the failure occurs, the service needs to be switched to the protection path.
  • the recovery mechanism refers to the use of resources in the network after the failure occurs. Establish a new path to deliver the business affected by the failure.
  • the survivability of the P2MP connection must be ensured to ensure that the P2MP service can still be transmitted after the outgoing network fault occurs.
  • the section protection scheme is generally only applied to a Point to Point (P2P) type label switching path (hereinafter referred to as LSP), if the P2MP connection is to be viewed.
  • P2P Point to Point
  • LSP Point to Point
  • the existing P2P segment protection scheme can also be applied to P2MP.
  • ID P2MP identifier
  • LSP ID LSP ID
  • a merge node where the branch node and The merged node is the first and last nodes of the segment to be protected on the LSP respectively.
  • the node B is a branch node.
  • Node D is a merged node.
  • a protection LSP separated from the S2L sub-LSP is calculated between the branch node and the merged node on each S2L sub-LSP.
  • the LSP ID is assigned to each protection LSP. LSP and associate the protection LSP with the corresponding S2L sub-LSP.
  • the embodiments of the present invention provide a path establishment method and device, which are used to establish a section protection path or a section recovery path across different S2L sub-LSPs, thereby improving network resource utilization.
  • an embodiment of the present invention provides a path establishment method, including: calculating a section protection path for a leaf node that needs to be protected, or calculating a section restoration path for a leaf node that needs to be restored;
  • the first node of the protection path is a node other than the leaf node to be protected on the point-to-multipoint P2MP multicast tree, and has the shortest path or minimum cost from the head node to the leaf node, the section recovery path
  • the first node is a node on the P2MP multicast tree except the leaf node that needs to be restored, and has the shortest path or minimum cost from the head node to the leaf node;
  • the segment recovery path sends the path message to each node on the path, and establishes the segment protection path or the segment recovery path according to the path message.
  • the embodiment of the invention provides a path establishing device, including:
  • a calculation module configured to calculate a segment protection path for a leaf node that needs to be protected, or calculate a segment recovery path for a leaf node that needs to be restored; where the first node of the segment protection path is a point A node other than the leaf node to be protected on the multi-point P2MP multicast tree, and having the shortest path or minimum cost from the head node to the leaf node, the first node of the section recovery path being P2MP multicast a node on the tree other than the leaf node that needs to be restored, and having the shortest path or minimum cost from the head node to the leaf node;
  • Establishing a module configured to send a path message to the first node of the section protection path or the section recovery path, so that the section protection path or the first node of the section recovery path is protected along the section
  • the path or the section recovery path transmits the path message to each node on the path, and the section protection path or the section restoration path is established according to the path message.
  • the source node of the P2MP multicast tree is used to calculate the section protection path for the leaf node to be protected, or the section recovery path is calculated for the leaf node that needs to be restored, and the section is selected.
  • the first node of the protection path or the section recovery path is a node other than the leaf node, and the first node to the leaf node has the shortest path or the least cost, and then the source node sends a path message to the first node, and the first node is further along the area
  • the segment protection path or the segment recovery path sends a path message to each node on the path, so that each node establishes the segment protection path or the segment recovery path according to the path message.
  • This embodiment can implement different S 2L sub-LSPs. Establish a zone protection path or a zone recovery path to improve the utilization of network resources.
  • Embodiment 1 is a flowchart of Embodiment 1 of a path establishment method according to the present invention
  • Embodiment 2 is a flowchart of Embodiment 2 of a path establishment method according to the present invention
  • FIG. 3 is a schematic structural diagram of a P2MP multicast tree in Embodiment 2 of a path establishment method according to the present invention
  • FIG. 4 is a flowchart of Embodiment 3 of a path establishment method according to the present invention
  • FIG. 5 is a structural diagram of Embodiment 1 of a path establishing apparatus according to the present invention
  • FIG. 6 is a structural diagram of Embodiment 2 of the path establishing apparatus of the present invention. detailed description
  • FIG. 1 is a flowchart of a method for establishing a path according to a first embodiment of the present invention. As shown in FIG. 1 , this embodiment provides a path establishment method, which may specifically include the following steps:
  • Step 101 The source node of the P2MP multicast tree calculates a section protection path for the leaf node to be protected, or calculates a section recovery path for the leaf node that needs to be restored.
  • the source node of the P2MP multicast tree calculates the zone protection path for the leaf node to be protected in the multicast tree, or calculates the zone recovery path for the leaf node that needs to be restored.
  • the zone protection path is a protection path established for the protected connection before the fault occurs, and can be established simultaneously with the P2MP working LSP. After the fault occurs, only the service is switched to the section protection path, and the section recovery path is needed. A path calculated and established to utilize resources in the network after a failure occurs.
  • the first node of the selected segment protection path is a node other than the leaf node to be protected, and from the node The first node to the leaf node has the shortest path or minimum cost; the first node of the selected segment recovery path is a node other than the leaf node that needs to be restored, and has the shortest path or minimum cost from the first node to the leaf node.
  • the source node selects a node other than the protected leaf node as the first node of the section protection path on the P2MP working LSP, so that the shortest path is from the head node to the leaf node.
  • the cost is the smallest, and the protection path of the section is separated from the S2L sub-LSP where the leaf node is located.
  • the source node is working at P2MP Selecting a node other than the protected leaf node as the first node of the segment recovery path on the LSP, the first node is a node that is not affected by the fault, so that the shortest path or the cost is the highest from the first node to the leaf node.
  • the zone recovery path can bypass the failed link and/or node.
  • Step 102 The source node sends a path message to the first node of the section protection path or the section recovery path, so that the first node of the section protection path or the section recovery path is along the section protection path or the section recovery path to the path.
  • Each node sends a path message and establishes a zone protection path or a zone recovery path according to the path message.
  • the source node After the source node calculates the segment protection path for the leaf node to be protected, or calculates the segment recovery path for the leaf node that needs to be restored, the source node sends a path to the segment protection path or the first node of the segment recovery path ( The Path message, after receiving the Path message, the first node sends the Path message along the segment protection path or the segment recovery path to each node on the path. Therefore, after receiving the Path message, each node on the segment protection path or the segment recovery path can establish a segment protection path or a segment recovery path according to the Path message.
  • the intermediate node and the last node on the segment protection path or the segment recovery path may reserve bandwidth resources on the segment protection path or the segment recovery path according to the Path message and establish a cross-connection in the data plane thereof.
  • the first node of the protection path or the zone recovery path establishes a branch cross-connection to the direction of the intermediate node.
  • the leaf node can automatically associate the working branch with the zone protection path or the zone recovery path according to the Path message.
  • This embodiment provides a path establishment method, where a source node of a P2MP multicast tree calculates a section protection path for a leaf node to be protected, or a section recovery path of a leaf node that needs to be restored, and selects a section protection path or
  • the first node of the segment recovery path is a node other than the leaf node, and the first node to the leaf node has the shortest path or the least cost, and then the source node sends a path message to the first node, and the first node further follows the segment protection path.
  • the segment recovery path sends a path message to each node on the path, so that each node establishes the segment protection path or the segment recovery path according to the path message.
  • This embodiment can implement segment protection across different S2L sub-LSPs.
  • the path or zone recovery path also improves the utilization of network resources.
  • 2 is a flowchart of Embodiment 2 of a path establishment method according to the present invention.
  • this embodiment provides a path establishment method, and this embodiment is specifically a process of establishing a section protection path
  • FIG. 3 is a process of the present invention.
  • Step 201 The source node of the P2MP multicast tree calculates a P2MP working LSP.
  • the P2MP working LSP is calculated for the source node of the P2MP multicast tree.
  • This step can be implemented by using the existing working path calculation method.
  • the calculated P2MP working LSP can be as shown in Figure 3. That is, three S2L sub-LSPs including SB-D1, SB-D2, and SD-D3.
  • Step 202 The source node calculates a section protection path for the leaf node that needs to be protected.
  • the leaf node to be protected in this embodiment takes the node D2 in FIG. 3 as an example, the source node S calculates the segment protection path for the leaf node D2, and the source node can select the first node of the segment protection path as the P2MP connection except D2. Any node other than the node, and the last node is D2, and the segment protection path is a path separated from the S2L sub-LSP (ie, SB-D2) where the leaf node D2 is located. Specifically, when calculating the section protection path, the source node may select a node other than the protected D2 as the first node of the section protection path on the P2MP working LSP, so that the shortest path from the head node to D2 or The least cost. As shown in FIG.
  • the source node may select the node B or D as the first node of the segment protection path.
  • other nodes may also be selected as the source node.
  • only the node B or D is taken as an example, but The section protection path DF-D2 is better than the section protection path BC-D2, so the node D is finally selected as the head node of the section protection path.
  • Step 203 The source node sends a Path message hop by hop to each node in the path along each S2L sub-LSP and the section protection path.
  • the section protection path DF-D2 is a special branch of the P2MP multicast tree, rather than an independent LSP, so there is no need to separately allocate the LSP ID for the section protection path.
  • the P2MP source node allocates a P2MP ID and an LSP ID to the P2MP multicast tree as the identifier of the P2MP working LSP.
  • the source node sends a Path message along each branch of the multicast tree, that is, the source node along each S2L.
  • the sub-LSP and the zone protection path send Path messages to each node in the path.
  • the source node may send a Path message by using a multi-path scheme or a single-path scheme, where the multi-path scheme means that the source node sends different Path messages for each S2L sub-LSP and the section protection path respectively.
  • a single Path scheme means that the source node sends only the same Path message to each downstream node.
  • a plurality of S2L sub-LSPs may be established by using a single path scheme, and other S2L sub-LSPs may be established by using a multi-path scheme.
  • the Path message sent by the source node carries the source node address, the P2MP ID, the LSP ID, the explicit routing information, and the protection recovery type of the P2MP multicast tree, where each Path message carries The display routing information and protection recovery type are different.
  • the explicit routing information in the Path message can be explicitly routed through the object (Expl i ci t Route Objec t; hereinafter referred to as: ER0) or the second explicit route object (Second Expl ic it Route) Object (hereinafter referred to as SERO) specifies the path information of the S2L sub-LSP.
  • the Path message may also carry the protection recovery type.
  • the protection recovery type indicates that the S2L sub-LSP is the working path.
  • the explicit routing information in the Path message can also specify the path information of the protection path of the segment through ER0 or SER0.
  • the protection recovery type needs to be specified in the Path message.
  • the protection recovery type in this embodiment may be a segment 1+1 protection, a segment 1: 1 protection, or a segment preset protection, and for the segment 1: In terms of protection, it is further possible to specify in the Path message whether the section protection path allows the bearer to be preempted for additional services when the working path is normal.
  • the Path message sent by the source node carries the source node address, P2MP ID, LSP ID, explicit routing information, and protection recovery type of the P2MP multicast tree.
  • the explicit routing information in the Path message can be specifically passed through the ER0 in the resource re-provisioning protocol (RSVP-TE) signaling protocol.
  • the second explicit routing object (Secondary Exploratory Route Object; hereinafter referred to as SERO) specifies the path information of the S2L sub-LSPP2MP multicast tree, and the information implies each S2L sub-LSP in the P2MP multicast tree. Path information.
  • the explicit routing information in the Path message can also specify the path information of the protection path of the segment through ER0 or SERO.
  • the protection recovery type in this embodiment may be a segment 1+1 protection, a segment 1: 1 protection, or a segment preset protection, and for the segment 1: In terms of protection, it is further possible to specify in the Path message whether the section protection path allows the bearer to be preempted for additional services when the working path is normal.
  • the format of the SERO object is as follows:
  • L indicates whether the explicit route object is a strict route or a loose route.
  • the bit is not needed for the protection recovery type sub-object; Type indicates the type of the sub-object; Length indicates the length of the sub-object.
  • the other fields are the contents of the protected recovery type sub-objects, as follows:
  • the value of P is 1.
  • LSP Flags indicates the type of protection recovery for this branch. For example: “0x01” means the zone recovery path, “0x02” means zone preset protection, “0x04” means zone 1:1 protection, and “0x08” means zone 1+1 protection.
  • Step 204 Each node on each S2L sub-LSP establishes a P2MP working LSP according to the Path message. After the Path message is received, each node on each S2L sub-LSP establishes a P2MP working LSP according to the Path message.
  • the existing P2MP working path establishment method may be used, and the P2MP information is saved in the control plane. For example, the source node address, P2MP ID, and LSP ID of the P2MP multicast tree are not mentioned here.
  • Step 205 Each node on the zone protection path establishes a zone protection path according to the Path message.
  • the first node D of the segment protection path learns that the segment protection path of the DF-D2 needs to be established according to the explicit routing information and the protection recovery type carried in the Path message.
  • the first node D sends a Path message to each node in the path hop by hop along the segment protection path DF-D2 (for example, the node D sends a Path message to the node F, and the node F processes the Path message locally and sends it to the node D2.
  • the local processing here may be to save the information in the Path message locally, and the section protection path is established according to the Path message, where the Path message is used.
  • the different types of protection recovery carried are used to illustrate the specific path establishment process.
  • the first node D of the segment protection path sends a Path message to each node in the path along the segment protection path DF-D2, where the Path message carries the source of the P2MP multicast tree. Node address, P2MP ID, LSP ID, ERO information, and protection recovery type.
  • the first node can reassign the LSP ID, or directly adopt the LSP ID assigned by the source node.
  • the ERO or SERO information includes the path information of the segment protection path. -D2.
  • the intermediate node F and the last node D2 respectively reserve bandwidth resources on the links DF and F-D2, and establish cross-connections in the data plane, and return reservations (Resv) to the respective upstream nodes. Message, thereby establishing a zone protection path.
  • the first node D also creates a branch cross-connection to the F direction of the intermediate node.
  • the first node D of the section protection path sends a Path message to each node in the path along the section protection path DF-D2, where the Path message carries the source of the P2MP multicast tree.
  • the first node can reassign the LSP ID, or directly adopt the LSP ID assigned by the source node.
  • the ERO or SERO information includes the path information of the segment protection path. -D2.
  • the intermediate node F and the last node D2 respectively reserve bandwidth resources on the links DF and F-D2, establish cross-connections in the data plane, and return Resv messages to the respective upstream nodes, thereby establishing Zone protection path.
  • the protection attribute may also be carried in the Path message. If the protection attribute of the section protection path DF-D2 is specified to allow additional services to be carried, the established section protection path DF-D2 may also be used to transmit other extra preemptibles. business.
  • the first node D of the segment protection path sends a Path message to each node in the path along the segment protection path DF-D2, where the Path message carries the source node of the P2MP multicast tree.
  • the address, the P2MP ID, the LSP ID, the ERO information, and the protection recovery type, where the first node can reassign the LSP ID, or directly adopt the LSP ID assigned by the source node, and the ERO or SERO information includes the path information DF of the segment protection path. D2.
  • the intermediate node F and the last node D2 reserve bandwidth resources only on the link DF and the F-D2, respectively.
  • a Resv message is returned to the respective upstream node to establish a zone protection path.
  • Step 206 The leaf node automatically associates the segment protection path and the corresponding S2L sub-LSP according to the received Path message.
  • the leaf node D2 After the leaf node D2 receives the two Path messages from the P2MP working LSP and the segment protection path respectively, the leaf node D2 can learn the two Path messages according to the source node address and the P2MP ID of the P2MP multicast tree carried in the Path message. The same P2MP service can be used to establish a working branch according to the protection type of the two Path messages. Which Path message is used to establish the protection path, the leaf node can use the Path message. Automatically associate the working branch with the section protection path, ie automatically associate the section protection path with the corresponding S2L sub-LSP
  • Step 207 When the leaf node cannot receive the service data from the P2MP working LSP due to the network failure, the service on the failed S2L sub-LSP is selected on the segment protection path.
  • the section protection path can be utilized to perform protection switching of the service. If the leaf node D2 cannot receive service data from the P2MP working LSP due to network failure, for example, a link fault occurs on the working branch B-D2, or the node B fails, then the pair may appear on the associated segment protection path. The service on the faulty S2L sub-LSP is selected. In this embodiment, when the zone protection path is established, the protection recovery type is different, and the corresponding protection switching process is also different.
  • the node D2 detects that the service data cannot be received on the B-D2 due to the work branch failure, and can directly switch to the associated segment protection path F-D2, The service is selected on the segment 1+1 protection branch F-D2. If it is set to allow return when the zone protection path is established, when the node D2 detects that the failure on the branch B-D2 has disappeared, the service is again selected on the working branch B-D2.
  • the protection recovery type is zone 1:1 protection
  • the node B detects a failure in the network, it starts from the node B, and determines whether the zone protection branch of the leaf node D2 is downstream of the node, and if so, the zone The first node of the segment protection branch sends a fault notification message; if not, along D2
  • the S2L sub-LSP D2-BS
  • D2-BS S2L sub-LSP
  • the source node S determines that the node is the upstream node of the segment protection branch, and sends a switching command to the first node D of the segment protection path, and the first node D establishes a direction to the node F.
  • the branches are cross-connected, so node D2 can select traffic on the zone protection path DF-D2.
  • the fault notification message and the switching command may be an RSVP-TE signaling message of the control plane or an Automatic Protection Switching (APS) message of the data plane.
  • the protection recovery type is zone preset protection
  • the node B detects that the network is faulty, it starts from the node B, determines whether the zone protection branch of the leaf node D2 is downstream of the node, and if so, protects the zone.
  • the first node of the branch sends a fault notification message; if not, the fault notification message is sent in the upstream direction along the S2L sub-LSP (D2-BS) where D2 is located, and the upstream node repeats the above operation until the fault notification message is sent to the P2MP source.
  • D2-BS S2L sub-LSP
  • the source node S determines that the node is the upstream node of the segment protection branch, and sends a switching command to the first node D of the segment protection path, and the node D along the segment protection path DF -D2 sends a Path message, and each node on the request path establishes a cross-connection in the data plane according to the previously reserved resources.
  • a new branch cross-connection to the node F direction is established in the node D, Node D2 can select traffic on the zone protection path DF-D2.
  • the present embodiment provides a path establishment method, in which a source node of a P2MP multicast tree calculates a zone protection path for a leaf node to be protected, and selects a node of the zone protection path as a node other than the leaf node, and the node
  • the first node to the leaf node has the shortest path or the least cost, and then the source node sends a path message to the first node, and the first node sends a path message along the section protection path to each node on the path, so that each node according to the path message
  • the section protection path is established.
  • the section protection path is used as a branch of the P2MP working LSP, instead of a new P2P LSP.
  • this embodiment only needs to manage one P2MP LSP, which simplifies management.
  • the zone protection path and the P2MP working LSP use the same P2MP ID and LSP ID, both from Dynamic association, no need to associate each section protection path; at the same time, this embodiment can establish a section protection path across different S2L sub-LSPs, thereby establishing a better path and achieving more flexible section protection. It also improves the utilization of network resources.
  • Step 401 A source node of a P2MP multicast tree calculates and establishes a P2MP working LSP.
  • This step is to calculate and establish a P2MP working LSP for the source node of the P2MP multicast tree.
  • This step can be implemented by using the existing working path calculation and establishment method.
  • the calculation of the P2MP working LSP can be as shown in Figure 3. As shown in the figure, including SB-D1, SB-D2, SD-D3, three S2L sub-LSPs
  • Step 402 When a fault occurs in the network, the faulty upstream node sends a fault notification message to the source node.
  • This step is a fault notification process.
  • the faulty upstream node B sends a fault notification message to the source node S.
  • Step 403 The source node calculates a section recovery path for the leaf node of the failed link.
  • the faulty link is B-D2
  • the leaf node of the link is D2
  • the source node S calculates the section recovery path for the leaf node D2
  • the source node can select the first node of the section recovery path as Any node on the P2MP connection that is not affected by the failure, and the last node is D2, and the section recovery path does not pass through the faulty link B-D2.
  • the source node may select, on the P2MP working LSP, a node other than D2, which is not affected by the fault, as the first node of the section recovery path, so that the node from the head node to the D2 has The shortest path or cost is minimal and does not pass through the faulty link B-D2.
  • the source node can select node B or D as the zone.
  • the segment restores the first node of the path, but since the segment recovery path DF-D2 is better than the segment protection path BC-D2, the node D is finally selected as the first node of the segment recovery path.
  • Step 404 The source node sends a Path message to the first node of the path along the section recovery path.
  • the section recovery path D-F-D2 is a special branch of the P2MP multicast tree, rather than a separate LSP, so there is no need to separately assign the LSP ID to the section recovery path.
  • the source node S sends a Path message to the first node D of the segment recovery path, and carries the source of the P 2MP multicast tree in the Path message.
  • the explicit routing information in the Path message may specifically specify the path information of the section recovery path by using ER0 or SER0. For example, the explicit routing information of the leaf node D2 in FIG.
  • ER0 ⁇ D, F, D3 ⁇ .
  • Step 405 The first node establishes a section recovery path according to the Path message.
  • the first node After receiving the Path message, the first node sends a Path message along the section recovery path DF-D2, where the Path message carries the source node address, P2MP ID, LSP ID, explicit routing information of the P2MP multicast tree. Protection recovery type, where the first node can reassign the LSP ID, or directly adopt the LSP ID assigned by the source node.
  • the intermediate node F and the last node D2 respectively on the link DF and F-D2.
  • the bandwidth resources are reserved, and a cross-connection is established in the data plane, and a Resv message is returned to the respective upstream nodes, thereby establishing a section recovery path.
  • the first node D also creates a new branch cross-connection to the intermediate node F direction.
  • Step 406 The leaf node automatically associates the section recovery path with the faulty working branch according to the received Path message, and performs service switching.
  • the leaf node D2 After the leaf node D2 receives the Path message from the segment recovery path, it can learn from the P2MP information saved by itself and the source node address, P2MP ID, LSP ID, and protection recovery type of the P2MP multicast tree carried in the Path message.
  • the Path message is used to establish a section recovery path, and the leaf node can automatically associate the working branch with the section recovery path according to the Path message, that is, The zone is automatically associated with the zone recovery path and the corresponding S2L sub-LSP, and the service is selected on the zone recovery path DF-D2.
  • This embodiment provides a path establishment method, where a source node of a P2MP multicast tree calculates a section recovery path for a leaf node that needs to be restored, and the first node of the section recovery path is selected except a leaf node and is not affected by the fault. a node, and the first node to the leaf node has the shortest path or the least cost, and then the source node sends a path message to the first node, and the first node sends a path message to each node on the path along the section recovery path, The node establishes the section recovery path according to the path message.
  • the section recovery path is used as a branch of the P2MP working LSP, instead of a new P2P LSP.
  • this embodiment only needs to manage one P2MP LSP, which simplifies management.
  • the section recovery path and the P2MP working LSP in this embodiment use the same P2MP ID and LSP ID, and the two are automatically associated, and the association path of each section is not required to be associated;
  • the S2L sub-LSP establishes a section recovery path to establish a better path and implement a more flexible section recovery. , But also improve the utilization of network resources.
  • FIG. 5 is a structural diagram of Embodiment 1 of a path establishing apparatus according to the present invention. As shown in FIG. 5, this embodiment provides a path establishing apparatus, which may specifically perform the steps in Embodiment 1 of the foregoing method, and details are not described herein again. .
  • the path establishing apparatus provided in this embodiment may specifically include a calculating module 501 and an establishing module 502.
  • the calculation module 501 is configured to calculate a segment protection path for a leaf node to be protected, or calculate a segment recovery path for a leaf node that needs to be restored; where the first node of the segment protection path is a point-to-multipoint P2MP group A node other than the leaf node to be protected on the tree, and having the shortest path or minimum cost from the head node to the leaf node; the first node of the section recovery path is a P2MP multicast tree except for recovery A node outside the leaf node and having the shortest path or minimum cost from the head node to the leaf node.
  • the building module 502 is used to Sending a path message to a head node of the section protection path or the section recovery path, so that the head node of the section protection path or the section recovery path sends the section along the section protection path or the section restoration path to each node on the path A path message, and a section protection path or a section recovery path is established according to the path message.
  • FIG. 6 is a structural diagram of Embodiment 2 of the path establishing apparatus according to the present invention.
  • the embodiment provides a path establishing apparatus, which may specifically perform the steps in Embodiment 2 and Embodiment 3 of the foregoing method. I won't go into details here.
  • the path establishing apparatus provided in this embodiment is based on the foregoing FIG. 5, and the establishing module 502 may specifically include a first sending unit 512, a first establishing unit 522, and a second establishing unit 532.
  • the first sending unit 512 is configured to send, by the source node of the P2MP multicast tree, a path message to each node in the path along each S2L sub-LSP and the section protection path, where the path message carries the P2MP multicast tree.
  • the second explicit routing object SER0 is used to specify; or, the first sending unit 512 is configured to send a path message to the downstream node hop by hop through the source node of the P2MP multicast tree, where the path message carries the source node address of the P2MP multicast tree.
  • the P2MP ID, the LSP ID, the explicit routing information, and the protection recovery type where the explicit routing information of the S2L sub-LSP is specified by ER0 and SER0, and the explicit routing information of the section protection path passes the ER0 or SER0 to specify.
  • the first establishing unit 522 is configured to establish a P2MP working LSP according to the path message by each node on the P2MP working LSP.
  • the second establishing unit 532 is configured to establish the section protection path according to the path message by a head node of the section protection path.
  • the second establishing unit 532 in this embodiment may specifically include a first sending subunit 5321, a first establishing subunit 5322, a second establishing subunit 5323, and a third establishing subunit 5324.
  • the first sending sub-unit 5321 is configured to send the path message to each node in the path along the segment protection path by using a first node of the segment protection path, where the path message carries a source of a P2MP multicast tree. Node address, P2MP ID, LSP ID, explicit routing information, and protection recovery type.
  • the first establishing subunit 5322 is configured to: when the protection recovery type is section 1+1 protection, the intermediate node and the last node that pass the section protection path reserve bandwidth on the corresponding link according to the path message.
  • the source establishes a cross-connection in the data plane and returns a reservation message to the respective upstream node, the head node of the section protection path establishing a branch cross-connection to the intermediate node direction.
  • the second establishing subunit 5323 is configured to: when the protection recovery type is the section 1: 1 protection, the intermediate node and the last node that pass the section protection path reserve bandwidth on the corresponding link according to the path message. Resources, establish cross-connections in the data plane, and return reservation messages to their respective upstream nodes.
  • the third establishing subunit 5324 is configured to reserve, by the intermediate node and the last node of the section protection path, the bandwidth resource on the corresponding link according to the path message, when the protection recovery type is the section preset protection. And return a reservation message to the respective upstream node.
  • the path establishing apparatus may further include a first association module 601, where the first association module 601 is configured to use the leaf node according to the path information from the S2L sub-LSP and the section protection path respectively.
  • the source node address, the P2MP ID, and the protection recovery type automatically associate the S2L sub-LSP with the zone protection path.
  • the establishing module 502 in this embodiment may further include a second sending unit 542, a third sending unit 552, a third establishing unit 562, and a fourth establishing unit 572.
  • the second sending unit 542 is configured to: after the network fault is detected, send a path message to the first node of the section recovery path by using the source node of the P2MP multicast tree, where the path message carries the source node address of the P2MP multicast tree.
  • the third sending unit 552 is configured to send the path message to each node in the path along the section recovery path by the first node of the section recovery path.
  • the third establishing unit 562 is configured to reserve a bandwidth resource on the corresponding contact according to the path message by using the intermediate node and the last node in the section recovery path, establish a cross connection in the data plane, and return to the respective upstream node. Reserve a message.
  • the fourth establishing unit 572 is configured to establish a branch cross-connection to the intermediate node by the head node of the section recovery path.
  • the path establishing apparatus in this embodiment may further include a second association module 602, configured to pass, by the leaf node, the source node in the path message from the section recovery path Address, the P2MP ID and the protection recovery type, and the saved The P2MP information automatically associates the section recovery path with the S2L sub-LSP to select the service of the S2L sub-LSP on the section recovery path.
  • a second association module 602 configured to pass, by the leaf node, the source node in the path message from the section recovery path Address, the P2MP ID and the protection recovery type, and the saved The P2MP information automatically associates the section recovery path with the S2L sub-LSP to select the service of the S2L sub-LSP on the section recovery path.
  • This embodiment provides a path establishing apparatus, where a source node of a P2MP multicast tree calculates a section protection path or a section recovery path for a leaf node that needs to be protected or restored, and selects a section protection path or a section recovery path.
  • the node is a node other than the leaf node, and the first node to the leaf node has the shortest path or the least cost, and then the source node sends a path message to the first node, and the first node further follows the section protection path or the section recovery path direction.
  • Each node on the path sends a path message, so that each node establishes the section protection path or the section recovery path according to the path message.
  • the section protection path or the section restoration path is used as a branch of the P2MP working LSP.
  • the present embodiment only needs to manage one P2MP LSP, which simplifies management; and the segment protection path or the segment recovery path and the P2MP working LSP in this embodiment use the same P2MP ID and LSP ID. , the two are automatically associated, no need to associate each section protection path or section recovery path;
  • the embodiment can implement a section protection path or a section recovery path across different S 2L sub-LSPs, thereby establishing a better path, implementing a more flexible section protection path or section recovery, and improving network resource utilization. rate.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiments of the present invention disclose a path establishment method and apparatus. The method includes the following steps: calculating a section protection path for a leaf node needing protection, or calculating a section restoration path for a leaf node needing restoration; sending a path message to the first node of the section protection path or the section restoration path, so as to make the first node of the section protection path or the section restoration path to send the path message along the section protection path or the section restoration path to each node on the path, and establishing the section protection path or the section restoration path according to the path message. The apparatus includes a calculation module and an establishment module. The embodiments improve the utilization rate of the network resource.

Description

路径建立方法和装置  Path establishment method and device
技术领域 Technical field
本发明实施例涉及通信技术, 尤其涉及一种路径建立方法和装置。 背景技术  The embodiments of the present invention relate to communication technologies, and in particular, to a path establishment method and apparatus. Background technique
点到多点 (Point to Mul t i-Point ; 以下简称: P2MP )组播技术是一种 将业务从单个发送者传送到多个接收者的传送技术, 其最先应用在 IP 网络 中。 随着人们对通信的需求越来越高, 开始出现如视频会议、 视频点播以及 多方数据块备份等大带宽组播业务需求。  Point to Mul t i-Point (hereinafter referred to as P2MP) Multicast technology is a transmission technology that transmits services from a single sender to multiple receivers. It is first applied to IP networks. As people's demand for communication has become higher and higher, the demand for large bandwidth multicast services such as video conferencing, video on demand, and multi-party data block backup has begun to emerge.
为支持这些类型的组播业务,需要在传送网络中建立并维护 P2MP的组播 树, 组播树是指传送网络中一个源网元到多个宿网元之间的具有固定带宽的 一个单向的树状连接。 在传送网开展业务时, 保证业务的生存性成为一个非 常重要的问题, 通常保证生存性的机制包括保护机制 (Protect ion )和恢复 机制(Res torat ion )。 其中, 保护机制是指在故障发生前已经为被保护的连 接建立保护路径, 故障发生后只需将业务切换至保护路径即可; 恢复机制是 指在故障发生后再利用网络中的资源计算并建立新的路径, 以传送受故障影 响的业务。 在传送网中开展 P2MP业务时, 同样需要保证 P2MP连接的生存性, 以保证出线网络故障后依然可以传送 P2MP业务。  To support these types of multicast services, a P2MP multicast tree needs to be established and maintained in the transport network. The multicast tree refers to a single fixed source bandwidth between a source network element and multiple sink network elements in the transport network. To the tree connection. When conducting business on the transport network, ensuring the survivability of the service becomes a very important issue. The mechanisms for ensuring survivability include the protection mechanism and the recovery mechanism (Res torat ion). The protection mechanism refers to establishing a protection path for the protected connection before the failure occurs. After the failure occurs, the service needs to be switched to the protection path. The recovery mechanism refers to the use of resources in the network after the failure occurs. Establish a new path to deliver the business affected by the failure. When the P2MP service is deployed on the transport network, the survivability of the P2MP connection must be ensured to ensure that the P2MP service can still be transmitted after the outgoing network fault occurs.
在现有技术中, 区段保护方案通常只应用于点到点 (Point to Point ; 以下简称: P2P )类型的标签交换路径 ( Label Swi tching Path; 以下简称: LSP ) 中, 如果将 P2MP连接视为多条源到叶子(Source to Leaf ; 以下简称: S2L )子标签交换路径 ( sub-LSP ) , 则也可以将现有的 P2P区段保护方案应 用到 P2MP中。 先为 P2MP工作 LSP分配 P2MP标识( Ident if ier; 以下简称: ID )和 LSP ID,并建立 P2MP的工作 LSP;在 P2MP的各条 S2L sub-LSP上分别 选定分支节点 ( branch node )和合并节点 ( merge node )其中, 分支节点和 合并节点分别为 LSP上需要被保护的区段的首末节点, 例如, 假设 LSP经过 节点 A-B-C-D-E , 如果需要对区段 B-C-D进行保护 (例如建立区段保护路径 B-X-Y-Z-D ) , 则节点 B为分支节点, 节点 D为合并节点; 在各条 S2L sub-LSP 上的分支节点和合并节点之间分别计算出一条与 S2L sub-LSP 分离的保护 LSP , 分别为每条保护 LSP分配 LSP I D , 建立各条保护 LSP , 并将保护 LSP与 对应的 S2L sub-LSP相关联。 In the prior art, the section protection scheme is generally only applied to a Point to Point (P2P) type label switching path (hereinafter referred to as LSP), if the P2MP connection is to be viewed. For multiple source-to-leaf (S2L) sub-label switching paths (sub-LSPs), the existing P2P segment protection scheme can also be applied to P2MP. First, assign a P2MP identifier (Ident if ier; hereinafter referred to as ID) and an LSP ID to the P2MP working LSP, and establish a working LSP of the P2MP; select branch nodes and merge on each S2L sub-LSP of the P2MP. a merge node where the branch node and The merged node is the first and last nodes of the segment to be protected on the LSP respectively. For example, if the LSP passes through the node ABCDE, if the segment BCD needs to be protected (for example, the segment protection path BXYZD is established), the node B is a branch node. Node D is a merged node. A protection LSP separated from the S2L sub-LSP is calculated between the branch node and the merged node on each S2L sub-LSP. The LSP ID is assigned to each protection LSP. LSP and associate the protection LSP with the corresponding S2L sub-LSP.
然而, 现有技术中至少存在如下缺陷: 现有技术中不能跨不同的 S 2L s ub-LSP建立区段保护路径或区段恢复路径, 因此网络资源的利用率较低。 发明内容  However, in the prior art, at least the following drawbacks exist: In the prior art, a section protection path or a section recovery path cannot be established across different S 2 L s ub-LSPs, and thus the utilization of network resources is low. Summary of the invention
本发明实施例在于提供一种路径建立方法和装置, 实现跨不同的 S2L sub-LSP建立区段保护路径或区段恢复路径, 提高网络资源的利用率。  The embodiments of the present invention provide a path establishment method and device, which are used to establish a section protection path or a section recovery path across different S2L sub-LSPs, thereby improving network resource utilization.
为了实现上述目的, 本发明实施例提供了一种路径建立方法, 包括: 为需要保护的叶子节点计算区段保护路径, 或者为需要恢复的叶子节点 计算区段恢复路径; 其中, 所述区段保护路径的首节点为点到多点 P2MP组播 树上除需要保护的叶子节点外的一个节点, 且从所述首节点到所述叶子节点 具有最短路径或最小代价,所述区段恢复路径的首节点为 P2MP组播树上除需 要恢复的叶子节点外的一个节点, 且从所述首节点到所述叶子节点具有最短 路径或最小代价;  In order to achieve the above object, an embodiment of the present invention provides a path establishment method, including: calculating a section protection path for a leaf node that needs to be protected, or calculating a section restoration path for a leaf node that needs to be restored; The first node of the protection path is a node other than the leaf node to be protected on the point-to-multipoint P2MP multicast tree, and has the shortest path or minimum cost from the head node to the leaf node, the section recovery path The first node is a node on the P2MP multicast tree except the leaf node that needs to be restored, and has the shortest path or minimum cost from the head node to the leaf node;
向所述区段保护路径或区段所述恢复路径的首节点发送路径消息 , 以使 所述区段保护路径或所述区段恢复路径的首节点沿所述区段保护路径或所述 区段恢复路径向路径上的各节点发送所述路径消息, 并根据所述路径消息建 立所述区段保护路径或所述区段恢复路径。  Transmitting a path message to a head node of the section protection path or the recovery path of the section, such that the section protection path or a head node of the section restoration path along the section protection path or the area The segment recovery path sends the path message to each node on the path, and establishes the segment protection path or the segment recovery path according to the path message.
本发明实施例提供了一种路径建立装置, 包括:  The embodiment of the invention provides a path establishing device, including:
计算模块, 用于为需要保护的叶子节点计算区段保护路径, 或者为需要 恢复的叶子节点计算区段恢复路径; 其中, 所述区段保护路径的首节点为点 到多点 P2MP组播树上除需要保护的叶子节点外的一个节点,且从所述首节点 到所述叶子节点具有最短路径或最小代价, 所述区段恢复路径的首节点为 P2MP组播树上除需要恢复的叶子节点外的一个节点, 且从所述首节点到所述 叶子节点具有最短路径或最小代价; a calculation module, configured to calculate a segment protection path for a leaf node that needs to be protected, or calculate a segment recovery path for a leaf node that needs to be restored; where the first node of the segment protection path is a point A node other than the leaf node to be protected on the multi-point P2MP multicast tree, and having the shortest path or minimum cost from the head node to the leaf node, the first node of the section recovery path being P2MP multicast a node on the tree other than the leaf node that needs to be restored, and having the shortest path or minimum cost from the head node to the leaf node;
建立模块, 用于向所述区段保护路径或所述区段恢复路径的首节点发送 路径消息, 以使所述区段保护路径或所述区段恢复路径的首节点沿所述区段 保护路径或所述区段恢复路径向路径上的各节点发送所述路径消息, 并根据 所述路径消息建立所述区段保护路径或所述区段恢复路径。  Establishing a module, configured to send a path message to the first node of the section protection path or the section recovery path, so that the section protection path or the first node of the section recovery path is protected along the section The path or the section recovery path transmits the path message to each node on the path, and the section protection path or the section restoration path is established according to the path message.
本发明实施例提供的一种路径建立方法和装置,通过 P2MP组播树的源 节点为需要保护的叶子节点计算区段保护路径, 或者为需要恢复的叶子节点 计算区段恢复路径, 选择区段保护路径或区段恢复路径的首节点为除叶子节 点外的一个节点, 且该首节点到叶子节点具有最短路径或代价最小, 然后源 节点向该首节点发送路径消息, 该首节点再沿区段保护路径或区段恢复路径 向路径上的各节点发送路径消息, 以由各节点根据该路径消息建立该区段保 护路径或区段恢复路径; 本实施例可以实现跨不同 S 2L sub-LSP 建立区段 保护路径或区段恢复路径, 提高了网络资源的利用率。 附图说明  The method and device for establishing a path according to the embodiment of the present invention, the source node of the P2MP multicast tree is used to calculate the section protection path for the leaf node to be protected, or the section recovery path is calculated for the leaf node that needs to be restored, and the section is selected. The first node of the protection path or the section recovery path is a node other than the leaf node, and the first node to the leaf node has the shortest path or the least cost, and then the source node sends a path message to the first node, and the first node is further along the area The segment protection path or the segment recovery path sends a path message to each node on the path, so that each node establishes the segment protection path or the segment recovery path according to the path message. This embodiment can implement different S 2L sub-LSPs. Establish a zone protection path or a zone recovery path to improve the utilization of network resources. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下 面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在 不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图 1为本发明路径建立方法实施例一的流程图;  1 is a flowchart of Embodiment 1 of a path establishment method according to the present invention;
图 2为本发明路径建立方法实施例二的流程图;  2 is a flowchart of Embodiment 2 of a path establishment method according to the present invention;
图 3为本发明路径建立方法实施例二中 P2MP组播树的结构示意图; 图 4为本发明路径建立方法实施例三的流程图; 图 5为本发明路径建立装置实施例一的结构图; 3 is a schematic structural diagram of a P2MP multicast tree in Embodiment 2 of a path establishment method according to the present invention; FIG. 4 is a flowchart of Embodiment 3 of a path establishment method according to the present invention; FIG. 5 is a structural diagram of Embodiment 1 of a path establishing apparatus according to the present invention; FIG.
图 6为本发明路径建立装置实施例二的结构图。 具体实施方式  FIG. 6 is a structural diagram of Embodiment 2 of the path establishing apparatus of the present invention. detailed description
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发 明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于 本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提下所获 得的所有其他实施例, 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying 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.
图 1为本发明路径建立方法实施例一的流程图, 如图 1所示, 本实施例 提供了一种路径建立方法, 可以具体包括如下步骤:  FIG. 1 is a flowchart of a method for establishing a path according to a first embodiment of the present invention. As shown in FIG. 1 , this embodiment provides a path establishment method, which may specifically include the following steps:
步骤 101 , P2MP组播树的源节点为需要保护的叶子节点计算区段保护路 径, 或者为需要恢复的叶子节点计算区段恢复路径。  Step 101: The source node of the P2MP multicast tree calculates a section protection path for the leaf node to be protected, or calculates a section recovery path for the leaf node that needs to be restored.
在本实施例中, P2MP组播树的源节点为组播树中需要保护的叶子节点计 算区段保护路径, 或者为需要恢复的叶子节点计算区段恢复路径。 其中, 区 段保护路径为在故障发生前为被保护的连接建立的保护路径,可以与 P2MP工 作 LSP同时建立, 故障发生后只需将业务切换至该区段保护路径即可, 区段 恢复路径为在故障发生后再利用网络中的资源计算并建立的路径。 在本实施 例中, 源节点在为叶子节点计算区段保护路径或区段恢复路径时, 所选定的 区段保护路径的首节点为除需要保护的叶子节点外的一个节点, 且从该首节 点到叶子节点具有最短路径或最小代价; 所选定的区段恢复路径的首节点为 除需要恢复的叶子节点外的一个节点, 且从该首节点到叶子节点具有最短路 径或最小代价。 具体地, 在计算区段保护路径时, 源节点在 P2MP工作 LSP上 选择除被保护的叶子节点外的一个节点作为该区段保护路径的首节点, 使得 从该首节点到叶子节点具有最短路径或代价最小, 且该区段保护路径与叶子 节点所在的 S2L sub-LSP相分离。 在计算区段恢复路径时, 源节点在 P2MP工 作 LSP上选择除被保护的叶子节点外的节点作为区段恢复路径的首节点, 该 首节点为不受故障影响的节点, 使得从该首节点到叶子节点具有最短路径或 代价最 ' j、, 且该区段恢复路径能够绕过出现故障的链路和 /或节点。 In this embodiment, the source node of the P2MP multicast tree calculates the zone protection path for the leaf node to be protected in the multicast tree, or calculates the zone recovery path for the leaf node that needs to be restored. The zone protection path is a protection path established for the protected connection before the fault occurs, and can be established simultaneously with the P2MP working LSP. After the fault occurs, only the service is switched to the section protection path, and the section recovery path is needed. A path calculated and established to utilize resources in the network after a failure occurs. In this embodiment, when the source node calculates the segment protection path or the segment recovery path for the leaf node, the first node of the selected segment protection path is a node other than the leaf node to be protected, and from the node The first node to the leaf node has the shortest path or minimum cost; the first node of the selected segment recovery path is a node other than the leaf node that needs to be restored, and has the shortest path or minimum cost from the first node to the leaf node. Specifically, when calculating the section protection path, the source node selects a node other than the protected leaf node as the first node of the section protection path on the P2MP working LSP, so that the shortest path is from the head node to the leaf node. Or the cost is the smallest, and the protection path of the section is separated from the S2L sub-LSP where the leaf node is located. When calculating the segment recovery path, the source node is working at P2MP Selecting a node other than the protected leaf node as the first node of the segment recovery path on the LSP, the first node is a node that is not affected by the fault, so that the shortest path or the cost is the highest from the first node to the leaf node. And the zone recovery path can bypass the failed link and/or node.
步骤 102, 源节点向区段保护路径或区段恢复路径的首节点发送路径消 息, 以使区段保护路径或区段恢复路径的首节点沿区段保护路径或区段恢复 路径向路径上的各节点发送路径消息, 并根据路径消息建立区段保护路径或 区段恢复路径。  Step 102: The source node sends a path message to the first node of the section protection path or the section recovery path, so that the first node of the section protection path or the section recovery path is along the section protection path or the section recovery path to the path. Each node sends a path message and establishes a zone protection path or a zone recovery path according to the path message.
当源节点为需要保护的叶子节点计算出区段保护路径, 或者为需要恢复 的叶子节点计算出区段恢复路径后, 源节点向该区段保护路径或区段恢复路 径的首节点发送路径 ( Path )消息,首节点在接收到该 Path消息后,将该 Path 消息沿区段保护路径或区段恢复路径向路径上的各节点发送 Path消息。由此, 区段保护路径或区段恢复路径上的各节点在接收到 Path消息后, 便可以根据 Path消息建立区段保护路径或区段恢复路径。 具体地, 区段保护路径或区段 恢复路径上的中间节点和末节点可以根据该 Path消息在区段保护路径或区段 恢复路径上预留带宽资源并在其数据平面建立交叉连接, 区段保护路径或区 段恢复路径的首节点建立去往中间节点方向的分支交叉连接。 且叶子节点根 据该 Path 消息可以自动将工作分支和区段保护路径或区段恢复路径进行关 联。  After the source node calculates the segment protection path for the leaf node to be protected, or calculates the segment recovery path for the leaf node that needs to be restored, the source node sends a path to the segment protection path or the first node of the segment recovery path ( The Path message, after receiving the Path message, the first node sends the Path message along the segment protection path or the segment recovery path to each node on the path. Therefore, after receiving the Path message, each node on the segment protection path or the segment recovery path can establish a segment protection path or a segment recovery path according to the Path message. Specifically, the intermediate node and the last node on the segment protection path or the segment recovery path may reserve bandwidth resources on the segment protection path or the segment recovery path according to the Path message and establish a cross-connection in the data plane thereof. The first node of the protection path or the zone recovery path establishes a branch cross-connection to the direction of the intermediate node. The leaf node can automatically associate the working branch with the zone protection path or the zone recovery path according to the Path message.
本实施例提供了一种路径建立方法, 通过 P2MP组播树的源节点为需要 保护的叶子节点计算区段保护路径, 或者为需要恢复的叶子节点计算区段恢 复路径, 选择区段保护路径或区段恢复路径的首节点为除叶子节点外的一个 节点, 且该首节点到叶子节点具有最短路径或代价最小, 然后源节点向该首 节点发送路径消息, 该首节点再沿区段保护路径或区段恢复路径向路径上的 各节点发送路径消息, 以由各节点根据该路径消息建立该区段保护路径或区 段恢复路径; 本实施例可以实现跨不同 S2L sub-LSP建立区段保护路径或 区段恢复路径, 也提高了网络资源的利用率。 图 2为本发明路径建立方法实施例二的流程图, 如图 1所示, 本实施例 提供了一种路径建立方法, 本实施例具体为建立区段保护路径的过程, 图 3 为本发明路径建立方法实施例二中 P2MP组播树的结构示意图, 如图 3所示, 假设在传送网中, 要求建立从源节点 S到 3个叶子节点 Dl、 D2、 D3的 P2MP 组播树, 并要求对叶子节点 D2提供区段保护, 即为 D2建立区段保护路径, 对叶子节点 D1和 D3建立区段保护路径的方法与此类似,此处仅以 D2为例进 行说明。 本实施例可以具体包括如下步骤: This embodiment provides a path establishment method, where a source node of a P2MP multicast tree calculates a section protection path for a leaf node to be protected, or a section recovery path of a leaf node that needs to be restored, and selects a section protection path or The first node of the segment recovery path is a node other than the leaf node, and the first node to the leaf node has the shortest path or the least cost, and then the source node sends a path message to the first node, and the first node further follows the segment protection path. Or the segment recovery path sends a path message to each node on the path, so that each node establishes the segment protection path or the segment recovery path according to the path message. This embodiment can implement segment protection across different S2L sub-LSPs. The path or zone recovery path also improves the utilization of network resources. 2 is a flowchart of Embodiment 2 of a path establishment method according to the present invention. As shown in FIG. 1 , this embodiment provides a path establishment method, and this embodiment is specifically a process of establishing a section protection path, and FIG. 3 is a process of the present invention. A schematic diagram of the structure of the P2MP multicast tree in the second embodiment of the path establishment method. As shown in FIG. 3, it is assumed that in the transport network, a P2MP multicast tree from the source node S to the three leaf nodes D1, D2, and D3 is required to be established, and It is required to provide a segment protection for the leaf node D2, that is, a segment protection path is established for the D2, and a method for establishing a segment protection path for the leaf nodes D1 and D3 is similar. Here, only D2 is taken as an example for description. This embodiment may specifically include the following steps:
步骤 201 , P2MP组播树的源节点计算 P2MP工作 LSP。  Step 201: The source node of the P2MP multicast tree calculates a P2MP working LSP.
本步骤为 P2MP组播树的源节点计算 P2MP工作 LSP, 该步骤可以采用 现有的工作路径的计算方法来实现,此处不再赘述,计算出的 P2MP工作 LSP 可以如图 3中所示, 即包括 S-B-D1、 S-B-D2、 S-D-D3三条 S2L sub-LSP。  In this step, the P2MP working LSP is calculated for the source node of the P2MP multicast tree. This step can be implemented by using the existing working path calculation method. The calculated P2MP working LSP can be as shown in Figure 3. That is, three S2L sub-LSPs including SB-D1, SB-D2, and SD-D3.
步骤 202, 源节点为需要保护的叶子节点计算区段保护路径。  Step 202: The source node calculates a section protection path for the leaf node that needs to be protected.
本实施例中需要保护的叶子节点以图 3中的节点 D2为例, 源节点 S为 叶子节点 D2计算区段保护路径, 源节点可以选择该区段保护路径的首节点 为 P2MP连接上除 D2以外的任何一个节点, 而末节点为 D2, 且该区段保护 路径为与叶子节点 D2所在的 S2L sub-LSP (即 S-B-D2 )相分离的路径。 具体 地, 在计算区段保护路径时, 源节点可以在 P2MP工作 LSP上选择除被保护 的 D2之外的一个节点作为区段保护路径的首节点,使得从该首节点到 D2具 有最短路径或代价最小。 如图 3所示, 源节点可以选择节点 B或 D作为区段 保护路径的首节点, 当然, 也可以选择其他的节点作为源节点, 此处仅以节 点 B或 D为例进行说明,但由于区段保护路径 D-F-D2比区段保护路径 B-C-D2 更优, 因此最终选择节点 D作为区段保护路径的首节点。  The leaf node to be protected in this embodiment takes the node D2 in FIG. 3 as an example, the source node S calculates the segment protection path for the leaf node D2, and the source node can select the first node of the segment protection path as the P2MP connection except D2. Any node other than the node, and the last node is D2, and the segment protection path is a path separated from the S2L sub-LSP (ie, SB-D2) where the leaf node D2 is located. Specifically, when calculating the section protection path, the source node may select a node other than the protected D2 as the first node of the section protection path on the P2MP working LSP, so that the shortest path from the head node to D2 or The least cost. As shown in FIG. 3, the source node may select the node B or D as the first node of the segment protection path. Of course, other nodes may also be selected as the source node. Here, only the node B or D is taken as an example, but The section protection path DF-D2 is better than the section protection path BC-D2, so the node D is finally selected as the head node of the section protection path.
步骤 203 ,源节点沿各 S2L sub-LSP和区段保护路径向路径中各节点逐跳 发送 Path消息。  Step 203: The source node sends a Path message hop by hop to each node in the path along each S2L sub-LSP and the section protection path.
在本实施例中 ,区段保护路径 D-F-D2作为 P2MP组播树的一个特殊分支, 而不是一条独立的 LSP, 因此不需要为区段保护路径单独分配 LSP ID。 本步 骤可以具体为 P2MP源节点为该 P2MP组播树分配 1个 P2MP ID和 1个 LSP ID,作为 P2MP工作 LSP的标识, 源节点沿组播树的各个分支发送 Path消息, 即源节点沿各 S2L sub-LSP和区段保护路径向路径中的各节点发送 Path消息。 在本实施例中, 源节点可以采用多 Path方案或单 Path方案来发送 Path消息, 其中,多 Path方案是指源节点分别为每条 S2L sub-LSP和区段保护路径发送不 同的 Path消息, 而单 Path方案是指源节点只往各下游节点发送同一份 Path消 息。 当然也可以采用混合的方式, 采用单 Path方案建立部分 S2L sub-LSP, 采 用多 Path方案建立其他 S2L sub-LSP。 In this embodiment, the section protection path DF-D2 is a special branch of the P2MP multicast tree, rather than an independent LSP, so there is no need to separately allocate the LSP ID for the section protection path. This step The P2MP source node allocates a P2MP ID and an LSP ID to the P2MP multicast tree as the identifier of the P2MP working LSP. The source node sends a Path message along each branch of the multicast tree, that is, the source node along each S2L. The sub-LSP and the zone protection path send Path messages to each node in the path. In this embodiment, the source node may send a Path message by using a multi-path scheme or a single-path scheme, where the multi-path scheme means that the source node sends different Path messages for each S2L sub-LSP and the section protection path respectively. A single Path scheme means that the source node sends only the same Path message to each downstream node. Of course, a plurality of S2L sub-LSPs may be established by using a single path scheme, and other S2L sub-LSPs may be established by using a multi-path scheme.
具体地,对于多 Path方案来说, 源节点发送的 Path消息中携带 P2MP组播 树的源节点地址、 P2MP ID、 LSP ID、 显式路由信息和保护恢复类型, 其中, 每条 Path 消息中携带的显示路由信息和保护恢复类型是不同的。 对于 S2L sub-LSP 来说, Path 消息中的显式路由信息具体可以通过显式路由对象 ( Expl i ci t Route Objec t ; 以下简称: ER0 )或第二显式路由对象( Secondary Expl ic i t Route Object ; 以下简称: SERO )来指定该 S2L sub-LSP的路径信 息, 例如, 图 3中的叶子节点 D1的显式路由信息可以表达为 ER0= {S,B,D1}。 其中, 该 Path消息中也可以携带保护恢复类型, 则该通过保护恢复类型指明 该 S2L sub-LSP为工作路径, 当然, 本领域技术人员可以理解, 该 Path消息 中也可以不携带保护恢复类型, 此时则默认该 S2L sub-LSP为工作路径。 对 于区段保护路径来说, Path消息中的显式路由信息也具体可以通过 ER0或 SER0 来指定该区段保护路径的路径信息,如图 3中 D2的显式路由信息可以表达为 ER0= {D,F,D2}。 另外, 在该 Path消息中还需指明保护恢复类型, 本实施例中 的保护恢复类型可以为区段 1+1保护、 区段 1 : 1保护或者区段预置保护, 而 对于区段 1 :1保护来说,还可以进一步在 Path消息中指定在工作路径正常时该 区段保护路径是否允许承载可被抢占的额外业务。  Specifically, for the multi-path solution, the Path message sent by the source node carries the source node address, the P2MP ID, the LSP ID, the explicit routing information, and the protection recovery type of the P2MP multicast tree, where each Path message carries The display routing information and protection recovery type are different. For the S2L sub-LSP, the explicit routing information in the Path message can be explicitly routed through the object (Expl i ci t Route Objec t; hereinafter referred to as: ER0) or the second explicit route object (Second Expl ic it Route) Object (hereinafter referred to as SERO) specifies the path information of the S2L sub-LSP. For example, the explicit routing information of the leaf node D1 in FIG. 3 can be expressed as ER0={S, B, D1}. The Path message may also carry the protection recovery type. The protection recovery type indicates that the S2L sub-LSP is the working path. Of course, those skilled in the art may understand that the Path message may not carry the protection recovery type. At this time, the S2L sub-LSP is the working path by default. For the segment protection path, the explicit routing information in the Path message can also specify the path information of the protection path of the segment through ER0 or SER0. The explicit routing information of D2 in Figure 3 can be expressed as ER0= { D, F, D2}. In addition, the protection recovery type needs to be specified in the Path message. The protection recovery type in this embodiment may be a segment 1+1 protection, a segment 1: 1 protection, or a segment preset protection, and for the segment 1: In terms of protection, it is further possible to specify in the Path message whether the section protection path allows the bearer to be preempted for additional services when the working path is normal.
对于单 Path方案来说,源节点发送的 Path消息中携带 P2MP组播树的源节 点地址、 P2MP ID、 LSP ID, 显式路由信息和保护恢复类型。 对于 S2L sub-LSP 来说, 在带流量工程的资源预留协议 ( Resource ReSerVa t ion Protoco l-Traff ic Eng ineer ing; 以下简称: RSVP-TE )信令协议中, Path消 息中的显式路由信息具体可以通过 ER0 和第二显式路由对象(Secondary Expl ic i t Route Object ; 以下简称: SERO )来指定该 S2L sub-LSPP2MP组播 树的路径信息, 该信息隐含了 P2MP组播树中各条 S2L sub-LSP的路径信息. 例如, 图 3 中的组播树可以表达为 ER0= {S, B, Dl} 、 SER0= {B, D2} 、 SER0= {S, D, D3},这隐含了 P2MP组播树中所包含的 3条 S2L sub-LSP的路径信 息: S-B-D1、 S-B-D2和 S-D-D3。 对于区段保护路径来说, Path消息中的显式 路由信息也具体可以通过 ER0或 SERO来指定该区段保护路径的路径信息,如 图 3 中 D2 的显式路由信息可以表达为 SER0= {D,F,D2}。 为了与工作分支的 SER0相区分, 需要在区段保护路径的 SER0中增加标识, 指明该 SER0是区段 保护路径而不是工作分支。 另外, 在该 Path消息中还需指明保护恢复类型, 本实施例中的保护恢复类型可以为区段 1+1保护、 区段 1 : 1保护或者区段预 置保护, 而对于区段 1 :1保护来说,还可以进一步在 Path消息中指定在工作路 径正常时该区段保护路径是否允许承载可被抢占的额外业务。 For a single-path scheme, the Path message sent by the source node carries the source node address, P2MP ID, LSP ID, explicit routing information, and protection recovery type of the P2MP multicast tree. For S2L sub-LSP The explicit routing information in the Path message can be specifically passed through the ER0 in the resource re-provisioning protocol (RSVP-TE) signaling protocol. The second explicit routing object (Secondary Exploratory Route Object; hereinafter referred to as SERO) specifies the path information of the S2L sub-LSPP2MP multicast tree, and the information implies each S2L sub-LSP in the P2MP multicast tree. Path information. For example, the multicast tree in Figure 3 can be expressed as ER0= {S, B, Dl}, SER0= {B, D2}, SER0= {S, D, D3}, which implies the P2MP group. Path information of three S2L sub-LSPs included in the broadcast tree: SB-D1, SB-D2, and SD-D3. For the segment protection path, the explicit routing information in the Path message can also specify the path information of the protection path of the segment through ER0 or SERO. The explicit routing information of D2 in Figure 3 can be expressed as SER0= { D, F, D2}. In order to distinguish from the SER0 of the working branch, it is necessary to add an identifier to the SER0 of the section protection path, indicating that the SER0 is a section protection path instead of a working branch. In addition, the protection recovery type needs to be specified in the Path message. The protection recovery type in this embodiment may be a segment 1+1 protection, a segment 1: 1 protection, or a segment preset protection, and for the segment 1: In terms of protection, it is further possible to specify in the Path message whether the section protection path allows the bearer to be preempted for additional services when the working path is normal.
在本实施例中, SERO对象的格式如下所示:  In this embodiment, the format of the SERO object is as follows:
Length (bytes) | Class-Num | C_Type ILength (bytes) | Class-Num | C_Type I
II (sub-Object) II 其中, Length表示 SERO对象的长度(单位:字节), Class-Num ( Class Number ) 表示该对象的对象号, 例如 Class-Num=200, C-Type ( Class Type )表示该对 象的对象类型, 例如 C-Type=2, sub-Object部分包含多个子对象, 用于描述显 式路由信息。 例如, 可以在 sub-Object中按顺序填入 P2MP分支所经过的各个 节点或各条链路或各个端口的地址, 用于表示该分支的路由。 在本实施例中, sub-Object中还可以填入 1个保护恢复类型子对象, 其格式如下: II (sub-Object) II where Length represents the length of the SERO object (unit: byte), and Class-Num (Class Number ) represents the object number of the object, such as Class-Num=200, C-Type ( Class Type ) Indicates the object type of the object, such as C-Type=2, and the sub-Object part contains multiple sub-objects for describing explicit routing information. For example, the address of each node or each link or each port through which the P2MP branch passes may be filled in the sub-Object in order to indicate the route of the branch. In this embodiment, the sub-Object can also be filled with a protected recovery type sub-object, and its format is as follows:
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + L Type | Length | Reserved +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + L Type | Length | Reserved
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+
S I P Reserved | LSP Flags | Reserved S I P Reserved | LSP Flags | Reserved
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 其中, L、 Type, Length等 3个字段为子对象的公共头部, L表示该显式路由 对象是严格路由还是松散路由, 在本发明中, 对保护恢复类型子对象, 不需要 该比特位; Type表示该子对象的类型; Length表示该子对象的长度。 其他字 段为该保护恢复类型子对象的内容, 分别如下所示:  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+ where 3 fields such as L, Type, and Length are the common headers of the child object, and L indicates whether the explicit route object is a strict route or a loose route. In the invention, the bit is not needed for the protection recovery type sub-object; Type indicates the type of the sub-object; Length indicates the length of the sub-object. The other fields are the contents of the protected recovery type sub-objects, as follows:
S: =1表示建立该分支时只在控制平面预留资源, 不在数据平面建立交叉 连接; =0表示建立该分支时在控制平面预留资源, 且在数据平面建立交叉连 接。 例如, 在本发明中, 如果需要建立区段预置保护分支, 则可以设置 S=l。  S: =1 means that resources are reserved only in the control plane when the branch is established, and no cross-connection is established in the data plane; =0 indicates that resources are reserved in the control plane when the branch is established, and cross-connection is established in the data plane. For example, in the present invention, if it is necessary to establish a section preset protection branch, S=l can be set.
P: =1表示该分支是一个保护分支, =0表示该分支是一个工作分支。在本 实施例中, 对于区段 1+1保护分支或区段 1:1保护分支, P的值为 1。  P: =1 indicates that the branch is a protection branch, and =0 indicates that the branch is a working branch. In this embodiment, for a segment 1+1 protection branch or a segment 1:1 protection branch, the value of P is 1.
LSP Flags表示该分支的保护恢复类型。 例如: "0x01" 表示区段恢复路 径, "0x02" 表示区段预置保护, "0x04" 表示区段 1:1保护, "0x08" 表示 区段 1+1保护。  LSP Flags indicates the type of protection recovery for this branch. For example: "0x01" means the zone recovery path, "0x02" means zone preset protection, "0x04" means zone 1:1 protection, and "0x08" means zone 1+1 protection.
步骤 204,各 S2L sub-LSP上的各节点根据 Path消息建立 P2MP工作 LSP。 本步骤为各 S2L sub-LSP上的各节点在接收到 Path消息后, 根据该 Path 消息建立 P2MP工作 LSP, 具体可以采用现有的 P2MP工作路径建立方法, 并在控制平面内保存该 P2MP的信息 , 如 P2MP组播树的源节点地址、 P2MP ID和 LSP ID等, 此处不再赘述。  Step 204: Each node on each S2L sub-LSP establishes a P2MP working LSP according to the Path message. After the Path message is received, each node on each S2L sub-LSP establishes a P2MP working LSP according to the Path message. The existing P2MP working path establishment method may be used, and the P2MP information is saved in the control plane. For example, the source node address, P2MP ID, and LSP ID of the P2MP multicast tree are not mentioned here.
步骤 205, 区段保护路径上的各节点根据 Path消息建立区段保护路径。 区段保护路径的首节点 D在接收到来自源节点的 Path消息后, 根据该 Path消息中携带的显式路由信息和保护恢复类型,得知需要建立 D-F-D2的区 段保护路径, 则该首节点 D沿该区段保护路径 D-F-D2逐跳向路径中的各节 点发送 Path消息 (如节点 D将 Path消息发给节点 F, 节点 F再将 Path消息 在本地进行处理后发送给节点 D2, 此处的本地处理可以为在本地保存 Path 消息中的信息等), 并根据 Path消息建立区段保护路径, 此处以 Path消息中 携带的不同保护恢复类型来说明具体的路径建立过程。 Step 205: Each node on the zone protection path establishes a zone protection path according to the Path message. After receiving the Path message from the source node, the first node D of the segment protection path learns that the segment protection path of the DF-D2 needs to be established according to the explicit routing information and the protection recovery type carried in the Path message. The first node D sends a Path message to each node in the path hop by hop along the segment protection path DF-D2 (for example, the node D sends a Path message to the node F, and the node F processes the Path message locally and sends it to the node D2. The local processing here may be to save the information in the Path message locally, and the section protection path is established according to the Path message, where the Path message is used. The different types of protection recovery carried are used to illustrate the specific path establishment process.
当保护恢复类型为区段 1+1保护时, 区段保护路径的首节点 D沿区段保 护路径 D-F-D2向路径中各节点发送 Path消息, 在该 Path消息中携带 P2MP 组播树的源节点地址、 P2MP ID、 LSP ID、 ERO信息和保护恢复类型, 其中, 首节点可以重新分配 LSP ID, 也可以直接采用源节点分配的 LSP ID, ERO 或 SERO信息包含区段保护路径的路径信息 D-F-D2。 中间节点 F和末节点 D2在接收到该 Path消息后, 在链路 D-F和 F-D2上分别预留带宽资源, 并在 数据平面建立交叉连接, 同时向各自的上游节点返回预留 (Resv ) 消息, 从 而建立区段保护路径。 之后, 首节点 D还新建一个去往中间节点 F方向的分 支交叉连接。  When the protection recovery type is the segment 1+1 protection, the first node D of the segment protection path sends a Path message to each node in the path along the segment protection path DF-D2, where the Path message carries the source of the P2MP multicast tree. Node address, P2MP ID, LSP ID, ERO information, and protection recovery type. The first node can reassign the LSP ID, or directly adopt the LSP ID assigned by the source node. The ERO or SERO information includes the path information of the segment protection path. -D2. After receiving the Path message, the intermediate node F and the last node D2 respectively reserve bandwidth resources on the links DF and F-D2, and establish cross-connections in the data plane, and return reservations (Resv) to the respective upstream nodes. Message, thereby establishing a zone protection path. After that, the first node D also creates a branch cross-connection to the F direction of the intermediate node.
当保护恢复类型为区段 1:1保护时, 区段保护路径的首节点 D沿区段保 护路径 D-F-D2向路径中各节点发送 Path消息, 在该 Path消息中携带 P2MP 组播树的源节点地址、 P2MP ID、 LSP ID、 ERO信息和保护恢复类型, 其中, 首节点可以重新分配 LSP ID, 也可以直接采用源节点分配的 LSP ID, ERO 或 SERO信息包含区段保护路径的路径信息 D-F-D2。 中间节点 F和末节点 D2在接收到该 Path消息后, 在链路 D-F和 F-D2上分别预留带宽资源, 并在 数据平面建立交叉连接, 同时向各自的上游节点返回 Resv消息, 从而建立区 段保护路径。 还可以在 Path消息中携带保护属性, 若区段保护路径 D-F-D2 的保护属性中指定允许承载额外业务时,则建立的区段保护路径 D-F-D2还可 以用于传送其他可被抢占的额外业务。  When the protection recovery type is the section 1:1 protection, the first node D of the section protection path sends a Path message to each node in the path along the section protection path DF-D2, where the Path message carries the source of the P2MP multicast tree. Node address, P2MP ID, LSP ID, ERO information, and protection recovery type. The first node can reassign the LSP ID, or directly adopt the LSP ID assigned by the source node. The ERO or SERO information includes the path information of the segment protection path. -D2. After receiving the Path message, the intermediate node F and the last node D2 respectively reserve bandwidth resources on the links DF and F-D2, establish cross-connections in the data plane, and return Resv messages to the respective upstream nodes, thereby establishing Zone protection path. The protection attribute may also be carried in the Path message. If the protection attribute of the section protection path DF-D2 is specified to allow additional services to be carried, the established section protection path DF-D2 may also be used to transmit other extra preemptibles. business.
当保护恢复类型为区段预置保护时 , 区段保护路径的首节点 D沿区段保 护路径 D-F-D2向路径中各节点发送 Path消息, 在该 Path消息中携带 P2MP 组播树的源节点地址、 P2MP ID、 LSP ID、 ERO信息和保护恢复类型, 其中, 首节点可以重新分配 LSP ID, 也可以直接采用源节点分配的 LSP ID, ERO 或 SERO信息包含区段保护路径的路径信息 D-F-D2。 中间节点 F和末节点 D2在接收到该 Path消息后, 仅在链路 D-F和 F-D2上分别预留带宽资源, 并 向各自的上游节点返回 Resv消息, 从而建立区段保护路径。 When the protection recovery type is the segment preset protection, the first node D of the segment protection path sends a Path message to each node in the path along the segment protection path DF-D2, where the Path message carries the source node of the P2MP multicast tree. The address, the P2MP ID, the LSP ID, the ERO information, and the protection recovery type, where the first node can reassign the LSP ID, or directly adopt the LSP ID assigned by the source node, and the ERO or SERO information includes the path information DF of the segment protection path. D2. After receiving the Path message, the intermediate node F and the last node D2 reserve bandwidth resources only on the link DF and the F-D2, respectively. A Resv message is returned to the respective upstream node to establish a zone protection path.
步骤 206, 叶子节点根据接收到的 Path消息自动关联区段保护路径和相 应的 S2L sub-LSP。  Step 206: The leaf node automatically associates the segment protection path and the corresponding S2L sub-LSP according to the received Path message.
当叶子节点 D2接收到分别来自 P2MP工作 LSP和来自区段保护路径的 两个 Path消息后,根据 Path消息中携带的 P2MP组播树的源节点地址和 P2MP ID, 便可以获知这两个 Path消息属于同一个 P2MP业务, 再根据两个 Path 消息中保护恢复类型的不同, 便可以获知哪个 Path消息用于建立工作分支, 哪个 Path消息用于建立区段保护路径,则叶子节点根据 Path消息便可以自动 将工作分支和区段保护路径进行关联, 即自动关联区段保护路径和相应的 S2L sub-LSP„  After the leaf node D2 receives the two Path messages from the P2MP working LSP and the segment protection path respectively, the leaf node D2 can learn the two Path messages according to the source node address and the P2MP ID of the P2MP multicast tree carried in the Path message. The same P2MP service can be used to establish a working branch according to the protection type of the two Path messages. Which Path message is used to establish the protection path, the leaf node can use the Path message. Automatically associate the working branch with the section protection path, ie automatically associate the section protection path with the corresponding S2L sub-LSP
步骤 207, 当叶子节点因网络故障不能从 P2MP工作 LSP上接收业务数 据时, 在区段保护路径上对出现故障的 S2L sub-LSP上的业务进行选收。  Step 207: When the leaf node cannot receive the service data from the P2MP working LSP due to the network failure, the service on the failed S2L sub-LSP is selected on the segment protection path.
在通过上述步骤完成区段保护路径的计算和建立后, 便可以利用该区段 保护路径进行业务的保护倒换。 若叶子节点 D2因网络故障不能从 P2MP工 作 LSP上接收业务数据, 例如工作分支 B-D2上发生链路故障, 或者节点 B 发生故障,此时则可以在相关联的区段保护路径上对出现故障的 S2L sub-LSP 上的业务进行选收。 在本实施例中, 区段保护路径建立时保护恢复类型不同 对应的保护倒换过程也不同。  After the calculation and establishment of the section protection path are completed through the above steps, the section protection path can be utilized to perform protection switching of the service. If the leaf node D2 cannot receive service data from the P2MP working LSP due to network failure, for example, a link fault occurs on the working branch B-D2, or the node B fails, then the pair may appear on the associated segment protection path. The service on the faulty S2L sub-LSP is selected. In this embodiment, when the zone protection path is established, the protection recovery type is different, and the corresponding protection switching process is also different.
当保护恢复类型为区段 1+1保护时, 节点 D2检测到因工作分支故障导 致无法在 B-D2 上接收业务数据, 则可以直接切换到相关联的区段保护路径 F-D2上, 在区段 1+1保护分支 F-D2上对业务进行选收。 如果在建立区段保 护路径时设置为允许返回, 则当节点 D2检测到分支 B-D2上的故障消失后, 则重新在工作分支 B-D2上选收业务。  When the protection recovery type is the segment 1+1 protection, the node D2 detects that the service data cannot be received on the B-D2 due to the work branch failure, and can directly switch to the associated segment protection path F-D2, The service is selected on the segment 1+1 protection branch F-D2. If it is set to allow return when the zone protection path is established, when the node D2 detects that the failure on the branch B-D2 has disappeared, the service is again selected on the working branch B-D2.
当保护恢复类型为区段 1:1保护时, 节点 B检测到网络中出现故障, 则 从节点 B开始, 判断叶子节点 D2的区段保护分支是否在本节点的下游, 如 果是, 则向区段保护分支的首节点发送故障通告消息; 如果不是, 则沿 D2 所在的 S2L sub-LSP ( D2-B-S ) 向上游方向通告故障, 上游节点再重复上述 操作, 直到将故障通告消息发送到 P2MP组播树的源节点 S。 在本实施例中, 源节点 S收到故障通告后, 判断本节点为区段保护分支的上游节点, 则向区 段保护路径的首节点 D发送倒换命令,首节点 D建立去往节点 F方向的分支 交叉连接, 于是节点 D2可以在区段保护路径 D-F-D2上选收业务。 其中, 此 处的故障通告消息和倒换命令可以为控制平面的 RSVP-TE信令消息,也可以 为数据平面的自动保护倒换 ( Automatic Protection Switching; 以下简称: APS ) 消息。 When the protection recovery type is zone 1:1 protection, if the node B detects a failure in the network, it starts from the node B, and determines whether the zone protection branch of the leaf node D2 is downstream of the node, and if so, the zone The first node of the segment protection branch sends a fault notification message; if not, along D2 The S2L sub-LSP (D2-BS) is located in the upstream direction to notify the fault, and the upstream node repeats the above operation until the fault notification message is sent to the source node S of the P2MP multicast tree. In this embodiment, after receiving the fault notification, the source node S determines that the node is the upstream node of the segment protection branch, and sends a switching command to the first node D of the segment protection path, and the first node D establishes a direction to the node F. The branches are cross-connected, so node D2 can select traffic on the zone protection path DF-D2. The fault notification message and the switching command may be an RSVP-TE signaling message of the control plane or an Automatic Protection Switching (APS) message of the data plane.
当保护恢复类型为区段预置保护时, 节点 B检测到网络出现故障, 则从 节点 B开始, 判断叶子节点 D2的区段保护分支是否在本节点的下游, 如果 是, 则向区段保护分支的首节点发送故障通告消息; 如果不是, 则沿 D2 所 在的 S2L sub-LSP ( D2-B-S ) 向上游方向发送故障通告消息, 上游节点再重 复上述操作, 直到将故障通告消息发送到 P2MP源节点 S。 在本实施例中, 源节点 S收到故障通告消息后, 判断本节点是区段保护分支的上游节点, 则 向区段保护路径的首节点 D发送倒换命令, 节点 D沿区段保护路径 D-F-D2 发送 Path消息, 请求路径上各节点根据之前预留的资源在数据平面建立交叉 连接, 在建立起区段保护路径后, 在节点 D内新建一个去往节点 F方向的分 支交叉连接, 于是节点 D2可以在区段保护路径 D-F-D2上选收业务。  When the protection recovery type is zone preset protection, if the node B detects that the network is faulty, it starts from the node B, determines whether the zone protection branch of the leaf node D2 is downstream of the node, and if so, protects the zone. The first node of the branch sends a fault notification message; if not, the fault notification message is sent in the upstream direction along the S2L sub-LSP (D2-BS) where D2 is located, and the upstream node repeats the above operation until the fault notification message is sent to the P2MP source. Node S. In this embodiment, after receiving the fault notification message, the source node S determines that the node is the upstream node of the segment protection branch, and sends a switching command to the first node D of the segment protection path, and the node D along the segment protection path DF -D2 sends a Path message, and each node on the request path establishes a cross-connection in the data plane according to the previously reserved resources. After the section protection path is established, a new branch cross-connection to the node F direction is established in the node D, Node D2 can select traffic on the zone protection path DF-D2.
本实施例提供了一种路径建立方法, 通过 P2MP组播树的源节点为需要 保护的叶子节点计算区段保护路径, 选择区段保护路径的首节点为除叶子节 点外的一个节点, 且该首节点到叶子节点具有最短路径或代价最小, 然后源 节点向该首节点发送路径消息, 该首节点再沿区段保护路径向路径上的各节 点发送路径消息, 以由各节点根据该路径消息建立该区段保护路径; 本实施 例将区段保护路径作为 P2MP 工作 LSP 的一个分支, 而不是一条新的 P2P LSP, 因此本实施例只需管理一条 P2MP LSP , 简化了管理; 且本实施例中 的区段保护路径和 P2MP工作 LSP使用相同的 P2MP I D和 LSP I D, 两者自 动关联, 无需再对每个区段保护路径进行关联操作; 同时本实施例可以实 现跨不同 S2L sub-LSP建立区段保护路径, 从而建立更优的路径, 实现了 更灵活的区段保护, 也提高了网络资源的利用率。 The present embodiment provides a path establishment method, in which a source node of a P2MP multicast tree calculates a zone protection path for a leaf node to be protected, and selects a node of the zone protection path as a node other than the leaf node, and the node The first node to the leaf node has the shortest path or the least cost, and then the source node sends a path message to the first node, and the first node sends a path message along the section protection path to each node on the path, so that each node according to the path message The section protection path is established. In this embodiment, the section protection path is used as a branch of the P2MP working LSP, instead of a new P2P LSP. Therefore, this embodiment only needs to manage one P2MP LSP, which simplifies management. The zone protection path and the P2MP working LSP use the same P2MP ID and LSP ID, both from Dynamic association, no need to associate each section protection path; at the same time, this embodiment can establish a section protection path across different S2L sub-LSPs, thereby establishing a better path and achieving more flexible section protection. It also improves the utilization of network resources.
图 4为本发明路径建立方法实施例三的流程图, 如图 4所示, 本实施例 提供了一种路径建立方法, 本实施例具体为建立区段恢复路径的过程, 继续 参照上述图 3 , ^叚设在传送网中, 已经存在从源节点 S到 3个叶子节点 Dl、 D2、 D3的 P2MP组播树, 当网络故障导致叶子节点 D2无法接收业务数据时, 需要为 D2建立区段恢复路径,为叶子节点 D1和 D3建立区段恢复路径的方法 与此类似, 此处仅以 D2为例进行说明。 本实施例可以具体包括如下步骤: 步骤 401 , P2MP组播树的源节点计算并建立 P2MP工作 LSP。  4 is a flowchart of a third embodiment of a path establishment method according to the present invention. As shown in FIG. 4, this embodiment provides a path establishment method, and the embodiment is specifically a process for establishing a section recovery path, and continues to refer to FIG. 3 above. In the transport network, there is already a P2MP multicast tree from the source node S to the three leaf nodes D1, D2, D3. When the network fault causes the leaf node D2 to fail to receive service data, it needs to establish a section for D2. The recovery path is similar to the method of establishing a section recovery path for the leaf nodes D1 and D3. Here, only D2 is taken as an example for description. The embodiment may include the following steps: Step 401: A source node of a P2MP multicast tree calculates and establishes a P2MP working LSP.
本步骤为 P2MP组播树的源节点计算并建立 P2MP工作 LSP, 该步骤可 以采用现有的工作路径的计算和建立方法来实现, 此处不再赘述, 计算出的 P2MP工作 LSP可以如图 3中所示, 即包括 S-B-D1、 S-B-D2、 S-D-D3三条 S2L sub-LSP„  This step is to calculate and establish a P2MP working LSP for the source node of the P2MP multicast tree. This step can be implemented by using the existing working path calculation and establishment method. The calculation of the P2MP working LSP can be as shown in Figure 3. As shown in the figure, including SB-D1, SB-D2, SD-D3, three S2L sub-LSPs
步骤 402, 当网络中出现故障时, 故障的上游节点向源节点发送故障通 告消息。  Step 402: When a fault occurs in the network, the faulty upstream node sends a fault notification message to the source node.
本步骤为故障通告过程, 当网络中出现故障时, 假设链路 B-D2发生故 障, 则故障的上游节点 B向源节点 S发送故障通告消息。  This step is a fault notification process. When a fault occurs in the network, assuming that the link B-D2 fails, the faulty upstream node B sends a fault notification message to the source node S.
步骤 403 , 源节点为出现故障的链路的叶子节点计算区段恢复路径。 本实施例中出现故障的链路为 B-D2, 则该链路的叶子节点为 D2, 源节 点 S为叶子节点 D2计算区段恢复路径, 源节点可以选择该区段恢复路径的 首节点为 P2MP连接上不受故障影响的任何一个节点, 而末节点为 D2, 且该 区段恢复路径不经过故障链路 B-D2。 具体地, 在计算区段恢复路径时, 源节 点可以在 P2MP工作 LSP上选择除 D2之外, 且不受故障影响的一个节点作 为区段恢复路径的首节点, 使得从该首节点到 D2 具有最短路径或代价最小 且不经过故障链路 B-D2。 如图 3所示, 源节点可以选择节点 B或 D作为区 段恢复路径的首节点, 但由于区段恢复路径 D-F-D2比区段保护路径 B-C-D2 更优, 因此最终选择节点 D作为区段恢复路径的首节点。 Step 403: The source node calculates a section recovery path for the leaf node of the failed link. In this embodiment, the faulty link is B-D2, the leaf node of the link is D2, the source node S calculates the section recovery path for the leaf node D2, and the source node can select the first node of the section recovery path as Any node on the P2MP connection that is not affected by the failure, and the last node is D2, and the section recovery path does not pass through the faulty link B-D2. Specifically, when calculating the section recovery path, the source node may select, on the P2MP working LSP, a node other than D2, which is not affected by the fault, as the first node of the section recovery path, so that the node from the head node to the D2 has The shortest path or cost is minimal and does not pass through the faulty link B-D2. As shown in Figure 3, the source node can select node B or D as the zone. The segment restores the first node of the path, but since the segment recovery path DF-D2 is better than the segment protection path BC-D2, the node D is finally selected as the first node of the segment recovery path.
步骤 404, 源节点沿区段恢复路径向路径的首节点发送 Path消息。  Step 404: The source node sends a Path message to the first node of the path along the section recovery path.
在本实施例中,区段恢复路径 D-F-D2作为 P2MP组播树的一个特殊分支, 而不是一条独立的 LSP, 因此不需要为区段恢复路径单独分配 LSP ID。 本步 骤可以具体为, 在计算出叶子节点 D2的区段恢复路径 D-F-D2后, 源节点 S 向区段恢复路径的首节点 D发送 Path消息, 在 Path消息中携带 P 2MP组播树 的源节点地址、 P2MP ID、 LSP ID、 显式路由信息和保护恢复类型。 在本实施 例中, Path消息中的显式路由信息具体可以通过 ER0或 SER0来指定区段恢复 路径的路径信息, 例如, 图 3 中的叶子节点 D2 的显式路由信息可以表达为 ER0= {D, F,D3}。为了与工作分支的 SER0相区分,需要在区段恢复路径的 SER0 中增加标识, 指明该 SER0是区段恢复路径而不是工作分支。  In this embodiment, the section recovery path D-F-D2 is a special branch of the P2MP multicast tree, rather than a separate LSP, so there is no need to separately assign the LSP ID to the section recovery path. In this step, after the segment recovery path DF-D2 of the leaf node D2 is calculated, the source node S sends a Path message to the first node D of the segment recovery path, and carries the source of the P 2MP multicast tree in the Path message. Node address, P2MP ID, LSP ID, explicit routing information, and protection recovery type. In this embodiment, the explicit routing information in the Path message may specifically specify the path information of the section recovery path by using ER0 or SER0. For example, the explicit routing information of the leaf node D2 in FIG. 3 may be expressed as ER0={ D, F, D3}. In order to distinguish from the SER0 of the working branch, it is necessary to add an identifier to the SER0 of the section recovery path, indicating that the SER0 is a section recovery path rather than a working branch.
步骤 405, 首节点根据 Path消息建立区段恢复路径。  Step 405: The first node establishes a section recovery path according to the Path message.
首节点 D在收到 Path消息后, 首节点沿区段恢复路径 D-F-D2发送 Path 消息, 在该 Path消息中携带 P2MP组播树的源节点地址、 P2MP ID、 LSP ID、 显式路由信息和保护恢复类型, 其中, 首节点可以重新分配 LSP ID, 也可以 直接采用源节点分配的 LSP ID, 中间节点 F和末节点 D2在接收到该 Path消 息后, 在链路 D-F和 F-D2上分别预留带宽资源, 并在数据平面建立交叉连 接, 同时向各自的上游节点返回 Resv消息, 从而建立区段恢复路径。 之后, 首节点 D还新建一个去往中间节点 F方向的分支交叉连接。  After receiving the Path message, the first node sends a Path message along the section recovery path DF-D2, where the Path message carries the source node address, P2MP ID, LSP ID, explicit routing information of the P2MP multicast tree. Protection recovery type, where the first node can reassign the LSP ID, or directly adopt the LSP ID assigned by the source node. After receiving the Path message, the intermediate node F and the last node D2 respectively on the link DF and F-D2. The bandwidth resources are reserved, and a cross-connection is established in the data plane, and a Resv message is returned to the respective upstream nodes, thereby establishing a section recovery path. After that, the first node D also creates a new branch cross-connection to the intermediate node F direction.
步骤 406, 叶子节点根据接收到的 Path消息自动关联区段恢复路径和出 现故障的工作分支, 并进行业务倒换。  Step 406: The leaf node automatically associates the section recovery path with the faulty working branch according to the received Path message, and performs service switching.
当叶子节点 D2接收到来自区段恢复路径的 Path消息后, 根据自身保存 的 P2MP信息以及 Path消息中携带的 P2MP组播树的源节点地址、 P2MP ID、 LSP ID和保护恢复类型,便可以获知该 Path消息用于建立区段恢复路径, 则 叶子节点根据 Path消息便可以自动将工作分支和区段恢复路径进行关联, 即 自动关联区段恢复路径和相应的 S2L sub-LSP , 并在该区段恢复路径 D-F-D2 上选收业务。 After the leaf node D2 receives the Path message from the segment recovery path, it can learn from the P2MP information saved by itself and the source node address, P2MP ID, LSP ID, and protection recovery type of the P2MP multicast tree carried in the Path message. The Path message is used to establish a section recovery path, and the leaf node can automatically associate the working branch with the section recovery path according to the Path message, that is, The zone is automatically associated with the zone recovery path and the corresponding S2L sub-LSP, and the service is selected on the zone recovery path DF-D2.
本实施例提供了一种路径建立方法, 通过 P2MP组播树的源节点为需要 恢复的叶子节点计算区段恢复路径, 选择区段恢复路径的首节点为除叶子节 点外且不受故障影响的一个节点, 且该首节点到叶子节点具有最短路径或代 价最小, 然后源节点向该首节点发送路径消息, 该首节点再沿区段恢复路径 向路径上的各节点发送路径消息, 以由各节点根据该路径消息建立该区段恢 复路径; 本实施例将区段恢复路径作为 P2MP工作 LSP的一个分支, 而不是 一条新的 P2P LSP, 因此本实施例只需管理一条 P2MP LSP , 简化了管理; 且本实施例中的区段恢复路径和 P2MP工作 LSP使用相同的 P2MP I D和 LSP I D , 两者自动关联, 无需再对每个区段恢复路径进行关联操作; 同时本实 施例可以实现跨不同 S2L sub-LSP建立区段恢复路径, 从而建立更优的路 径, 实现了更灵活的区段恢复, 也提高了网络资源的利用率。  This embodiment provides a path establishment method, where a source node of a P2MP multicast tree calculates a section recovery path for a leaf node that needs to be restored, and the first node of the section recovery path is selected except a leaf node and is not affected by the fault. a node, and the first node to the leaf node has the shortest path or the least cost, and then the source node sends a path message to the first node, and the first node sends a path message to each node on the path along the section recovery path, The node establishes the section recovery path according to the path message. In this embodiment, the section recovery path is used as a branch of the P2MP working LSP, instead of a new P2P LSP. Therefore, this embodiment only needs to manage one P2MP LSP, which simplifies management. And the section recovery path and the P2MP working LSP in this embodiment use the same P2MP ID and LSP ID, and the two are automatically associated, and the association path of each section is not required to be associated; The S2L sub-LSP establishes a section recovery path to establish a better path and implement a more flexible section recovery. , But also improve the utilization of network resources.
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步骤可 以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存 储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述的存储 介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储程序代码的介质。  A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
图 5为本发明路径建立装置实施例一的结构图, 如图 5所示, 本实施例 提供了一种路径建立装置, 可以具体执行上述方法实施例一中的各个步骤, 此处不再赘述。 本实施例提供的路径建立装置可以具体包括计算模块 501和 建立模块 502。 其中, 计算模块 501用于为需要保护的叶子节点计算区段保 护路径, 或者为需要恢复的叶子节点计算区段恢复路径; 其中, 所述区段保 护路径的首节点为点到多点 P2MP 组播树上除需要保护的叶子节点外的一个 节点, 且从所述首节点到所述叶子节点具有最短路径或最小代价; 所述区段 恢复路径的首节点为 P2MP组播树上除需要恢复的叶子节点外的一个节点,且 从所述首节点到所述叶子节点具有最短路径或最小代价。 建立模块 502用于 向区段保护路径或区段恢复路径的首节点发送路径消息, 以使区段保护路径 或区段恢复路径的首节点沿区段保护路径或区段恢复路径向路径上的各节点 发送所述路径消息,并根据所述路径消息建立区段保护路径或区段恢复路径。 FIG. 5 is a structural diagram of Embodiment 1 of a path establishing apparatus according to the present invention. As shown in FIG. 5, this embodiment provides a path establishing apparatus, which may specifically perform the steps in Embodiment 1 of the foregoing method, and details are not described herein again. . The path establishing apparatus provided in this embodiment may specifically include a calculating module 501 and an establishing module 502. The calculation module 501 is configured to calculate a segment protection path for a leaf node to be protected, or calculate a segment recovery path for a leaf node that needs to be restored; where the first node of the segment protection path is a point-to-multipoint P2MP group A node other than the leaf node to be protected on the tree, and having the shortest path or minimum cost from the head node to the leaf node; the first node of the section recovery path is a P2MP multicast tree except for recovery A node outside the leaf node and having the shortest path or minimum cost from the head node to the leaf node. The building module 502 is used to Sending a path message to a head node of the section protection path or the section recovery path, so that the head node of the section protection path or the section recovery path sends the section along the section protection path or the section restoration path to each node on the path A path message, and a section protection path or a section recovery path is established according to the path message.
图 6为本发明路径建立装置实施例二的结构图, 如图 6所示, 本实施例 提供了一种路径建立装置, 可以具体执行上述方法实施例二和实施例三中的 各个步骤, 此处不再赘述。 本实施例提供的路径建立装置在上述图 5所示的 基础之上, 建立模块 502可以具体包括第一发送单元 512、 第一建立单元 522 和第二建立单元 532。 其中, 第一发送单元 512用于通过 P2MP组播树的源节 点沿每条 S2L sub-LSP和区段保护路径分别向路径中各节点发送路径消息, 所述路径消息中携带 P2MP组播树的源节点地址、 P2MP标识 ID、 标签交换路 径 LSP ID、 显式路由信息和保护恢复类型, 其中, 所述 S2L sub-LSP和所述 区段保护路径的显式路由信息通过显式路由对象 ER0 或第二显式路由对象 SER0来指定; 或者, 第一发送单元 512用于通过 P2MP组播树的源节点向下 游节点逐跳发送路径消息, 所述路径消息中携带 P2MP组播树的源节点地址、 P2MP ID、 LSP ID、 显式路由信息和保护恢复类型, 其中, 所述 S2L sub-LSP 的显式路由信息通过 ER0和 SER0来指定,所述区段保护路径的显式路由信息 通过 ER0或 SER0来指定。 第一建立单元 522用于通过所述 P2MP工作 LSP上 的各个节点根据所述路径消息建立 P2MP工作 LSP。 第二建立单元 532用于通 过区段保护路径的首节点根据所述路径消息建立所述区段保护路径。  FIG. 6 is a structural diagram of Embodiment 2 of the path establishing apparatus according to the present invention. As shown in FIG. 6, the embodiment provides a path establishing apparatus, which may specifically perform the steps in Embodiment 2 and Embodiment 3 of the foregoing method. I won't go into details here. The path establishing apparatus provided in this embodiment is based on the foregoing FIG. 5, and the establishing module 502 may specifically include a first sending unit 512, a first establishing unit 522, and a second establishing unit 532. The first sending unit 512 is configured to send, by the source node of the P2MP multicast tree, a path message to each node in the path along each S2L sub-LSP and the section protection path, where the path message carries the P2MP multicast tree. The source node address, the P2MP identifier ID, the label switching path LSP ID, the explicit routing information, and the protection recovery type, where the explicit routing information of the S2L sub-LSP and the section protection path is explicitly routed through the object ER0 or The second explicit routing object SER0 is used to specify; or, the first sending unit 512 is configured to send a path message to the downstream node hop by hop through the source node of the P2MP multicast tree, where the path message carries the source node address of the P2MP multicast tree. The P2MP ID, the LSP ID, the explicit routing information, and the protection recovery type, where the explicit routing information of the S2L sub-LSP is specified by ER0 and SER0, and the explicit routing information of the section protection path passes the ER0 or SER0 to specify. The first establishing unit 522 is configured to establish a P2MP working LSP according to the path message by each node on the P2MP working LSP. The second establishing unit 532 is configured to establish the section protection path according to the path message by a head node of the section protection path.
进一步地, 本实施例中的第二建立单元 532可以具体包括第一发送子单 元 5321、第一建立子单元 5322、第二建立子单元 5323和第三建立子单元 5324。 其中,第一发送子单元 5321用于通过所述区段保护路径的首节点沿所述区段 保护路径向路径中各节点发送所述路径消息,所述路径消息中携带 P2MP组播 树的源节点地址、 P2MP ID、 LSP ID、 显式路由信息和保护恢复类型。 第一建 立子单元 5322用于当所述保护恢复类型为区段 1+1保护时,通过所述区段保 护路径的中间节点和末节点根据所述路径消息在相应的链路上预留带宽资 源, 在数据平面建立交叉连接, 并向各自的上游节点返回预留消息, 所述区 段保护路径的首节点建立去往所述中间节点方向的分支交叉连接。 第二建立 子单元 5323用于当所述保护恢复类型为区段 1: 1保护时,通过所述区段保护 路径的中间节点和末节点根据所述路径消息在相应的链路上预留带宽资源, 在数据平面建立交叉连接, 并向各自的上游节点返回预留消息。 第三建立子 单元 5324用于当所述保护恢复类型为区段预置保护时,通过所述区段保护路 径的中间节点和末节点根据所述路径消息在相应的链路上预留带宽资源, 并 向各自的上游节点返回预留消息。 Further, the second establishing unit 532 in this embodiment may specifically include a first sending subunit 5321, a first establishing subunit 5322, a second establishing subunit 5323, and a third establishing subunit 5324. The first sending sub-unit 5321 is configured to send the path message to each node in the path along the segment protection path by using a first node of the segment protection path, where the path message carries a source of a P2MP multicast tree. Node address, P2MP ID, LSP ID, explicit routing information, and protection recovery type. The first establishing subunit 5322 is configured to: when the protection recovery type is section 1+1 protection, the intermediate node and the last node that pass the section protection path reserve bandwidth on the corresponding link according to the path message. Capital The source establishes a cross-connection in the data plane and returns a reservation message to the respective upstream node, the head node of the section protection path establishing a branch cross-connection to the intermediate node direction. The second establishing subunit 5323 is configured to: when the protection recovery type is the section 1: 1 protection, the intermediate node and the last node that pass the section protection path reserve bandwidth on the corresponding link according to the path message. Resources, establish cross-connections in the data plane, and return reservation messages to their respective upstream nodes. The third establishing subunit 5324 is configured to reserve, by the intermediate node and the last node of the section protection path, the bandwidth resource on the corresponding link according to the path message, when the protection recovery type is the section preset protection. And return a reservation message to the respective upstream node.
更进一步地, 本实施例提供的路径建立装置还可以包括第一关联模块 601 , 第一关联模块 601用于通过所述叶子节点根据分别来自 S2L sub-LSP和 区段保护路径的路径消息中的所述源节点地址、 所述 P2MP ID和所述保护恢 复类型, 自动将 S2L sub-LSP和区段保护路径进行关联。  Further, the path establishing apparatus provided in this embodiment may further include a first association module 601, where the first association module 601 is configured to use the leaf node according to the path information from the S2L sub-LSP and the section protection path respectively. The source node address, the P2MP ID, and the protection recovery type automatically associate the S2L sub-LSP with the zone protection path.
进一步地, 本实施例中的建立模块 502还可以包括第二发送单元 542、 第三发送单元 552、 第三建立单元 562和第四建立单元 572。 其中, 第二发送 单元 542用于当检测到网络故障之后,通过 P2MP组播树的源节点向区段恢复 路径的首节点发送路径消息, 所述路径消息中携带 P2MP 组播树的源节点地 址、 P2MP ID、 标签交换路径 LSP ID、 显式路由信息和保护恢复类型, 其中, 所述区段恢复路径的显式路由信息通过 SER0来指定。第三发送单元 552用于 通过所述区段恢复路径的首节点沿所述区段恢复路径向路径中各节点发送所 述路径消息。 第三建立单元 562用于通过所述区段恢复路径中的中间节点和 末节点根据所述路径消息在相应的联络上预留带宽资源, 在数据平面建立交 叉连接, 并向各自的上游节点返回预留消息。 第四建立单元 572用于通过所 述区段恢复路径的首节点建立去往所述中间节点方向的分支交叉连接。  Further, the establishing module 502 in this embodiment may further include a second sending unit 542, a third sending unit 552, a third establishing unit 562, and a fourth establishing unit 572. The second sending unit 542 is configured to: after the network fault is detected, send a path message to the first node of the section recovery path by using the source node of the P2MP multicast tree, where the path message carries the source node address of the P2MP multicast tree. The P2MP ID, the label switching path LSP ID, the explicit routing information, and the protection recovery type, where the explicit routing information of the section recovery path is specified by SER0. The third sending unit 552 is configured to send the path message to each node in the path along the section recovery path by the first node of the section recovery path. The third establishing unit 562 is configured to reserve a bandwidth resource on the corresponding contact according to the path message by using the intermediate node and the last node in the section recovery path, establish a cross connection in the data plane, and return to the respective upstream node. Reserve a message. The fourth establishing unit 572 is configured to establish a branch cross-connection to the intermediate node by the head node of the section recovery path.
更进一步地, 本实施例中的路径建立装置还可以包括第二关联模块 602 , 第二关联模块 602用于通过所述叶子节点根据来自所述区段恢复路径的路径 消息中的所述源节点地址、 所述 P2MP ID和所述保护恢复类型, 以及保存的 P2MP信息自动将所述区段恢复路径和 S2L sub-LSP进行关联, 以在所述区段 恢复路径上选收所述 S2L sub-LSP的业务。 Further, the path establishing apparatus in this embodiment may further include a second association module 602, configured to pass, by the leaf node, the source node in the path message from the section recovery path Address, the P2MP ID and the protection recovery type, and the saved The P2MP information automatically associates the section recovery path with the S2L sub-LSP to select the service of the S2L sub-LSP on the section recovery path.
本实施例提供了一种路径建立装置, 通过 P2MP组播树的源节点为需要 保护或恢复的叶子节点计算区段保护路径或区段恢复路径 , 选择区段保护路 径或区段恢复路径的首节点为除叶子节点外的一个节点, 且该首节点到叶子 节点具有最短路径或代价最小, 然后源节点向该首节点发送路径消息, 该首 节点再沿区段保护路径或区段恢复路径向路径上的各节点发送路径消息, 以 由各节点根据该路径消息建立该区段保护路径或区段恢复路径; 本实施例将 区段保护路径或区段恢复路径作为 P2MP工作 LSP的一个分支, 而不是一条 新的 P2P LSP, 因此本实施例只需管理一条 P2MP LSP , 简化了管理; 且本 实施例中的区段保护路径或区段恢复路径和 P2MP工作 LSP使用相同的 P2MP I D和 LSP I D , 两者自动关联, 无需再对每个区段保护路径或区段恢复路径 进行关联操作; 同时本实施例可以实现跨不同 S 2L sub-LSP建立区段保护 路径或区段恢复路径, 从而建立更优的路径, 实现了更灵活的区段保护路 径或区段恢复, 也提高了网络资源的利用率。  This embodiment provides a path establishing apparatus, where a source node of a P2MP multicast tree calculates a section protection path or a section recovery path for a leaf node that needs to be protected or restored, and selects a section protection path or a section recovery path. The node is a node other than the leaf node, and the first node to the leaf node has the shortest path or the least cost, and then the source node sends a path message to the first node, and the first node further follows the section protection path or the section recovery path direction. Each node on the path sends a path message, so that each node establishes the section protection path or the section recovery path according to the path message. In this embodiment, the section protection path or the section restoration path is used as a branch of the P2MP working LSP. Instead of a new P2P LSP, the present embodiment only needs to manage one P2MP LSP, which simplifies management; and the segment protection path or the segment recovery path and the P2MP working LSP in this embodiment use the same P2MP ID and LSP ID. , the two are automatically associated, no need to associate each section protection path or section recovery path; The embodiment can implement a section protection path or a section recovery path across different S 2L sub-LSPs, thereby establishing a better path, implementing a more flexible section protection path or section recovery, and improving network resource utilization. rate.
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对其 限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通技术 人员应当理解: 其依然可以对前述实施例所记载的技术方案进行修改, 或者 对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不使相应技术 方案的本质脱离本发明实施例技术方案的精神和范围。  It should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that: The technical solutions described in the foregoing embodiments are modified, or the equivalents of the technical features are replaced by the equivalents of the technical solutions of the embodiments of the present invention.

Claims

权 利 要 求 Rights request
1、 一种路径建立方法, 其特征在于, 包括:  A method for establishing a path, comprising:
为需要保护的叶子节点计算区段保护路径, 或者为需要恢复的叶子节点 计算区段恢复路径; 其中, 所述区段保护路径的首节点为点到多点 P2MP组播 树上除需要保护的叶子节点外的一个节点, 且从所述首节点到所述叶子节点 具有最短路径或最小代价,所述区段恢复路径的首节点为 P2MP组播树上除需 要恢复的叶子节点外的一个节点, 且从所述首节点到所述叶子节点具有最短 路径或最小代价;  Calculating a zone protection path for the leaf node to be protected, or calculating a zone recovery path for the leaf node to be restored; wherein the first node of the zone protection path is a point-to-multipoint P2MP multicast tree except for protection a node outside the leaf node, and having the shortest path or minimum cost from the head node to the leaf node, the first node of the section recovery path being a node other than the leaf node to be restored on the P2MP multicast tree And having the shortest path or minimum cost from the head node to the leaf node;
向所述区段保护路径或所述区段恢复路径的首节点发送路径消息, 以使 所述区段保护路径或所述区段恢复路径的首节点沿所述区段保护路径或所述 区段恢复路径向路径上的各节点发送所述路径消息, 并根据所述路径消息建 立所述区段保护路径或所述区段恢复路径。  Sending a path message to the section protection path or the head node of the section recovery path, such that the section protection path or the head node of the section recovery path along the section protection path or the area The segment recovery path sends the path message to each node on the path, and establishes the segment protection path or the segment recovery path according to the path message.
2、 根据权利要求 1所述的方法, 其特征在于, 向所述区段保护路径的首 节点发送路径消息 , 以使所述区段保护路径的首节点沿所述区段保护路径向 路径上的各节点发送所述路径消息, 并根据所述路径消息建立所述区段保护 路径包括:  2. The method according to claim 1, wherein a path message is sent to a head node of the section protection path such that a head node of the section protection path follows the section protection path to a path Each node sends the path message, and the establishing the segment protection path according to the path message includes:
P2MP组播树的源节点沿每条源到叶子子标签交换路径 S2L sub-LSP和区 段保护路径分别向路径中各节点发送路径消息,所述路径消息中携带 P2MP组 播树的源节点地址、 P2MP标识 I D、 标签交换路径 LSP I D、 显式路由信息和 保护恢复类型, 其中, 所述 S2L sub-LSP的显式路由信息和所述区段保护路 径的显式路由信息通过显式路由对象 ER0或第二显式路由对象 SER0来指定; 或者,  The source node of the P2MP multicast tree sends a path message to each node in the path along the source-to-leaf sub-label switching path S2L sub-LSP and the section protection path, where the path message carries the source node address of the P2MP multicast tree. The P2MP identifier ID, the label switching path LSP ID, the explicit routing information, and the protection recovery type, where the explicit routing information of the S2L sub-LSP and the explicit routing information of the section protection path pass the explicit routing object ER0 or the second explicit routing object SER0 to specify; or,
P2MP组播树的源节点向下游节点逐跳发送路径消息, 所述路径消息中携 带 P2MP组播树的源节点地址、 P2MP I D、 LSP ID、 显式路由信息和保护恢复 类型, 其中, 所述 S2L sub-LSP的显式路由信息通过 ER0和 SER0来指定, 所 述区段保护路径的显式路由信息通过 ER0或 SER0来指定; 所述 P2MP工作 LSP上的各个节点根据所述路径消息建立 P2MP工作 LSP; 所述区段保护路径的首节点根据所述路径消息建立所述区段保护路径。The source node of the P2MP multicast tree sends a path message to the downstream node hop by hop, where the path message carries the source node address, the P2MP ID, the LSP ID, the explicit routing information, and the protection recovery type of the P2MP multicast tree, where The explicit routing information of the S2L sub-LSP is specified by ER0 and SER0, and the explicit routing information of the section protection path is specified by ER0 or SER0; Each node on the P2MP working LSP establishes a P2MP working LSP according to the path message; the first node of the section protection path establishes the section protection path according to the path message.
3、 根据权利要求 2所述的方法, 其特征在于, 所述区段保护路径的首节 点根据所述路径消息建立所述区段保护路径包括: The method according to claim 2, wherein the first node of the section protection path establishes the section protection path according to the path message, including:
所述区段保护路径的首节点沿所述区段保护路径向路径中各节点发送所 述路径消息, 所述路径消息中携带 P2MP组播树的源节点地址、 P2MP ID、 LSP I D、 显式路由信息和保护恢复类型;  The first node of the segment protection path sends the path message to each node in the path along the segment protection path, where the path message carries the source node address, P2MP ID, LSP ID, and explicit of the P2MP multicast tree. Routing information and protection recovery type;
当所述保护恢复类型为区段 1+1保护时, 所述区段保护路径的中间节点 和末节点根据所述路径消息在相应的链路上预留带宽资源, 在数据平面建立 交叉连接, 并向各自的上游节点返回预留消息, 所述区段保护路径的首节点 建立去往所述中间节点方向的分支交叉连接;  When the protection recovery type is the segment 1+1 protection, the intermediate node and the last node of the segment protection path reserve bandwidth resources on the corresponding link according to the path message, and establish a cross connection in the data plane. And returning a reservation message to the respective upstream node, where the first node of the section protection path establishes a branch cross connection to the intermediate node direction;
当所述保护恢复类型为区段 1 : 1保护时, 所述区段保护路径的中间节点 和末节点根据所述路径消息在相应的链路上预留带宽资源, 在数据平面建立 交叉连接, 并向各自的上游节点返回预留消息;  When the protection recovery type is a section 1: 1 protection, the intermediate node and the last node of the section protection path reserve bandwidth resources on the corresponding link according to the path message, and establish a cross connection in the data plane, And returning a reservation message to the respective upstream node;
当所述保护恢复类型为区段预置保护时, 所述区段保护路径的中间节点 和末节点根据所述路径消息在相应的链路上预留带宽资源, 并向各自的上游 节点返回预留消息。  When the protection recovery type is zone preset protection, the intermediate node and the last node of the zone protection path reserve bandwidth resources on the corresponding link according to the path message, and return the pre-predicate to the respective upstream node. Leave the message.
4、 根据权利要求 3所述的方法, 其特征在于, 还包括:  4. The method according to claim 3, further comprising:
所述叶子节点根据分别来自所述 S2L sub-LSP和所述区段保护路径的路 径消息中的所述源节点地址、 所述 P2MP ID和所述保护恢复类型, 自动将所 述 S2L sub-LSP和所述区段保护路径进行关联。  The leaf node automatically performs the S2L sub-LSP according to the source node address, the P2MP ID, and the protection recovery type in a path message from the S2L sub-LSP and the section protection path respectively. Associated with the section protection path.
5、根据权利要求 3或 4所述的方法,其特征在于, 当检测到网络故障时, 还包括:  The method according to claim 3 or 4, wherein when a network failure is detected, the method further includes:
当所述保护恢复类型为区段 1+1保护时, 所述叶子节点直接将出现故障 的 S2L sub-LSP上的业务切换到与所述 S2L sub-LSP相关联的区段保护路径 上, 以在所述区段保护路径上对所述业务进行选收; 当所述保护恢复类型为区段 1 : 1保护时,所述叶子节点沿出现故障的 S2L sub-LSP向源节点发送故障通告, 所述源节点向与所述 S2L sub-LSP相关联 的区段保护路径的首节点发送倒换命令, 所述首节点建立去往所述区段保护 路径的中间节点方向的分支交叉连接, 以在所述区段保护路径上对所述业务 进行选收; When the protection recovery type is the segment 1+1 protection, the leaf node directly switches the service on the failed S2L sub-LSP to the segment protection path associated with the S2L sub-LSP, to Selecting the service on the segment protection path; When the protection recovery type is zone 1: 1 protection, the leaf node sends a failure notification to the source node along the failed S2L sub-LSP, and the source node associates with the area associated with the S2L sub-LSP. The first node of the segment protection path sends a switching command, and the first node establishes a branch cross-connection to the intermediate node in the segment protection path to select the service on the segment protection path;
当所述保护恢复类型为区段预置保护时,所述叶子节点沿出现故障的 S2L sub-LSP向源节点发送故障通告, 所述源节点向与所述 S2L sub-LSP相关联 的区段保护路径的首节点发送倒换命令, 所述首节点沿所述区段保护路径向 路径中各节点发送路径消息, 以指示所述各节点根据所述预留带宽资源在数 据平面建立交叉连接, 所述首节点建立去往所述区段保护路径的中间节点方 向的分支交叉连接, 以在所述区段保护路径上对所述业务进行选收。  When the protection recovery type is zone preset protection, the leaf node sends a fault notification to the source node along the failed S2L sub-LSP, and the source node sends a segment associated with the S2L sub-LSP. The first node of the protection path sends a switching command, and the first node sends a path message to each node in the path along the segment protection path, to indicate that the nodes establish a cross connection in the data plane according to the reserved bandwidth resource. The head node establishes a branch cross-connection to the intermediate node direction of the section protection path to select the service on the section protection path.
6、 根据权利要求 1所述的方法, 其特征在于, 向所述区段恢复路径的首 节点发送路径消息, 以使所述区段恢复路径的首节点沿所述区段恢复路径向 路径上的各节点发送所述路径消息, 并根据所述路径消息建立所述区段恢复 路径包括:  6. The method according to claim 1, wherein a path message is sent to a head node of the section recovery path such that a head node of the section recovery path follows the section recovery path to a path Each node sends the path message, and establishing the section recovery path according to the path message includes:
当检测到网络故障之后, P 2MP组播树的源节点向区段恢复路径的首节点 发送路径消息, 所述路径消息中携带 P2MP组播树的源节点地址、 P2MP ID、 标签交换路径 LSP ID、 显式路由信息和保护恢复类型, 其中, 所述区段恢复 路径的显式路由信息通过 ER0或 SER0来指定;  After detecting the network fault, the source node of the P2MP multicast tree sends a path message to the head node of the section recovery path, where the path message carries the source node address, the P2MP ID, and the label switching path LSP ID of the P2MP multicast tree. The explicit routing information and the protection recovery type, where the explicit routing information of the section recovery path is specified by ER0 or SER0;
所述区段恢复路径的首节点沿所述区段恢复路径向路径中各节点发送所 述路径消息;  The first node of the section recovery path sends the path message to each node in the path along the section recovery path;
所述区段恢复路径中的中间节点和末节点根据所述路径消息在相应的联 络上预留带宽资源, 在数据平面建立交叉连接, 并向各自的上游节点返回预 留消息;  The intermediate node and the last node in the section recovery path reserve bandwidth resources on the corresponding contact according to the path message, establish a cross-connection in the data plane, and return a reserved message to the respective upstream node;
所述区段恢复路径的首节点建立去往所述中间节点方向的分支交叉连接。 The head node of the section recovery path establishes a branch cross-connection to the intermediate node direction.
7、 根据权利要求 6所述的方法, 其特征在于, 还包括: 所述叶子节点根据来自所述区段恢复路径的路径消息中的所述源节点地 址、 所述 P2MP ID和所述保护恢复类型, 以及保存的 P2MP信息自动将所述区 段恢复路径和 S2L sub-LSP进行关联,以在所述区段恢复路径上选收所述 S2L sub-LSP的业务。 7. The method according to claim 6, further comprising: The leaf node automatically recovers the section recovery path and the S2L sub according to the source node address, the P2MP ID, and the protection recovery type in the path message from the section restoration path, and the saved P2MP information. The LSP is associated to select the service of the S2L sub-LSP on the section recovery path.
8、 一种路径建立装置, 其特征在于, 包括:  8. A path establishing device, comprising:
计算模块, 用于为需要保护的叶子节点计算区段保护路径, 或者为需要 恢复的叶子节点计算区段恢复路径; 其中, 所述区段保护路径的首节点为点 到多点 P2MP组播树上除需要保护的叶子节点外的一个节点,且从所述首节点 到所述叶子节点具有最短路径或最小代价, 所述区段恢复路径的首节点为 P2MP组播树上除需要恢复的叶子节点外的一个节点, 且从所述首节点到所述 叶子节点具有最短路径或最小代价;  a calculation module, configured to calculate a segment protection path for the leaf node to be protected, or calculate a segment recovery path for the leaf node that needs to be restored; where the first node of the segment protection path is a point-to-multipoint P2MP multicast tree A node other than the leaf node to be protected, and having the shortest path or minimum cost from the head node to the leaf node, the first node of the section recovery path being a leaf on the P2MP multicast tree except for recovery a node outside the node, and having the shortest path or minimum cost from the head node to the leaf node;
建立模块, 用于向所述区段保护路径或所述区段恢复路径的首节点发送 路径消息, 以使所述区段保护路径或所述区段恢复路径的首节点沿所述区段 保护路径或所述区段恢复路径向路径上的各节点发送所述路径消息, 并根据 所述路径消息建立所述区段保护路径或所述区段恢复路径。  Establishing a module, configured to send a path message to the first node of the section protection path or the section recovery path, so that the section protection path or the first node of the section recovery path is protected along the section The path or the section recovery path transmits the path message to each node on the path, and the section protection path or the section restoration path is established according to the path message.
9、 根据权利要求 8所述的装置, 其特征在于, 所述建立模块包括: 第一发送单元,用于通过 P2MP组播树的源节点沿每条源到叶子子标签交 换路径 S2L sub-LSP和区段保护路径分别向路径中各节点发送路径消息, 所 述路径消息中携带 P2MP组播树的源节点地址、 P2MP标识 ID、 标签交换路径 LSP ID、 显式路由信息和保护恢复类型, 其中, 所述 S2L sub-LSP和所述区 段保护路径的显式路由信息通过显式路由对象 ER0或第二显式路由对象 SER0 来指定;或者,用于通过 P2MP组播树的源节点向下游节点逐跳发送路径消息, 所述路径消息中携带 P2MP组播树的源节点地址、 P2MP ID、 LSP ID、 显式路 由信息和保护恢复类型, 其中, 所述 S2L sub-LSP的显式路由信息通过 ER0 和 SER0来指定,所述区段保护路径的显式路由信息通过 ER0或 SER0来指定; 第一建立单元,用于通过所述 P2MP工作 LSP上的各个节点根据所述路径 消息建立 P2MP工作 LSP; The device according to claim 8, wherein the establishing module comprises: a first sending unit, configured to pass the source node of the P2MP multicast tree along each source to the leaf sub-label switching path S2L sub-LSP And the segment protection path respectively sends a path message to each node in the path, where the path message carries a source node address, a P2MP identifier ID, a label switching path LSP ID, an explicit routing information, and a protection recovery type of the P2MP multicast tree, where And the explicit routing information of the S2L sub-LSP and the section protection path is specified by the explicit routing object ER0 or the second explicit routing object SER0; or is used to pass the source node of the P2MP multicast tree downstream The node sends a path message hop by hop, where the path message carries the source node address, the P2MP ID, the LSP ID, the explicit routing information, and the protection recovery type of the P2MP multicast tree, where the explicit routing information of the S2L sub-LSP The explicit routing information of the section protection path is specified by ER0 or SER0, and the first establishing unit is configured to work through the sections on the LSP through the P2MP. According to the path The message establishes a P2MP working LSP;
第二建立单元, 用于通过所述区段保护路径的首节点根据所述路径消息 建立所述区段保护路径。  And a second establishing unit, configured to establish, by the first node of the section protection path, the section protection path according to the path message.
10、 根据权利要求 9所述的装置, 其特征在于, 所述第二建立单元包括: 第一发送子单元, 用于通过所述区段保护路径的首节点沿所述区段保护 路径向路径中各节点发送所述路径消息,所述路径消息中携带 P2MP组播树的 源节点地址、 P2MP ID、 LSP ID、 显式路由信息和保护恢复类型;  The device according to claim 9, wherein the second establishing unit comprises: a first sending subunit, configured to pass the segment protection path to the path through the segment node of the segment protection path Each of the nodes sends the path message, where the path message carries a source node address, a P2MP ID, an LSP ID, an explicit routing information, and a protection recovery type of the P2MP multicast tree.
第一建立子单元, 用于当所述保护恢复类型为区段 1+1保护时, 通过所 述区段保护路径的中间节点和末节点根据所述路径消息在相应的链路上预留 带宽资源, 在数据平面建立交叉连接, 并向各自的上游节点返回预留消息, 所述区段保护路径的首节点建立去往所述中间节点方向的分支交叉连接; 第二建立子单元, 用于当所述保护恢复类型为区段 1: 1保护时, 通过所 述区段保护路径的中间节点和末节点根据所述路径消息在相应的链路上预留 带宽资源, 在数据平面建立交叉连接, 并向各自的上游节点返回预留消息; 第三建立子单元, 用于当所述保护恢复类型为区段预置保护时, 通过所 述区段保护路径的中间节点和末节点根据所述路径消息在相应的链路上预留 带宽资源, 并向各自的上游节点返回预留消息。  a first establishing subunit, configured to: when the protection recovery type is a segment 1+1 protection, the intermediate node and the last node that pass the segment protection path reserve bandwidth on the corresponding link according to the path message Resource, establishing a cross-connection in the data plane, and returning a reservation message to the respective upstream node, the first node of the section protection path establishing a branch cross-connection to the intermediate node direction; the second establishing sub-unit, When the protection recovery type is a zone 1: 1 protection, the intermediate node and the last node that are protected by the segment protection path reserve bandwidth resources on the corresponding link according to the path message, and establish a cross connection in the data plane. And returning a reservation message to the respective upstream node; the third establishing subunit, configured to: when the protection recovery type is the segment preset protection, the intermediate node and the last node that pass the segment protection path according to the The path message reserves bandwidth resources on the corresponding link and returns a reservation message to the respective upstream node.
11、 根据权利要求 10所述的装置, 其特征在于, 还包括:  The device according to claim 10, further comprising:
第一关联模块, 用于通过所述叶子节点根据分别来自 S2L sub-LSP和区 段保护路径的路径消息中的所述源节点地址、 所述 P2MP ID和所述保护恢复 类型, 自动将 S2L sub-LSP和区段保护路径进行关联。  a first association module, configured to automatically, by using the leaf node, the S2L sub according to the source node address, the P2MP ID, and the protection recovery type in a path message from the S2L sub-LSP and the section protection path respectively - LSP is associated with the zone protection path.
12、 根据权利要求 8所述的装置, 其特征在于, 所述建立模块包括: 第二发送单元, 用于当检测到网络故障之后, 通过 P2MP组播树的源节点 向区段恢复路径的首节点发送路径消息,所述路径消息中携带 P2MP组播树的 源节点地址、 P2MP ID、 标签交换路径 LSP ID、 显式路由信息和保护恢复类 型, 其中, 所述区段恢复路径的显式路由信息通过 SER0来指定; 第三发送单元, 用于通过所述区段恢复路径的首节点沿所述区段恢复路 径向路径中各节点发送所述路径消息; The device according to claim 8, wherein the establishing module comprises: a second sending unit, configured to: after the network fault is detected, recover the first path of the path by using the source node of the P2MP multicast tree The node sends a path message, where the path message carries a source node address, a P2MP ID, a label switched path LSP ID, an explicit routing information, and a protection recovery type of the P2MP multicast tree, where the explicit path of the section recovery path is Information is specified by SER0; a third sending unit, configured to send, by the first node of the section recovery path, the path message to each node in the path along the section recovery path;
第三建立单元, 用于通过所述区段恢复路径中的中间节点和末节点根据 所述路径消息在相应的联络上预留带宽资源, 在数据平面建立交叉连接, 并 向各自的上游节点返回预留消息;  a third establishing unit, configured to reserve a bandwidth resource on the corresponding contact according to the path message by using the intermediate node and the last node in the section recovery path, establish a cross connection in the data plane, and return to the respective upstream node Reservation message
第四建立单元,用于通过所述区段恢复路径的首节点建立去往所述中间节 点方向的分支交叉连接。  And a fourth establishing unit, configured to establish, by the head node of the section recovery path, a branch cross connection to the intermediate node direction.
1 3、 根据权利要求 12所述的装置, 其特征在于, 还包括:  The device according to claim 12, further comprising:
第二关联模块, 用于通过所述叶子节点根据来自所述区段恢复路径的路 径消息中的所述源节点地址、 所述 P2MP ID和所述保护恢复类型, 以及保存 的 P2MP信息自动将所述区段恢复路径和 S2L sub-LSP进行关联, 以在所述区 段恢复路径上选收所述 S2L sub-LSP的业务。  a second association module, configured to automatically, by the leaf node, according to the source node address, the P2MP ID, and the protection recovery type in the path message from the section recovery path, and the saved P2MP information The segment recovery path is associated with the S2L sub-LSP to select the service of the S2L sub-LSP on the segment recovery path.
PCT/CN2011/074983 2011-05-31 2011-05-31 Path establishment method and apparatus WO2011157130A2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201180000670.8A CN102204190B (en) 2011-05-31 2011-05-31 A path creation method and a device thereof
PCT/CN2011/074983 WO2011157130A2 (en) 2011-05-31 2011-05-31 Path establishment method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/074983 WO2011157130A2 (en) 2011-05-31 2011-05-31 Path establishment method and apparatus

Publications (2)

Publication Number Publication Date
WO2011157130A2 true WO2011157130A2 (en) 2011-12-22
WO2011157130A3 WO2011157130A3 (en) 2012-04-26

Family

ID=44662812

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/074983 WO2011157130A2 (en) 2011-05-31 2011-05-31 Path establishment method and apparatus

Country Status (2)

Country Link
CN (1) CN102204190B (en)
WO (1) WO2011157130A2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115442293A (en) * 2022-08-27 2022-12-06 武汉烽火技术服务有限公司 Path finding method, device, equipment and readable storage medium

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724066B (en) * 2012-06-04 2017-07-21 南京中兴软件有限责任公司 The method and system of Protection path is set up in a kind of network of shared grid protection
US9112713B2 (en) * 2012-06-27 2015-08-18 Cisco Technology, Inc. System and method for efficient point-to-multi-point traffic engineering (P2MP-TE) path protection
US8750310B2 (en) * 2012-07-03 2014-06-10 Cisco Technology, Inc. Signaling co-routed and non co-routed LSPs of a bidirectional packet TE tunnel
CN103650421B (en) * 2013-08-19 2016-10-26 华为技术有限公司 End-to-end two-way method, system and the node switched of a kind of 1+1
EP3029893B1 (en) 2013-09-03 2018-05-23 Huawei Technologies Co., Ltd. Method, controller, device and system for protecting service path
MY184951A (en) 2014-09-29 2021-04-30 Ericsson Telefon Ab L M Deriving pcmax in dual connectivity
CN106302165A (en) * 2015-05-22 2017-01-04 中兴通讯股份有限公司 The guard method of a kind of point-to-multi-point tunnel and device
CN107613032A (en) * 2016-07-11 2018-01-19 中兴通讯股份有限公司 The notifying method of information, the generation method of forwarding entry and device
CN110912822B (en) * 2019-12-20 2022-02-22 迈普通信技术股份有限公司 Path finding method, controller, electronic device and readable storage medium
CN113453095B (en) * 2020-03-26 2023-03-28 华为技术有限公司 Method and device for restoring path configuration

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070201355A1 (en) * 2006-02-27 2007-08-30 Vasseur Jean P Method and apparatus for determining a preferred backup tunnel to protect point-to-multipoint label switch paths
CN101030814A (en) * 2006-03-03 2007-09-05 中兴通讯股份有限公司 Method for protecting and restoring packet service channel in ASON network
CN101459565A (en) * 2007-12-13 2009-06-17 华为技术有限公司 Recovery method, device and network node for multiplexing protection service
CN101771560A (en) * 2008-12-31 2010-07-07 华为技术有限公司 Link restoring method, node device and network system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070201355A1 (en) * 2006-02-27 2007-08-30 Vasseur Jean P Method and apparatus for determining a preferred backup tunnel to protect point-to-multipoint label switch paths
CN101030814A (en) * 2006-03-03 2007-09-05 中兴通讯股份有限公司 Method for protecting and restoring packet service channel in ASON network
CN101459565A (en) * 2007-12-13 2009-06-17 华为技术有限公司 Recovery method, device and network node for multiplexing protection service
CN101771560A (en) * 2008-12-31 2010-07-07 华为技术有限公司 Link restoring method, node device and network system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115442293A (en) * 2022-08-27 2022-12-06 武汉烽火技术服务有限公司 Path finding method, device, equipment and readable storage medium
CN115442293B (en) * 2022-08-27 2023-06-06 武汉烽火技术服务有限公司 Path finding method, device, equipment and readable storage medium

Also Published As

Publication number Publication date
CN102204190A (en) 2011-09-28
WO2011157130A3 (en) 2012-04-26
CN102204190B (en) 2013-08-07

Similar Documents

Publication Publication Date Title
WO2011157130A2 (en) Path establishment method and apparatus
EP1845656B1 (en) A method for implementing master and backup transmission path
US9369335B2 (en) mRSVP-TE based fast reroute in detour (1:1) protection mode
US8289843B2 (en) Service failure recovery method and system
US20140286344A1 (en) Distributed connection establishment and restoration
US9350620B2 (en) Method for creating ring network label switched path, related device, and communications system
EP3654664B1 (en) Method for interconnected ring protection, computer-readable storage medium and computer program product
US20090219806A1 (en) Method, apparatus, and system for protecting head node of point to multipoint label switched path
EP2495918B1 (en) Method, system and node device for establishing label switch path
US20120207017A1 (en) Recovery mechanism for point-to-multipoint traffic
WO2008006268A1 (en) Method system and node device for realizing service protection in the automatically switched optical network
JP2009296493A (en) Communication device having path protecting function and network system using the communication device
US9191221B2 (en) Technique for protecting a point-to-multipoint primary tree in a connected mode communications network
EP2866394B1 (en) Method and device for sending inter-domain fault information
WO2022063010A1 (en) Service protection method and network node
EP2538602B1 (en) Method and system for realizing hot standby in centralized network nodes
Papán et al. Overview of IP fast reroute solutions
WO2012106976A1 (en) Fault protection method and device
US8918671B2 (en) Technique for protecting leaf nodes of a point-to-multipoint tree in a communications network in connected mode
WO2012075914A1 (en) Method and system for implementing point-to-multipoint label switched path protection
WO2016165061A1 (en) Service protecting method and device
EP2028824B1 (en) The process method for traffic engineering link information
US7668079B2 (en) Multiple endpoint paths for point-to-multipoint (P2MP) SPVC
EP2117199B1 (en) Transmission method, system and router based on the border gateway protocol
CN114785732A (en) Method and system for P2MP multicast tunnel path protection

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201180000670.8

Country of ref document: CN

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

Ref document number: 11795096

Country of ref document: EP

Kind code of ref document: A2

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11795096

Country of ref document: EP

Kind code of ref document: A2