WO2014059570A1 - Method, device and system for establishing label switched path - Google Patents

Method, device and system for establishing label switched path Download PDF

Info

Publication number
WO2014059570A1
WO2014059570A1 PCT/CN2012/082939 CN2012082939W WO2014059570A1 WO 2014059570 A1 WO2014059570 A1 WO 2014059570A1 CN 2012082939 W CN2012082939 W CN 2012082939W WO 2014059570 A1 WO2014059570 A1 WO 2014059570A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
network device
transport network
label
packet transport
Prior art date
Application number
PCT/CN2012/082939
Other languages
French (fr)
Chinese (zh)
Inventor
饶国义
贺志国
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201280001485.5A priority Critical patent/CN103238299B/en
Priority to PCT/CN2012/082939 priority patent/WO2014059570A1/en
Publication of WO2014059570A1 publication Critical patent/WO2014059570A1/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/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method, device and system for pre-allocating tags and establishing label switching paths.
  • Multi-protocol label switching is a kind of multi-layer switching technology based on packet switching.
  • LSP label switched path
  • the new LSP establishment time in the prior art is one of the important reasons for limiting the service access speed.
  • the transmission path fails, the transmission path needs to be restored as quickly as possible to reduce the interruption time of the service.
  • the main method for recovering the service transmission is to establish a new LSP through the signaling protocol, which is used for rerouting the faulty transmission path.
  • the new LSP establishment time often accounts for the majority of the LSP fault recovery time. Improving the recovery LSP establishment speed is the key to improving the LSP fault recovery process.
  • the direction of traffic sent from the ingress node to the egress node is called forward, and the cross-connection for forward traffic is called LSP forward cross-connection.
  • the direction of traffic sent from the last node to the head node is called reverse, and the cross-connection for reverse traffic is called LSP reverse cross-connection.
  • the neighboring node in the direction of the LSP head node is referred to as the upstream node, and the neighboring node in the direction of the last node is referred to as the downstream node.
  • the steps of establishing a new LSP mainly include: establishing a reverse cross-connection of an LSP in a Path message sent by a first node to a last node; establishing a LSP in a process of sending a RESV message to a first node by a last node Connect to the cross. If the created LSP is a unidirectional positive direction LSP, each node sends a forward label to the downstream node to establish a forward cross-connection, and cannot directly perform the forward direction.
  • each node performs the forward label assignment and the forward cross-connection establishment; if the created LSP is a bidirectional LSP, the PATH of the last node is sent from the first node.
  • the reverse cross-connection is established on each node, and the downstream node is requested to allocate a forward label; in the process of sending the RESV message to the first node, the nodes perform forward label assignment and forward crossover. The connection is established.
  • the cross-connection establishment time of the end-to-end MPLS LSP is the PATH process time plus the RESV process time, resulting in slow service access or service interruption time. Too long, affecting the user experience. An important reason for causing these problems is that the existing label allocation mechanism is imperfect. For each time a new LSP or a reroute LSP is established, a Path message is required to be hop-by-hop on each node, and then a Resv message is sent in reverse. It is requested to allocate a forward label hop by hop to establish a forward cross connection, which results in an LSP establishment time being too long.
  • An embodiment of the present invention provides a method, a device, and a system for establishing an LSP, in particular, a first method according to an embodiment of the present invention, in order to overcome the disadvantages of the LSP being established in the prior art because the label allocation mechanism is imperfect.
  • a method for establishing a label switched path LSP is provided, where: the first node calculates an LSP from the first node to the second node according to a network topology of the multi-protocol label switching network, to obtain an LSP of the LSP.
  • the first node establishes a forward cross-connection by using a first forward outgoing label and a first forward outgoing interface index of the first node in the LSP path information;
  • the outgoing label is an unused label in the label set pre-assigned to the first node by the downstream node adjacent to the first node on the LSP; the downstream node adjacent to the first node is in the An adjacent node downstream of the first node in the forward direction of the LSP; a forward direction along the LSP from the first node to the second node, along the LSP Transmitting the second node to the first node is reversed;
  • the first node sends a first Path message to a downstream node that is adjacent to the first node, where the first Path message carries the LSP
  • the first node switches the forward traffic to the LSP, where the CCM report
  • the message carries information for confirming that the second node has established a positive cross-connection.
  • the first node uses a reverse ingress label of the first node and a reverse entry of the first node in the LSP path information
  • the interface index establishes a reverse cross-connection
  • the reverse-entry label of the first node is an unused label that is determined by the first node from the label resource pool of the local node;
  • the first path message is further configured to establish a reverse cross-connection at each node downstream of the first node in a forward direction of the LSP.
  • the first node calculates, by the first node, an LSP from the first node to the second node according to a network topology of the multi-protocol label switching network Before obtaining the LSP path information of the LSP, the first node obtains the label set from a downstream node adjacent to the first node, where the label set is a downstream adjacent to the first node. a set of labels available to the first node determined by the node; and storing the obtained set of labels.
  • the label resource between the nodes in the MPLS network is allocated in advance before the LSP is established, and the first node can establish a forward cross connection in the Path process, and the first node in the prior art.
  • the LSP establishment time is shortened.
  • the forward traffic can be switched after the forward cross-connection is established on the first node to ensure that the new LSP can be used for bearer services.
  • the method disclosed in the embodiment of the present invention shortens the time for establishing an LSP, thereby reducing service access time or service recovery time and improving user experience.
  • a method for establishing a label switched path LSP is provided.
  • the LSP is an LSP from a first node to a second node, and the third node is the first node on the LSP.
  • an intermediate node between the second node and the second node is forward along the LSP, and the LSP is reversed from the second node to the first node, Specifically, the third node receives a second Path message sent by an upstream node adjacent to the LSP path, where the adjacent upstream node is in the forward direction of the LSP.
  • the third node acquires the path information carried in the second Path message received by the third node and the first forward outgoing label of the upstream node adjacent thereto, and the LSP is positive
  • An unused label in a label set assigned thereto to a downstream node adjacent thereto is used as a second forward outgoing label, and the first forward outgoing label is used as a second forward incoming label, according to the first Two forward tags
  • the second forward ingress label and the obtained path information establish a forward cross connection;
  • the third node sends a third Path message to the downstream node that is adjacent thereto, where the third Path message carries The LSP path information of each node downstream of the third node in the forward direction of the LSP and the second forward outgoing label, where the third Path message is used in the forward direction of the LSP.
  • Each node downstream of the third node establishes a positive cross-connection.
  • the third node acquires a first reverse incoming label of the upstream node that is adjacent to the second Path message that is received by the third node,
  • the first reverse entry label is used as the second reverse outgoing label of the third node
  • an unused label determined by the third node from the label resource pool of the local node is used as the third node.
  • the reverse inbound interface index and the reverse outbound interface index are established according to the second reverse outgoing label, the second reverse incoming label, and the third node in the LSP path information.
  • a reverse cross-connect the third Path message further carries the second reverse-ingress label, where the third Path message is further used to be downstream of the third node in the forward direction of the LSP.
  • Each node establishes a reverse cross-connection.
  • the first node sends Before establishing the LSP, the third node determines, in the label resource pool that can be used by the node, the label set that can be used by the upstream node adjacent to the adjacent upstream node, and An upstream node adjacent thereto sends a message to announce the determined set of labels.
  • the label resource between the nodes in the MPLS network is allocated in advance before the LSP is established, and the intermediate node can establish a forward cross connection in the Path process, and the intermediate node in the prior art.
  • the LSP establishment time is shortened.
  • the method disclosed in the embodiment of the present invention shortens the time for establishing an LSP, thereby reducing service access time or service recovery time and improving user experience.
  • a packet transport network device including: a processing module, configured to establish a forward cross-connection by using the label switched path LSP path information obtained by the label switching path and the first label from the storage module,
  • the first label is an unused label of a label set pre-assigned to the packet transport network device by a downstream packet transport network device adjacent to the packet transport network device on the LSP path, the downstream
  • the packet transport network device is a packet transport network device that is downstream of the packet transport network device in the forward direction of the LSP path
  • a generating module is configured to generate a Path message, where the Path message carries each of the downstream packet transport networks.
  • the LSP path information of the device and the first label, the destination address of the Path message is an address of a downstream packet transport network device adjacent to the packet transport network device on the LSP path
  • a sending module configured to send The message generated by the generation module.
  • the processing module is further configured to: after the forward cross connection establishment of the packet transport network device, the last packet transport network device in the forward direction of the LSP Before the forward cross-connection is established, the forward traffic is switched to the LSP; or the processing module is further configured to: after receiving the continuity check CCM message sent by the last packet transport network device, Switching to the LSP, the CCM message carries information for confirming that the last packet transport network device has established a forward cross-connection.
  • the processing module is further configured to establish a reverse cross-connection by using the obtained LSP path information and the second label from the storage module as a reverse incoming label, where The second label is an unused label in the label resource pool of the packet transport network device itself.
  • the generating module is further configured to carry the second label in the Path message.
  • the packet transport network device disclosed in the embodiment of the present invention allocates the label resource between the packet transport network devices in the MPLS network in advance before establishing the LSP, so that the allocated label can be directly utilized when the new LSP is established without re-allocation.
  • the forward cross-connection can be established in the Path process. Compared with the prior art method that requires the Path process and the Resv process to establish an LSP forward cross-connection, the time for establishing a new LSP is reduced.
  • the packet transmission network device at the LSP head node establishes a forward cross-connection, that is, the forward traffic is switched, and the new LSP can be used to carry the service for the first time, which shortens the service access time or service recovery time. , improved user experience.
  • a packet transport network device including: a receiving module, configured to receive a message; a parsing module, configured to parse a message received by the receiving module; and a processing module, configured to:
  • the forward outgoing label of the upstream packet transport network device adjacent to the packet transport network device of the parsing module is used as a forward inbound label of the packet transport network device, and the first label from the storage module is used as the a forward outgoing label of the packet transport network device, based on the forward incoming label of the packet transport network device, the forward outgoing label of the packet transport network device, and the path information of the label switched path LSP from the parsing module
  • the packet transport network device is a packet transport network device on the LSP
  • the first tag is a downstream packet transport network device adjacent to the packet transport network device on the LSP path Pre-assigned to an unused tag in the set of labels of the packet transport network device, the downstream packet transport network device being at
  • the generating module is configured to generate a Path message, where the Path message carries An LSP path information of each packet transport network device downstream of the packet transport network device on the LSP, and the first label, where the destination address of the Path message is in the forward direction of the LSP and the packet transport network device
  • the address of the adjacent downstream packet transport network device is further configured to generate an advertisement message according to the device identifier and the label set determined by the processing module, where the advertisement message carries the device identifier, and the packet transport network device itself The device identifier and the label set determined by the processing module, where the destination address of the advertisement message is in the forward direction of the LSP
  • the processing module is further configured to: use a reverse ingress label of an upstream packet transport network device adjacent to the packet transport network device from the parsing module a reverse outgoing label of the packet transport network device, using an unused label determined by the packet transport network device from its own label resource pool as a reverse incoming label of the packet transport network device, and transmitting by using the packet a reverse outgoing label of the network device, a reverse incoming label of the packet transport network device, and the LSP path information establishes a reverse cross-connection; the generating module is further configured to reverse the incoming packet network device The tag is carried in the Path message.
  • the packet transport network device disclosed in the embodiment of the present invention allocates the label resource between the packet transport network devices in the MPLS network in advance before establishing the LSP, so that the allocated label can be directly utilized when the new LSP is established without re-allocation.
  • the forward cross-connection can be established in the Path process. Compared with the previous method in which the Path process and the Resv process are required to establish an LSP forward cross-connection, the time for establishing a new LSP is reduced, and the service access time is shortened. Business recovery time improves the user experience.
  • a network system including: the network system includes at least a first packet transport network device, a second packet transport network device, and a third packet transport network device, the first packet The transport network device and the second packet transport network device transmit through the third packet The network device is connected; the direction from the first packet transport network device to the second packet transport network device is forward, and the direction from the second packet transport network device to the first packet transport network device is reversed; a first packet transport network device, configured to calculate an LSP from the first packet transport network device to the second packet transport network device according to a network topology of the network system, to obtain path information of the LSP, a forward outgoing label and the path information establish a forward cross connection, and send a first Path message to a downstream packet transport network device adjacent to the first packet transport network device in a forward direction of the LSP, where a forward outgoing label is an unused label of a set of labels pre-assigned to the first packet transport network device by a downstream packet transport
  • the forward outgoing label carried in the information is used as the forward ingress label of the third packet transport network device, and the path information carried in the second Path message obtained by the third packet transport network device is used.
  • a forward inbound label of the three packet transport network device and a forward outgoing label of the third packet transport network device establish a forward cross connect and are adjacent to the third packet transport network device in a forward direction of the LSP
  • the downstream packet transport network device sends a third Path message
  • the forward outgoing label of the third packet transport network device is a downstream packet transport network device adjacent to the third packet transport network device in the forward direction of the LSP.
  • the second packet transport network device configured to receive, by the upstream packet transport network device adjacent to the LSP in the forward direction a fourth Path message, and the forward outgoing label carried in the obtained fourth Path message is used as a forward ingress label of the second packet transport network device, and is transmitted by using the second packet
  • the forward inbound label of the network device establishes a forward cross connection with the path information carried in the obtained fourth path message.
  • the first packet transport network device is further configured to: after the forward cross connection establishment of the first packet transport network device, the second Before the forward cross-connection of the packet transport network device is established, the forward traffic is switched to the LSP; or, after receiving the continuity check CCM packet sent by the second packet transport network device, The traffic is switched to the LSP, and the CCM packet carries information that can confirm that the second packet transport network device has established a forward cross-connection.
  • the first packet transport network device is further configured to determine that an unused label in the label resource pool of the first packet transport network device itself is a reverse ingress label of the first packet transport network device, establishing a reverse cross connection by using a reverse inbound label of the first packet transport network device and the obtained LSP path information, and transmitting the reverse packet of the first packet transport network device
  • the reverse packet is carried in the first Path message
  • the third packet transport network device is further configured to: reverse the third packet transport network carried in the received second Path message, and determine An unused label in the label resource pool of the third packet transport network device itself is a reverse incoming label of the third packet transport network device, and the reverse incoming label of the third packet transport network device and the The obtained LSP path information establishes a reverse cross connection, and the first The reverse packet of the third packet transport network device is carried in the third Path message
  • the second packet transport network device is further configured to send the second packet transport network carried in the received fourth Path message Deviating the label, determining that an unused label
  • the label resource between nodes in the MPLS network is allocated in advance before the LSP is established, and the packet transport network device in the network can establish a positive cross-connection in the Path process, and the prior art Compared with the method in which the first node needs the Path process and the Resv process to establish an LSP forward cross connection, the time for establishing the LSP is shortened.
  • the packet transport network device at the head node on the LSP can switch the forward traffic after establishing the forward cross-connection, and the packet transport network device at the last node switches the reverse traffic after the reverse cross-connection.
  • the new LSP can be used to carry the service for the first time.
  • the method disclosed in the embodiment of the present invention shortens the time for establishing an LSP, thereby reducing service access time or service recovery time and improving user experience.
  • FIG. 1 is a flowchart of a method for pre-allocating tags between nodes according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a method for establishing a label switching path according to Embodiment 2 of the present invention
  • FIG. 3 is a flowchart of a method for establishing a label switching path according to Embodiment 3 of the present invention.
  • FIG. 4 is a structural diagram of a packet transport network device according to Embodiment 4 of the present invention.
  • FIG. 5 is a structural diagram of a packet transport network device according to Embodiment 5 of the present invention.
  • FIG. 6 is a structural diagram of a network device according to Embodiment 6 of the present invention.
  • Embodiment 1 The embodiment of the present invention provides a method for pre-allocating labels between nodes before establishing an LSP. As shown in FIG. 1, the method includes:
  • Step S101 Before establishing the LSP, the first node determines, according to the node identifier of each neighbor node, a label set that can be used by each neighbor node for each neighbor node, where each neighbor node is a node adjacent to the first node.
  • the set of tags includes one or more tags.
  • Each tag can be a corresponding number, such as tags can be 100, 101, 102, and the like.
  • the first node is a packet transmission in the MPLS network.
  • Packet transmission network (PTN) equipment refers to equipment that uses packet switching technology to transmit data, such as label switching routers (LSRs) and label switching edge routers (labe l).
  • LSRs label switching routers
  • label switching edge routers label switching edge routers
  • Swi tching edge router LER
  • switch packet switching device
  • packet transport network device packet transport network device
  • other nodes adjacent to it are neighbor nodes of the node.
  • the internal gateway protocol (IGP) message may be used to interact with the network topology information to obtain the node identifier of the neighbor node.
  • the node identifier may be a device identifier of the node device, or may be an Internet Protocol address of the node, or may be an integer.
  • the first node may be used to identify a neighbor node adjacent to the first node.
  • the first node After obtaining the node identifier of the neighboring node, the first node allocates an unused and idle label set from the label range supported by the node as a label set pre-allocated to the neighbor, and establishes a corresponding entry to save each neighbor node. , the set of labels assigned to it, and the correspondence between the two. The labels in the set of labels assigned to the neighbor nodes are no longer used for the establishment of cross-connections of other neighbor nodes until they are released for recycling.
  • the assigned tag sets or tags may be marked as allocated, and other neighbor nodes do not use the tags in the tag set when establishing the cross-connection, and are marked as the assigned tag set before being released for recycling.
  • the label can only be used to establish a service connection between the neighbor node assigned to the label set or the label and the first node.
  • Step S1 02 the first node sends a message to each neighbor node, and the message sent to any one of the neighbor nodes carries the node identifier of the neighbor node, the node identifier of the first node, and the first The set of labels that the node assigns to the neighbor node.
  • the first node generates a message according to the above-mentioned established entry or directly according to the allocation of the label set by the first node to the neighboring node, and the message may be an extended IGP protocol message, or an extended Ethernet packet, or It is another message type, as long as it can be used for carrying the node identifier of the destination neighbor node, the node identifier of the first node, and the label set allocated by the first node to the destination neighbor node.
  • the destination address of the message may be a unicast address
  • the sent content may be a node identifier of the destination neighbor node, a node identifier of the first node, and a label set allocated by the first node to the destination neighbor node
  • the sent content may also be a table. Item, the entry includes the node identifier of the first node, the node identifier of all the neighbor nodes of the first node, and the label set allocated by the first node to the neighbor nodes, and the neighbor node that receives the message can identify by itself Find the set of labels assigned to yourself in the table entry.
  • the message may also be a broadcast address, and the sent content may be the above-mentioned node identifier including the first node, the node identifier of all the neighbor nodes of the first node, and the label set of the label set allocated by the first node to the neighbor nodes.
  • the first node can have its neighbor nodes get the set of available labels that they have assigned to them.
  • the neighbor node may reply to the message to confirm that the message sent by the first node is received, and the label is confirmed. The assignment is complete.
  • the first node may also receive the message sent by each neighbor node, and the message sent by each neighbor node carries the node identifier of the first node and the node identifier of the source node. And a label set allocated by the source node to the first node, where the source node is a node that sends the message adjacent to the first node; the first node stores a node identifier of the source node, and the source node is assigned to the first node The label set of the node and the correspondence between the node identifier of the source node and the label set assigned by the source node to the first node. Through this step, the first node can obtain the set of tags to which its neighbor nodes are assigned.
  • the label set allocated by a node to its neighbor node may include multiple sub-tag sets, and may also allocate a label set multiple times to the same neighbor node.
  • all the nodes in the MPLS network can use the foregoing steps to implement label pre-allocation with their neighbor nodes.
  • the allocated label can be reclaimed through a certain process. Specifically, if the node allocates multiple label sets to a neighbor node, it finds that all labels in a label set allocated to a neighboring node are If the tag is in the idle state, and the tag in the other tag set is not used yet, the message can be sent to the neighbor node for revocation. After receiving the confirmation message sent by the neighbor node, the tag set can be recovered.
  • the label pre-allocation method disclosed in the embodiment of the present invention can allocate the label resources between the nodes in the MPLS network in advance before the LSP is established, and overcomes the requirement that the LSPs must be allocated hop by hop every time a new LSP is established in the prior art.
  • the forward label and the hop-by-hop allocation of the forward label according to the request so that when the new LSP or the original LSP fails to be established, the re-routed LSP needs to be established, and the allocated label can be directly used without having to re-allocate each time. , greatly reducing the time for establishing a new LSP, shortening the service access time or service recovery time, and improving the user experience.
  • Embodiment 2 The embodiment of the present invention provides a method for establishing a label switching path LSP, where
  • the LSP is an LSP from the first node to the second node, and the LSP is forward from the first node to the second node along the LSP, and the LSP is from the second node to the first node. Reverse, as shown in Figure 2.
  • Step S201 optionally, before the first node initiates establishment of the LSP, that is, the first node calculates, according to a network topology of the multi-protocol label switching network, a path from the first node to the Before the LSP of the second node obtains the LSP path information of the LSP, the first node obtains the determined by the downstream node adjacent to the first node from a downstream node adjacent to the first node The set of tags available to the first node and stores the obtained set of tags. If the first node has stored a set of available labels to which adjacent downstream nodes on the LSP are assigned, this step may be omitted.
  • the method of allocating the label set may be the method in the first embodiment, and will not be described again.
  • the pre-allocation label between the nodes may be the time when the network is initialized, or may be other times, but must be before the request to establish the LSP, that is, before the establishment of the LSP. That is to say, the embodiment of the present invention has already allocated the labels between the nodes before initiating the establishment of the LSP, so it is not necessary to request the downstream nodes to allocate the forward outgoing labels when establishing the LSP, and can be established in the Path process. Forward cross connection.
  • the pre-allocation of the label may be pre-allocating an alternate label set for each node in each existing LSP for use in a fault; or may be a virtual LSP in the network system in advance. Assign the corresponding label, and directly use when the signaling of establishing the LSP arrives. A label assigned to a virtual LSP; or all nodes in the system may assign labels to their neighbor nodes.
  • Step S202 The first node calculates an LSP from the first node to the second node according to the network topology of the multi-protocol label switching network, and obtains LSP path information of the LSP.
  • the path information includes a node identifier of each node on the path, a first forward outbound interface index of the first node, a second forward inbound interface index of the second node, and an intermediate node between the first node and the second node. Forward inbound interface index and forward outbound interface index.
  • the first node is the ingress node of the LSP
  • the second node is the egress node of the LSP.
  • Step S203 The first node establishes a forward cross-connection by using a first forward outgoing label and a first forward outgoing interface index of the first node in the LSP path information, where the first forward outgoing label An unused label of the label set in the first node that is pre-allocated by the first node on the LSP to the first node, where a downstream node of a node refers to a forward direction of the LSP.
  • the node in the direction behind the node.
  • the first node determines, according to the node identifier of the adjacent downstream node of the first node included in the path information, to find a label set allocated by the downstream node to the first node, and then uses an unused label in the label set as the first Forward the label.
  • the LSP is configured with the bandwidth requirement
  • the first node performs the resource check and the bandwidth allocation before the cross-connection is established. If the bandwidth allocation fails, the LSP fails to be established, and the process ends.
  • the first node may further establish a reverse direction by using the first reverse ingress label and the first reverse inbound interface index of the first node in the LSP path information.
  • a cross-connect, the first reverse-entry label is an unused label allocated by the first node from a label resource pool of the node.
  • An unused label allocated in the label resource pool of the node may be an unused label in a label set that has been pre-assigned to the adjacent downstream node of the node, or may be an unused label that is not assigned to any neighbor node.
  • the forward outgoing interface index used by a node to establish the cross-connection of the LSP may be the same as the reverse incoming interface index, and the reverse outgoing interface index may be forwarded to the forward interface index. The same can be said in the following embodiments, and will not be described again.
  • Step S204 The first node sends a Path message to a downstream node that is adjacent to the first node on the LSP, where the Path message is used to establish a positive manner on each downstream node of the first node on the LSP. Connect to the cross.
  • the Path message causes a node other than the second node downstream of the first node on the LSP to use an unused label of its label set pre-assigned to its neighboring downstream node, adjacent thereto
  • the path information carried in the Path message sent by the upstream node establishes a forward cross-connection with the forward outgoing label, so that the second node establishes a positive crossover by using the path information carried in the Path message sent by the neighboring upstream node and the forward outgoing label. connection.
  • the Path message sent by the first node carries the forward outgoing label of the first node and the path information of the node identifier, the inbound interface, and the outbound interface of all the downstream nodes on the LSP behind the first node. If the first node and the first There is one or more intermediate nodes between the two nodes, and the intermediate node receives the Path message sent by the upstream node on the LSP and obtains the forward outgoing label of the upstream node carried in the Path message, and the intermediate node Forward inbound interface index and forward outbound interface index, using the forward outgoing label of the intermediate node and the forward outgoing label of the upstream node obtained by the intermediate node, the forward inbound interface index of the intermediate node, and the forward outbound interface index Establishing a forward cross-connection of the LSP in the intermediate node, the intermediate node sending a Path message to the downstream node adjacent to the intermediate node on the LSP, where the forward outgoing label of the intermediate node is on the LSP and the intermediate node
  • the intermediate node determines, according to the node identifier of the adjacent downstream node of the intermediate node included in the path information, to find a label set allocated by the downstream node to the intermediate node, and then uses an unused label in the label set as the middle The forward outgoing label of the node.
  • the intermediate node forwards the forward label of the upstream node (the first node of the first intermediate node, the upstream node is the first node, and the upstream node is an intermediate node to other intermediate nodes) carried in the Path message.
  • the Path message sent by the intermediate node to the downstream carries the forward outgoing label of the intermediate node and the path information such as the node identifier, the outbound interface, and the inbound interface of all the downstream nodes of the intermediate node on the LSP. If there are multiple intermediate nodes between the first node and the second node, these intermediate nodes repeat the above steps.
  • the intermediate node performs resource check and bandwidth allocation before establishing the cross-connection. If the bandwidth allocation fails, the LSP fails to be established, and the LSP fails to be sent to the adjacent upstream node. The message ends, and the Path message is no longer sent to the downstream node.
  • the second node receives the Path message sent by the upstream node adjacent to the LSP, and obtains the second forward outgoing label of the upstream node and the second forward incoming interface index of the second node carried in the Path message, because the The second forward outgoing label is an unused label that the second node pre-allocates to its upstream node, so it is definitely idle, so the second forward outgoing label can be directly set as the forward incoming label of the node, and the second positive Establishing a forward cross-connection of the LSP at the second node to the ingress label and the second forward ingress interface index.
  • each node on the LSP behind the first node may also establish a forward cross connection and a reverse cross connection by using an established LSP in the prior art, so that the LSP is shortened compared with the prior art.
  • the time that the adjacent node of the first node allocates label resources to the downstream node can also shorten the time for establishing the LSP to some extent.
  • the Path message sent by the first node to the downstream node that is adjacent to the first node on the LSP is further caused by the first node on the LSP.
  • the downstream node other than the second node establishes a reverse crossover by using an unused label allocated from the label resource pool of the local node, path information carried in the Path message sent by the adjacent upstream node, and a reverse incoming label.
  • the connection further causes the second node to establish a reverse cross-connection by using the path information carried in the Path message sent by the neighboring upstream node and the reverse incoming label, and switch the reverse traffic to the reverse cross-connection successfully.
  • the LSP On the LSP.
  • the intermediate node may also receive the Path message received by the intermediate node. Carrying the reverse ingress label of the upstream node, the reverse outbound interface index of the intermediate node, and the reverse inbound interface index, may utilize the reverse ingress label of the intermediate node and the reverse entry label of the upstream node obtained by the intermediate node, The reverse outbound interface index and the reverse inbound interface index of the intermediate node establish a reverse cross connection of the LSP in the intermediate node, and the intermediate node sends a Path message to the downstream node adjacent to the intermediate node on the LSP.
  • the forward outgoing label of the intermediate node is an unused label in the label set pre-assigned to the intermediate node by the downstream node adjacent to the intermediate node on the LSP.
  • the intermediate node sets the reverse ingress label of the upstream node that is carried in the Path message with the neighboring node to the reverse outgoing label of the LSP, thereby establishing a reverse cross connection.
  • the Path message sent by the intermediate node to the downstream carries the forward outgoing label of the intermediate node, the reverse incoming label, and the path information of the node identifier, the outbound interface, and the inbound interface of all the downstream nodes of the intermediate node on the LSP. If there are multiple intermediate nodes between the first node and the second node, these intermediate nodes repeat the above steps.
  • the intermediate node performs resource check and bandwidth allocation before establishing the cross-connection. If the bandwidth allocation fails, the LSP fails to be established, and the LSP fails to be sent to the adjacent upstream node. The message ends, and the Path message is no longer sent to the downstream node.
  • the second node may also obtain a second reverse incoming label of the upstream node and a second reverse outgoing interface index of the second node carried in the Path message received by the second node, and use the second reverse outgoing label and the second reverse The outbound interface index establishes a reverse cross-connection of the LSP at the second node.
  • the reverse traffic may be switched to the LSP.
  • Step S205 optionally, after the forward cross connection of the first node is established, before the forward cross connection of the second node is established, although the LSP is not finally completed, the first node may cut the forward traffic first. Go to the LSP.
  • the LSP has not been finalized, if the node receiving the traffic has not established the forward cross-connection of the node, it can cache data traffic or discard the data traffic.
  • the forward traffic is transmitted to the downstream node. If there is buffered data traffic, the corresponding data traffic is released and transmitted to the downstream node. In this way, the LSP can be used to transmit forward traffic for the first time after it is built.
  • "Life check it is good to determine the positive direction path at the first node and the last node, and then switch forward traffic or reverse traffic.
  • the method of continuity check is to send a continuity check (CCM) message in the CCM message. Carrying information that can confirm that the second node has established a forward cross-connection, such as carrying a specific identifier, a specific CCM transmission interval, etc., so that the first node identifies the identifier and determines that the forward cross-connection of the second node has been If it is established, the forward traffic is switched. Because the time for enabling OAM and sending CCM messages is very short compared to the time of the Path process and the Resv process, the time for establishing the LSP is generally saved, and the service access is shortened. Time or business recovery time.
  • the second node may send a Resv message to initiate a Resv process to check the cross-connection status of the LSP.
  • the label resource between the nodes in the MPLS network is allocated in advance before the LSP is established, and the first node can establish a forward cross connection in the Path process, and the first node in the prior art.
  • the LSP establishment time is shortened. If all the nodes on the entire LSP are assigned labels before the LSP is set up, all nodes can establish a forward cross-connection in the Path process, which can greatly shorten the LSP establishment time.
  • the forward traffic can be switched after the forward cross-connection is established on the first node, and the reverse traffic is switched after the reverse-cross connection of the last node, which ensures that the new LSP can be used for bearer services after being established.
  • the method disclosed in the embodiment of the present invention shortens the time for establishing an LSP, thereby reducing service access time or service recovery time and improving user experience.
  • Embodiments of the present invention provide a method for establishing a label switching path LSP, where
  • the LSP is an LSP from the first node to the second node
  • the third node is an intermediate node between the first node and the second node on the LSP, along the LSP from the first node to the The second node is forward, and the LSP is reversed from the second node to the first node along the LSP, as shown in FIG.
  • Step S301 optionally, before the first node initiates establishment of the LSP, that is, the first node calculates, according to a network topology of the multi-protocol label switching network, a path from the first node to the Before the LSP of the second node obtains the LSP path information of the LSP, the third node obtains the determined by the downstream node adjacent to the third node from a downstream node adjacent to the third node The set of tags that the third node can use, and stores the obtained set of tags. If the third node has stored a set of available labels assigned to adjacent downstream nodes on the LSP, the free labels in the set of labels can be directly utilized.
  • the third node allocates, to the adjacent upstream node on the LSP, a set of labels that can be used by the upstream node, so that it establishes a forward cross-connection in the Path process, if the upstream node has received the After the assigned tag set has been reached and there are free tags in the tag set, the third section can be used again.
  • the method of assigning a label set; ⁇ method may be pre-allocation of labels between the nodes in the first embodiment. It should be noted that the pre-allocation label between the nodes may be the time when the network is initialized, or may be other time, but must be before the request to establish the LSP, that is, before the establishment of the LSP.
  • the embodiment of the present invention has already allocated the labels between the nodes before initiating the establishment of the LSP, so it is not necessary to request the downstream nodes to allocate the forward outgoing labels when establishing the LSP, and can be established in the Path process. Forward cross connection.
  • the pre-allocation of the label may be pre-allocating an alternate label set for each node in each existing LSP for use in a fault; or may be a virtual LSP in the network system in advance. The corresponding label is allocated, and the label allocated for the virtual LSP can be directly used when the signaling for establishing the LSP arrives; or all the nodes in the system allocate labels to the neighbor nodes.
  • Step S302 the third node receives a Path message sent by an upstream node adjacent to the LSP path, and the adjacent upstream node is in the third node in a forward direction of the LSP. Adjacent nodes upstream.
  • the Path message is a message that is sent after the first node establishes a forward cross-connection and is forwarded by a node between the first node and the third node after establishing a forward cross-connection, where one node The downstream node is in the forward direction of the LSP. The node behind the node.
  • first node establishes a forward cross-connection
  • first node in the second embodiment establishes a forward cross-connection
  • intermediate node between the first node and the third node establishes a positive cross-connection
  • the intermediate nodes establish a forward cross-connection
  • each node may also establish a reverse cross connection, which is also the same as the method in the second embodiment.
  • Step S303 the third node acquires the path information carried in the Path message received by the third node and the forward outgoing label of the upstream node adjacent thereto, and the downstream node adjacent to the LSP in the forward direction
  • An unused label in the label set assigned thereto is used as the second forward outgoing label
  • the obtained forward outgoing label of the upstream node adjacent thereto is used as the second forward incoming label, according to the second forward direction
  • the outgoing label, the second forward incoming label, and the obtained path information establish a positive cross-connection.
  • the third node may also use the information carried in the obtained Path message to establish a reverse cross connection.
  • the method for establishing the forward cross connection and the reverse cross connection of the third node is the same as the method for establishing the forward cross connection and the reverse cross connection respectively with the intermediate node in the second embodiment, and details are not described herein again.
  • Step S304 the third node sends a Path message to the downstream node that is adjacent to the neighboring node, where the Path message carries the LSP path information of the downstream nodes of the third node and the second forward outgoing label.
  • the Path message is used to establish a forward cross-connection for each downstream node of the third node on the LSP.
  • the Path message causes a node other than the second node downstream of the third node on the LSP to use an unused tag of its label set pre-assigned to its neighboring downstream node, adjacent thereto
  • the path information carried in the Path message sent by the upstream node establishes a forward cross-connection with the forward outgoing label, so that the second node establishes a positive crossover by using the path information carried in the Path message sent by the neighboring upstream node and the forward outgoing label. connection.
  • a reverse cross connection can also be established at each node.
  • the method for establishing a forward cross connection and the reverse cross connection between the node other than the second node and the second node downstream of the third node is the same as the method of the intermediate node and the second node in the second embodiment, respectively. Let me repeat.
  • the first node may cut the forward traffic to the LSP, and receive the traffic when the LSP has not been finally completed.
  • the node can buffer data traffic or discard data traffic. This ensures that the LSP can be used to transmit forward traffic for the first time after it is built.
  • the first node performs the resource check and the bandwidth allocation before the cross-connection is established. If the bandwidth allocation fails, the LSP fails to be established, the process ends, and the Path message is not sent to the downstream node. .
  • the second node may send a Resv message to initiate a Resv process to check the cross-connection status of the LSP.
  • the first node can cut the forward traffic first.
  • the LSP comes up.
  • the node receiving the traffic has not established the forward cross-connection of the node, it can cache data traffic or discard the data traffic.
  • the forward traffic is transmitted to the downstream node. If there is buffered data traffic, the corresponding data traffic is released and transmitted to the downstream node. In this way, the LSP can be used to transmit forward traffic for the first time after being built.
  • each node except the third node on the LSP can also establish a forward cross connection and a reverse cross connection by using an established LSP in the prior art, so that the LSP is shortened compared with the prior art.
  • the time for the adjacent downstream node of the third node to allocate the label resource to it can also shorten the time for establishing the LSP to some extent.
  • the LSP operation, management, and maintenance can be enabled before the forward traffic or the reverse traffic is switched, and the continuity check is performed to determine the positive direction at the first node and the last node.
  • the path is good, then switch forward traffic or reverse traffic.
  • the method of continuity check is to send a continuity check (CCM) message, the CCM message carrying information that can confirm that the second node has established a forward cross-connection, such as carrying a specific identifier, so that the first After the node identifies the identifier and determines that the forward cross-connection of the second node has been established, the forward traffic is switched. Because the time for enabling OAM and sending CCM messages is very short compared to the time of the Path process and the Resv process, the time for establishing an LSP is generally saved, and the service access time or service recovery time is shortened.
  • CCM continuity check
  • the label resource between nodes in the MPLS network is allocated in advance before the LSP is established, and the intermediate node on the LSP can establish a forward cross connection in the Path process, and the prior art Compared with the method that the intermediate node needs the Path process and the Resv process to establish an LSP forward cross connection, the LSP establishment time is shortened. If all the nodes on the entire LSP are assigned labels before the LSP is set up, all nodes can establish a forward cross-connection in the Path process, which can greatly shorten the LSP establishment time.
  • the forward traffic can be switched after the forward cross-connection is established on the first node, and the reverse traffic is switched after the reverse-cross connection of the last node, which ensures that the new LSP can be used for bearer services for the first time.
  • the method disclosed in the embodiment of the present invention shortens the time for establishing an LSP, thereby reducing service access time or service recovery time and improving user experience.
  • Embodiment 4 An embodiment of the present invention provides a packet transport network device, as shown in FIG.
  • the device includes: a processing module, configured to establish a forward cross connection by using the label switching path LSP path information obtained by the label switching path and the first label from the storage module, where the first label is on the LSP path and the a downstream packet transport network device adjacent to the packet transport network device is pre-assigned to an unused tag in the tag set of the packet transport network device, the downstream packet transport network device; a generating module, configured to generate a Path message, The Path message carries the LSP path information of each packet transport network device downstream of the packet transport network device on the LSP, and the first label, where the destination address of the Path message is the LSP path and the packet An address of a downstream packet transport network device adjacent to the transport network device; a sending module, configured to send a message generated by the generating module; A storage module for storing information from the processing module.
  • the packet transport network device forward traffic before the forward cross-connection of the last packet transport network device in the forward direction of the LSP On the LSP that is switched; or, after receiving the continuity check CCM message sent by the last packet transport network device, the packet transport network device switches the forward traffic to the LSP, where the CCM report The message carries information for confirming that the last packet transport network device has established a forward cross-connection.
  • the processing module is further configured to establish, by using the LSP path information obtained by the LSP path information and the second label from the storage module, as a reverse ingress label, where the second label is the grouping An unused label in the label resource pool of the transport network device itself; the Path message also carries the second label.
  • the processing module is further configured to allocate, according to the device identifier, a label set to each of the packet transport network devices adjacent to the packet transport network device, where the device identifier is a device identifier of the neighboring packet transport network devices;
  • the generating module is further configured to send, according to the result of the processing module allocation, a message to the neighboring packet transport network devices by using the allocated label set, where the message carries the device identifier of the packet transport network device, the device identifier of the device pointed by the message, and The set of labels assigned to the device with the device ID.
  • the processing module may be configured to establish a forward cross connection by using path information of the label switched path LSP obtained by the label switching path and an unused label, where the LSP path information may be obtained by using the packet transmission network.
  • the network topology of the MPLS network where the device is located is calculated and obtained.
  • the unused tag is an unused tag pre-assigned to the packet transport network device's tag set in the downstream packet transport network device adjacent to the packet transport network device.
  • the device identifier of the network device of the neighboring downstream device may be used to query the neighbor information stored in the storage module.
  • the packet transport network device is the first node of the LSP, after the forward cross connection of the first node is established, before the forward cross connection of the last node is established, although the LSP has not been finally completed, the packet is transmitted.
  • the network device can cut the forward traffic to the LSP first.
  • the packet transport network device receiving the traffic may cache the data traffic or discard the data traffic if it finds that the forward cross-connection on the device has not been established yet.
  • the forward traffic is transmitted to the downstream device. If there is buffered data traffic, the corresponding data traffic is released and transmitted to the downstream device.
  • the LSP operation, management, and maintenance may be enabled before the forward traffic or the reverse traffic is switched, and the continuity check is performed on the packet transmission network device at the first node.
  • the packet transport network device of the last node determines that the established LSP is good, and then switches forward traffic or reverse traffic.
  • the method of continuity check is to send a continuity check (CCM) message, which carries the last packet transport network device on the LSP path, that is, the last node of the LSP has established a forward cross connection.
  • CCM continuity check
  • the forward traffic is switched. Because the time for enabling OAM and sending CCM messages is very short compared to the time of the Path process and the Resv process, the time for establishing an LSP is generally saved, and the service access time or service recovery time is shortened. In this way, the LSP can be used to transmit forward traffic for the first time after being built.
  • the method for establishing a reverse cross-connection is also performed by using the packet-transport network device. For example, the method for establishing a reverse cross-connection by the first node in Embodiment 2 is not described herein.
  • the processing module is further configured to determine, according to a device identifier of each neighbor packet transport network device from the storage module or from the parsing module, a label set that is applicable to each neighbor packet transport network device, where the packet is The neighbor packet transport network device of the transport network device is a packet transport network device adjacent to the packet transport network device.
  • the device identifier of the packet transport network device may be the device identifier of the device, or may be an Internet Protocol address of the device, or may be an integer. In short, it may be used for identifying by the first packet transport network device, or may be other An identifier that can be used for identification by the first packet transport network device.
  • the device identifier of the neighbor packet transport network device may be stored by the storage module.
  • the internal gateway protocol may also be adopted. IGP)
  • the message interacts with the network topology information and parses the corresponding message through the parsing module to obtain the device identifier of the neighbor packet transport network device.
  • Determining the set of labels that can be used by the neighboring packet transport network device means assigning a label set to each device identifier in a locally available label resource pool, the label set including at least one label.
  • the device identifier of the neighbor packet transport network device may be used as a key to establish a corresponding entry, and the key set is assigned to the key.
  • the label set is allocated, it is sent to the storage module for storage.
  • the tag or tag set that has been assigned may be marked as assigned, and the tag or tag set marked as being allocated is only used by the neighbor packet transport network device assigned to the tag or tag set, before being released. Other neighbor packet transport network devices are not available.
  • the generating module the path information carried by the generated Path message includes, but is not limited to, a device identifier, an outbound interface, and an inbound interface index of each packet transport network device on the LSP after the packet transport network device, and the packet transmission The forward label of the network device.
  • the Path message when a reverse cross-connection is established, the Path message also carries a reverse-entry label.
  • the generating module is further configured to generate, according to the device identifier of the neighbor packet transmission network device from the storage module or the processing module, and the label set of the neighbor packet transmission network device determined by the processing module.
  • the message may be an extended IGP protocol message, an extended Ethernet packet, or other message type, as long as it can be used to carry the device identifier of the destination neighbor packet transport network device, and the first packet transport network device.
  • the device identifier and the label set assigned by the first node to the destination neighbor node are sufficient.
  • the destination address of the message may be a unicast address, and the content sent may be a device identifier of the destination neighbor packet transport network device, a device identifier of the first packet transport network device, and a first packet transport network device allocated to the destination neighbor packet transport network device.
  • the label set, the sent content may also be an entry, where the entry includes the packet transport network device identifier of the first packet transport network device, and the first packet transport network device.
  • the packet transport network device identifier of the neighbor packet transport network device and the label set allocated by the first packet transport network device to the neighbor packet transport network devices, and the neighbor packet transport network device receiving the message may identify the network device through its own packet transport network device. Find the set of labels assigned to yourself in the table entry.
  • the message may also be a broadcast address
  • the sent content may be the above-mentioned packet transport network device identifier including the first packet transport network device, the packet transport network device identifier of all neighbor packet transport network devices of the first packet transport network device, and An entry of a label set assigned by the first packet transport network device to the neighbor packet transport network devices.
  • the packet transport network device may include a parsing module, configured to parse the message received by the receiving module from the neighbor packet transport network device, and obtain the neighbor packet transport network device carried in the message The device identification and the set of tags assigned by the neighbor packet transport network device to the packet transport network device.
  • a parsing module configured to parse the message received by the receiving module from the neighbor packet transport network device, and obtain the neighbor packet transport network device carried in the message The device identification and the set of tags assigned by the neighbor packet transport network device to the packet transport network device.
  • the storage module is configured to store information from the parsing module and the processing module.
  • the stored content may include, but is not limited to, a device identifier of a neighbor packet transport network device, a label set assigned to its neighbor packet device by the packet transport network device, a correspondence between the two, and usage of the label set label.
  • Information from the processing module includes, but is not limited to, information that modifies the usage status of the tag, tag set information, tag information, device identification information, and the like.
  • the Packet Transpor Network (PTN) device in the embodiment refers to a device that transmits data by using a packet switching technology, including but not limited to a label swi tching router (LSR) and a label swi tching edge. Router , LER ), switches, packet switching equipment, packet transport network equipment, etc.
  • LSR label swi tching router
  • LER label swi tching edge
  • the packet transport network device disclosed in the embodiment of the present invention allocates the label resource between the packet transport network devices in the MPLS network in advance before establishing the LSP, so that the allocated label can be directly utilized when the new LSP is established without re-allocation.
  • the forward cross-connection can be established in the Path process. Compared with the previous method in which the Path process and the Resv process are required to establish an LSP forward cross-connection, the time for establishing the LSP is reduced.
  • the packet transmission network device at the LSP head node establishes a forward cross-connection, that is, the forward traffic is switched, and the new LSP can be used to carry the service for the first time, which shortens the service access time or service recovery time. , improved user experience.
  • Embodiments of the present invention provide a packet transport network device, as shown in FIG. 5.
  • the device includes: a receiving module, configured to receive a message; a parsing module, configured to parse the message received by the receiving module; and a processing module, configured to: forward the packet transport network from the parsing module to the label, and the The first label of the storage module serves as a forward outgoing label of the packet transport network device, according to a forward incoming label of the packet transport network device, a forward outgoing label of the packet transport network device, and a obtained label
  • the path information of the switching path LSP establishes a forward cross-connection, wherein the packet transport network device is a packet transport network device on the LSP, and the first label is on the LSP path and the packet transport network device An adjacent downstream packet transport network device is pre-assigned to an unused tag in the set of labels of the packet transport network device, the downstream packet transport
  • the processing module is further configured to determine, according to the device identifier from the storage module or the device identifier from the parsing module, a label set that can be used by the packet transport
  • a device identifier of the upstream packet transport network device adjacent to the packet transport network device in the forward direction a generating module, configured to generate a Path message, where the Path message carries the packet transport network device downstream on the LSP The LSP path information of each packet transport network device and the address of the downstream packet transport network device adjacent to the network device; the generating module is further configured to generate an advertisement message according to the device identifier and the label set determined by the processing module
  • the notification message carries the device identifier, the device identifier of the packet transport network device itself, and the upstream packet transport network device that the processing module sends the network device adjacent to;
  • the sending module is configured to send the generating module a generated message, configured to store information from the parsing module and the processing module
  • the processing module is further configured to: forward the packet transport network from the parsing module to an outgoing label, and use an unused label determined by the packet transport network device from its own label resource pool.
  • the Path message also carries a reverse incoming label of the packet transport network device.
  • the method for the processing module to obtain the path information of the forward outgoing label and the label switched path LSP of the upstream packet transport network device adjacent to the packet transport network device may be, by receiving and parsing, sending, by the upstream packet transport network device The Path message is obtained.
  • the packet transport network device is an intermediate node on the LSP
  • the neighboring packet transport network device may be queried according to the related information stored in the storage module of the device identifier of each of the adjacent downstream transport network devices.
  • the set of labels pre-assigned to it, using an unused label in the set of labels and the incoming and outgoing interface indexes carried in the Path message sent by the neighboring upstream packet transport network device and the forward outgoing label establishment Forward cross-connect and send Path messages to neighboring downstream packet transport network devices.
  • An unused label in the label set may be searched in the stored label set according to the device identifier of the next LSP transport network device carried in the Path message.
  • the method for establishing a reverse cross-connection is also performed by using the packet transport network device. For example, the method for establishing a reverse cross-connection between the intermediate nodes in the second embodiment is not described herein.
  • the method for the processing module to determine the available label set of the upstream packet transport network device adjacent to the packet transport network device is not described again.
  • a processing module configured to determine, according to a device identifier of each neighbor packet transport network device from the storage module or from the parsing module, a label set usable by each of the neighbor packet transport network devices, where the neighbor of the packet transport network device
  • the packet transport network device is a packet transport network device adjacent to the packet transport network device.
  • the device identifier of the packet transport network device may be the device identifier of the device, or may be the network of the device
  • the protocol address may also be an integer.
  • the device identifier of the neighbor packet transport network device may be stored by the storage module. If the first packet transport network device does not know the device identifier of each neighbor packet transport network device, the internal gateway protocol may also be used. IGP) The message interacts with the network topology information and parses the corresponding message through the parsing module to obtain the device identifier of the neighbor packet transport network device. Determining the set of labels that can be used by the neighboring packet transport network device means assigning a label set to each device identifier in a locally available label resource pool, the label set including at least one label.
  • the device identifier of the neighboring packet transport network device may be used as a key to establish a corresponding entry, and the key set is assigned to the key. After the label set is allocated, it is sent to the storage module for storage.
  • the tag or tag set that has been assigned may be marked as assigned, and the tag or tag set marked as being allocated is only used by the neighbor packet transport network device assigned to the tag or tag set, before being released. Other neighbor packet transport network devices are not available.
  • the generating module the path information carried by the generated Path message includes, but is not limited to, a device identifier, an outbound interface, and an inbound interface index of each packet transport network device on the LSP after the packet transport network device, and the packet transmission The forward label of the network device.
  • the Path message when a reverse cross-connection is established, the Path message also carries a reverse-entry label.
  • the generating module is further configured to generate, according to the device identifier of the neighbor packet transmission network device from the storage module or the processing module, and the label set of the neighbor packet transmission network device determined by the processing module.
  • the message may be an extended IGP protocol message, an extended Ethernet packet, or other message type, as long as it can be used to carry the device identifier of the destination neighbor packet transport network device, and the first packet transport network device.
  • the device identifier and the label set assigned by the first node to the destination neighbor node are sufficient.
  • the destination address of the message may be a unicast address, and the content sent may be a device identifier of the destination neighbor packet transport network device, a device identifier of the first packet transport network device, and a first packet transport network device allocated to the destination neighbor packet transport network device.
  • the set of labels may also be an entry, where the entry includes the packet transport network device identifier of the first packet transport network device, and the packet transport network of all neighbor packet transport network devices of the first packet transport network device.
  • the device identifier and the set of labels allocated by the first packet transport network device to the neighbor packet transport network devices, and the neighbor packet transport network device receiving the message may look up the label set assigned to itself in the entry by its own packet transport network device identifier. .
  • the message may also be a broadcast address
  • the sent content may be the above-mentioned packet transport network device identifier including the first packet transport network device, the packet transport network device identifier of all neighbor packet transport network devices of the first packet transport network device, and An entry of a label set assigned by the first packet transport network device to the neighbor packet transport network devices.
  • the parsing module is configured to parse a message received by the receiving module from the neighbor packet transport network device, and obtain a device identifier of the neighbor packet transport network device carried in the message, and the neighbor packet transport network A set of labels assigned by the device to the packet transport network device.
  • the parsing module is further configured to parse the sending of the adjacent upstream device of the packet transport network device received by the receiving module Path message, and get the information carried in it.
  • the packet transport network device may include a storage module, configured to store information from the parsing module and the processing module.
  • the stored content may include, but is not limited to, a device identifier of a neighbor packet transport network device, a label set allocated by the packet transport network device to its neighbor packet device, a correspondence between the two, and a usage of the label in the label set.
  • the Packet Transpor Network (PTN) device in the embodiment refers to a device for transmitting data by using a packet switching technology, including but not limited to a label switching router (LSR) and a label switching edge router (labe l swi). Tching edge router, LER ), switches, packet switching equipment, packet transport network equipment, etc.
  • LSR label switching router
  • LER label switching edge router
  • the packet transport network device disclosed in the embodiment of the present invention allocates the label resource between the packet transport network devices in the MPLS network in advance before establishing the LSP, so that the allocated label can be directly utilized when the new LSP is established without re-allocation.
  • the forward cross-connection can be established in the path process. Compared with the previous method in which the path process and the Resv process are required to establish an LSP forward cross-connection, the time for establishing the LSP is reduced, and the service access time or service is shortened. Recovery time has improved the user's body.
  • Embodiments of the present invention further provide a network device, as shown in FIG. 9, including a processor, a memory, a receiver, and a transmitter, wherein the receiver is coupled to the processor and the memory, the transmitter and the processor, and Memory coupling.
  • the network device can be used to perform the methods as in the first, second and third embodiments.
  • the receiver is configured to receive a message from outside the network device;
  • the memory is configured to store corresponding information;
  • the transmitter is configured to send a message to the outside of the network device;
  • the processor parses and processes the received message, and can be used to generate Corresponding messages are sent by the sender.
  • the processor has the functions of the processing module, the generating module, and the parsing module in Embodiments 4 and 5.
  • the processor may be a general-purpose processor, such as an integrated circuit IC, and the program executed by the processor may be stored in a memory; the processor may also be an application specific integrated circuit such as an ASIC (Application Specific Integrated Circuit) or an FPGA (Field-Programmable gate array) ), or other class 4 to functional devices.
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable gate array
  • the packet transport network device disclosed in the embodiment of the present invention allocates the label resource between the packet transport network devices in the MPLS network in advance before establishing the LSP, so that the allocated label can be directly utilized when the new LSP is established without re-allocation.
  • the forward cross-connection can be established in the path process. Compared with the previous method in which the path process and the Resv process are required to establish an LSP forward cross-connection, the time for establishing the LSP is reduced, and the service access time or service is shortened. Recovery time improves the user experience.
  • Embodiment 7 The embodiment of the present invention further provides a network system, where the network system includes: the network system includes at least a first packet transport network device, a second packet transport network device, and a third packet transport network device, where a packet transport network device is connected to the second packet transport network device by the third packet transport network device; from the first packet transport network device to the second packet transport network device In the forward direction, the direction from the second packet transport network device to the first packet transport network device is reversed; the first packet transport network device is configured to calculate a network according to the network topology of the network system Obtaining path information of the LSP from the LSP of the first packet transport network device to the second packet transport network device, establishing a forward cross connection by using the first forward outgoing label and the path information, and performing positive forward cross connection to the LSP Transmitting, by the downstream packet transport network device adjacent to the first packet transport network device, a first Path message, where the first forward outgoing label is in the forward direction of the LSP and the first packet transport network a downstream packet transport network device
  • the first packet transport network device is further configured to: after the forward cross-connection connection of the first packet transport network device is established, before the forward cross-connection of the second packet transport network device is established, Switching to the LSP on the LSP; or, after receiving the continuity check CCM message sent by the second packet transport network device, switching the forward traffic to the LSP, the CCM packet There is information that can confirm that the second packet transport network device has established a forward cross-connection.
  • the first packet transport network device is further configured to determine that an unused label in the label resource pool of the first packet transport network device itself is a reverse incoming label of the first packet transport network device.
  • the third packet transport network device is further configured to use, as the third packet, a reverse incoming label of an upstream packet transport network device adjacent to the third packet transport network device that is carried in the received second Path message.
  • a reverse outgoing label of the transport network device determining that an unused label in the label resource pool of the third packet transport network device itself is a reverse incoming label of the third packet transport network device, using the third packet
  • the reverse incoming label of the transport network device and the obtained LSP path information establish a reverse cross-connection, and carry the reverse incoming label of the third packet transport network device in the third Path message.
  • the second packet transport network device is further configured to use, as the second packet, a reverse incoming label of an upstream packet transport network device adjacent to the second packet transport network device that is carried in the received fourth Path message.
  • a reverse outgoing label of the transport network device determining an unused standard in the label resource pool of the second packet transport network device itself
  • the reverse incoming label of the second packet transport network device is signed, and the reverse cross-connect is established by using the reverse incoming label of the second packet transport network device and the obtained LSP path information.
  • the first packet transport network device is connected to the second packet transport network device by using the third packet transport network device, and may be directly connected, or may be indirectly connected through other packet transport network devices.
  • the network device may be the packet transport network device in Embodiment 5.
  • the method for allocating the label pre-allocation by each packet transport network device in the network system may be: pre-assigning an alternate label set to each node in each existing LSP for use in the event of a fault; or The virtual LSP is allocated a corresponding label in the network system.
  • the label allocated for the virtual LSP may be directly used; or all nodes in the system may assign labels to the neighbor nodes.
  • the method of specific allocation is as described in the first embodiment.
  • the method for establishing the forward and reverse crossover of the third packet transport network device may be the same as the method for establishing the third node in the third embodiment, and details are not described herein.
  • the method for establishing the second node is the same and will not be described again.
  • another packet transport network device other than the third packet transport network device between the first packet transport network device and the first packet transport network device establishes a forward crossover and a reverse crossover. The method is the same as the method of the third packet transport network device.
  • Each packet transport network device in the network system allocates a set of labels usable by each of the neighbor packet transport network devices for each neighbor packet transport network device, and transmits a message announcement to each of the neighbor packet transport network devices a set of labels that can be used to implement label pre-allocation between each packet transport network device in the system, wherein a neighbor packet transport network device of a packet transport network device refers to a packet transport network device adjacent to the packet transport network device
  • the label set includes at least one label, and a message sent to any one of the neighbor packet transport network devices carries a device identifier of the neighbor packet transport network device, and sends a packet transmission of the message
  • the method for allocating a label set by each packet transport network device in the system is the allocation method introduced in the first embodiment of the present invention, and details are not described herein again.
  • the first packet transport network device switches the forward traffic to the LSP before the forward cross-connection of the second packet transport network device is established; or the first packet transport network device After receiving the continuity check CCM message sent by the second packet transport network device, the forward traffic is switched to the LSP, and the CCM packet carries the device that can confirm that the second packet transport network device is established. Positive cross-connect information.
  • the bidirectional LSP is established, when the second packet transport network device establishes a reverse cross connection, the reverse traffic can be switched to the established LSP.
  • the method for the specific forward traffic and the reverse traffic switching may be the method described in the second embodiment or the third embodiment, and details are not described herein again.
  • the network system disclosed in the embodiment of the present invention allocates label resources between the packet transport network devices in the MPLS network in advance before establishing the LSP, so that the newly allocated LSP can directly utilize the allocated label without re-allocation.
  • the Path process can establish a forward cross-connection. Compared with the prior art method that requires a Path process and a Resv process to establish an LSP forward cross-connection, the time for establishing an LSP is reduced. At the same time, the forward packet traffic is switched after the packet transport network device at the LSP head node establishes the forward cross-connection, and the reverse traffic is switched after the packet transport network device at the end node of the LSP establishes the reverse cross-connection.
  • the new LSP After the new LSP is established, it can be used to carry services for the first time, which shortens the service access time or service recovery time and improves the user experience.
  • the functions described above may be stored in or transmitted as one or more instructions or code on a computer readable medium.
  • Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another.
  • a storage medium may be any available media that can be accessed by a computer.
  • computer readable media may comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage media or other magnetic storage device, or can be used for carrying or storing in the form of an instruction or data structure.
  • Any connection may suitably be a computer readable medium.
  • the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable , fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, wireless, and microwaves are included in the fixing of the associated media.
  • a disk and a disc include a compact disc (CD), a laser disc, a compact disc, a digital versatile disc (DVD), a floppy disc, and a Blu-ray disc, wherein the disc is usually magnetically copied, and the disc is The laser is used to optically replicate the data. Combinations of the above should also be included within the scope of the computer readable media.

Landscapes

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

Abstract

Provided are a method, device and system, applied in the field of communication, for pre-assigning a label and establishing a label switched path. The method specifically comprises: each node of a network assigns the label sets according to the node identification of the neighboring node of said node, wherein the pre-assigned label sets can be used to establish the label switched path. With the present invention to establish the label switched path in the network pre-assigned the label sets, when a node establishes a forward cross connection, said node does not need to request the downstream node to assign a label but can establish a label switched path using the Path process, through which the access time of business or the recovery time of interrupted business is reduced and the user experience is improved.

Description

建立标签交换路径的方法、 设备和系统 技术领域  Method, device and system for establishing label switching path
本发明涉及通信技术领域, 具体涉及一种预分配标签及建立标签交换路 径的方法、 设备和系统。  The present invention relates to the field of communications technologies, and in particular, to a method, device and system for pre-allocating tags and establishing label switching paths.
背景技术 Background technique
随着因特网的快速发展, 用户对带宽的需求越来越大。 不断增长的带宽 所带来的巨大压力, 迫使运营商选择使用统计复用的包交换网络来尽量地提 高传输效率。  With the rapid development of the Internet, users are increasingly demanding bandwidth. The tremendous pressure from ever-increasing bandwidth forces operators to choose packet-switched networks that use statistical multiplexing to maximize transmission efficiency.
多协议标签交换 ( multi-protocol label switching, MPLS )就是一种基于包 交换的多层交换技术。 在收到业务请求时, 需要建立标签交换路径(label switched Path, LSP ) , 现有技术中新的 LSP建立时间较长是限制业务接入速 度的重要原因之一。 同时, 在 MPLS网络中, 很重要的一点是保证传送路径的 可靠性, 在传送路径出现故障时, 需要尽可能快地进行传送路径的恢复, 减 少业务的中断时间。 其中, 当网络中发生 LSP传送故障时, 恢复业务传送的 主要方法是通过信令协议建立一条新的 LSP, 用于对故障传送路径的重路由 恢复。 在整个 LSP故障恢复过程中, 新的 LSP建立的时长往往占了整个 LSP故 障恢复时长的大部分,提高恢复 LSP建立速度是提高整个 LSP故障恢复过程的 关键所在。  Multi-protocol label switching (MPLS) is a kind of multi-layer switching technology based on packet switching. When a service request is received, a label switched path (LSP) needs to be established. The new LSP establishment time in the prior art is one of the important reasons for limiting the service access speed. At the same time, in the MPLS network, it is important to ensure the reliability of the transmission path. When the transmission path fails, the transmission path needs to be restored as quickly as possible to reduce the interruption time of the service. When the LSP transmission failure occurs in the network, the main method for recovering the service transmission is to establish a new LSP through the signaling protocol, which is used for rerouting the faulty transmission path. During the entire LSP fault recovery process, the new LSP establishment time often accounts for the majority of the LSP fault recovery time. Improving the recovery LSP establishment speed is the key to improving the LSP fault recovery process.
在 MPLS交换网络中,将从首节点( ingress node )发往末节点( egress node ) 的流量的方向称为正向, 为正向流量建立交叉连接称为 LSP正向交叉连接; 同理, 将从末节点发往首节点的流量的方向称为反向, 为反向流量建立交叉 连接称为 LSP反向交叉连接。 对 LSP经过的节点来说, 将向 LSP首节点方向的 邻居节点称为上游节点, 将向末节点方向的邻居节点称为下游节点。 现有技 术中, 建立新的 LSP的步骤主要包括: 首节点发往末节点的 Path消息过程中, 建立 LSP的反向交叉连接; 末节点发往首节点的 RESV消息过程中, 建立 LSP 的正向交叉连接。 如果创建的 LSP是单向正方向 LSP, 则从首节点发送末节点 的 PATH消息过程中,各个节点向其下游节点请求分配用于建立正向交叉连接 的正向标签, 无法进行直接进行正向交叉连接的建立; 在末节点发送到首节 点的 RESV消息过程中, 各节点才进行正向标签的分配和正向交叉连接建立; 如果创建的 LSP是双向 LSP, 则从首节点发送末节点的 PATH消息过程中, 各 个节点上进行反向交叉连接建立, 并向下游节点请求分配正向标签; 在末节 点发往到首节点的 RESV消息过程中,各节点进行正向标签的分配和正向交叉 连接建立。 In an MPLS switching network, the direction of traffic sent from the ingress node to the egress node is called forward, and the cross-connection for forward traffic is called LSP forward cross-connection. Similarly, The direction of traffic sent from the last node to the head node is called reverse, and the cross-connection for reverse traffic is called LSP reverse cross-connection. For the node through which the LSP passes, the neighboring node in the direction of the LSP head node is referred to as the upstream node, and the neighboring node in the direction of the last node is referred to as the downstream node. In the prior art, the steps of establishing a new LSP mainly include: establishing a reverse cross-connection of an LSP in a Path message sent by a first node to a last node; establishing a LSP in a process of sending a RESV message to a first node by a last node Connect to the cross. If the created LSP is a unidirectional positive direction LSP, each node sends a forward label to the downstream node to establish a forward cross-connection, and cannot directly perform the forward direction. The establishment of the cross-connection; in the process of sending the RESV message to the first node, each node performs the forward label assignment and the forward cross-connection establishment; if the created LSP is a bidirectional LSP, the PATH of the last node is sent from the first node. During the message process, the reverse cross-connection is established on each node, and the downstream node is requested to allocate a forward label; in the process of sending the RESV message to the first node, the nodes perform forward label assignment and forward crossover. The connection is established.
建立一条新的 MPLS LSP或者重路由的 MPLS LSP需要经过 Path流程和 RESV流程, 端到端 MPLS LSP的交叉连接建立时间为 PATH流程时间加上 RESV流程时间, 导致业务接入较慢或业务中断时间过长, 影响用户体验。 引 起这些问题的一个重要原因是现有的标签分配机制不完善, 对于每次建立新 的 LSP或者重路由 LSP都需通过 Path消息在各节点上逐跳请求, 再通过反向发 送的 Resv消息根据请求逐跳分配正向标签进而建立正向交叉连接, 从而导致 建立 LSP时间过长。 发明内容  Establishing a new MPLS LSP or rerouting MPLS LSP needs to go through the Path process and the RESV process. The cross-connection establishment time of the end-to-end MPLS LSP is the PATH process time plus the RESV process time, resulting in slow service access or service interruption time. Too long, affecting the user experience. An important reason for causing these problems is that the existing label allocation mechanism is imperfect. For each time a new LSP or a reroute LSP is established, a Path message is required to be hop-by-hop on each node, and then a Resv message is sent in reverse. It is requested to allocate a forward label hop by hop to establish a forward cross connection, which results in an LSP establishment time being too long. Summary of the invention
为了克服现有技术中因为标签分配机制不完善而导致建立 LSP时间过长 的弊端, 本发明实施例提供了一种建立 LSP的方法、 设备和系统, 具体的: 根据本发明实施例的第一方面, 提供一种建立标签交换路径 LSP的方法, 包括: 第一节点根据多协议标签交换网络的网络拓朴计算出一条从所述第一 节点到第二节点的 LSP, 得到所述 LSP的 LSP路径信息; 所述第一节点利用第 一正向出标签以及所述 LSP路径信息中的所述第一节点的第一正向出接口索 引建立正向交叉连接; 其中, 所述第一正向出标签是所述 LSP上与所述第一 节点相邻的下游节点预分配给所述第一节点的标签集中的一个未使用的标 签; 与所述第一节点相邻的下游节点为在所述 LSP的正向方向上处于所述第 一节点下游的相邻节点; 沿所述 LSP从所述第一节点到所述第二节点为正向, 沿所述 LSP从所述第二节点到所述第一节点为反向; 所述第一节点向与所述 第一节点相邻的下游节点发送第一 Path消息,所述第一 Path消息中携带有在所 述 LSP的正向方向上处于所述第一节点下游的各节点的 LSP路径信息和所述 第一正向出标签,所述第一 Path消息用于在所述 LSP的正向方向上处于所述第 一节点下游的各个节点建立正向交叉连接。  An embodiment of the present invention provides a method, a device, and a system for establishing an LSP, in particular, a first method according to an embodiment of the present invention, in order to overcome the disadvantages of the LSP being established in the prior art because the label allocation mechanism is imperfect. In an aspect, a method for establishing a label switched path LSP is provided, where: the first node calculates an LSP from the first node to the second node according to a network topology of the multi-protocol label switching network, to obtain an LSP of the LSP. a path information; the first node establishes a forward cross-connection by using a first forward outgoing label and a first forward outgoing interface index of the first node in the LSP path information; The outgoing label is an unused label in the label set pre-assigned to the first node by the downstream node adjacent to the first node on the LSP; the downstream node adjacent to the first node is in the An adjacent node downstream of the first node in the forward direction of the LSP; a forward direction along the LSP from the first node to the second node, along the LSP Transmitting the second node to the first node is reversed; the first node sends a first Path message to a downstream node that is adjacent to the first node, where the first Path message carries the LSP The LSP path information of each node downstream of the first node and the first forward outgoing label in the forward direction, where the first Path message is used in the forward direction of the LSP. Each node downstream of a node establishes a positive cross-connection.
在第一方面的第一种可能的实现方式中, 可选的, 所述第一节点在所述 第一节点的正向交叉连接建立后、 所述第二节点的正向交叉连接建立前, 将 正向流量切换到所述 LSP上; 或者, 所述第一节点接收到来自所述第二节点 的连续性检查 CCM报文后, 将正向流量切换到所述 LSP上, 所述 CCM报文携 带有用于确认所述第二节点已建立正向交叉连接的信息。  In a first possible implementation manner of the first aspect, optionally, after the forward cross connection of the first node is established, and the forward cross connection of the second node is established, Switching the forward traffic to the LSP; or, after receiving the continuity check CCM packet from the second node, the first node switches the forward traffic to the LSP, where the CCM report The message carries information for confirming that the second node has established a positive cross-connection.
在第一方面的第二种可能的实现方式中, 进一步的, 所述第一节点利用 所述第一节点的反向入标签和所述 LSP路径信息中的所述第一节点的反向入 接口索引建立反向交叉连接, 所述第一节点的反向入标签是所述第一节点从 本节点的标签资源池中确定的一个未使用的标签; 所述第一 Path消息中还携 带有所述第一节点的反向入标签,所述第一 Path消息还用于在所述 LSP的正向 方向上处于所述第一节点下游的各个节点建立反向交叉连接。 在第一方面的第三种可能的实现方式中, 进一步的, 在所述第一节点根 据多协议标签交换网络的网络拓朴计算出一条从所述第一节点到所述第二节 点的 LSP, 得到所述 LSP的 LSP路径信息前, 所述第一节点从与所述第一节点 相邻的下游节点处获得所述标签集, 所述标签集为与所述第一节点相邻的下 游节点确定的所述第一节点可使用的标签集; 并储存所获得的标签集。 In a second possible implementation manner of the first aspect, further, the first node uses a reverse ingress label of the first node and a reverse entry of the first node in the LSP path information The interface index establishes a reverse cross-connection, and the reverse-entry label of the first node is an unused label that is determined by the first node from the label resource pool of the local node; The first path message is further configured to establish a reverse cross-connection at each node downstream of the first node in a forward direction of the LSP. In a third possible implementation manner of the first aspect, further, calculating, by the first node, an LSP from the first node to the second node according to a network topology of the multi-protocol label switching network Before obtaining the LSP path information of the LSP, the first node obtains the label set from a downstream node adjacent to the first node, where the label set is a downstream adjacent to the first node. a set of labels available to the first node determined by the node; and storing the obtained set of labels.
本发明实施例所揭示的建立 LSP的方法, 利用建立 LSP前提前分配好 MPLS网络中节点间的标签资源, 首节点可以在 Path流程就可以建立好正向交 叉连接,与现有技术中首节点需要 Path流程和 Resv流程才能建立 LSP正向交叉 连接的方法相比, 缩短了 LSP建立的时间。 同时, 在首节点建立了正向交叉 连接后即可切换正向流量, 能保证新 LSP建立后能第一时间用于承载业务。 本发明实施例所揭示的方法缩短了 LSP建立的时间 , 从而减少了业务接入时 间或业务恢复时间, 提高了用户体验。  In the method for establishing an LSP according to the embodiment of the present invention, the label resource between the nodes in the MPLS network is allocated in advance before the LSP is established, and the first node can establish a forward cross connection in the Path process, and the first node in the prior art. Compared with the method that the Path process and the Resv process are required to establish an LSP forward cross connection, the LSP establishment time is shortened. At the same time, the forward traffic can be switched after the forward cross-connection is established on the first node to ensure that the new LSP can be used for bearer services. The method disclosed in the embodiment of the present invention shortens the time for establishing an LSP, thereby reducing service access time or service recovery time and improving user experience.
根据本发明实施例的第二方面, 提供又一种建立标签交换路径 LSP的方 法, 所述 LSP为从第一节点到第二节点的 LSP, 第三节点为所述 LSP上所述第 一节点和第二节点之间的中间节点, 沿所述 LSP从所述第一节点到所述第二 节点为正向, 沿所述 LSP从所述第二节点到所述第一节点为反向, 具体包括: 所述第三节点接收在所述 LSP路径上与其相邻的上游节点发送的第二 Path消 息, 所述与其相邻的上游节点为在所述 LSP的正向方向上处于所述第三节点 上游的相邻节点; 所述第三节点获取其所接收到的第二 Path消息中携带的路 径信息和所述与其相邻的上游节点的第一正向出标签, 将所述 LSP正向方向 上与其相邻的下游节点分配给其的标签集中的一个未使用的标签作为第二正 向出标签, 将所述第一正向出标签作为第二正向入标签, 根据所述第二正向 出标签、 所述第二正向入标签以及所获得的路径信息建立正向交叉连接; 所 述第三节点向所述与其相邻的下游节点发送第三 Path消息,所述第三 Path消息 中携带有在所述 LSP正向方向上处于所述第三节点下游的各节点的 LSP路径 信息和所述第二正向出标签,所述第三 Path消息用于在所述 LSP正向方向上处 于所述第三节点下游的各节点建立正向交叉连接。  According to a second aspect of the present invention, a method for establishing a label switched path LSP is provided. The LSP is an LSP from a first node to a second node, and the third node is the first node on the LSP. And an intermediate node between the second node and the second node is forward along the LSP, and the LSP is reversed from the second node to the first node, Specifically, the third node receives a second Path message sent by an upstream node adjacent to the LSP path, where the adjacent upstream node is in the forward direction of the LSP. a neighboring node upstream of the three nodes; the third node acquires the path information carried in the second Path message received by the third node and the first forward outgoing label of the upstream node adjacent thereto, and the LSP is positive An unused label in a label set assigned thereto to a downstream node adjacent thereto is used as a second forward outgoing label, and the first forward outgoing label is used as a second forward incoming label, according to the first Two forward tags The second forward ingress label and the obtained path information establish a forward cross connection; the third node sends a third Path message to the downstream node that is adjacent thereto, where the third Path message carries The LSP path information of each node downstream of the third node in the forward direction of the LSP and the second forward outgoing label, where the third Path message is used in the forward direction of the LSP. Each node downstream of the third node establishes a positive cross-connection.
在第二方面的第一种可能的实现方式中, 所述第三节点获取其所接收到 的第二 Path消息中携带的所述与其相邻的上游节点的第一反向入标签, 将所 述第一反向入标签作为所述第三节点的第二反向出标签, 将所述第三节点从 本节点的标签资源池中确定的一个未使用的标签作为所述第三节点的第二反 向入标签, 根据所述第二反向出标签、 所述第二反向入标签以及所述 LSP路 径信息中的所述第三节点的反向入接口索引和反向出接口索引建立反向交叉 连接; 所述第三 Path消息中还携带有所述第二反向入标签, 所述第三 Path消息 还用于所述 LSP正向方向上与所述第三节点相邻的下游各个节点建立反向交 叉连接。  In a first possible implementation manner of the second aspect, the third node acquires a first reverse incoming label of the upstream node that is adjacent to the second Path message that is received by the third node, The first reverse entry label is used as the second reverse outgoing label of the third node, and an unused label determined by the third node from the label resource pool of the local node is used as the third node. And the reverse inbound interface index and the reverse outbound interface index are established according to the second reverse outgoing label, the second reverse incoming label, and the third node in the LSP path information. a reverse cross-connect; the third Path message further carries the second reverse-ingress label, where the third Path message is further used to be downstream of the third node in the forward direction of the LSP. Each node establishes a reverse cross-connection.
在第二方面的第二种可能的实现方式中, 进一步的, 在所述第一节点发 起建立所述 LSP前, 所述第三节点在本节点可使用的标签资源池中为所述与 其相邻的上游节点确定所述与其相邻的上游节点可使用的标签集, 并向所述 与其相邻的上游节点发送消息通告该确定的标签集。 In a second possible implementation manner of the second aspect, further, the first node sends Before establishing the LSP, the third node determines, in the label resource pool that can be used by the node, the label set that can be used by the upstream node adjacent to the adjacent upstream node, and An upstream node adjacent thereto sends a message to announce the determined set of labels.
本发明实施例所揭示的建立 LSP的方法, 利用建立 LSP前提前分配好 MPLS网络中节点间的标签资源, 中间节点可以在 Path流程就可以建立好正向 交叉连接,与现有技术中中间节点需要 Path流程和 Resv流程才能建立 LSP正向 交叉连接的方法相比, 缩短了 LSP建立的时间。 本发明实施例所揭示的方法 缩短了 LSP建立的时间, 从而减少了业务接入时间或业务恢复时间, 提高了 用户体验。  In the method for establishing an LSP according to the embodiment of the present invention, the label resource between the nodes in the MPLS network is allocated in advance before the LSP is established, and the intermediate node can establish a forward cross connection in the Path process, and the intermediate node in the prior art. Compared with the method that the Path process and the Resv process are required to establish an LSP forward cross connection, the LSP establishment time is shortened. The method disclosed in the embodiment of the present invention shortens the time for establishing an LSP, thereby reducing service access time or service recovery time and improving user experience.
根据本发明实施例的第三方面, 提供一种分组传送网设备, 包括: 处理 模块, 用于利用其所获得的标签交换路径 LSP路径信息以及来自存储模块的 第一标签建立正向交叉连接, 其中, 所述第一标签为所述 LSP路径上与所述 分组传送网设备相邻的下游分组传送网设备预分配给所述分组传送网设备的 标签集中的一个未使用的标签, 所述下游分组传送网设备为在所述 LSP路径 正向方向上处于所述分组传送网设备下游的分组传送网设备; 生成模块, 用 于生成 Path消息, 所述 Path消息携带有各个所述下游分组传送网设备的 LSP路 径信息和所述第一标签,所述 Path消息的目的地址为所述 LSP路径上与所述分 组传送网设备相邻的下游分组传送网设备的地址; 发送模块, 用于发送所述 生成模块生成的消息。  According to a third aspect of the present invention, a packet transport network device is provided, including: a processing module, configured to establish a forward cross-connection by using the label switched path LSP path information obtained by the label switching path and the first label from the storage module, The first label is an unused label of a label set pre-assigned to the packet transport network device by a downstream packet transport network device adjacent to the packet transport network device on the LSP path, the downstream The packet transport network device is a packet transport network device that is downstream of the packet transport network device in the forward direction of the LSP path, and a generating module is configured to generate a Path message, where the Path message carries each of the downstream packet transport networks. The LSP path information of the device and the first label, the destination address of the Path message is an address of a downstream packet transport network device adjacent to the packet transport network device on the LSP path, and a sending module, configured to send The message generated by the generation module.
在第三方面的第一种可能的实现方式中, 所述处理模块还用于在所述分 组传送网设备的正向交叉连接建立后、 所述 LSP正向方向上的最后一个分组 传送网设备的正向交叉连接建立前, 将正向流量切换到所述 LSP上; 或者, 所述处理模块还用于接收到所述最后一个分组传送网设备发送的连续性检查 CCM报文后, 将正向流量切换到所述 LSP上, 所述 CCM报文携带了用于确认 所述最后一个分组传送网设备已建立正向交叉连接的信息。  In a first possible implementation manner of the third aspect, the processing module is further configured to: after the forward cross connection establishment of the packet transport network device, the last packet transport network device in the forward direction of the LSP Before the forward cross-connection is established, the forward traffic is switched to the LSP; or the processing module is further configured to: after receiving the continuity check CCM message sent by the last packet transport network device, Switching to the LSP, the CCM message carries information for confirming that the last packet transport network device has established a forward cross-connection.
在第三方面的第二种可能的实现方式中, 所述处理模块, 还用于利用其 所获得的 LSP路径信息以及来自存储模块的第二标签作为反向入标签建立反 向交叉连接, 其中, 所述第二标签为所述分组传送网设备本身的标签资源池 中的一个未使用的标签; 所述生成模块, 还用于将所述第二标签携带于所述 Path消息中。  In a second possible implementation manner of the third aspect, the processing module is further configured to establish a reverse cross-connection by using the obtained LSP path information and the second label from the storage module as a reverse incoming label, where The second label is an unused label in the label resource pool of the packet transport network device itself. The generating module is further configured to carry the second label in the Path message.
本发明实施例所揭示的分组传送网设备, 在建立 LSP前提前分配好 MPLS 网络中分组传送网设备间的标签资源, 使得建立新 LSP时可直接利用所分配 好的标签而不必进行重新分配 , 能在 Path流程就可以建立好正向交叉连接 , 与现有技术中需要 Path流程和 Resv流程才能建立 LSP正向交叉连接的方法相 比减少了建立新 LSP的时间。 同时, 在 LSP首节点处的分组传送网设备建立了 正向交叉连接后即切换正向流量, 能保证新 LSP建立后能第一时间用于承载 业务, 缩短了业务接入时间或者业务恢复时间, 提高了用户体验。 根据本发明实施例的第四方面, 提供一种分组传送网设备, 包括: 接收 模块, 用于接收消息; 解析模块, 用于解析所述接收模块接收到的消息; 处 理模块, 用于将来自所述解析模块的所述分组传送网设备相邻的上游分组传 送网设备的正向出标签作为所述分组传送网设备的正向入标签, 将来自所述 存储模块的第一标签作为所述分组传送网设备的正向出标签, 根据所述分组 传送网设备的正向入标签、 所述分组传送网设备的正向出标签以及来自所述 解析模块的标签交换路径 LSP的路径信息建立正向交叉连接, 其中, 所述分 组传送网设备为所述 LSP上的分组传送网设备,所述第一标签为在所述 LSP路 径上与所述分组传送网设备相邻的下游分组传送网设备预分配给所述分组传 送网设备的标签集中的一个未使用的标签, 所述下游分组传送网设备为在所 述 LSP正向方向上处于所述分组传送网设备下游的分组传送网设备; 还用于 根据来自存储模块或来自所述解析模块的设备标识, 确定具有所述设备标识 的分组传送网设备可使用的标签集, 其中, 所述设备标识为所述 LSP正向方 向上与所述分组传送网设备相邻的上游分组传送网设备的设备标识; 生成模 块, 用于生成 Path消息, 所述 Path消息携带有所述 LSP上的所述分组传送网设 备下游的各分组传送网设备的 LSP路径信息和所述第一标签,所述 Path消息的 目的地址为所述 LSP正向方向上与所述分组传送网设备相邻的下游分组传送 网设备的地址; 还用于根据所述设备标识以及所述处理模块确定的标签集生 成通告消息, 所述通告消息携带了所述设备标识、 所述分组传送网设备自身 的设备标识以及所述处理模块确定的标签集, 所述通告消息的目的地址为所 述 LSP正向方向上与所述分组传送网设备相邻的上游分组传送网设备; 发送 模块, 用于发送所述生成模块生成的消息。 The packet transport network device disclosed in the embodiment of the present invention allocates the label resource between the packet transport network devices in the MPLS network in advance before establishing the LSP, so that the allocated label can be directly utilized when the new LSP is established without re-allocation. The forward cross-connection can be established in the Path process. Compared with the prior art method that requires the Path process and the Resv process to establish an LSP forward cross-connection, the time for establishing a new LSP is reduced. At the same time, the packet transmission network device at the LSP head node establishes a forward cross-connection, that is, the forward traffic is switched, and the new LSP can be used to carry the service for the first time, which shortens the service access time or service recovery time. , improved user experience. According to a fourth aspect of the present invention, a packet transport network device is provided, including: a receiving module, configured to receive a message; a parsing module, configured to parse a message received by the receiving module; and a processing module, configured to: The forward outgoing label of the upstream packet transport network device adjacent to the packet transport network device of the parsing module is used as a forward inbound label of the packet transport network device, and the first label from the storage module is used as the a forward outgoing label of the packet transport network device, based on the forward incoming label of the packet transport network device, the forward outgoing label of the packet transport network device, and the path information of the label switched path LSP from the parsing module To a cross-connect, wherein the packet transport network device is a packet transport network device on the LSP, and the first tag is a downstream packet transport network device adjacent to the packet transport network device on the LSP path Pre-assigned to an unused tag in the set of labels of the packet transport network device, the downstream packet transport network device being at the LSP a packet transport network device downstream of the packet transport network device in direction; further configured to determine, according to a device identifier from the storage module or from the parsing module, a label set usable by the packet transport network device having the device identifier The device identifier is a device identifier of an upstream packet transport network device that is adjacent to the packet transport network device in the forward direction of the LSP. The generating module is configured to generate a Path message, where the Path message carries An LSP path information of each packet transport network device downstream of the packet transport network device on the LSP, and the first label, where the destination address of the Path message is in the forward direction of the LSP and the packet transport network device The address of the adjacent downstream packet transport network device is further configured to generate an advertisement message according to the device identifier and the label set determined by the processing module, where the advertisement message carries the device identifier, and the packet transport network device itself The device identifier and the label set determined by the processing module, where the destination address of the advertisement message is in the forward direction of the LSP The packet transfer network device adjacent upstream packet transmission network equipment; transmitting means for transmitting a message generated by the generating module.
在第四方面的第一种可能的实现方式中, 所述处理模块, 还用于将来自 所述解析模块的所述分组传送网设备相邻的上游分组传送网设备的反向入标 签作为所述分组传送网设备的反向出标签, 将所述分组传送网设备从自身的 标签资源池中确定的一个未使用的标签作为所述分组传送网设备的反向入标 签, 利用所述分组传送网设备的反向出标签、 所述分组传送网设备的反向入 标签以及所述 LSP路径信息建立反向交叉连接; 所述生成模块, 还用于将所 述分组传送网设备的反向入标签携带在所述 Path消息中。  In a first possible implementation manner of the fourth aspect, the processing module is further configured to: use a reverse ingress label of an upstream packet transport network device adjacent to the packet transport network device from the parsing module a reverse outgoing label of the packet transport network device, using an unused label determined by the packet transport network device from its own label resource pool as a reverse incoming label of the packet transport network device, and transmitting by using the packet a reverse outgoing label of the network device, a reverse incoming label of the packet transport network device, and the LSP path information establishes a reverse cross-connection; the generating module is further configured to reverse the incoming packet network device The tag is carried in the Path message.
本发明实施例所揭示的分组传送网设备, 在建立 LSP前提前分配好 MPLS 网络中分组传送网设备间的标签资源 , 使得建立新 LSP时可直接利用所分配 好的标签而不必进行重新分配, 能在 Path流程就可以建立好正向交叉连接, 与现有技术中需要 Path流程和 Resv流程才能建立 LSP正向交叉连接的方法相 比减少了建立新 LSP的时间, 缩短了业务接入时间或者业务恢复时间, 提高 了用户体验。  The packet transport network device disclosed in the embodiment of the present invention allocates the label resource between the packet transport network devices in the MPLS network in advance before establishing the LSP, so that the allocated label can be directly utilized when the new LSP is established without re-allocation. The forward cross-connection can be established in the Path process. Compared with the previous method in which the Path process and the Resv process are required to establish an LSP forward cross-connection, the time for establishing a new LSP is reduced, and the service access time is shortened. Business recovery time improves the user experience.
根据本发明实施例的第五方面, 提供一种网络系统, 包括: 所述网络系 统至少包括第一分组传送网设备、 第二分组传送网设备和第三分组传送网设 备, 所述第一分组传送网设备与第二分组传送网设备通过所述第三分组传送 网设备相连; 从所述第一分组传送网设备到第二分组传送网设备的方向为正 向, 从所述第二分组传送网设备到第一分组传送网设备的方向为反向; 所述 第一分组传送网设备, 用于根据所述网络系统的网络拓朴计算出一条从所述 第一分组传送网设备到第二分组传送网设备的 LSP , 得到所述 LSP的路径信 息, 利用第一正向出标签以及所述路径信息建立正向交叉连接, 向所述 LSP 正向方向上与所述第一分组传送网设备相邻的下游分组传送网设备发送第一 Path消息,所述第一正向出标签是所述 LSP正向方向上与所述第一分组传送网 设备相邻的下游分组传送网设备预分配给所述第一分组传送网设备的标签集 中的一个未使用的标签; 所述第三分组传送网设备, 用于接收所述 LSP正向 方向上与其相邻的上游分组传送网设备发送的第二 Path消息, 将获取到的所 述第二 Path消息中携带的正向出标签作为所述第三分组传送网设备的正向入 标签, 利用所述第三分组传送网设备获取到的所述第二 Path消息中携带的路 径信息、 所述第三分组传送网设备的正向入标签和所述第三分组传送网设备 的正向出标签建立正向交叉连接, 并向所述 LSP正向方向上与所述第三分组 传送网设备相邻的下游分组传送网设备发送第三 Path消息, 所述第三分组传 送网设备的正向出标签是所述 LSP正向方向上与所述第三分组传送网设备相 邻的下游分组传送网设备预分配给所述第三分组传送网设备的标签集中的一 个未使用的标签; 所述第二分组传送网设备, 用于接收所述 LSP正向方向上 与其相邻的上游分组传送网设备发送的第四 Path消息, 并将获取到的所述第 四 Path消息中携带的正向出标签作为所述第二分组传送网设备的正向入标 签, 并利用所述第二分组传送网设备的正向入标签和所获取到的所述第四 Path消息中携带的路径信息建立正向交叉连接。 According to a fifth aspect of the embodiments of the present invention, a network system is provided, including: the network system includes at least a first packet transport network device, a second packet transport network device, and a third packet transport network device, the first packet The transport network device and the second packet transport network device transmit through the third packet The network device is connected; the direction from the first packet transport network device to the second packet transport network device is forward, and the direction from the second packet transport network device to the first packet transport network device is reversed; a first packet transport network device, configured to calculate an LSP from the first packet transport network device to the second packet transport network device according to a network topology of the network system, to obtain path information of the LSP, a forward outgoing label and the path information establish a forward cross connection, and send a first Path message to a downstream packet transport network device adjacent to the first packet transport network device in a forward direction of the LSP, where a forward outgoing label is an unused label of a set of labels pre-assigned to the first packet transport network device by a downstream packet transport network device adjacent to the first packet transport network device in the forward direction of the LSP The third packet transport network device is configured to receive a second Path message sent by the upstream packet transport network device adjacent to the LSP in the forward direction, and the obtained second path is obtained. The forward outgoing label carried in the information is used as the forward ingress label of the third packet transport network device, and the path information carried in the second Path message obtained by the third packet transport network device is used. a forward inbound label of the three packet transport network device and a forward outgoing label of the third packet transport network device establish a forward cross connect and are adjacent to the third packet transport network device in a forward direction of the LSP The downstream packet transport network device sends a third Path message, and the forward outgoing label of the third packet transport network device is a downstream packet transport network device adjacent to the third packet transport network device in the forward direction of the LSP. Pre-assigned to an unused tag in the tag set of the third packet transport network device; the second packet transport network device, configured to receive, by the upstream packet transport network device adjacent to the LSP in the forward direction a fourth Path message, and the forward outgoing label carried in the obtained fourth Path message is used as a forward ingress label of the second packet transport network device, and is transmitted by using the second packet The forward inbound label of the network device establishes a forward cross connection with the path information carried in the obtained fourth path message.
在第五方面的第一种可能的实现方式中, 可选的, 所述第一分组传送网 设备还用于在所述第一分组传送网设备的正向交叉连接建立后、 所述第二分 组传送网设备的正向交叉连接建立前, 将正向流量切换到所述 LSP上; 或者, 用于在接收到所述第二分组传送网设备发送的连续性检查 CCM报文后, 将正 向流量切换到所述 LSP上, 所述 CCM报文中携带有能确认所述第二分组传送 网设备已建立正向交叉连接的信息。  In a first possible implementation manner of the fifth aspect, optionally, the first packet transport network device is further configured to: after the forward cross connection establishment of the first packet transport network device, the second Before the forward cross-connection of the packet transport network device is established, the forward traffic is switched to the LSP; or, after receiving the continuity check CCM packet sent by the second packet transport network device, The traffic is switched to the LSP, and the CCM packet carries information that can confirm that the second packet transport network device has established a forward cross-connection.
在第五方面的第二种可能的实现方式中, 进一步的, 所述第一分组传送 网设备还用于确定所述第一分组传送网设备本身的标签资源池中的一个未使 用的标签为所述第一分组传送网设备的反向入标签 , 利用该第一分组传送网 设备的反向入标签以及所获得的 LSP路径信息建立反向交叉连接, 并将该第 一分组传送网设备的反向入标签携带在所述第一 Path消息中; 所述第三分组 传送网设备还用于将接收到的第二 Path消息中携带的所述第三分组传送网设 反向出标签, 确定所述第三分组传送网设备本身的标签资源池中的一个未使 用的标签为所述第三分组传送网设备的反向入标签, 利用该第三分组传送网 设备的反向入标签以及所获得的 LSP路径信息建立反向交叉连接, 并将该第 三分组传送网设备的反向入标签携带在所述第三 Path消息中; 所述第二分组 传送网设备还用于将接收到的第四 Path消息中携带的所述第二分组传送网设 反向出标签, 确定所述第二分组传送网设备本身的标签资源池中的一个未使 用的标签为所述第二分组传送网设备的反向入标签, 利用该第二分组传送网 设备的反向入标签以及所获得的 LSP路径信息建立反向交叉连接。 In a second possible implementation manner of the fifth aspect, the first packet transport network device is further configured to determine that an unused label in the label resource pool of the first packet transport network device itself is a reverse ingress label of the first packet transport network device, establishing a reverse cross connection by using a reverse inbound label of the first packet transport network device and the obtained LSP path information, and transmitting the reverse packet of the first packet transport network device The reverse packet is carried in the first Path message; the third packet transport network device is further configured to: reverse the third packet transport network carried in the received second Path message, and determine An unused label in the label resource pool of the third packet transport network device itself is a reverse incoming label of the third packet transport network device, and the reverse incoming label of the third packet transport network device and the The obtained LSP path information establishes a reverse cross connection, and the first The reverse packet of the third packet transport network device is carried in the third Path message; the second packet transport network device is further configured to send the second packet transport network carried in the received fourth Path message Deviating the label, determining that an unused label in the label resource pool of the second packet transport network device itself is a reverse incoming label of the second packet transport network device, and using the second packet transport network device The reverse incoming label and the obtained LSP path information establish a reverse cross-connection.
本发明实施例所揭示的网络系统, 利用建立 LSP前提前分配好 MPLS网络 中节点间的标签资源 , 网络中的分组传送网设备可以在 Path流程就可以建立 好正向交叉连接,与现有技术中首节点需要 Path流程和 Resv流程才能建立 LSP 正向交叉连接的方法相比, 缩短了 LSP建立的时间。 同时, 在该 LSP上首节点 处的分组传送网设备在建立了正向交叉连接后即可切换正向流量, 在末节点 处的分组传送网设备在反向交叉连接后即切换反向流量, 能保证新 LSP建立 后能第一时间用于承载业务。 本发明实施例所揭示的方法缩短了 LSP建立的 时间, 从而减少了业务接入时间或业务恢复时间, 提高了用户体验。  In the network system disclosed in the embodiment of the present invention, the label resource between nodes in the MPLS network is allocated in advance before the LSP is established, and the packet transport network device in the network can establish a positive cross-connection in the Path process, and the prior art Compared with the method in which the first node needs the Path process and the Resv process to establish an LSP forward cross connection, the time for establishing the LSP is shortened. At the same time, the packet transport network device at the head node on the LSP can switch the forward traffic after establishing the forward cross-connection, and the packet transport network device at the last node switches the reverse traffic after the reverse cross-connection. The new LSP can be used to carry the service for the first time. The method disclosed in the embodiment of the present invention shortens the time for establishing an LSP, thereby reducing service access time or service recovery time and improving user experience.
附图说明 DRAWINGS
为了更清楚地说明本发明及相关实施例, 提供以下附图:  In order to more clearly illustrate the invention and related embodiments, the following figures are provided:
图 1为本发明实施例一中节点间预分配标签的方法流程图;  1 is a flowchart of a method for pre-allocating tags between nodes according to Embodiment 1 of the present invention;
图 2为本发明实施例二中建立标签交换路径的方法流程图;  2 is a flowchart of a method for establishing a label switching path according to Embodiment 2 of the present invention;
图 3为本发明实施例三中建立标签交换路径的方法流程图;  3 is a flowchart of a method for establishing a label switching path according to Embodiment 3 of the present invention;
图 4为本发明实施例四中分组传送网设备的结构图;  4 is a structural diagram of a packet transport network device according to Embodiment 4 of the present invention;
图 5为本发明实施例五中分组传送网设备的结构图;  5 is a structural diagram of a packet transport network device according to Embodiment 5 of the present invention;
图 6为本发明实施例六中网络设备的结构图。  FIG. 6 is a structural diagram of a network device according to Embodiment 6 of the present invention.
具体实施例 Specific embodiment
为使本发明的目的、 技术方案和优点更加清楚明白, 下面结合实施例和 附图, 对本发明做进一步详细说明。 在此, 本发明的示意性实施例及其说明 用于解释本发明, 但并不作为对本发明的限定。  In order to make the objects, the technical solutions and the advantages of the present invention more comprehensible, the present invention will be further described in detail below with reference to the embodiments and drawings. The illustrative embodiments of the present invention and the description thereof are intended to be illustrative of the invention, and are not intended to limit the invention.
实施例一: 本发明实施例提供一种在建立 LSP前节点间预分配标签的方 法, 口图 1所示, 该方法包括:  Embodiment 1 The embodiment of the present invention provides a method for pre-allocating labels between nodes before establishing an LSP. As shown in FIG. 1, the method includes:
步骤 S101 ,在建立 LSP前,第一节点根据其每个邻居节点的节点标识为每 个邻居节点确定每个邻居节点可使用的标签集, 每个邻居节点都是与第一节 点相邻的节点, 该标签集包括一个或一个以上的标签。 每个标签可以是相应 的数字, 如标签可以为 100、 101、 102等等。 第一节点为 MPLS网络中的分组传 送网设备, 分组传送网 (Packe t Transpor t Network, PTN)设备是指釆用包 交换技术传输数据的设备, 如标签交换路由器(labe l swi tching router , LSR ) 、 标签交换边缘路由器 ( labe l swi tching edge router , LER ) 、 交换 机、 分组交换设备、 包传送网络设备等, 这种分组传送网设备称为节点, 与 其相邻的其他节点该节点的邻居节点。 可选的, 如果第一节点不知道各邻居 节点的节点标识, 可以通过内部网关协议 ( interior gateway protocol, IGP ) 消息交互网络拓朴信息, 获得邻居节点的节点标识。 可选的, 节点标识可以 是该节点设备的设备标识, 也可以是该节点的网际协议地址, 还可以是一个 整数, 总之, 可用于供第一节点识别与其相邻的不同邻居节点即可, 也可以 是其他可用于供第一节点识别与其相邻的不同邻居节点的标识。 第一节点获 得邻居节点的节点标识后, 从本节点支持的标签范围中, 分配一块未使用、 空闲的标签集, 作为预分配给邻居的标签集, 并建立相应的表项, 保存各邻 居节点、 分配给其的标签集以及两者之间的对应关系。 这些被分配给邻居节 点的标签集中的标签在其被释放回收之前, 不再用于其他邻居节点的交叉连 接的建立。 可选的, 可为这些被分配的标签集或标签标记为已被分配, 在其 被释放回收之前其他邻居节点在建立交叉连接时不使用该标签集中的标签, 被标记为已分配的标签集或者标签只能用于建立分配到该标签集或该标签的 邻居节点与所述第一节点之间的业务连接。 Step S101: Before establishing the LSP, the first node determines, according to the node identifier of each neighbor node, a label set that can be used by each neighbor node for each neighbor node, where each neighbor node is a node adjacent to the first node. , the set of tags includes one or more tags. Each tag can be a corresponding number, such as tags can be 100, 101, 102, and the like. The first node is a packet transmission in the MPLS network. Packet transmission network (PTN) equipment refers to equipment that uses packet switching technology to transmit data, such as label switching routers (LSRs) and label switching edge routers (labe l). Swi tching edge router ( LER ), switch, packet switching device, packet transport network device, etc., such a packet transport network device is called a node, and other nodes adjacent to it are neighbor nodes of the node. Optionally, if the first node does not know the node identifier of each neighbor node, the internal gateway protocol (IGP) message may be used to interact with the network topology information to obtain the node identifier of the neighbor node. Optionally, the node identifier may be a device identifier of the node device, or may be an Internet Protocol address of the node, or may be an integer. In short, the first node may be used to identify a neighbor node adjacent to the first node. Other identifiers that may be used by the first node to identify different neighbor nodes adjacent thereto. After obtaining the node identifier of the neighboring node, the first node allocates an unused and idle label set from the label range supported by the node as a label set pre-allocated to the neighbor, and establishes a corresponding entry to save each neighbor node. , the set of labels assigned to it, and the correspondence between the two. The labels in the set of labels assigned to the neighbor nodes are no longer used for the establishment of cross-connections of other neighbor nodes until they are released for recycling. Optionally, the assigned tag sets or tags may be marked as allocated, and other neighbor nodes do not use the tags in the tag set when establishing the cross-connection, and are marked as the assigned tag set before being released for recycling. Or the label can only be used to establish a service connection between the neighbor node assigned to the label set or the label and the first node.
步骤 S 1 02 , 第一节点向每个邻居节点发送消息, 发送给所述每个邻居节 点中的任意一个邻居节点的消息携带了该邻居节点的节点标识、 第一节点的 节点标识和第一节点分配给该邻居节点的标签集。 第一节点根据上述建立的 表项或者直接根据第一节点给其邻居节点分配标签集的分配情况生成消息, 该消息可以是扩展的 IGP协议消息, 也可以是扩展的以太网报文, 也可以是其 他消息类型, 只要其能用于携带目的邻居节点的节点标识、 第一节点的节点 标识和第一节点分配给目的邻居节点的标签集即可。 该消息的目的地址可以 是单播地址, 发送的内容可以是目的邻居节点的节点标识、 第一节点的节点 标识和第一节点分配给目的邻居节点的标签集, 发送的内容也可以是一个表 项, 该表项中包含了第一节点的节点标识、 第一节点所有的邻居节点的节点 标识以及第一节点分配给这些邻居节点的标签集, 收到消息的邻居节点可以 通过自己的节点标识在表项中查找分配给自己的标签集。 该消息也可以是广 播地址, 发送的内容可以是上述的包含了第一节点的节点标识、 第一节点所 有的邻居节点的节点标识以及第一节点分配给这些邻居节点的标签集的表 项。 如此, 第一节点即可使得其邻居节点获得其分配给它们的可使用的标签 集。 可选的, 邻居节点收到并保存该第一节点、 第一节点分配给其的标签集 以及两者的对应关系后,可以向第一节点回复消息确认已收到其发送的消息, 确认标签分配完成。  Step S1 02, the first node sends a message to each neighbor node, and the message sent to any one of the neighbor nodes carries the node identifier of the neighbor node, the node identifier of the first node, and the first The set of labels that the node assigns to the neighbor node. The first node generates a message according to the above-mentioned established entry or directly according to the allocation of the label set by the first node to the neighboring node, and the message may be an extended IGP protocol message, or an extended Ethernet packet, or It is another message type, as long as it can be used for carrying the node identifier of the destination neighbor node, the node identifier of the first node, and the label set allocated by the first node to the destination neighbor node. The destination address of the message may be a unicast address, and the sent content may be a node identifier of the destination neighbor node, a node identifier of the first node, and a label set allocated by the first node to the destination neighbor node, and the sent content may also be a table. Item, the entry includes the node identifier of the first node, the node identifier of all the neighbor nodes of the first node, and the label set allocated by the first node to the neighbor nodes, and the neighbor node that receives the message can identify by itself Find the set of labels assigned to yourself in the table entry. The message may also be a broadcast address, and the sent content may be the above-mentioned node identifier including the first node, the node identifier of all the neighbor nodes of the first node, and the label set of the label set allocated by the first node to the neighbor nodes. Thus, the first node can have its neighbor nodes get the set of available labels that they have assigned to them. Optionally, after the neighbor node receives and saves the first node, the label set allocated by the first node, and the corresponding relationship between the two nodes, the neighbor node may reply to the message to confirm that the message sent by the first node is received, and the label is confirmed. The assignment is complete.
可选的, 第一节点同时也可以接收来自其每个邻居节点发送的消息, 这 些每个邻居节点发送的消息中携带了第一节点的节点标识、 源节点的节点标 识和源节点分配给第一节点的标签集, 所述源节点为与第一节点相邻的发送 所述消息的节点; 第一节点储存该源节点的节点标识、 该源节点分配给第一 节点的标签集以及该源节点的节点标识和该源节点分配给第一节点的标签集 之间的对应关系。 通过这一步骤, 第一节点可以获得其邻居节点分配给其的 标签集。 Optionally, the first node may also receive the message sent by each neighbor node, and the message sent by each neighbor node carries the node identifier of the first node and the node identifier of the source node. And a label set allocated by the source node to the first node, where the source node is a node that sends the message adjacent to the first node; the first node stores a node identifier of the source node, and the source node is assigned to the first node The label set of the node and the correspondence between the node identifier of the source node and the label set assigned by the source node to the first node. Through this step, the first node can obtain the set of tags to which its neighbor nodes are assigned.
可选的, 一个节点给其邻居节点分配的标签集可以包括多个子标签集, 也可以向同一邻居节点多次分配标签集。可选的,该 MPLS网络中的所有节点 都可利用上述步骤实现与其邻居节点间的标签预分配。  Optionally, the label set allocated by a node to its neighbor node may include multiple sub-tag sets, and may also allocate a label set multiple times to the same neighbor node. Optionally, all the nodes in the MPLS network can use the foregoing steps to implement label pre-allocation with their neighbor nodes.
可选的, 已分配出去的标签可以通过一定的流程进行回收, 具体的, 如 果本节点给某一邻居节点分配了多个标签集, 发现分配给某一相邻节点的一 个标签集中所有标签都属于空闲状态, 且其他标签集中还有空闲的标签尚未 使用, 可以向该邻居节点发送消息通告回收, 在收到该邻居节点发送的确认 消息后可以回收该标签集。  Optionally, the allocated label can be reclaimed through a certain process. Specifically, if the node allocates multiple label sets to a neighbor node, it finds that all labels in a label set allocated to a neighboring node are If the tag is in the idle state, and the tag in the other tag set is not used yet, the message can be sent to the neighbor node for revocation. After receiving the confirmation message sent by the neighbor node, the tag set can be recovered.
本发明实施例所揭示的标签预分配的方法,可以在建立 LSP前提前分配好 MPLS网络中各节点间的标签资源, 克服了现有技术中每次建立一条新的 LSP 都必须逐跳请求分配正向标签并根据请求再逐跳分配正向标签的弊端, 使得 在建立新的 LSP或者原 LSP出现故障时需要建立重路由 LSP时可直接利用所分 配好的标签而不必每次都进行重新分配, 大大减少了建立新 LSP的时间, 缩 短了业务接入时间或者业务恢复时间, 提高了用户体验。  The label pre-allocation method disclosed in the embodiment of the present invention can allocate the label resources between the nodes in the MPLS network in advance before the LSP is established, and overcomes the requirement that the LSPs must be allocated hop by hop every time a new LSP is established in the prior art. The forward label and the hop-by-hop allocation of the forward label according to the request, so that when the new LSP or the original LSP fails to be established, the re-routed LSP needs to be established, and the allocated label can be directly used without having to re-allocate each time. , greatly reducing the time for establishing a new LSP, shortening the service access time or service recovery time, and improving the user experience.
实施例二: 本发明实施例提供一种建立标签交换路径 LSP的方法, 所述 Embodiment 2: The embodiment of the present invention provides a method for establishing a label switching path LSP, where
LSP为从第一节点到第二节点的 LSP, 沿所述 LSP从所述第一节点到所述第二 节点为正向,沿所述 LSP从所述第二节点到所述第一节点为反向,如图 2所示。 The LSP is an LSP from the first node to the second node, and the LSP is forward from the first node to the second node along the LSP, and the LSP is from the second node to the first node. Reverse, as shown in Figure 2.
步骤 S201 , 可选的, 在所述第一节点发起建立所述 LSP前, 也即在所述第 一节点根据多协议标签交换网络的网络拓朴计算出一条从所述第一节点到所 述第二节点的 LSP、 得到所述 LSP的 LSP路径信息前, 所述第一节点从与所述 第一节点相邻的下游节点处获得与所述第一节点相邻的下游节点确定的所述 第一节点可使用的标签集, 并储存所获得的标签集。 如果, 第一节点已存储 有所述 LSP上相邻下游节点分配给其的可使用的标签集, 则此步骤可省略。 分配标签集的方法可以是如实施例一中的方法, 不再赘述。 可选的, 网络中 的其他节点也可以利用相同的方法跟其邻居节点间进行标签的预分配。 应当 说明的是, 各节点间预分配标签可以是网络初始化的时候, 也可以是其他时 间,但必须是在接到建立 LSP的请求之前, 即发起建立所述 LSP前。也就是说, 本发明实施例在发起建立 LSP之前就已经分配好了节点间的标签, 故在建立 LSP之时不需在向下游节点请求分配正向出标签, 同时在 Path流程中就可建立 正向交叉连接。 可选的, 这种标签的预分配可以是为每条现有的 LSP中的各 节点预先分配备用的标签集, 以供其发生故障时使用; 也可以是预先在网络 系统中为虚拟的 LSP分配相应的标签, 当建立 LSP的信令到达时可以直接利用 为虚拟 LSP分配的标签; 也可以时系统中所有的节点都向其邻居节点分配标 签。 Step S201, optionally, before the first node initiates establishment of the LSP, that is, the first node calculates, according to a network topology of the multi-protocol label switching network, a path from the first node to the Before the LSP of the second node obtains the LSP path information of the LSP, the first node obtains the determined by the downstream node adjacent to the first node from a downstream node adjacent to the first node The set of tags available to the first node and stores the obtained set of tags. If the first node has stored a set of available labels to which adjacent downstream nodes on the LSP are assigned, this step may be omitted. The method of allocating the label set may be the method in the first embodiment, and will not be described again. Optionally, other nodes in the network can also use the same method to pre-allocate labels with their neighbor nodes. It should be noted that the pre-allocation label between the nodes may be the time when the network is initialized, or may be other times, but must be before the request to establish the LSP, that is, before the establishment of the LSP. That is to say, the embodiment of the present invention has already allocated the labels between the nodes before initiating the establishment of the LSP, so it is not necessary to request the downstream nodes to allocate the forward outgoing labels when establishing the LSP, and can be established in the Path process. Forward cross connection. Optionally, the pre-allocation of the label may be pre-allocating an alternate label set for each node in each existing LSP for use in a fault; or may be a virtual LSP in the network system in advance. Assign the corresponding label, and directly use when the signaling of establishing the LSP arrives. A label assigned to a virtual LSP; or all nodes in the system may assign labels to their neighbor nodes.
步骤 S202 , 第一节点根据多协议标签交换网络的网络拓朴计算出一条从 所述第一节点到第二节点的 LSP, 得到所述 LSP的 LSP路径信息。 该路径信息 包括该路径上各节点的节点标识、 第一节点的第一正向出接口索引、 第二节 点的第二正向入接口索引以及第一节点和第二节点之间的中间节点的正向入 接口索引和正向出接口索引。 其中, 第一节点为该 LSP的首节点 (ingress node ) , 第二节点为该 LSP的末节点 ( egress node ) 。  Step S202: The first node calculates an LSP from the first node to the second node according to the network topology of the multi-protocol label switching network, and obtains LSP path information of the LSP. The path information includes a node identifier of each node on the path, a first forward outbound interface index of the first node, a second forward inbound interface index of the second node, and an intermediate node between the first node and the second node. Forward inbound interface index and forward outbound interface index. The first node is the ingress node of the LSP, and the second node is the egress node of the LSP.
步骤 S203 , 所述第一节点利用第一正向出标签以及所述 LSP路径信息中 的所述第一节点的第一正向出接口索引建立正向交叉连接, 所述第一正向出 标签是所述第一节点在所述 LSP上的相邻下游节点预分配给所述第一节点的 标签集中的一个未使用的标签, 其中, 一个节点的下游节点是指在所述 LSP 的正向方向上处于该节点后方的节点。 第一节点根据路径信息中包含的第一 节点的相邻的下游节点的节点标识来确定查找该下游节点分配给第一节点的 标签集, 再利用该标签集中的一个未使用的标签作为第一正向出标签。 可选 的, 如果该 LSP配置了带宽要求, 第一节点在建立交叉连接前, 进行资源检 查和带宽分配, 如果带宽分配失败, 则说明建立 LSP失败, 流程结束。  Step S203: The first node establishes a forward cross-connection by using a first forward outgoing label and a first forward outgoing interface index of the first node in the LSP path information, where the first forward outgoing label An unused label of the label set in the first node that is pre-allocated by the first node on the LSP to the first node, where a downstream node of a node refers to a forward direction of the LSP. The node in the direction behind the node. The first node determines, according to the node identifier of the adjacent downstream node of the first node included in the path information, to find a label set allocated by the downstream node to the first node, and then uses an unused label in the label set as the first Forward the label. Optionally, if the LSP is configured with the bandwidth requirement, the first node performs the resource check and the bandwidth allocation before the cross-connection is established. If the bandwidth allocation fails, the LSP fails to be established, and the process ends.
可选的,如果建立的是双向的 LSP,所述第一节点还可利用第一反向入标 签和所述 LSP路径信息中的所述第一节点的第一反向入接口索引建立反向交 叉连接, 所述第一反向入标签是所述第一节点从本节点的标签资源池中分配 的一个未使用的标签。 本节点的标签资源池中分配的一个未使用的标签可以 是已经预分配给该节点相邻下游节点的标签集中的一个未使用的标签, 也可 以是未分配给任何邻居节点的未使用的标签, 但不可以是部居节点分配给该 节点的标签集中的标签, 也不可以是该节点已分配给其他邻居节点的标签集 中的标签, 也不可以是分配给该节点相邻下游节点的但处于使用状态下的标 签。 可选的, 在建立 LSP时, 一个节点建立该 LSP在本节点的交叉连接时时所 使用的正向出接口索引可以与反向入接口索引相同, 反向出接口索引可以与 正向入接口索引相同, 以下实施例都可以如此, 不再赘述。  Optionally, if a bidirectional LSP is established, the first node may further establish a reverse direction by using the first reverse ingress label and the first reverse inbound interface index of the first node in the LSP path information. A cross-connect, the first reverse-entry label is an unused label allocated by the first node from a label resource pool of the node. An unused label allocated in the label resource pool of the node may be an unused label in a label set that has been pre-assigned to the adjacent downstream node of the node, or may be an unused label that is not assigned to any neighbor node. , but not the label in the label set assigned to the node by the neighboring node, nor the label in the label set that the node has assigned to other neighbor nodes, nor the adjacent downstream node assigned to the node. The label is in use. Optionally, when the LSP is established, the forward outgoing interface index used by a node to establish the cross-connection of the LSP may be the same as the reverse incoming interface index, and the reverse outgoing interface index may be forwarded to the forward interface index. The same can be said in the following embodiments, and will not be described again.
步骤 S204, 所述第一节点向所述 LSP上与所述第一节点相邻的下游节点 发送 Path消息, 所述 Path消息用于所述 LSP上的所述第一节点的各个下游节点 建立正向交叉连接。所述 Path消息使得所述 LSP上的在所述第一节点下游的除 所述第二节点外的节点利用其相邻下游节点预分配给其的标签集中的一个未 使用的标签、 其相邻上游节点发送的 Path消息中携带的路径信息和正向出标 签建立正向交叉连接, 使得所述第二节点利用其相邻上游节点发送的 Path消 息中携带的路径信息和正向出标签建立正向交叉连接。 具体的, 第一节点发 送的 Path消息中携带了第一节点的正向出标签以及第一节点后方该 LSP上的 所有下游节点的节点标识、 入接口和出接口等路径信息。 如果第一节点和第 二节点之间存在一个或者一个以上的中间节点, 中间节点接收该 LSP上与其 相邻的上游节点发送的 Path消息并获取该 Path消息中携带的该上游节点的正 向出标签、 该中间节点的正向入接口索引和正向出接口索引, 利用该中间节 点的正向出标签以及该中间节点获得的其上游节点的正向出标签、 该中间节 点的正向入接口索引、 正向出接口索引建立该 LSP在该中间节点的正向交叉 连接, 该中间节点向该 LSP上与该中间节点相邻的下游节点发送 Path消息, 该 中间节点的正向出标签是该 LSP上与该中间节点相邻的下游节点预分配给该 中间节点的标签集中的一个未使用的标签。 该中间节点根据路径信息中包含 的该中间节点的相邻的下游节点的节点标识来确定查找该下游节点分配给该 中间节点的标签集, 再利用该标签集中的一个未使用的标签作为该中间节点 的正向出标签。 该中间节点把 Path消息中携带的与其相邻的上游节点 (对于 第一个中间节点, 其上游节点为第一节点, 对于其他中间节点, 其上游节点 为某个中间节点) 的正向出标签设置为该 LSP在本节点的正向入标签, 因为 该上游节点的正向出标签是该中间节点预分配的未使用的标签, 所以在该中 间节点处该标签肯定空闲可以利用, 故可直接把它设置为正向入标签, 进而 建立正向交叉连接。 该中间节点向下游发送的 Path消息中携带了该中间节点 的正向出标签以及该 LSP上该中间节点所有下游节点的节点标识、 出接口和 入接口等路径信息。 如果第一节点和第二节点之间有多个中间节点, 这些中 间节点重复以上步骤。 可选的, 如果该 LSP配置了带宽要求, 中间节点在建 立交叉连接前, 进行资源检查和带宽分配, 如果带宽分配失败, 则说明建立 LSP失败, 向与其相邻的上游节点发送创建 LSP失败的消息, 流程结束, 不再 向下游节点发送 Path消息。第二节点接收该 LSP上与其相邻的上游节点发送的 Path消息并获取该 Path消息中携带的该上游节点的第二正向出标签、第二节点 的第二正向入接口索引, 因为该第二正向出标签是第二节点预分配给其上游 节点的未使用的标签, 所以肯定空闲, 故可直接把第二正向出标签设置为本 节点的正向入标签, 利用第二正向入标签和第二正向入接口索引建立该 LSP 在第二节点的正向交叉连接。 可选的, 第一节点后方的 LSP上的各节点也可 利用现有技术中建立 LSP的方法建立正向交叉连接以及反向交叉连接, 如此 则与现有技术相比, 建立 LSP所缩短的时间为第一节点相邻下游节点给其分 配标签资源的时间, 也能在一定程度上缩短建立 LSP的时间。 Step S204: The first node sends a Path message to a downstream node that is adjacent to the first node on the LSP, where the Path message is used to establish a positive manner on each downstream node of the first node on the LSP. Connect to the cross. The Path message causes a node other than the second node downstream of the first node on the LSP to use an unused label of its label set pre-assigned to its neighboring downstream node, adjacent thereto The path information carried in the Path message sent by the upstream node establishes a forward cross-connection with the forward outgoing label, so that the second node establishes a positive crossover by using the path information carried in the Path message sent by the neighboring upstream node and the forward outgoing label. connection. Specifically, the Path message sent by the first node carries the forward outgoing label of the first node and the path information of the node identifier, the inbound interface, and the outbound interface of all the downstream nodes on the LSP behind the first node. If the first node and the first There is one or more intermediate nodes between the two nodes, and the intermediate node receives the Path message sent by the upstream node on the LSP and obtains the forward outgoing label of the upstream node carried in the Path message, and the intermediate node Forward inbound interface index and forward outbound interface index, using the forward outgoing label of the intermediate node and the forward outgoing label of the upstream node obtained by the intermediate node, the forward inbound interface index of the intermediate node, and the forward outbound interface index Establishing a forward cross-connection of the LSP in the intermediate node, the intermediate node sending a Path message to the downstream node adjacent to the intermediate node on the LSP, where the forward outgoing label of the intermediate node is on the LSP and the intermediate node The downstream node of the neighbor is pre-assigned to an unused tag in the set of labels of the intermediate node. The intermediate node determines, according to the node identifier of the adjacent downstream node of the intermediate node included in the path information, to find a label set allocated by the downstream node to the intermediate node, and then uses an unused label in the label set as the middle The forward outgoing label of the node. The intermediate node forwards the forward label of the upstream node (the first node of the first intermediate node, the upstream node is the first node, and the upstream node is an intermediate node to other intermediate nodes) carried in the Path message. Set as the forward ingress label of the LSP at the local node, because the forward outgoing label of the upstream node is an unused label pre-allocated by the intermediate node, so the label is definitely available for use at the intermediate node, so Set it to the forward ingress label to establish a positive cross connect. The Path message sent by the intermediate node to the downstream carries the forward outgoing label of the intermediate node and the path information such as the node identifier, the outbound interface, and the inbound interface of all the downstream nodes of the intermediate node on the LSP. If there are multiple intermediate nodes between the first node and the second node, these intermediate nodes repeat the above steps. Optionally, if the LSP is configured with the bandwidth requirement, the intermediate node performs resource check and bandwidth allocation before establishing the cross-connection. If the bandwidth allocation fails, the LSP fails to be established, and the LSP fails to be sent to the adjacent upstream node. The message ends, and the Path message is no longer sent to the downstream node. The second node receives the Path message sent by the upstream node adjacent to the LSP, and obtains the second forward outgoing label of the upstream node and the second forward incoming interface index of the second node carried in the Path message, because the The second forward outgoing label is an unused label that the second node pre-allocates to its upstream node, so it is definitely idle, so the second forward outgoing label can be directly set as the forward incoming label of the node, and the second positive Establishing a forward cross-connection of the LSP at the second node to the ingress label and the second forward ingress interface index. Optionally, each node on the LSP behind the first node may also establish a forward cross connection and a reverse cross connection by using an established LSP in the prior art, so that the LSP is shortened compared with the prior art. The time that the adjacent node of the first node allocates label resources to the downstream node can also shorten the time for establishing the LSP to some extent.
可选的, 如果建立的是双向 LSP, 所述第一节点向所述 LSP上与所述第一 节点相邻的下游节点发送的 Path消息,还使得所述 LSP上的在所述第一节点下 游的除所述第二节点外的节点利用从本节点标签资源池中分配的一个未使用 的标签、 其相邻上游节点发送的 Path消息中携带的路径信息和反向入标签建 立反向交叉连接, 还使得所述第二节点利用其相邻上游节点发送的 Path消息 中携带的路径信息和反向入标签建立反向交叉连接并在该反向交叉连接成功 建立时将反向流量切换到所述 LSP上。 如果第一节点和第二节点之间存在一 个或者一个以上的中间节点, 中间节点还可以接获取其接收到的 Path消息中 携带的该上游节点的反向入标签、 该中间节点的反向出接口索引和反向入接 口索引, 可利用中间节点的反向入标签以及中间节点获得的其上游节点的反 向入标签、 该中间节点的反向出接口索引、 反向入接口索引建立所述 LSP在 所述中间节点的反向交叉连接, 该中间节点向该 LSP上与该中间节点相邻的 下游节点发送 Path消息,该中间节点的正向出标签是该 LSP上与该中间节点相 邻的下游节点预分配给该中间节点的标签集中的一个未使用的标签。 该中间 节点把 Path消息中携带的与其相邻的上游节点的反向入标签设置为该 LSP在 本节点的反向出标签,进而建立反向交叉连接。该中间节点向下游发送的 Path 消息中携带了该中间节点的正向出标签、 反向入标签以及该该 LSP上该中间 节点所有下游节点的节点标识、 出接口和入接口等路径信息。 如果第一节点 和第二节点之间有多个中间节点, 这些中间节点重复以上步骤。 可选的, 如 果该 LSP配置了带宽要求, 中间节点在建立交叉连接前, 进行资源检查和带 宽分配, 如果带宽分配失败, 则说明建立 LSP失败, 向与其相邻的上游节点 发送创建 LSP失败的消息, 流程结束, 不再向下游节点发送 Path消息。 第二节 点还可获取其接收到的 Path消息中携带的该上游节点的第二反向入标签、 第 二节点的第二反向出接口索引, 利用第二反向出标签和第二反向出接口索引 建立该 LSP在第二节点的反向交叉连接。 可选的, 在第二节点建立该 LSP在该 节点的反向交叉连接后 , 可以把反向流量切换到该 LSP上。 Optionally, if the bidirectional LSP is established, the Path message sent by the first node to the downstream node that is adjacent to the first node on the LSP is further caused by the first node on the LSP. The downstream node other than the second node establishes a reverse crossover by using an unused label allocated from the label resource pool of the local node, path information carried in the Path message sent by the adjacent upstream node, and a reverse incoming label. The connection further causes the second node to establish a reverse cross-connection by using the path information carried in the Path message sent by the neighboring upstream node and the reverse incoming label, and switch the reverse traffic to the reverse cross-connection successfully. On the LSP. If there is one or more intermediate nodes between the first node and the second node, the intermediate node may also receive the Path message received by the intermediate node. Carrying the reverse ingress label of the upstream node, the reverse outbound interface index of the intermediate node, and the reverse inbound interface index, may utilize the reverse ingress label of the intermediate node and the reverse entry label of the upstream node obtained by the intermediate node, The reverse outbound interface index and the reverse inbound interface index of the intermediate node establish a reverse cross connection of the LSP in the intermediate node, and the intermediate node sends a Path message to the downstream node adjacent to the intermediate node on the LSP. The forward outgoing label of the intermediate node is an unused label in the label set pre-assigned to the intermediate node by the downstream node adjacent to the intermediate node on the LSP. The intermediate node sets the reverse ingress label of the upstream node that is carried in the Path message with the neighboring node to the reverse outgoing label of the LSP, thereby establishing a reverse cross connection. The Path message sent by the intermediate node to the downstream carries the forward outgoing label of the intermediate node, the reverse incoming label, and the path information of the node identifier, the outbound interface, and the inbound interface of all the downstream nodes of the intermediate node on the LSP. If there are multiple intermediate nodes between the first node and the second node, these intermediate nodes repeat the above steps. Optionally, if the LSP is configured with the bandwidth requirement, the intermediate node performs resource check and bandwidth allocation before establishing the cross-connection. If the bandwidth allocation fails, the LSP fails to be established, and the LSP fails to be sent to the adjacent upstream node. The message ends, and the Path message is no longer sent to the downstream node. The second node may also obtain a second reverse incoming label of the upstream node and a second reverse outgoing interface index of the second node carried in the Path message received by the second node, and use the second reverse outgoing label and the second reverse The outbound interface index establishes a reverse cross-connection of the LSP at the second node. Optionally, after the second node establishes the reverse cross-connection of the LSP on the node, the reverse traffic may be switched to the LSP.
步骤 S205, 可选的, 在第一节点的正向交叉连接建立后, 在第二节点的 正向交叉连接建立前, 虽然该 LSP还没有最终建成, 第一节点就可以把正向 流量先切到该 LSP上来。 在该 LSP还没有最终建成时, 接到流量的节点如果发 现该节点的正向交叉连接还没有建好, 则可以緩存数据流量, 或者丟弃数据 流量。 接到流量的节点建好正向交叉连接建好后, 把正向流量往下游节点传 输, 如果有緩存的数据流量, 则释放相应的数据流量, 传往下游的节点。 这 样, 能保证该 LSP在建成后能第一时间用于传输正向流量。 可选的, 也可以 在切换正向流量或反向流量之前, 先使能 LSP操作、 管理和维护 (operation, administration and meitainience , OAM ) , 进行连续'! "生检查, 在首节点和末节 点确定正方向路径是好的, 再切换正向流量或反向流量。 连续性检查的方法 是发送连续性检查( continuity check, CCM ) 消息, 该 CCM消息中携带了能 确认所述第二节点已建立正向交叉连接的信息, 如携带特定的标识符、 特定 CCM发送间隔等, 使得第一节点识别该标识符后确定第二节点的正向交叉连 接已建立, 则切换正向流量。 因为, 使能 OAM及发送 CCM消息的时间相对于 Path流程及 Resv流程的时间来说非常短,所以总体上还是节省了建立 LSP的时 间 , 并缩短了业务接入时间或者业务恢复时间。  Step S205, optionally, after the forward cross connection of the first node is established, before the forward cross connection of the second node is established, although the LSP is not finally completed, the first node may cut the forward traffic first. Go to the LSP. When the LSP has not been finalized, if the node receiving the traffic has not established the forward cross-connection of the node, it can cache data traffic or discard the data traffic. After the node receiving the traffic is established, the forward traffic is transmitted to the downstream node. If there is buffered data traffic, the corresponding data traffic is released and transmitted to the downstream node. In this way, the LSP can be used to transmit forward traffic for the first time after it is built. Optionally, you can enable LSP operation, administration, and maintenance (OAM) before switching forward traffic or reverse traffic. "Life check, it is good to determine the positive direction path at the first node and the last node, and then switch forward traffic or reverse traffic. The method of continuity check is to send a continuity check (CCM) message in the CCM message. Carrying information that can confirm that the second node has established a forward cross-connection, such as carrying a specific identifier, a specific CCM transmission interval, etc., so that the first node identifies the identifier and determines that the forward cross-connection of the second node has been If it is established, the forward traffic is switched. Because the time for enabling OAM and sending CCM messages is very short compared to the time of the Path process and the Resv process, the time for establishing the LSP is generally saved, and the service access is shortened. Time or business recovery time.
可选的,第二节点可以发送 Resv消息,发起 Resv流程以检查该 LSP的交叉 连接状况。  Optionally, the second node may send a Resv message to initiate a Resv process to check the cross-connection status of the LSP.
可选的,其他类型的消息,如果能用于携带相应的 LSP路径信息和标签信 息, 经过适当的扩展也可以用于建立 LSP。 本发明实施例所揭示的建立 LSP的方法, 利用建立 LSP前提前分配好 MPLS网络中节点间的标签资源, 首节点可以在 Path流程就可以建立好正向交 叉连接,与现有技术中首节点需要 Path流程和 Resv流程才能建立 LSP正向交叉 连接的方法相比, 缩短了 LSP建立的时间。 若整条 LSP上的各节点都在开始建 立 LSP之前就分配好了标签,则所有节点都可以在 Path流程就建立正向交叉连 接, 能大大缩短 LSP建立的时间。 同时, 在首节点建立了正向交叉连接后即 可切换正向流量, 在末节点反向交叉连接后即切换反向流量, 能保证新 LSP 建立后能第一时间用于承载业务。 本发明实施例所揭示的方法缩短了 LSP建 立的时间, 从而减少了业务接入时间或业务恢复时间, 提高了用户体验。 Optionally, other types of messages can be used to establish LSPs if they can be used to carry corresponding LSP path information and label information. In the method for establishing an LSP according to the embodiment of the present invention, the label resource between the nodes in the MPLS network is allocated in advance before the LSP is established, and the first node can establish a forward cross connection in the Path process, and the first node in the prior art. Compared with the method that the Path process and the Resv process are required to establish an LSP forward cross connection, the LSP establishment time is shortened. If all the nodes on the entire LSP are assigned labels before the LSP is set up, all nodes can establish a forward cross-connection in the Path process, which can greatly shorten the LSP establishment time. At the same time, the forward traffic can be switched after the forward cross-connection is established on the first node, and the reverse traffic is switched after the reverse-cross connection of the last node, which ensures that the new LSP can be used for bearer services after being established. The method disclosed in the embodiment of the present invention shortens the time for establishing an LSP, thereby reducing service access time or service recovery time and improving user experience.
实施例三: 本发明实施例提供一种建立标签交换路径 LSP的方法, 所述 Embodiment 3: Embodiments of the present invention provide a method for establishing a label switching path LSP, where
LSP为从第一节点到第二节点的 LSP, 第三节点为所述 LSP上所述第一节点和 所述第二节点之间的中间节点, 沿所述 LSP从所述第一节点到所述第二节点 为正向, 沿所述 LSP从所述第二节点到所述第一节点为反向, 如图 3所示。 The LSP is an LSP from the first node to the second node, and the third node is an intermediate node between the first node and the second node on the LSP, along the LSP from the first node to the The second node is forward, and the LSP is reversed from the second node to the first node along the LSP, as shown in FIG.
步骤 S301 , 可选的, 在所述第一节点发起建立所述 LSP前, 也即在所述第 一节点根据多协议标签交换网络的网络拓朴计算出一条从所述第一节点到所 述第二节点的 LSP、 得到所述 LSP的 LSP路径信息前, 所述第三节点从与所述 第三节点相邻的下游节点处获得与所述第三节点相邻的下游节点确定的所述 第三节点可使用的标签集, 并储存所获得的标签集。 如果, 第三节点已存储 有所述 LSP上相邻下游节点分配给其的可使用的标签集, 则可以直接利用该 标签集中的空闲标签。 可选的, 第三节点为 LSP上相邻的上游节点分配该上 游节点可使用的标签集, 以供其建立在 Path流程中建立正向交叉连接之用, 如果在这之前该上游节点已接收到过分配的标签集且标签集中有空闲的标 签, 则第三节 ^可^ ^用再次 ^配。 分配标签集的; ^法可以是 实施例一中的 居节点间进行标签的预分配。 应当说明的是, 各节点间预分配标签可以是网 络初始化的时候, 也可以是其他时间, 但必须是在接到建立 LSP的请求之前, 即发起建立所述 LSP前。 也就是说, 本发明实施例在发起建立 LSP之前就已经 分配好了节点间的标签, 故在建立 LSP之时不需在向下游节点请求分配正向 出标签, 同时在 Path流程中就可建立正向交叉连接。 可选的, 这种标签的预 分配可以是为每条现有的 LSP中的各节点预先分配备用的标签集, 以供其发 生故障时使用; 也可以是预先在网络系统中为虚拟的 LSP分配相应的标签, 当建立 LSP的信令到达时可以直接利用为虚拟 LSP分配的标签; 也可以时系统 中所有的节点都向其邻居节点分配标签。  Step S301, optionally, before the first node initiates establishment of the LSP, that is, the first node calculates, according to a network topology of the multi-protocol label switching network, a path from the first node to the Before the LSP of the second node obtains the LSP path information of the LSP, the third node obtains the determined by the downstream node adjacent to the third node from a downstream node adjacent to the third node The set of tags that the third node can use, and stores the obtained set of tags. If the third node has stored a set of available labels assigned to adjacent downstream nodes on the LSP, the free labels in the set of labels can be directly utilized. Optionally, the third node allocates, to the adjacent upstream node on the LSP, a set of labels that can be used by the upstream node, so that it establishes a forward cross-connection in the Path process, if the upstream node has received the After the assigned tag set has been reached and there are free tags in the tag set, the third section can be used again. The method of assigning a label set; ^ method may be pre-allocation of labels between the nodes in the first embodiment. It should be noted that the pre-allocation label between the nodes may be the time when the network is initialized, or may be other time, but must be before the request to establish the LSP, that is, before the establishment of the LSP. That is to say, the embodiment of the present invention has already allocated the labels between the nodes before initiating the establishment of the LSP, so it is not necessary to request the downstream nodes to allocate the forward outgoing labels when establishing the LSP, and can be established in the Path process. Forward cross connection. Optionally, the pre-allocation of the label may be pre-allocating an alternate label set for each node in each existing LSP for use in a fault; or may be a virtual LSP in the network system in advance. The corresponding label is allocated, and the label allocated for the virtual LSP can be directly used when the signaling for establishing the LSP arrives; or all the nodes in the system allocate labels to the neighbor nodes.
步骤 S302, 所述第三节点接收在所述 LSP路径上与其相邻的上游节点发 送的 Path消息,所述与其相邻的上游节点为在所述 LSP的正向方向上处于所述 第三节点上游的相邻节点。 所述 Path消息为第一节点建立正向交叉连接后所 发出并由所述第一节点与所述第三节点之间的节点在建立正向交叉连接后所 转发的消息, 其中, 一个节点的下游节点是指在所述 LSP的正向方向上处于 该节点后方的节点。 其中, 第一节点建立正向交叉连接的方式与实施例二中 的第一节点建立正向交叉连接的方式相同, 第一节点和第三节点之间的中间 节点建立正向交叉连接的方式与实施例二中中间节点建立正向交叉连接的方 式相同, 不再赘述。 可选的, 如果建立是双向 LSP, 各节点还可建立反向交 叉连接, 也与实施例二中的方法相同。 Step S302, the third node receives a Path message sent by an upstream node adjacent to the LSP path, and the adjacent upstream node is in the third node in a forward direction of the LSP. Adjacent nodes upstream. The Path message is a message that is sent after the first node establishes a forward cross-connection and is forwarded by a node between the first node and the third node after establishing a forward cross-connection, where one node The downstream node is in the forward direction of the LSP. The node behind the node. The manner in which the first node establishes a forward cross-connection is the same as the manner in which the first node in the second embodiment establishes a forward cross-connection, and the intermediate node between the first node and the third node establishes a positive cross-connection. The manner in which the intermediate nodes establish a forward cross-connection is the same in the second embodiment, and details are not described herein again. Optionally, if the establishment is a bidirectional LSP, each node may also establish a reverse cross connection, which is also the same as the method in the second embodiment.
步骤 S303, 所述第三节点获取其所接收到的 Path消息中携带的路径信息 和所述与其相邻的上游节点的正向出标签, 将所述 LSP正向方向上与其相邻 的下游节点分配给其的标签集中的一个未使用的标签作为第二正向出标签, 将所获得的与其相邻的上游节点的正向出标签作为第二正向入标签, 根据所 述第二正向出标签、 所述第二正向入标签以及所获得的路径信息建立正向交 叉连接。 可选的, 如果建立的是双向 LSP, 第三节点还可利用获得的 Path消息 中携带的信息建立反向交叉连接。 第三节点建立正向交叉连接和反向交叉连 接的方法分别与实施例二中的中间节点建立正向交叉连接和反向交叉连接的 方法相同, 不再赘述。  Step S303, the third node acquires the path information carried in the Path message received by the third node and the forward outgoing label of the upstream node adjacent thereto, and the downstream node adjacent to the LSP in the forward direction An unused label in the label set assigned thereto is used as the second forward outgoing label, and the obtained forward outgoing label of the upstream node adjacent thereto is used as the second forward incoming label, according to the second forward direction The outgoing label, the second forward incoming label, and the obtained path information establish a positive cross-connection. Optionally, if a bidirectional LSP is established, the third node may also use the information carried in the obtained Path message to establish a reverse cross connection. The method for establishing the forward cross connection and the reverse cross connection of the third node is the same as the method for establishing the forward cross connection and the reverse cross connection respectively with the intermediate node in the second embodiment, and details are not described herein again.
步骤 S304, 所述第三节点向所述与其相邻的下游节点发送 Path消息, 所 述 Path消息中携带有第三节点下游各节点的 LSP路径信息和所述第二正向出 标签,所述 Path消息用于所述 LSP上的所述第三节点的各个下游节点建立正向 交叉连接。所述 Path消息使得所述 LSP上的在所述第三节点下游的除所述第二 节点外的节点利用其相邻下游节点预分配给其的标签集中的一个未使用的标 签、 其相邻上游节点发送的 Path消息中携带的路径信息和正向出标签建立正 向交叉连接, 使得所述第二节点利用其相邻上游节点发送的 Path消息中携带 的路径信息和正向出标签建立正向交叉连接。 可选的, 如果建立的是双向 LSP, 还可在各节点建立反向交叉连接。 所述第三节点下游的除所述第二节 点外的节点以及第二节点建立正向交叉连接和反向交叉连接的方法分别与实 施例二中中间节点的及第二节点的方法相同, 不再赘述。  Step S304, the third node sends a Path message to the downstream node that is adjacent to the neighboring node, where the Path message carries the LSP path information of the downstream nodes of the third node and the second forward outgoing label. The Path message is used to establish a forward cross-connection for each downstream node of the third node on the LSP. The Path message causes a node other than the second node downstream of the third node on the LSP to use an unused tag of its label set pre-assigned to its neighboring downstream node, adjacent thereto The path information carried in the Path message sent by the upstream node establishes a forward cross-connection with the forward outgoing label, so that the second node establishes a positive crossover by using the path information carried in the Path message sent by the neighboring upstream node and the forward outgoing label. connection. Optionally, if a bidirectional LSP is established, a reverse cross connection can also be established at each node. The method for establishing a forward cross connection and the reverse cross connection between the node other than the second node and the second node downstream of the third node is the same as the method of the intermediate node and the second node in the second embodiment, respectively. Let me repeat.
可选的,在第一节点的正向交叉连接建立后,虽然该 LSP还没有最终建成, 第一节点可以把正向流量切到该 LSP上来, 在该 LSP还没有最终建成时, 接到 流量的节点可以緩存数据流量, 或者丟弃数据流量, 这样, 能保证该 LSP在 建成后能第一时间用于传输正向流量。 可选的, 如果该 LSP配置了带宽要求, 第一节点在建立交叉连接前, 进行资源检查和带宽分配, 如果带宽分配失败, 则说明建立 LSP失败, 流程结束, 不再向下游节点发送 Path消息。  Optionally, after the forward cross-connection of the first node is established, although the LSP is not finally completed, the first node may cut the forward traffic to the LSP, and receive the traffic when the LSP has not been finally completed. The node can buffer data traffic or discard data traffic. This ensures that the LSP can be used to transmit forward traffic for the first time after it is built. Optionally, if the LSP is configured with the bandwidth requirement, the first node performs the resource check and the bandwidth allocation before the cross-connection is established. If the bandwidth allocation fails, the LSP fails to be established, the process ends, and the Path message is not sent to the downstream node. .
可选的,第二节点可以发送 Resv消息,发起 Resv流程以检查该 LSP的交叉 连接状况。  Optionally, the second node may send a Resv message to initiate a Resv process to check the cross-connection status of the LSP.
可选的,其他类型的消息,如果能用于携带相应的 LSP路径信息和标签信 息, 经过适当的扩展也可以用于建立 LSP。  Optionally, other types of messages can be used to establish an LSP if they can be used to carry the corresponding LSP path information and label information.
可选的, 在第一节点的正向交叉连接建立后, 在第二节点的正向交叉连 接建立前, 虽然该 LSP还没有最终建成, 第一节点就可以把正向流量先切到 该 LSP上来。 在该 LSP还没有最终建成时, 接到流量的节点如果发现该节点的 正向交叉连接还没有建好, 则可以緩存数据流量, 或者丟弃数据流量。 接到 流量的节点建好正向交叉连接建好后, 把正向流量往下游节点传输, 如果有 緩存的数据流量, 则释放相应的数据流量, 传往下游的节点。 这样, 能保证 该 LSP在建成后能第一时间用于传输正向流量。 可选的, LSP上除第三节点外 的各节点也可利用现有技术中建立 LSP的方法建立正向交叉连接以及反向交 叉连接, 如此则与现有技术相比, 建立 LSP所缩短的时间为第三节点相邻下 游节点给其分配标签资源的时间, 也能在一定程度上缩短建立 LSP的时间。 Optionally, after the forward cross connection of the first node is established, before the forward cross connection of the second node is established, although the LSP is not finally completed, the first node can cut the forward traffic first. The LSP comes up. When the LSP has not been finally built, if the node receiving the traffic has not established the forward cross-connection of the node, it can cache data traffic or discard the data traffic. After the node receiving the traffic is established, the forward traffic is transmitted to the downstream node. If there is buffered data traffic, the corresponding data traffic is released and transmitted to the downstream node. In this way, the LSP can be used to transmit forward traffic for the first time after being built. Optionally, each node except the third node on the LSP can also establish a forward cross connection and a reverse cross connection by using an established LSP in the prior art, so that the LSP is shortened compared with the prior art. The time for the adjacent downstream node of the third node to allocate the label resource to it can also shorten the time for establishing the LSP to some extent.
可选的, 也可以在切换正向流量或反向流量之前, 先使能 LSP操作、 管理 和维护 ( operation, administration and meitainience , OAM ) , 进行连续性检 查, 在首节点和末节点确定正方向路径是好的, 再切换正向流量或反向流量。 连续性检查的方法是发送连续性检查(continuity check, CCM )消息,该 CCM 消息中携带了能确认所述第二节点已建立正向交叉连接的信息, 如携带特定 的标识符, 使得第一节点识别该标识符后确定第二节点的正向交叉连接已建 立, 则切换正向流量。 因为, 使能 OAM及发送 CCM消息的时间相对于 Path流 程及 Resv流程的时间来说非常短, 所以总体上还是节省了建立 LSP的时间, 并缩短了业务接入时间或者业务恢复时间。  Optionally, the LSP operation, management, and maintenance (OAM) can be enabled before the forward traffic or the reverse traffic is switched, and the continuity check is performed to determine the positive direction at the first node and the last node. The path is good, then switch forward traffic or reverse traffic. The method of continuity check is to send a continuity check (CCM) message, the CCM message carrying information that can confirm that the second node has established a forward cross-connection, such as carrying a specific identifier, so that the first After the node identifies the identifier and determines that the forward cross-connection of the second node has been established, the forward traffic is switched. Because the time for enabling OAM and sending CCM messages is very short compared to the time of the Path process and the Resv process, the time for establishing an LSP is generally saved, and the service access time or service recovery time is shortened.
本发明实施例所揭示的建立 LSP的方法, 利用建立 LSP前提前分配好 MPLS网络中节点间的标签资源 , LSP上的中间节点可以在 Path流程就可以建 立好正向交叉连接, 与现有技术中中间节点需要 Path流程和 Resv流程才能建 立 LSP正向交叉连接的方法相比, 缩短了 LSP建立的时间。 若整条 LSP上的各 节点都在开始建立 LSP之前就分配好了标签,则所有节点都可以在 Path流程就 建立正向交叉连接, 能大大缩短 LSP建立的时间。 同时, 在首节点建立了正 向交叉连接后即可切换正向流量,在末节点反向交叉连接后即切换反向流量, 能保证新 LSP建立后能第一时间用于承载业务。 本发明实施例所揭示的方法 缩短了 LSP建立的时间, 从而减少了业务接入时间或业务恢复时间, 提高了 用户体验。  In the method for establishing an LSP according to the embodiment of the present invention, the label resource between nodes in the MPLS network is allocated in advance before the LSP is established, and the intermediate node on the LSP can establish a forward cross connection in the Path process, and the prior art Compared with the method that the intermediate node needs the Path process and the Resv process to establish an LSP forward cross connection, the LSP establishment time is shortened. If all the nodes on the entire LSP are assigned labels before the LSP is set up, all nodes can establish a forward cross-connection in the Path process, which can greatly shorten the LSP establishment time. At the same time, the forward traffic can be switched after the forward cross-connection is established on the first node, and the reverse traffic is switched after the reverse-cross connection of the last node, which ensures that the new LSP can be used for bearer services for the first time. The method disclosed in the embodiment of the present invention shortens the time for establishing an LSP, thereby reducing service access time or service recovery time and improving user experience.
实施例四: 本发明实施例提供一种分组传送网设备, 如图 4所示。  Embodiment 4: An embodiment of the present invention provides a packet transport network device, as shown in FIG.
该设备包括: 处理模块,用于利用其所获得的标签交换路径 LSP路径信息 以及来自存储模块的第一标签建立正向交叉连接, 其中, 所述第一标签为所 述 LSP路径上与所述分组传送网设备相邻的下游分组传送网设备预分配给所 述分组传送网设备的标签集中的一个未使用的标签, 所述下游分组传送网设 备; 生成模块, 用于生成 Path消息, 所述 Path消息携带有所述 LSP上的所述分 组传送网设备下游的各分组传送网设备的 LSP路径信息和所述第一标签, 所 述 Path消息的目的地址为所述 LSP路径上与所述分组传送网设备相邻的下游 分组传送网设备的地址; 发送模块, 用于发送所述生成模块生成的消息; 存 储模块, 用于存储来自处理模块的信息。 可选的, 所述分组传送网设备在所 述分组传送网设备的正向交叉连接建立后, 所述 LSP正向方向上的最后一个 分组传送网设备的正向交叉建立前, 将正向流量切换的所述 LSP上; 或者, 所述分组传送网设备接收到所述最后一个分组传送网设备发送的连续性检查 CCM报文后, 将正向流量切换到所述 LSP上, 所述 CCM报文携带了用于确认 所述最后一个分组传送网设备已建立正向交叉连接的信息。 可选的, 所述处 理模块, 还用于利用其所获得的 LSP路径信息以及来自存储模块的第二标签 作为反向入标签建立反向交叉连接, 其中, 所述第二标签为所述分组传送网 设备本身的标签资源池中的一个未使用的标签; 所述 Path消息还携带有所述 第二标签。 可选的, 处理模块还可用于根据设备标识向各个与所述分组传送 网设备相邻的分组传送网设备分配标签集, 所述的设备标识为这些相邻的分 组传送网设备的设备标识; 生成模块还可用于根据处理模块分配的结果向各 相邻分组传送网设备发送消息通过分配的标签集, 这些消息中携带了本分组 传送网设备的设备标识, 该消息指向的设备的设备标识以及分配给具有该设 备标识的设备的标签集。 The device includes: a processing module, configured to establish a forward cross connection by using the label switching path LSP path information obtained by the label switching path and the first label from the storage module, where the first label is on the LSP path and the a downstream packet transport network device adjacent to the packet transport network device is pre-assigned to an unused tag in the tag set of the packet transport network device, the downstream packet transport network device; a generating module, configured to generate a Path message, The Path message carries the LSP path information of each packet transport network device downstream of the packet transport network device on the LSP, and the first label, where the destination address of the Path message is the LSP path and the packet An address of a downstream packet transport network device adjacent to the transport network device; a sending module, configured to send a message generated by the generating module; A storage module for storing information from the processing module. Optionally, after the forward cross-connection of the packet transport network device is established, the packet transport network device forward traffic before the forward cross-connection of the last packet transport network device in the forward direction of the LSP On the LSP that is switched; or, after receiving the continuity check CCM message sent by the last packet transport network device, the packet transport network device switches the forward traffic to the LSP, where the CCM report The message carries information for confirming that the last packet transport network device has established a forward cross-connection. Optionally, the processing module is further configured to establish, by using the LSP path information obtained by the LSP path information and the second label from the storage module, as a reverse ingress label, where the second label is the grouping An unused label in the label resource pool of the transport network device itself; the Path message also carries the second label. Optionally, the processing module is further configured to allocate, according to the device identifier, a label set to each of the packet transport network devices adjacent to the packet transport network device, where the device identifier is a device identifier of the neighboring packet transport network devices; The generating module is further configured to send, according to the result of the processing module allocation, a message to the neighboring packet transport network devices by using the allocated label set, where the message carries the device identifier of the packet transport network device, the device identifier of the device pointed by the message, and The set of labels assigned to the device with the device ID.
具体的,所述处理模块,可以用于利用其所获得的标签交换路径 LSP的路 径信息以及一个未使用的标签建立正向交叉连接, 其中, 获得 LSP路径信息 的方式可以是通过该分组传送网设备所在的 MPLS网络的网络拓朴进行计算 并得出。 该未使用的标签为所述分组传送网设备相邻的下游分组传送网设备 预分配给所述分组传送网设备的标签集中的一个未使用的标签。 可选的, 如 果该分组传送网设备是该 LSP上的首节点 ( Ingress node ) , 则可以根据其相 邻下游的各分组传送网设备的设备标识在其存储模块中存储的相关信息查询 其邻居分组传送网设备预分配给其的标签集, 利用该标签集中的一个未使用 的标签以及 LSP路径信息中包含的出接口索引建立正向交叉连接, 并向相邻 下游分组传送网设备发送 Path消息。 可选的, 如果该分组传送网设备是 LSP 的首节点, 在该首节点的正向交叉连接建立后, 在末节点的正向交叉连接建 立前, 虽然该 LSP还没有最终建成, 该分组传送网设备就可以把正向流量先 切到该 LSP上来。 在该 LSP还没有最终建成时, 接到流量的分组传送网设备如 果发现该设备上的正向交叉连接还没有建好, 则可以緩存数据流量, 或者丟 弃数据流量。 接到流量的分组传送网设备建好正向交叉连接建好后, 把正向 流量往下游设备传输, 如果有緩存的数据流量, 则释放相应的数据流量, 传 往下游的设备。 可选的, 也可以在切换正向流量或反向流量之前, 先使能 LSP 操作、 管理和维护 ( operation, administration and meitainience , OAM ) , 进 行连续性检查, 在首节点的分组传送网设备和末节点的分组传送网设备确定 所建立 LSP是好的, 再切换正向流量或反向流量。 连续性检查的方法是发送 连续性检查( continuity check, CCM ) 消息, 该 CCM消息中携带了能确认该 LSP路径上最后一个分组传送网设备,也即该 LSP的末节点已建立正向交叉连 接的信息, 如携带特定的标识符, 使得所述分组传送网设备能识别该标识符 后确定所述最后一个分组传送网设备的正向交叉连接已建立, 则切换正向流 量。 因为, 使能 OAM及发送 CCM消息的时间相对于 Path流程及 Resv流程的时 间来说非常短, 所以总体上还是节省了建立 LSP的时间, 并缩短了业务接入 时间或者业务恢复时间。 这样, 能保证该 LSP在建成后能第一时间用于传输 正向流量。 可选的, 也可利用该分组传送网设备建立反向交叉连接, 具体方 法如实施例二首节点建立反向交叉连接的方法, 不再赘述。 Specifically, the processing module may be configured to establish a forward cross connection by using path information of the label switched path LSP obtained by the label switching path and an unused label, where the LSP path information may be obtained by using the packet transmission network. The network topology of the MPLS network where the device is located is calculated and obtained. The unused tag is an unused tag pre-assigned to the packet transport network device's tag set in the downstream packet transport network device adjacent to the packet transport network device. Optionally, if the packet transport network device is an ingress node on the LSP, the device identifier of the network device of the neighboring downstream device may be used to query the neighbor information stored in the storage module. a label set pre-assigned to the packet transport network device, establishing an forward cross-connection by using an unused label in the label set and an outbound interface included in the LSP path information, and sending a Path message to the adjacent downstream packet transport network device . Optionally, if the packet transport network device is the first node of the LSP, after the forward cross connection of the first node is established, before the forward cross connection of the last node is established, although the LSP has not been finally completed, the packet is transmitted. The network device can cut the forward traffic to the LSP first. When the LSP has not been finalized, the packet transport network device receiving the traffic may cache the data traffic or discard the data traffic if it finds that the forward cross-connection on the device has not been established yet. After the packet transmission network device receiving the traffic is established, the forward traffic is transmitted to the downstream device. If there is buffered data traffic, the corresponding data traffic is released and transmitted to the downstream device. Optionally, the LSP operation, management, and maintenance (OAM) may be enabled before the forward traffic or the reverse traffic is switched, and the continuity check is performed on the packet transmission network device at the first node. The packet transport network device of the last node determines that the established LSP is good, and then switches forward traffic or reverse traffic. The method of continuity check is to send a continuity check (CCM) message, which carries the last packet transport network device on the LSP path, that is, the last node of the LSP has established a forward cross connection. Information, such as carrying a specific identifier, such that the packet transport network device can recognize the identifier After determining that the forward cross-connection of the last packet transport network device has been established, the forward traffic is switched. Because the time for enabling OAM and sending CCM messages is very short compared to the time of the Path process and the Resv process, the time for establishing an LSP is generally saved, and the service access time or service recovery time is shortened. In this way, the LSP can be used to transmit forward traffic for the first time after being built. Optionally, the method for establishing a reverse cross-connection is also performed by using the packet-transport network device. For example, the method for establishing a reverse cross-connection by the first node in Embodiment 2 is not described herein.
可选的, 处理模块, 还可用于根据来自存储模块或来自解析模块的每个 邻居分组传送网设备的设备标识确定所述每个邻居分组传送网设备可使用的 标签集, 其中, 所述分组传送网设备的邻居分组传送网设备为与所述分组传 送网设备相邻的分组传送网设备。 分组传送网设备的设备标识可以是该设备 的设备标识, 也可以是该设备的网际协议地址, 还可以是一个整数, 总之, 可用于供第一分组传送网设备识别即可, 也可以是其他可用于供第一分组传 送网设备识别的标识。 可选的, 邻居分组传送网设备的设备标识可以是存储 模块所存储的, 如果第一分组传送网设备不知道各邻居分组传送网设备的设 备标识, 也可以通过内部网关协议 ( interior gateway protocol, IGP ) 消息交 互网络拓朴信息并通过解析模块解析相应的消息, 获得邻居分组传送网设备 的设备标识。 为邻居分组传送网设备确定其可使用的标签集是指在本地可使 用的标签资源池中为每个设备标识分配标签集,标签集中包含至少一个标签。 例如, 可以以邻居分组传送网设备的设备标识为 key建立相应的表项, 并给这 个 key分配标签集。 分配好标签集后报送给储存模块存储。 可选的, 可以将已 被分配的标签或标签集标记为已分配, 被标记为已分配的标签或标签集只供 分配到该标签或标签集的邻居分组传送网设备使用 , 在被释放之前其他邻居 分组传送网设备不可使用。  Optionally, the processing module is further configured to determine, according to a device identifier of each neighbor packet transport network device from the storage module or from the parsing module, a label set that is applicable to each neighbor packet transport network device, where the packet is The neighbor packet transport network device of the transport network device is a packet transport network device adjacent to the packet transport network device. The device identifier of the packet transport network device may be the device identifier of the device, or may be an Internet Protocol address of the device, or may be an integer. In short, it may be used for identifying by the first packet transport network device, or may be other An identifier that can be used for identification by the first packet transport network device. Optionally, the device identifier of the neighbor packet transport network device may be stored by the storage module. If the first packet transport network device does not know the device identifier of each neighbor packet transport network device, the internal gateway protocol may also be adopted. IGP) The message interacts with the network topology information and parses the corresponding message through the parsing module to obtain the device identifier of the neighbor packet transport network device. Determining the set of labels that can be used by the neighboring packet transport network device means assigning a label set to each device identifier in a locally available label resource pool, the label set including at least one label. For example, the device identifier of the neighbor packet transport network device may be used as a key to establish a corresponding entry, and the key set is assigned to the key. After the label set is allocated, it is sent to the storage module for storage. Optionally, the tag or tag set that has been assigned may be marked as assigned, and the tag or tag set marked as being allocated is only used by the neighbor packet transport network device assigned to the tag or tag set, before being released. Other neighbor packet transport network devices are not available.
具体的, 生成模块, 其生成的 Path消息携带的路径信息包括但不限于该 分组传送网设备之后在所述 LSP上的各分组传送网设备的设备标识、 出接口 及入接口索引、 本分组传送网设备的正向出标签。 可选的, 如需建立反向交 叉连接时, Path消息还携带反向入标签。 可选的, 生成模块还可用于根据来 自所述存储模块或来自所述处理模块的所述邻居分组传送网设备的设备标识 以及所述处理模块确定的所述邻居分组传送网设备的标签集生成消息, 所述 消息携带了所述分组传送网设备的设备标识、 所述邻居分组传送网设备的设 备标识和所述处理模块分配给所述邻居分组传送网设备的标签集。 该消息可 以是扩展的 IGP协议消息, 也可以是扩展的以太网报文, 也可以是其他消息类 型, 只要其能用于携带目的邻居分组传送网设备的设备标识、 第一分组传送 网设备的设备标识和第一节点分配给目的邻居节点的标签集即可。 该消息的 目的地址可以是单播地址, 发送的内容可以是目的邻居分组传送网设备的设 备标识、 第一分组传送网设备的设备标识和第一分组传送网设备分配给目的 邻居分组传送网设备的标签集, 发送的内容也可以是一个表项, 该表项中包 含了第一分组传送网设备的分组传送网设备标识、 第一分组传送网设备所有 的邻居分组传送网设备的分组传送网设备标识以及第一分组传送网设备分配 给这些邻居分组传送网设备的标签集, 收到消息的邻居分组传送网设备可以 通过自己的分组传送网设备标识在表项中查找分配给自己的标签集。 该消息 也可以是广播地址, 发送的内容可以是上述的包含了第一分组传送网设备的 分组传送网设备标识、 第一分组传送网设备所有的邻居分组传送网设备的分 组传送网设备标识以及第一分组传送网设备分配给这些邻居分组传送网设备 的标签集的表项。 Specifically, the generating module, the path information carried by the generated Path message includes, but is not limited to, a device identifier, an outbound interface, and an inbound interface index of each packet transport network device on the LSP after the packet transport network device, and the packet transmission The forward label of the network device. Optionally, when a reverse cross-connection is established, the Path message also carries a reverse-entry label. Optionally, the generating module is further configured to generate, according to the device identifier of the neighbor packet transmission network device from the storage module or the processing module, and the label set of the neighbor packet transmission network device determined by the processing module. And a message carrying the device identifier of the packet transport network device, the device identifier of the neighbor packet transport network device, and a label set allocated by the processing module to the neighbor packet transport network device. The message may be an extended IGP protocol message, an extended Ethernet packet, or other message type, as long as it can be used to carry the device identifier of the destination neighbor packet transport network device, and the first packet transport network device. The device identifier and the label set assigned by the first node to the destination neighbor node are sufficient. The destination address of the message may be a unicast address, and the content sent may be a device identifier of the destination neighbor packet transport network device, a device identifier of the first packet transport network device, and a first packet transport network device allocated to the destination neighbor packet transport network device. The label set, the sent content may also be an entry, where the entry includes the packet transport network device identifier of the first packet transport network device, and the first packet transport network device The packet transport network device identifier of the neighbor packet transport network device and the label set allocated by the first packet transport network device to the neighbor packet transport network devices, and the neighbor packet transport network device receiving the message may identify the network device through its own packet transport network device. Find the set of labels assigned to yourself in the table entry. The message may also be a broadcast address, and the sent content may be the above-mentioned packet transport network device identifier including the first packet transport network device, the packet transport network device identifier of all neighbor packet transport network devices of the first packet transport network device, and An entry of a label set assigned by the first packet transport network device to the neighbor packet transport network devices.
可选的, 所述分组传送网设备可包括解析模块, 用于解析所述接收模块 接收到的来自所述邻居分组传送网设备的消息, 并获取该消息中携带的所述 邻居分组传送网设备的设备标识和所述邻居分组传送网设备分配给所述分组 传送网设备的标签集。  Optionally, the packet transport network device may include a parsing module, configured to parse the message received by the receiving module from the neighbor packet transport network device, and obtain the neighbor packet transport network device carried in the message The device identification and the set of tags assigned by the neighbor packet transport network device to the packet transport network device.
所述存储模块, 用于存储来自所述解析模块和所述处理模块的信息。 存 储的内容可以包括但不限于邻居分组传送网设备的设备标识、 本分组传送网 设备分配给其邻居分组设备的标签集、 两者之间的对应关系以及标签集中标 签的使用情况。 来自处理模块的信息包括但不限于, 修改标签使用状态的信 息、 标签集信息、 标签信息、 设备标识信息等。  The storage module is configured to store information from the parsing module and the processing module. The stored content may include, but is not limited to, a device identifier of a neighbor packet transport network device, a label set assigned to its neighbor packet device by the packet transport network device, a correspondence between the two, and usage of the label set label. Information from the processing module includes, but is not limited to, information that modifies the usage status of the tag, tag set information, tag information, device identification information, and the like.
实施例中的 (Packet Transpor t Network, PTN)设备是指釆用包交换技 术传输数据的设备, 包括但不限于标签交换路由器( label swi tching router , LSR )、标签交换边缘路由器( label swi tching edge router , LER ) 、 交换机、 分组交换设备、 包传送网络设备等  The Packet Transpor Network (PTN) device in the embodiment refers to a device that transmits data by using a packet switching technology, including but not limited to a label swi tching router (LSR) and a label swi tching edge. Router , LER ), switches, packet switching equipment, packet transport network equipment, etc.
本发明实施例所揭示的分组传送网设备, 在建立 LSP前提前分配好 MPLS 网络中分组传送网设备间的标签资源, 使得建立新 LSP时可直接利用所分配 好的标签而不必进行重新分配 , 能在 Path流程就可以建立好正向交叉连接 , 与现有技术中需要 Path流程和 Resv流程才能建立 LSP正向交叉连接的方法相 比减少了建立 LSP的时间。 同时, 在 LSP首节点处的分组传送网设备建立了正 向交叉连接后即切换正向流量, 能保证新 LSP建立后能第一时间用于承载业 务, 缩短了业务接入时间或者业务恢复时间, 提高了用户体验。  The packet transport network device disclosed in the embodiment of the present invention allocates the label resource between the packet transport network devices in the MPLS network in advance before establishing the LSP, so that the allocated label can be directly utilized when the new LSP is established without re-allocation. The forward cross-connection can be established in the Path process. Compared with the previous method in which the Path process and the Resv process are required to establish an LSP forward cross-connection, the time for establishing the LSP is reduced. At the same time, the packet transmission network device at the LSP head node establishes a forward cross-connection, that is, the forward traffic is switched, and the new LSP can be used to carry the service for the first time, which shortens the service access time or service recovery time. , improved user experience.
实施例五: 本发明实施例提供一种分组传送网设备, 如图 5所示。  Embodiment 5: Embodiments of the present invention provide a packet transport network device, as shown in FIG. 5.
该设备包括: 接收模块, 用于接收消息; 解析模块, 用于解析所述接收 模块接收到的消息; 处理模块, 用于将来自所述解析模块的所述分组传送网 向入标签, 将来自所述存储模块的第一标签作为所述分组传送网设备的正向 出标签, 根据所述分组传送网设备的正向入标签、 所述分组传送网设备的正 向出标签以及所获得的标签交换路径 LSP的路径信息建立正向交叉连接, 其 中, 所述分组传送网设备为所述 LSP上的分组传送网设备, 所述第一标签为 在所述 LSP路径上与所述分组传送网设备相邻的下游分组传送网设备预分配 给所述分组传送网设备的标签集中的一个未使用的标签, 所述下游分组传送 设备; 所述处理模块, 还用于根据来自存储模块或来自所述解析模块的设备 标识确定具有所述设备标识的分组传送网设备可使用的标签集, 其中, 所述 设备标识为所述 LSP正向方向上与所述分组传送网设备相邻的上游分组传送 网设备的设备标识; 生成模块, 用于生成 Path消息, 所述 Path消息携带有所述 LSP上的所述分组传送网设备下游的各分组传送网设备的 LSP路径信息和所 网设备相邻的下游分组传送网设备的地址; 所述生成模块, 还用于根据所述 设备标识以及所述处理模块确定的标签集生成通告消息, 所述通告消息携带 了所述设备标识、 所述分组传送网设备自身的设备标识以及所述处理模块确 送网设备相邻的上游分组传送网设备; 发送模块, 用于发送所述生成模块生 成的消息; 所述存储模块, 用于存储来自所述解析模块和所述处理模块的信 息。 可选的, 所述处理模块, 还用于将来自所述解析模块的所述分组传送网 向出标签, 将所述分组传送网设备从自身的标签资源池中确定的一个未使用 的标签作为所述分组传送网设备的反向入标签, 利用所述分组传送网设备的 反向出标签、 所述分组传送网设备的反向入标签以及所述 LSP路径信息建立 反向交叉连接; 所述 Path消息还携带有所述所述分组传送网设备的反向入标 签。 The device includes: a receiving module, configured to receive a message; a parsing module, configured to parse the message received by the receiving module; and a processing module, configured to: forward the packet transport network from the parsing module to the label, and the The first label of the storage module serves as a forward outgoing label of the packet transport network device, according to a forward incoming label of the packet transport network device, a forward outgoing label of the packet transport network device, and a obtained label The path information of the switching path LSP establishes a forward cross-connection, wherein the packet transport network device is a packet transport network device on the LSP, and the first label is on the LSP path and the packet transport network device An adjacent downstream packet transport network device is pre-assigned to an unused tag in the set of labels of the packet transport network device, the downstream packet transport The processing module is further configured to determine, according to the device identifier from the storage module or the device identifier from the parsing module, a label set that can be used by the packet transport network device that has the device identifier, where the device identifier is the LSP. a device identifier of the upstream packet transport network device adjacent to the packet transport network device in the forward direction; a generating module, configured to generate a Path message, where the Path message carries the packet transport network device downstream on the LSP The LSP path information of each packet transport network device and the address of the downstream packet transport network device adjacent to the network device; the generating module is further configured to generate an advertisement message according to the device identifier and the label set determined by the processing module The notification message carries the device identifier, the device identifier of the packet transport network device itself, and the upstream packet transport network device that the processing module sends the network device adjacent to; the sending module is configured to send the generating module a generated message, configured to store information from the parsing module and the processing module Optionally, the processing module is further configured to: forward the packet transport network from the parsing module to an outgoing label, and use an unused label determined by the packet transport network device from its own label resource pool. a reverse ingress label of the packet transport network device, establishing a reverse cross connection by using a reverse outgoing label of the packet transport network device, a reverse incoming label of the packet transport network device, and the LSP path information; The Path message also carries a reverse incoming label of the packet transport network device.
具体的, 所述处理模块获取所述分组传送网设备相邻的上游分组传送网 设备的正向出标签和标签交换路径 LSP的路径信息的方法可以是, 通过接收 并解析上游分组传送网设备发送的 Path消息所获得。 可选的, 如果该分组传 送网设备是该 LSP上的中间节点, 则可以根据其相邻下游的各分组传送网设 备的设备标识在其存储模块中存储的相关信息查询其邻居分组传送网设备预 分配给其的标签集, 利用该标签集中的一个未使用的标签以及所接收到的相 邻上游分组传送网设备发送的 Path消息中所携带的入接口和出接口索引以及 正向出标签建立正向交叉连接, 并向相邻下游分组传送网设备发送 Path消息。 所述的标签集中的一个未使用的标签可以根据 Path消息中携带的该 LSP上下 一分组传送网设备的设备标识在所存储的标签集中查找。 可选的, 也可利用 该分组传送网设备建立反向交叉连接, 具体方法如实施例二中间节点建立反 向交叉连接的方法, 不再赘述。  Specifically, the method for the processing module to obtain the path information of the forward outgoing label and the label switched path LSP of the upstream packet transport network device adjacent to the packet transport network device may be, by receiving and parsing, sending, by the upstream packet transport network device The Path message is obtained. Optionally, if the packet transport network device is an intermediate node on the LSP, the neighboring packet transport network device may be queried according to the related information stored in the storage module of the device identifier of each of the adjacent downstream transport network devices. The set of labels pre-assigned to it, using an unused label in the set of labels and the incoming and outgoing interface indexes carried in the Path message sent by the neighboring upstream packet transport network device and the forward outgoing label establishment Forward cross-connect and send Path messages to neighboring downstream packet transport network devices. An unused label in the label set may be searched in the stored label set according to the device identifier of the next LSP transport network device carried in the Path message. Optionally, the method for establishing a reverse cross-connection is also performed by using the packet transport network device. For example, the method for establishing a reverse cross-connection between the intermediate nodes in the second embodiment is not described herein.
处理模块确定所述分组传送网设备相邻的上游分组传送网设备的可使用 的标签集的方法如实施一中标签分配的方法, 不再赘述。 处理模块, 用于根 据来自存储模块或来自解析模块的每个邻居分组传送网设备的设备标识确定 所述每个邻居分组传送网设备可使用的标签集, 其中, 所述分组传送网设备 的邻居分组传送网设备为与所述分组传送网设备相邻的分组传送网设备。 分 组传送网设备的设备标识可以是该设备的设备标识, 也可以是该设备的网际 协议地址, 还可以是一个整数, 总之, 可用于供第一分组传送网设备识别即 可, 也可以是其他可用于供第一分组传送网设备识别的标识。 可选的, 邻居 分组传送网设备的设备标识可以是存储模块所存储的, 如果第一分组传送网 设备不知道各邻居分组传送网设备的设备标识, 也可以通过内部网关协议 ( interior gateway protocol , IGP ) 消息交互网络拓朴信息并通过解析模块解 析相应的消息, 获得邻居分组传送网设备的设备标识。 为邻居分组传送网设 备确定其可使用的标签集是指在本地可使用的标签资源池中为每个设备标识 分配标签集, 标签集中包含至少一个标签。 例如, 可以以邻居分组传送网设 备的设备标识为 key建立相应的表项, 并给这个 key分配标签集。 分配好标签 集后报送给储存模块存储。 可选的, 可以将已被分配的标签或标签集标记为 已分配, 被标记为已分配的标签或标签集只供分配到该标签或标签集的邻居 分组传送网设备使用, 在被释放之前其他邻居分组传送网设备不可使用。 The method for the processing module to determine the available label set of the upstream packet transport network device adjacent to the packet transport network device, such as the method for implementing the label allocation in the first embodiment, is not described again. a processing module, configured to determine, according to a device identifier of each neighbor packet transport network device from the storage module or from the parsing module, a label set usable by each of the neighbor packet transport network devices, where the neighbor of the packet transport network device The packet transport network device is a packet transport network device adjacent to the packet transport network device. The device identifier of the packet transport network device may be the device identifier of the device, or may be the network of the device The protocol address may also be an integer. In short, it may be used for identification by the first packet transport network device, or may be other identifiers that can be used for identification by the first packet transport network device. Optionally, the device identifier of the neighbor packet transport network device may be stored by the storage module. If the first packet transport network device does not know the device identifier of each neighbor packet transport network device, the internal gateway protocol may also be used. IGP) The message interacts with the network topology information and parses the corresponding message through the parsing module to obtain the device identifier of the neighbor packet transport network device. Determining the set of labels that can be used by the neighboring packet transport network device means assigning a label set to each device identifier in a locally available label resource pool, the label set including at least one label. For example, the device identifier of the neighboring packet transport network device may be used as a key to establish a corresponding entry, and the key set is assigned to the key. After the label set is allocated, it is sent to the storage module for storage. Optionally, the tag or tag set that has been assigned may be marked as assigned, and the tag or tag set marked as being allocated is only used by the neighbor packet transport network device assigned to the tag or tag set, before being released. Other neighbor packet transport network devices are not available.
具体的, 生成模块, 其生成的 Path消息携带的路径信息包括但不限于该 分组传送网设备之后在所述 LSP上的各分组传送网设备的设备标识、 出接口 及入接口索引、 本分组传送网设备的正向出标签。 可选的, 如需建立反向交 叉连接时, Path消息还携带反向入标签。 可选的, 生成模块还可用于根据来 自所述存储模块或来自所述处理模块的所述邻居分组传送网设备的设备标识 以及所述处理模块确定的所述邻居分组传送网设备的标签集生成消息, 所述 消息携带了所述分组传送网设备的设备标识、 所述邻居分组传送网设备的设 备标识和所述处理模块分配给所述邻居分组传送网设备的标签集。 该消息可 以是扩展的 IGP协议消息, 也可以是扩展的以太网报文, 也可以是其他消息类 型, 只要其能用于携带目的邻居分组传送网设备的设备标识、 第一分组传送 网设备的设备标识和第一节点分配给目的邻居节点的标签集即可。 该消息的 目的地址可以是单播地址, 发送的内容可以是目的邻居分组传送网设备的设 备标识、 第一分组传送网设备的设备标识和第一分组传送网设备分配给目的 邻居分组传送网设备的标签集, 发送的内容也可以是一个表项, 该表项中包 含了第一分组传送网设备的分组传送网设备标识、 第一分组传送网设备所有 的邻居分组传送网设备的分组传送网设备标识以及第一分组传送网设备分配 给这些邻居分组传送网设备的标签集, 收到消息的邻居分组传送网设备可以 通过自己的分组传送网设备标识在表项中查找分配给自己的标签集。 该消息 也可以是广播地址, 发送的内容可以是上述的包含了第一分组传送网设备的 分组传送网设备标识、 第一分组传送网设备所有的邻居分组传送网设备的分 组传送网设备标识以及第一分组传送网设备分配给这些邻居分组传送网设备 的标签集的表项。  Specifically, the generating module, the path information carried by the generated Path message includes, but is not limited to, a device identifier, an outbound interface, and an inbound interface index of each packet transport network device on the LSP after the packet transport network device, and the packet transmission The forward label of the network device. Optionally, when a reverse cross-connection is established, the Path message also carries a reverse-entry label. Optionally, the generating module is further configured to generate, according to the device identifier of the neighbor packet transmission network device from the storage module or the processing module, and the label set of the neighbor packet transmission network device determined by the processing module. And a message carrying the device identifier of the packet transport network device, the device identifier of the neighbor packet transport network device, and a label set allocated by the processing module to the neighbor packet transport network device. The message may be an extended IGP protocol message, an extended Ethernet packet, or other message type, as long as it can be used to carry the device identifier of the destination neighbor packet transport network device, and the first packet transport network device. The device identifier and the label set assigned by the first node to the destination neighbor node are sufficient. The destination address of the message may be a unicast address, and the content sent may be a device identifier of the destination neighbor packet transport network device, a device identifier of the first packet transport network device, and a first packet transport network device allocated to the destination neighbor packet transport network device. The set of labels may also be an entry, where the entry includes the packet transport network device identifier of the first packet transport network device, and the packet transport network of all neighbor packet transport network devices of the first packet transport network device. The device identifier and the set of labels allocated by the first packet transport network device to the neighbor packet transport network devices, and the neighbor packet transport network device receiving the message may look up the label set assigned to itself in the entry by its own packet transport network device identifier. . The message may also be a broadcast address, and the sent content may be the above-mentioned packet transport network device identifier including the first packet transport network device, the packet transport network device identifier of all neighbor packet transport network devices of the first packet transport network device, and An entry of a label set assigned by the first packet transport network device to the neighbor packet transport network devices.
所述解析模块, 用于解析所述接收模块接收到的来自所述邻居分组传送 网设备的消息, 并获取该消息中携带的所述邻居分组传送网设备的设备标识 和所述邻居分组传送网设备分配给所述分组传送网设备的标签集。 同时, 解 析模块还用于解析接收模块所接收到该分组传送网设备相邻上游设备发送的 Path消息, 并获取其中携带的信息。 可选的, 所述分组传送网设备可以包括 存储模块, 用于存储来自所述解析模块和所述处理模块的信息。 存储的内容 可以包括但不限于邻居分组传送网设备的设备标识、 本分组传送网设备分配 给其邻居分组设备的标签集、 两者之间的对应关系以及标签集中标签的使用 情况。 The parsing module is configured to parse a message received by the receiving module from the neighbor packet transport network device, and obtain a device identifier of the neighbor packet transport network device carried in the message, and the neighbor packet transport network A set of labels assigned by the device to the packet transport network device. At the same time, the parsing module is further configured to parse the sending of the adjacent upstream device of the packet transport network device received by the receiving module Path message, and get the information carried in it. Optionally, the packet transport network device may include a storage module, configured to store information from the parsing module and the processing module. The stored content may include, but is not limited to, a device identifier of a neighbor packet transport network device, a label set allocated by the packet transport network device to its neighbor packet device, a correspondence between the two, and a usage of the label in the label set.
实施例中的 (Packet Transpor t Network, PTN)设备是指釆用包交换技 术传输数据的设备, 包括但不限于标签交换路由器( labe l swi tching router , LSR )、标签交换边缘路由器( labe l swi tching edge router , LER ) 、 交换机、 分组交换设备、 包传送网络设备等。  The Packet Transpor Network (PTN) device in the embodiment refers to a device for transmitting data by using a packet switching technology, including but not limited to a label switching router (LSR) and a label switching edge router (labe l swi). Tching edge router, LER ), switches, packet switching equipment, packet transport network equipment, etc.
本发明实施例所揭示的分组传送网设备, 在建立 LSP前提前分配好 MPLS 网络中分组传送网设备间的标签资源 , 使得建立新 LSP时可直接利用所分配 好的标签而不必进行重新分配 , 能在 Path流程就可以建立好正向交叉连接 , 与现有技术中需要 Path流程和 Resv流程才能建立 LSP正向交叉连接的方法相 比减少了建立 LSP的时间, 缩短了业务接入时间或者业务恢复时间, 提高了 用户体马全。  The packet transport network device disclosed in the embodiment of the present invention allocates the label resource between the packet transport network devices in the MPLS network in advance before establishing the LSP, so that the allocated label can be directly utilized when the new LSP is established without re-allocation. The forward cross-connection can be established in the path process. Compared with the previous method in which the path process and the Resv process are required to establish an LSP forward cross-connection, the time for establishing the LSP is reduced, and the service access time or service is shortened. Recovery time has improved the user's body.
实施例六: 本发明实施例还提供一种网络设备, 如附图 9所示, 包括处理 器, 存储器, 接收器, 发送器, 其中接收器与处理器及存储器耦合, 发送器 与处理器及存储器耦合。 该网络设备可以用于执行如实施例一、 二及三的方 法。 具体的, 接收器用于接收来自该网络设备外部的消息; 存储器用于存储 相应的信息; 发送器用于向该网络设备外部发送消息; 处理器对接收到的消 息进行解析和处理, 并可用于生成相应的消息以供发送器发送, 具体的, 处 理器具有如实施例四、 五中的处理模块、 生成模块和解析模块的功能。 该处理器可以为通用处理器, 如集成电路 IC, 那么其执行的程序存储在 存储器中; 该处理器也可以为专用集成电路, 如 ASIC ( Application Specific Integrated Circuit )或 FPGA ( Field-Programmable gate array ) , 或者其他类 4以 功能器件。  Embodiment 6: Embodiments of the present invention further provide a network device, as shown in FIG. 9, including a processor, a memory, a receiver, and a transmitter, wherein the receiver is coupled to the processor and the memory, the transmitter and the processor, and Memory coupling. The network device can be used to perform the methods as in the first, second and third embodiments. Specifically, the receiver is configured to receive a message from outside the network device; the memory is configured to store corresponding information; the transmitter is configured to send a message to the outside of the network device; the processor parses and processes the received message, and can be used to generate Corresponding messages are sent by the sender. Specifically, the processor has the functions of the processing module, the generating module, and the parsing module in Embodiments 4 and 5. The processor may be a general-purpose processor, such as an integrated circuit IC, and the program executed by the processor may be stored in a memory; the processor may also be an application specific integrated circuit such as an ASIC (Application Specific Integrated Circuit) or an FPGA (Field-Programmable gate array) ), or other class 4 to functional devices.
本发明实施例所揭示的分组传送网设备, 在建立 LSP前提前分配好 MPLS 网络中分组传送网设备间的标签资源 , 使得建立新 LSP时可直接利用所分配 好的标签而不必进行重新分配, 能在 Path流程就可以建立好正向交叉连接, 与现有技术中需要 Path流程和 Resv流程才能建立 LSP正向交叉连接的方法相 比减少了建立 LSP的时间, 缩短了业务接入时间或者业务恢复时间, 提高了 用户体验。  The packet transport network device disclosed in the embodiment of the present invention allocates the label resource between the packet transport network devices in the MPLS network in advance before establishing the LSP, so that the allocated label can be directly utilized when the new LSP is established without re-allocation. The forward cross-connection can be established in the path process. Compared with the previous method in which the path process and the Resv process are required to establish an LSP forward cross-connection, the time for establishing the LSP is reduced, and the service access time or service is shortened. Recovery time improves the user experience.
实施例七: 本发明实施例还提供一种网络系统, 该网络系统包括: 所述 网络系统至少包括第一分组传送网设备、 第二分组传送网设备和第三分组传 送网设备, 所述第一分组传送网设备与第二分组传送网设备通过所述第三分 组传送网设备相连; 从所述第一分组传送网设备到第二分组传送网设备的方 向为正向,从所述第二分组传送网设备到第一分组传送网设备的方向为反向; 所述第一分组传送网设备, 用于根据所述网络系统的网络拓朴计算出一条从 所述第一分组传送网设备到第二分组传送网设备的 LSP,得到所述 LSP的路径 信息,利用第一正向出标签以及所述路径信息建立正向交叉连接,向所述 LSP 正向方向上与所述第一分组传送网设备相邻的下游分组传送网设备发送第一 Path消息,所述第一正向出标签是所述 LSP正向方向上与所述第一分组传送网 设备相邻的下游分组传送网设备预分配给所述第一分组传送网设备的标签集 中的一个未使用的标签; 所述第三分组传送网设备, 用于接收所述 LSP正向 方向上与其相邻的上游分组传送网设备发送的第二 Path消息, 将获取到的所 述第二 Path消息中携带的正向出标签作为所述第三分组传送网设备的正向入 标签, 利用所述第三分组传送网设备获取到的所述第二 Path消息中携带的路 径信息、 所述第三分组传送网设备的正向入标签和所述第三分组传送网设备 的正向出标签建立正向交叉连接, 并向所述 LSP正向方向上与所述第三分组 传送网设备相邻的下游分组传送网设备发送第三 Path消息 , 所述第三分组传 送网设备的正向出标签是所述 LSP正向方向上与所述第三分组传送网设备相 邻的下游分组传送网设备预分配给所述第三分组传送网设备的标签集中的一 个未使用的标签; 所述第二分组传送网设备, 用于接收所述 LSP正向方向上 与其相邻的上游分组传送网设备发送的第四 Path消息, 并将获取到的所述第 四 Path消息中携带的正向出标签作为所述第二分组传送网设备的正向入标 签, 并利用所述第二分组传送网设备的正向入标签和所获取到的所述第四 Path消息中携带的路径信息建立正向交叉连接。 可选的, 所述第一分组传送 网设备还用于在所述第一分组传送网设备的正向交叉连接建立后、 所述第二 分组传送网设备的正向交叉连接建立前, 将正向流量切换到所述 LSP上; 或 者, 用于在接收到所述第二分组传送网设备发送的连续性检查 CCM报文后, 将正向流量切换到所述 LSP上, 所述 CCM报文中携带有能确认所述第二分组 传送网设备已建立正向交叉连接的信息。 可选的, 所述第一分组传送网设备 还用于确定所述第一分组传送网设备本身的标签资源池中的一个未使用的标 签为所述第一分组传送网设备的反向入标签, 利用该第一分组传送网设备的 反向入标签以及所获得的 LSP路径信息建立反向交叉连接, 并将该第一分组 传送网设备的反向入标签携带在所述第一 Path消息中; 所述第三分组传送网 设备还用于将接收到的第二 Path消息中携带的所述第三分组传送网设备相邻 的上游分组传送网设备的反向入标签作为所述第三分组传送网设备的反向出 标签, 确定所述第三分组传送网设备本身的标签资源池中的一个未使用的标 签为所述第三分组传送网设备的反向入标签, 利用该第三分组传送网设备的 反向入标签以及所获得的 LSP路径信息建立反向交叉连接, 并将该第三分组 传送网设备的反向入标签携带在所述第三 Path消息中; 所述第二分组传送网 设备还用于将接收到的第四 Path消息中携带的所述第二分组传送网设备相邻 的上游分组传送网设备的反向入标签作为所述第二分组传送网设备的反向出 标签, 确定所述第二分组传送网设备本身的标签资源池中的一个未使用的标 签为所述第二分组传送网设备的反向入标签, 利用该第二分组传送网设备的 反向入标签以及所获得的 LSP路径信息建立反向交叉连接。 Embodiment 7 The embodiment of the present invention further provides a network system, where the network system includes: the network system includes at least a first packet transport network device, a second packet transport network device, and a third packet transport network device, where a packet transport network device is connected to the second packet transport network device by the third packet transport network device; from the first packet transport network device to the second packet transport network device In the forward direction, the direction from the second packet transport network device to the first packet transport network device is reversed; the first packet transport network device is configured to calculate a network according to the network topology of the network system Obtaining path information of the LSP from the LSP of the first packet transport network device to the second packet transport network device, establishing a forward cross connection by using the first forward outgoing label and the path information, and performing positive forward cross connection to the LSP Transmitting, by the downstream packet transport network device adjacent to the first packet transport network device, a first Path message, where the first forward outgoing label is in the forward direction of the LSP and the first packet transport network a downstream packet transport network device adjacent to the device is pre-assigned to an unused tag in the tag set of the first packet transport network device; the third packet transport network device is configured to receive the LSP in the forward direction thereof a second Path message sent by the adjacent upstream packet transport network device, and the forward outgoing label carried in the second Path message is obtained as a forward label of the third packet transport network device, The path information carried in the second Path message acquired by the third packet transport network device, the forward inbound label of the third packet transport network device, and the forward outgoing label of the third packet transport network device Establishing a forward cross-connection, and sending a third Path message to the downstream packet transport network device adjacent to the third packet transport network device in the forward direction of the LSP, where the third packet transport network device forwards a tag is an unused tag of a tag set pre-assigned to the third packet transport network device by a downstream packet transport network device adjacent to the third packet transport network device in a forward direction of the LSP; a second packet transport network device, configured to receive a fourth Path message sent by the upstream packet transport network device adjacent to the LSP in the forward direction, and obtain the forward outgoing label carried in the obtained fourth Path message As a forward inbound label of the second packet transport network device, and using the forward inbound label of the second packet transport network device and the obtained path information carried in the fourth Path message It is connected to the cross. Optionally, the first packet transport network device is further configured to: after the forward cross-connection connection of the first packet transport network device is established, before the forward cross-connection of the second packet transport network device is established, Switching to the LSP on the LSP; or, after receiving the continuity check CCM message sent by the second packet transport network device, switching the forward traffic to the LSP, the CCM packet There is information that can confirm that the second packet transport network device has established a forward cross-connection. Optionally, the first packet transport network device is further configured to determine that an unused label in the label resource pool of the first packet transport network device itself is a reverse incoming label of the first packet transport network device. Establishing a reverse cross-connection by using the reverse-entry label of the first packet transport network device and the obtained LSP path information, and carrying the reverse-entry label of the first packet transport network device in the first Path message The third packet transport network device is further configured to use, as the third packet, a reverse incoming label of an upstream packet transport network device adjacent to the third packet transport network device that is carried in the received second Path message. a reverse outgoing label of the transport network device, determining that an unused label in the label resource pool of the third packet transport network device itself is a reverse incoming label of the third packet transport network device, using the third packet The reverse incoming label of the transport network device and the obtained LSP path information establish a reverse cross-connection, and carry the reverse incoming label of the third packet transport network device in the third Path message. The second packet transport network device is further configured to use, as the second packet, a reverse incoming label of an upstream packet transport network device adjacent to the second packet transport network device that is carried in the received fourth Path message. a reverse outgoing label of the transport network device, determining an unused standard in the label resource pool of the second packet transport network device itself The reverse incoming label of the second packet transport network device is signed, and the reverse cross-connect is established by using the reverse incoming label of the second packet transport network device and the obtained LSP path information.
具体的, 其中第一分组传送网设备通过第三分组传送网设备与第二分组 传送网设备相连, 可以是直接连接, 也可以是通过其他分组传送网设备间接 地连接。 比如第一分组传送网设备和第三分组传送网设备之间, 第二分组传 送网设备和第三分组传送网设备之间还可以存在分组传送网设备。 可选的, 网设备可以是实施例五中的分组传送网设备。 可选的, 该网络系统中各分组 传送网设备分配标签预的方法可以是为每条现有的 LSP中的各节点预先分配 备用的标签集, 以供其发生故障时使用; 也可以是预先在网络系统中为虚拟 的 LSP分配相应的标签, 当建立 LSP的信令到达时可以直接利用为虚拟 LSP分 配的标签; 也可以时系统中所有的节点都向其邻居节点分配标签。 具体分配 的方法如实施例一中所述的方法 不再,述。|可选 , 第一分组传送网设备 同, 不再赘述。 可选的, 第三分组传送网设备建立正向交叉及反向交叉的方 法可以与实施例三中第三节点的建立的方法相同, 不再赘述。 可选的, 第二 节点的建立的方法相同, 不再赘述。 可选的, 所述 LSP上、第一分组传送网设 备与第一分组传送网设备之间的除第三分组传送网设备外的其他分组传送网 设备,其建立正向交叉及反向交叉的方法与第三分组传送网设备的方法相同。  Specifically, the first packet transport network device is connected to the second packet transport network device by using the third packet transport network device, and may be directly connected, or may be indirectly connected through other packet transport network devices. For example, between the first packet transport network device and the third packet transport network device, there may be a packet transport network device between the second packet transport network device and the third packet transport network device. Optionally, the network device may be the packet transport network device in Embodiment 5. Optionally, the method for allocating the label pre-allocation by each packet transport network device in the network system may be: pre-assigning an alternate label set to each node in each existing LSP for use in the event of a fault; or The virtual LSP is allocated a corresponding label in the network system. When the signaling of establishing the LSP arrives, the label allocated for the virtual LSP may be directly used; or all nodes in the system may assign labels to the neighbor nodes. The method of specific allocation is as described in the first embodiment. |Optional, the first packet transport network device is the same, and will not be described again. Optionally, the method for establishing the forward and reverse crossover of the third packet transport network device may be the same as the method for establishing the third node in the third embodiment, and details are not described herein. Optionally, the method for establishing the second node is the same and will not be described again. Optionally, on the LSP, another packet transport network device other than the third packet transport network device between the first packet transport network device and the first packet transport network device establishes a forward crossover and a reverse crossover. The method is the same as the method of the third packet transport network device.
所述网络系统中的各分组传送网设备通过为每个邻居分组传送网设备分 配所述每个邻居分组传送网设备可使用的标签集, 并向所述每个邻居分组传 送网设备发送消息通告其可使用的标签集, 以实现系统中各分组传送网设备 间的标签预分配, 其中, 一个分组传送网设备的邻居分组传送网设备是指与 该分组传送网设备相邻的分组传送网设备, 所述标签集包括至少一个标签, 发给所述每个邻居分组传送网设备中的任意一个邻居分组传送网设备的消息 携带了该邻居分组传送网设备的设备标识、 发送该消息的分组传送网设备的 设备标识以及发送该消息的分组传送网设备分配给该邻居分组传送网设备的 标签集。 系统中各分组传送网设备分配标签集的方法, 为本发明实施例一中 所介绍的分配方法, 不再赘述。  Each packet transport network device in the network system allocates a set of labels usable by each of the neighbor packet transport network devices for each neighbor packet transport network device, and transmits a message announcement to each of the neighbor packet transport network devices a set of labels that can be used to implement label pre-allocation between each packet transport network device in the system, wherein a neighbor packet transport network device of a packet transport network device refers to a packet transport network device adjacent to the packet transport network device The label set includes at least one label, and a message sent to any one of the neighbor packet transport network devices carries a device identifier of the neighbor packet transport network device, and sends a packet transmission of the message The device identifier of the network device and the set of labels assigned by the packet transport network device that sent the message to the neighbor packet transport network device. The method for allocating a label set by each packet transport network device in the system is the allocation method introduced in the first embodiment of the present invention, and details are not described herein again.
可选的, 所述第一分组传送网设备在所述第二分组传送网设备的正向交 叉连接建立前, 将正向流量切换到所述 LSP上; 或者, 所述第一分组传送网 设备接收到所述第二分组传送网设备发送的连续性检查 CCM报文后, 将正向 流量切换到所述 LSP上, 所述 CCM报文携带了能确认所述第二分组传送网设 备已建立正向交叉连接的信息。 在建立双向 LSP时, 当第二分组传送网设备 建立反向交叉连接后即可切换反向流量到建好的 LSP上。 具体正向流量和反 向流量切换的方法可以是实施例二或实施例三中所介绍的方法, 不再赘述。 本发明实施例所揭示的网络系统, 在建立 LSP前提前分配好 MPLS网络中 分组传送网设备间的标签资源, 使得建立新 LSP时可直接利用所分配好的标 签而不必进行重新分配, 能在 Path流程就可以建立好正向交叉连接, 与现有 技术中需要 Path流程和 Resv流程才能建立 LSP正向交叉连接的方法相比减少 了建立 LSP的时间。 同时, 在 LSP首节点处的分组传送网设备建立了正向交叉 连接后即切换正向流量, 在 LSP末节点处的分组传送网设备建立了反向交叉 连接后即切换反向流量, 能保证新 LSP建立后能第一时间用于承载业务, 缩 短了业务接入时间或者业务恢复时间, 提高了用户体验。 通过以上的实施例的描述, 所属领域的技术人员可以清楚地了解到本发 明可以用硬件实现, 或固件实现, 或它们的组合方式来实现。 当使用软件实 现时, 可以将上述功能存储在计算机可读介质中或作为计算机可读介质上的 一个或多个指令或代码进行传输。 计算机可读介质包括计算机存储介质和通 信介质, 其中通信介质包括便于从一个地方向另一个地方传送计算机程序的 任何介质。 存储介质可以是计算机能够存取的任何可用介质。 以此为例但不 限于: 计算机可读介质可以包括 RAM、 ROM, EEPROM、 CD-ROM或其他 光盘存储、 磁盘存储介质或者其他磁存储设备、 或者能够用于携带或存储具 有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介 质。 此外。 任何连接可以适当的成为计算机可读介质。 例如, 如果软件是使 用同轴电缆、 光纤光缆、 双绞线、 数字用户线 (DSL )或者诸如红外线、 无 线电和微波之类的无线技术从网站、 服务器或者其他远程源传输的, 那么同 轴电缆、 光纤光缆、 双绞线、 DSL或者诸如红外线、 无线和微波之类的无线 技术包括在所属介质的定影中。 如本发明所使用的, 盘 (Disk )和碟(disc ) 包括压缩光碟(CD ) 、 激光碟、 光碟、 数字通用光碟(DVD ) 、 软盘和蓝光 光碟, 其中盘通常磁性的复制数据, 而碟则用激光来光学的复制数据。 上面 的组合也应当包括在计算机可读介质的保护范围之内。 Optionally, the first packet transport network device switches the forward traffic to the LSP before the forward cross-connection of the second packet transport network device is established; or the first packet transport network device After receiving the continuity check CCM message sent by the second packet transport network device, the forward traffic is switched to the LSP, and the CCM packet carries the device that can confirm that the second packet transport network device is established. Positive cross-connect information. When the bidirectional LSP is established, when the second packet transport network device establishes a reverse cross connection, the reverse traffic can be switched to the established LSP. The method for the specific forward traffic and the reverse traffic switching may be the method described in the second embodiment or the third embodiment, and details are not described herein again. The network system disclosed in the embodiment of the present invention allocates label resources between the packet transport network devices in the MPLS network in advance before establishing the LSP, so that the newly allocated LSP can directly utilize the allocated label without re-allocation. The Path process can establish a forward cross-connection. Compared with the prior art method that requires a Path process and a Resv process to establish an LSP forward cross-connection, the time for establishing an LSP is reduced. At the same time, the forward packet traffic is switched after the packet transport network device at the LSP head node establishes the forward cross-connection, and the reverse traffic is switched after the packet transport network device at the end node of the LSP establishes the reverse cross-connection. After the new LSP is established, it can be used to carry services for the first time, which shortens the service access time or service recovery time and improves the user experience. Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented in hardware, firmware implementation, or a combination thereof. When implemented in software, the functions described above may be stored in or transmitted as one or more instructions or code on a computer readable medium. Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another. A storage medium may be any available media that can be accessed by a computer. By way of example and not limitation, computer readable media may comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage media or other magnetic storage device, or can be used for carrying or storing in the form of an instruction or data structure. The desired program code and any other medium that can be accessed by the computer. Also. Any connection may suitably be a computer readable medium. For example, if the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable , fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, wireless, and microwaves are included in the fixing of the associated media. As used in the present invention, a disk and a disc include a compact disc (CD), a laser disc, a compact disc, a digital versatile disc (DVD), a floppy disc, and a Blu-ray disc, wherein the disc is usually magnetically copied, and the disc is The laser is used to optically replicate the data. Combinations of the above should also be included within the scope of the computer readable media.
总之, 以上所述仅为本发明技术方案的较佳实施例而已, 并非用于限定 本发明的保护范围。 凡在本发明的精神和原则之内, 所作的任何修改、 等同 替换、 改进等, 均应包含在本发明的保护范围之内。  In summary, the above description is only a preferred embodiment of the technical solution of the present invention, and is not intended to limit the scope of the present invention. Any modifications, equivalents, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 Claim
1、 一种建立标签交换路径 LSP的方法, 其特征在于:  A method for establishing a label switched path LSP, which is characterized by:
第一节点根据多协议标签交换网络的网络拓朴计算出一条从所述第一节 点到第二节点的 LSP, 得到所述 LSP的 LSP路径信息;  The first node calculates an LSP from the first node to the second node according to the network topology of the multi-protocol label switching network, and obtains LSP path information of the LSP;
所述第一节点利用第一正向出标签以及所述 LSP路径信息中的所述第一 节点的第一正向出接口索引建立正向交叉连接; 其中, 所述第一正向出标签 是所述 LSP上与所述第一节点相邻的下游节点预分配给所述第一节点的标签 集中的一个未使用的标签; 与所述第一节点相邻的下游节点为在所述 LSP的 正向方向上处于所述第一节点下游的相邻节点; 沿所述 LSP从所述第一节点 到所述第二节点为正向, 沿所述 LSP从所述第二节点到所述第一节点为反向; 所述第一节点向与所述第一节点相邻的下游节点发送第一 Path消息, 所 述第一 Path消息中携带有在所述 LSP的正向方向上处于所述第一节点下游的 各节点的 LSP路径信息和所述第一正向出标签,所述第一 Path消息用于在所述 LSP的正向方向上处于所述第一节点下游的各个节点建立正向交叉连接。  The first node establishes a forward cross-connection by using a first forward outgoing label and a first forward outgoing interface index of the first node in the LSP path information, where the first forward outgoing label is a downstream node adjacent to the first node on the LSP is pre-assigned to an unused label in a label set of the first node; a downstream node adjacent to the first node is in the LSP a neighboring node downstream of the first node in a forward direction; a forward direction from the first node to the second node along the LSP, and a second along the LSP from the second node to the first node The first node sends a first Path message to the downstream node that is adjacent to the first node, where the first Path message carries the in the forward direction of the LSP. The LSP path information of each node downstream of the first node and the first forward outgoing label, where the first Path message is used to establish a positive node in each of the nodes downstream of the first node in the forward direction of the LSP. Connect to the cross.
2、 根据权利要求 1所述方法, 其特征在于, 所述方法包括:  2. The method according to claim 1, wherein the method comprises:
所述第一节点在所述第一节点的正向交叉连接建立后、 所述第二节点的 正向交叉连接建立前, 将正向流量切换到所述 LSP上;  The first node switches the forward traffic to the LSP after the forward cross-connection of the first node is established and before the forward cross-connection of the second node is established;
或者,所述第一节点接收到来自所述第二节点的连续性检查 CCM报文后, 将正向流量切换到所述 LSP上, 所述 CCM报文携带有用于确认所述第二节点 已建立正向交叉连接的信息。  Or, after receiving the continuity check CCM message from the second node, the first node switches the forward traffic to the LSP, where the CCM message carries a confirmation that the second node has been used. Establish information about positive cross-connections.
3、 根据权利要求 1或 2所述方法, 其特征在于, 所述方法还包括: 所述第一节点利用所述第一节点的反向入标签和所述 LSP路径信息中的 所述第一节点的反向入接口索引建立反向交叉连接, 所述第一节点的反向入 标签是所述第一节点从本节点的标签资源池中确定的一个未使用的标签; 所述第一 Path消息中还携带有所述第一节点的反向入标签,所述第一 Path 消息还用于在所述 LSP的正向方向上处于所述第一节点下游的各个节点建立 反向交叉连接。  The method according to claim 1 or 2, wherein the method further comprises: the first node utilizing a reverse ingress label of the first node and the first one of the LSP path information The reverse inbound interface of the node establishes a reverse cross-connection, and the reverse ingress label of the first node is an unused label determined by the first node from the label resource pool of the local node; The message further carries a reverse ingress label of the first node, where the first Path message is further configured to establish a reverse cross connection at each node downstream of the first node in a forward direction of the LSP.
4、 根据权利要求 1至 3所述方法, 其特征在于, 还包括:  The method according to any one of claims 1 to 3, further comprising:
在所述第一节点根据多协议标签交换网络的网络拓朴计算出一条从所述 第一节点到所述第二节点的 LSP, 得到所述 LSP的 LSP路径信息前, 所述第一 节点从与所述第一节点相邻的下游节点处获得所述标签集, 所述标签集为与 所述第一节点相邻的下游节点确定的所述第一节点可使用的标签集; 并储存 所获得的标签集。  Calculating, by the first node, an LSP from the first node to the second node according to a network topology of the multi-protocol label switching network, before obtaining the LSP path information of the LSP, the first node Obtaining the label set at a downstream node adjacent to the first node, where the label set is a label set that is available to the first node determined by a downstream node adjacent to the first node; The set of tags obtained.
5、 一种建立标签交换路径 LSP的方法, 所述 LSP为从第一节点到第二节 点的 LSP, 第三节点为所述 LSP上所述第一节点和第二节点之间的中间节点, 沿所述 LSP从所述第一节点到所述第二节点为正向,沿所述 LSP从所述第二节 点到所述第一节点为反向, 其特征在于: 5. A method for establishing a label switched path LSP, where the LSP is from a first node to a second node The LSP of the point, the third node is an intermediate node between the first node and the second node on the LSP, and the LSP is forward from the first node to the second node along the LSP, along the The LSP is reversed from the second node to the first node, and is characterized by:
所述第三节点接收在所述 LSP路径上与其相邻的上游节点发送的第二 Path消息,所述与其相邻的上游节点为在所述 LSP的正向方向上处于所述第三 节点上游的相邻节点;  The third node receives a second Path message sent by an upstream node adjacent to the LSP path, and the upstream node adjacent thereto is in the forward direction of the LSP. Adjacent node
所述第三节点获取其所接收到的第二 Path消息中携带的路径信息和所述 与其相邻的上游节点的第一正向出标签, 将所述 LSP正向方向上与其相邻的 下游节点分配给其的标签集中的一个未使用的标签作为第二正向出标签, 将 所述第一正向出标签作为第二正向入标签, 根据所述第二正向出标签、 所述 第二正向入标签以及所获得的路径信息建立正向交叉连接;  Obtaining, by the third node, the path information carried in the second Path message that is received by the third node, and the first forward outgoing label of the upstream node that is adjacent to the LSP, and the downstream of the LSP in the forward direction An unused label in the label set assigned to the node as the second forward outgoing label, and the first forward outgoing label as the second forward incoming label, according to the second forward outgoing label, Forming a positive cross-connection by the second forward-in label and the obtained path information;
所述第三节点向所述与其相邻的下游节点发送第三 Path消息 , 所述第三 Path消息中携带有在所述 LSP正向方向上处于所述第三节点下游的各节点的 LSP路径信息和所述第二正向出标签, 所述第三 Path消息用于在所述 LSP正向 方向上处于所述第三节点下游的各节点建立正向交叉连接。  The third node sends a third Path message to the downstream node that is adjacent to the third path message, where the third Path message carries an LSP path of each node that is downstream of the third node in the forward direction of the LSP. The information and the second forward outgoing label, the third Path message is used to establish a forward cross connection at each node downstream of the third node in the forward direction of the LSP.
6、 根据权利要求 5所述方法, 其特征在于, 所述方法还包括:  The method according to claim 5, wherein the method further comprises:
所述第三节点获取其所接收到的第二 Path消息中携带的所述与其相邻的 上游节点的第一反向入标签, 将所述第一反向入标签作为所述第三节点的第 二反向出标签, 将所述第三节点从本节点的标签资源池中确定的一个未使用 的标签作为所述第三节点的第二反向入标签, 根据所述第二反向出标签、 所 述第二反向入标签以及所述 LSP路径信息中的所述第三节点的反向入接口索 引和反向出接口索引建立反向交叉连接;  Obtaining, by the third node, a first reverse incoming label of the upstream node that is adjacent to the second Path message that is received by the third node, and using the first reverse incoming label as the third node a second reverse outgoing label, the unused label determined by the third node from the label resource pool of the local node is used as the second reverse incoming label of the third node, according to the second reverse Establishing a reverse cross-connection by the label, the second reverse-entry label, and the reverse-input interface index and the reverse-out-interface index of the third node in the LSP path information;
所述第三 Path消息中还携带有所述第二反向入标签,所述第三 Path消息还 用于所述 LSP正向方向上与所述第三节点相邻的下游各个节点建立反向交叉 连接。  The third Path message further carries the second reverse ingress label, where the third Path message is further used to establish a reverse direction with each downstream node adjacent to the third node in the forward direction of the LSP. Cross connection.
7、 根据权利要求 6所述方法, 其特征在于, 所述方法还包括:  The method according to claim 6, wherein the method further comprises:
在所述第一节点发起建立所述 LSP前,所述第三节点在本节点可使用的标 签资源池中为所述与其相邻的上游节点确定所述与其相邻的上游节点可使用 的标签集, 并向所述与其相邻的上游节点发送消息通告该确定的标签集。  Before the first node initiates the establishment of the LSP, the third node determines, in the label resource pool that can be used by the node, the label that can be used by the upstream node adjacent to the neighboring node And transmitting a message to the upstream node adjacent thereto to announce the determined set of tags.
8、 一种分组传送网设备, 其特征在于, 所述分组传送网设备包括: 处理模块,用于利用其所获得的标签交换路径 LSP路径信息以及来自存储 模块的第一标签建立正向交叉连接, 其中, 所述第一标签为所述 LSP路径上 与所述分组传送网设备相邻的下游分组传送网设备预分配给所述分组传送网 设备的标签集中的一个未使用的标签, 所述下游分组传送网设备为在所述 LSP路径正向方向上处于所述分组传送网设备下游的分组传送网设备; 生成模块, 用于生成 Path消息, 所述 Path消息携带有各个所述下游分组传 送网设备的 LSP路径信息和所述第一标签, 所述 Path消息的目的地址为所述 LSP路径上与所述分组传送网设备相邻的下游分组传送网设备的地址; A packet transport network device, wherein the packet transport network device comprises: a processing module, configured to establish a forward cross connection by using the label switched path LSP path information obtained by the label switching path and the first label from the storage module. The first label is an unused label of a label set pre-assigned to the packet transport network device by a downstream packet transport network device adjacent to the packet transport network device on the LSP path, The downstream packet transport network device is a packet transport network device downstream of the packet transport network device in a forward direction of the LSP path; a generating module, configured to generate a Path message, where the Path message carries the LSP path information of each of the downstream packet transport network devices and the first label, where the destination address of the Path message is the LSP path and the An address of a downstream packet transport network device adjacent to the packet transport network device;
发送模块, 用于发送所述生成模块生成的消息;  a sending module, configured to send a message generated by the generating module;
所述存储模块, 用于存储来自处理模块的信息。  The storage module is configured to store information from the processing module.
9、 根据权利要求 8所述分组传送网设备, 其特征在于, 还包括: 所述处理模块还用于在所述分组传送网设备的正向交叉连接建立后、 所 述 LSP正向方向上的最后一个分组传送网设备的正向交叉连接建立前 , 将正 向流量切换到所述 LSP上;  The packet transmission network device according to claim 8, further comprising: the processing module is further configured to: after the forward cross connection of the packet transport network device is established, in a forward direction of the LSP Before the forward cross-connection of the last packet transport network device is established, the forward traffic is switched to the LSP;
或者, 所述处理模块还用于接收到所述最后一个分组传送网设备发送的 连续性检查 CCM报文后, 将正向流量切换到所述 LSP上, 所述 CCM报文携带 了用于确认所述最后一个分组传送网设备已建立正向交叉连接的信息。  Or the processing module is further configured to: after receiving the continuity check CCM message sent by the last packet transport network device, switch the forward traffic to the LSP, where the CCM packet carries The last packet transport network device has established information for a forward cross-connect.
10、 根据权利要求 9所述分组传送网设备, 其特征在于:  10. The packet transport network device according to claim 9, wherein:
所述处理模块,还用于利用其所获得的 LSP路径信息以及来自存储模块的 第二标签作为反向入标签建立反向交叉连接, 其中, 所述第二标签为所述分 组传送网设备本身的标签资源池中的一个未使用的标签;  The processing module is further configured to establish, by using the LSP path information obtained by the LSP path information and the second label from the storage module, as a reverse incoming label, where the second label is the packet transport network device itself. An unused tag in the tag resource pool;
所述生成模块, 还用于将所述第二标签携带于所述 Path消息中。  The generating module is further configured to carry the second label in the Path message.
11、 一种分组传送网设备, 其特征在于, 所述分组传送网设备包括: 接收模块, 用于接收消息;  A packet transport network device, wherein the packet transport network device comprises: a receiving module, configured to receive a message;
解析模块, 用于解析所述接收模块接收到的消息;  a parsing module, configured to parse the message received by the receiving module;
处理模块, 用于将来自所述解析模块的所述分组传送网设备相邻的上游 分组传送网设备的正向出标签作为所述分组传送网设备的正向入标签, 将来 自所述存储模块的第一标签作为所述分组传送网设备的正向出标签, 根据所 述分组传送网设备的正向入标签、 所述分组传送网设备的正向出标签以及来 自所述解析模块的标签交换路径 LSP的路径信息建立正向交叉连接, 其中, 所述分组传送网设备为所述 LSP上的分组传送网设备, 所述第一标签为在所 述 LSP路径上与所述分组传送网设备相邻的下游分组传送网设备预分配给所 述分组传送网设备的标签集中的一个未使用的标签, 所述下游分组传送网设 备; 还用于根据来自存储模块或来自所述解析模块的设备标识, 确定具有所 述设备标识的分组传送网设备可使用的标签集, 其中, 所述设备标识为所述 LSP正向方向上与所述分组传送网设备相邻的上游分组传送网设备的设备标 识;  a processing module, configured to forward a forward outgoing label of an upstream packet transport network device adjacent to the packet transport network device from the parsing module as a forward incoming label of the packet transport network device, from the storage module a first label as a forward outgoing label of the packet transport network device, a forward incoming label according to the packet transport network device, a forward outgoing label of the packet transport network device, and a label switch from the parsing module The path information of the path LSP establishes a forward cross-connection, wherein the packet transport network device is a packet transport network device on the LSP, and the first label is on the LSP path and the packet transport network device a downstream downstream packet transport network device pre-assigned to an unused tag in the set of labels of the packet transport network device, the downstream packet transport network device; further for identifying a device identifier from the storage module or from the parsing module Determining a set of labels usable by the packet transport network device having the device identifier, where the device identifier is the L a device identifier of an upstream packet transport network device adjacent to the packet transport network device in the forward direction of the SP;
生成模块, 用于生成 Path消息, 所述 Path消息携带有所述 LSP上的所述分 组传送网设备下游的各分组传送网设备的 LSP路径信息和所述第一标签, 所 下游分组传送网设备的地址; 还用于根据所述设备标识以及所述处理模块确 定的标签集生成通告消息, 所述通告消息携带了所述设备标识、 所述分组传 送网设备自身的设备标识以及所述处理模块确定的标签集, 所述通告消息的 目的地址为所述 LSP正向方向上与所述分组传送网设备相邻的上游分组传送 网设备; a generating module, configured to generate a Path message, where the Path message carries the part on the LSP The LSP path information of each packet transport network device downstream of the group transport network device and the first label, the address of the downstream packet transport network device; and the method further configured to generate an advertisement according to the device identifier and the label set determined by the processing module a message, the advertisement message carrying the device identifier, the device identifier of the packet transport network device, and a label set determined by the processing module, where the destination address of the advertisement message is in the forward direction of the LSP An upstream packet transport network device adjacent to the packet transport network device;
发送模块, 用于发送所述生成模块生成的消息;  a sending module, configured to send a message generated by the generating module;
所述存储模块, 用于存储来自所述解析模块和所述处理模块的信息。  The storage module is configured to store information from the parsing module and the processing module.
12、 根据权利要求 11所述分组传送网设备, 其特征在于: 12. The packet transport network device according to claim 11, wherein:
所述处理模块, 还用于将来自所述解析模块的所述分组传送网设备相邻 的上游分组传送网设备的反向入标签作为所述分组传送网设备的反向出标 签, 将所述分组传送网设备从自身的标签资源池中确定的一个未使用的标签 作为所述分组传送网设备的反向入标签, 利用所述分组传送网设备的反向出 标签、 所述分组传送网设备的反向入标签以及所述 LSP路径信息建立反向交 叉连接;  The processing module is further configured to use a reverse inbound label of an upstream packet transport network device adjacent to the packet transport network device from the parsing module as a reverse outgoing label of the packet transport network device, An unused label determined by the packet transport network device from its own label resource pool as a reverse incoming label of the packet transport network device, utilizing a reverse outgoing label of the packet transport network device, the packet transport network device Reverse inbound label and the LSP path information establish a reverse cross connection;
所述生成模块, 还用于将所述分组传送网设备的反向入标签携带在所述 Path消息中。  The generating module is further configured to carry a reverse ingress label of the packet transport network device in the Path message.
13、 一种网络系统, 其特征在于:  13. A network system, characterized by:
所述网络系统至少包括第一分组传送网设备、 第二分组传送网设备和第 三分组传送网设备, 所述第一分组传送网设备与第二分组传送网设备通过所 述第三分组传送网设备相连; 从所述第一分组传送网设备到第二分组传送网 设备的方向为正向, 从所述第二分组传送网设备到第一分组传送网设备的方 向为反向;  The network system includes at least a first packet transport network device, a second packet transport network device, and a third packet transport network device, and the first packet transport network device and the second packet transport network device pass the third packet transport network device The devices are connected; the direction from the first packet transport network device to the second packet transport network device is forward, and the direction from the second packet transport network device to the first packet transport network device is reversed;
所述第一分组传送网设备, 用于根据所述网络系统的网络拓朴计算出一 条从所述第一分组传送网设备到第二分组传送网设备的 LSP,得到所述 LSP的 路径信息, 利用第一正向出标签以及所述路径信息建立正向交叉连接, 向所 述 LSP正向方向上与所述第一分组传送网设备相邻的下游分组传送网设备发 送第一 Path消息,所述第一正向出标签是所述 LSP正向方向上与所述第一分组 传送网设备相邻的下游分组传送网设备预分配给所述第一分组传送网设备的 标签集中的一个未使用的标签;  The first packet transport network device, configured to calculate an LSP from the first packet transport network device to the second packet transport network device according to a network topology of the network system, to obtain path information of the LSP, Transmitting a forward cross-connection by using the first forward outgoing label and the path information, and sending a first Path message to a downstream packet transport network device adjacent to the first packet transport network device in a forward direction of the LSP. The first forward outgoing label is an unused one of the label sets pre-assigned to the first packet transport network device by the downstream packet transport network device adjacent to the first packet transport network device in the forward direction of the LSP. s Mark;
所述第三分组传送网设备 ,用于接收所述 LSP正向方向上与其相邻的上游 分组传送网设备发送的第二 Path消息,将获取到的所述第二 Path消息中携带的 正向出标签作为所述第三分组传送网设备的正向入标签, 利用所述第三分组 传送网设备获取到的所述第二 Path消息中携带的路径信息、 所述第三分组传 送网设备的正向入标签和所述第三分组传送网设备的正向出标签建立正向交 叉连接, 并向所述 LSP正向方向上与所述第三分组传送网设备相邻的下游分 组传送网设备发送第三 Path消息, 所述第三分组传送网设备的正向出标签是 所述 LSP正向方向上与所述第三分组传送网设备相邻的下游分组传送网设备 预分配给所述第三分组传送网设备的标签集中的一个未使用的标签; The third packet transport network device is configured to receive a second Path message sent by the upstream packet transport network device adjacent to the LSP in the forward direction, and the forward direction carried in the acquired second Path message Using the label as the forward inbound label of the third packet transport network device, using the path information carried in the second Path message obtained by the third packet transport network device, and the third packet transport network device Forward forwarding label and forward outgoing label of the third packet transport network device establish forward communication a fork connection, and sending a third Path message to the downstream packet transport network device adjacent to the third packet transport network device in the forward direction of the LSP, where the forward outgoing label of the third packet transport network device is Determining, by the downstream packet transport network device adjacent to the third packet transport network device in the forward direction of the LSP, an unused label in a label set of the third packet transport network device;
所述第二分组传送网设备 ,用于接收所述 LSP正向方向上与其相邻的上游 分组传送网设备发送的第四 Path消息,并将获取到的所述第四 Path消息中携带 的正向出标签作为所述第二分组传送网设备的正向入标签, 并利用所述第二 分组传送网设备的正向入标签和所获取到的所述第四 Path消息中携带的路径 信息建立正向交叉连接。  The second packet transport network device is configured to receive a fourth Path message sent by the upstream packet transport network device adjacent to the LSP in the forward direction of the LSP, and the positive result carried in the acquired fourth Path message The outgoing label is used as the forward inbound label of the second packet transport network device, and is established by using the forward inbound label of the second packet transport network device and the path information carried in the acquired fourth Path message. Forward cross connection.
14、 根据权利要求 13所述网络系统, 其特征在于:  14. The network system of claim 13 wherein:
所述第一分组传送网设备还用于在所述第一分组传送网设备的正向交叉 连接建立后、 所述第二分组传送网设备的正向交叉连接建立前, 将正向流量 切换到所述 LSP上;  The first packet transport network device is further configured to switch the forward traffic to after the forward cross-connection establishment of the first packet transport network device and before the forward cross-connection of the second packet transport network device is established On the LSP;
或者, 用于在接收到所述第二分组传送网设备发送的连续性检查 CCM报 文后, 将正向流量切换到所述 LSP上, 所述 CCM报文中携带有能确认所述第 二分组传送网设备已建立正向交叉连接的信息。  Or, after receiving the continuity check CCM message sent by the second packet transport network device, switching the forward traffic to the LSP, where the CCM packet carries the second The packet transport network device has established information for a positive cross-connect.
15、 根据权利要求 13或 14所述网络系统, 其特征在于:  15. A network system according to claim 13 or 14, characterized in that:
所述第一分组传送网设备还用于确定所述第一分组传送网设备本身的标 签资源池中的一个未使用的标签为所述第一分组传送网设备的反向入标签, 利用该第一分组传送网设备的反向入标签以及所获得的 LSP路径信息建立反 向交叉连接, 并将该第一分组传送网设备的反向入标签携带在所述第一 Path 消息中;  The first packet transport network device is further configured to determine that an unused label in the label resource pool of the first packet transport network device itself is a reverse incoming label of the first packet transport network device, by using the first a reverse ingress label of the packet transport network device and the obtained LSP path information establishes a reverse cross connection, and carries the reverse ingress label of the first packet transport network device in the first Path message;
所述第三分组传送网设备还用于将接收到的第二 Path消息中携带的所述 分组传送网设备的反向出标签, 确定所述第三分组传送网设备本身的标签资 源池中的一个未使用的标签为所述第三分组传送网设备的反向入标签, 利用 该第三分组传送网设备的反向入标签以及所获得的 LSP路径信息建立反向交 叉连接, 并将该第三分组传送网设备的反向入标签携带在所述第三 Path消息 中;  The third packet transport network device is further configured to determine, in the received label packet network device, a reverse outgoing label of the packet transport network device, where the third packet transport network device itself is in a label resource pool. An unused tag is a reverse ingress label of the third packet transport network device, and a reverse cross-link is established by using the reverse incoming label of the third packet transport network device and the obtained LSP path information, and the The reverse ingress label of the three packet transport network device is carried in the third Path message;
所述第二分组传送网设备还用于将接收到的第四 Path消息中携带的所述 分组传送网设备的反向出标签, 确定所述第二分组传送网设备本身的标签资 源池中的一个未使用的标签为所述第二分组传送网设备的反向入标签, 利用 该第二分组传送网设备的反向入标签以及所获得的 LSP路径信息建立反向交 叉连接。  The second packet transport network device is further configured to determine, in the received packet header network device, a reverse outgoing label of the packet transport network device, where the second packet transport network device itself is in a label resource pool. An unused tag is a reverse incoming tag of the second packet transport network device, and a reverse cross-connect is established using the reverse incoming tag of the second packet transport network device and the obtained LSP path information.
PCT/CN2012/082939 2012-10-15 2012-10-15 Method, device and system for establishing label switched path WO2014059570A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201280001485.5A CN103238299B (en) 2012-10-15 2012-10-15 Method, apparatus and system for establishment of label switching paths
PCT/CN2012/082939 WO2014059570A1 (en) 2012-10-15 2012-10-15 Method, device and system for establishing label switched path

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/082939 WO2014059570A1 (en) 2012-10-15 2012-10-15 Method, device and system for establishing label switched path

Publications (1)

Publication Number Publication Date
WO2014059570A1 true WO2014059570A1 (en) 2014-04-24

Family

ID=48885445

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/082939 WO2014059570A1 (en) 2012-10-15 2012-10-15 Method, device and system for establishing label switched path

Country Status (2)

Country Link
CN (1) CN103238299B (en)
WO (1) WO2014059570A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016090950A1 (en) * 2014-12-11 2016-06-16 中兴通讯股份有限公司 Label request message control method and system and upstream and downstream label switching router

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105635213B (en) * 2014-10-31 2019-08-16 广州市动景计算机科技有限公司 A kind of network connection method for down loading and device
CN105634949B (en) * 2014-10-31 2019-01-01 中国移动通信集团公司 A kind of network tab distribution, device, system and the network equipment
CN113132944B (en) * 2021-04-22 2023-10-20 上海银基信息安全技术股份有限公司 Multi-path secure communication method, device, vehicle end, equipment end and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102136996A (en) * 2010-08-10 2011-07-27 华为技术有限公司 Route information updating method, node and system used for rapid rerouting binding
CN102143038A (en) * 2010-06-23 2011-08-03 华为技术有限公司 Service creation method and node
CN102318293A (en) * 2011-07-29 2012-01-11 华为技术有限公司 Method, advice and system of establishing LSP
WO2012103805A1 (en) * 2011-01-31 2012-08-09 Huawei Technologies Co., Ltd. System and method for computing point-to-point label switched path crossing multiple domains

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7373401B1 (en) * 2001-12-31 2008-05-13 Nortel Networks Limited Label switched path OAM wrapper
US8705530B2 (en) * 2010-07-29 2014-04-22 At&T Intellectual Property I, L.P. Methods and apparatus to implement multipoint and replicated communication paths using upstream and recursive downstream label mappings
CN102130829B (en) * 2010-12-28 2013-06-05 华为技术有限公司 Method and device for establishing label switch paths (LSP)
CN102439919B (en) * 2011-09-28 2014-04-16 华为技术有限公司 Method, device and system for building lable switching path

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143038A (en) * 2010-06-23 2011-08-03 华为技术有限公司 Service creation method and node
CN102136996A (en) * 2010-08-10 2011-07-27 华为技术有限公司 Route information updating method, node and system used for rapid rerouting binding
WO2012103805A1 (en) * 2011-01-31 2012-08-09 Huawei Technologies Co., Ltd. System and method for computing point-to-point label switched path crossing multiple domains
CN102318293A (en) * 2011-07-29 2012-01-11 华为技术有限公司 Method, advice and system of establishing LSP

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016090950A1 (en) * 2014-12-11 2016-06-16 中兴通讯股份有限公司 Label request message control method and system and upstream and downstream label switching router
CN105743787A (en) * 2014-12-11 2016-07-06 中兴通讯股份有限公司 Control method and system of label request information, and upstream and downstream label switching routers
CN105743787B (en) * 2014-12-11 2020-09-25 中兴通讯股份有限公司 Control method and system for label request information and up-down cursor label exchange router

Also Published As

Publication number Publication date
CN103238299A (en) 2013-08-07
CN103238299B (en) 2015-04-01

Similar Documents

Publication Publication Date Title
US8289843B2 (en) Service failure recovery method and system
JP2003069619A (en) Route changing method for label transfer network, label switching node, and management node
US7787457B2 (en) Label assigning method, label replacing method and label switching router
US9210075B2 (en) Method and apparatus for managing end-to-end consistency of bi-directional MPLS-TP tunnels via in-band communication channel (G-ACH) protocol
US20100098094A1 (en) Mechanism for Protecting a Pseudo-Wire
WO2013182059A1 (en) Method and device for establishing multi-protocol label switching traffic engineering tunnel
WO2013182066A1 (en) Label distribution method and device
WO2005011302A1 (en) A method of transformation between permanent connection and switched connection in optical network
WO2014180153A1 (en) Method, device and system for establishing label switched path
WO2006102851A1 (en) A method for informing and negotiating the monitor ability of the label switching capability
WO2014059570A1 (en) Method, device and system for establishing label switched path
CN102447611B (en) Method and system for establishing bidirectional point-to-multipoint label switched path as well as method and system for removing bidirectional point-to-multipoint label switched path
JP2014090408A (en) Method and system for providing external optical data packet to destination node of packet optical network
CN101860769B (en) Method, device and system for fusing IP and light
CN101415005B (en) Method, system and equipment for implementing business forwarding
US7848246B2 (en) Method and system for confirming connection of layer-1 label switched path(L1-LSP) in GMPLS-based network
WO2012075914A1 (en) Method and system for implementing point-to-multipoint label switched path protection
WO2013000384A1 (en) Network configuration method, ring network system, and node
CN109005473B (en) Method, device and system for cooperatively selecting path
US8149852B2 (en) Transmission method, system and router based on a border gateway protocol
US7042882B2 (en) Layer-structured path setup method and node apparatus for implementing same
WO2007071114A1 (en) A method for soft rerouting in optical network
KR101418990B1 (en) Device and method for controlling network
CN1889397B (en) Method for establishing business path in intelligent optical network
WO2013000347A1 (en) Method and device for acquiring identifier of maintenance end point

Legal Events

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

Ref document number: 12886611

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12886611

Country of ref document: EP

Kind code of ref document: A1