WO2006017982A1 - A rerouting method in the multi-protocol label switch network - Google Patents

A rerouting method in the multi-protocol label switch network Download PDF

Info

Publication number
WO2006017982A1
WO2006017982A1 PCT/CN2005/001264 CN2005001264W WO2006017982A1 WO 2006017982 A1 WO2006017982 A1 WO 2006017982A1 CN 2005001264 W CN2005001264 W CN 2005001264W WO 2006017982 A1 WO2006017982 A1 WO 2006017982A1
Authority
WO
WIPO (PCT)
Prior art keywords
port
label
nhlfe
fec
backup
Prior art date
Application number
PCT/CN2005/001264
Other languages
French (fr)
Chinese (zh)
Inventor
Bin Li
Guofeng Xue
Yang Cao
Original Assignee
Huawei Technologies Co., Ltd.
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 Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2006017982A1 publication Critical patent/WO2006017982A1/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • 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]
    • H04L45/507Label distribution

Definitions

  • the present invention relates to routing techniques in a Multi-Protocol Label Switching (MPLS) network, and more particularly to a method of re-routing in a Multi-Protocol Label Switching (MPLS) network.
  • MPLS Multi-Protocol Label Switching
  • Muxtiprotocol Label Switch was originally proposed to improve the forwarding speed of routers. Because MPLS is very important in traffic IP (Traffic Engeering) and virtual network (VPN) in current IP networks. Performance in two technologies. MPLS has increasingly become an important standard for expanding the scale of IP networks.
  • MPLS classifies packets, uses tags to identify packets that belong to the same forwarding type, and uses labels in the MPLS network as the sole identifier for determining forwarding operations.
  • FIG. 1 is a schematic diagram of the network structure of MPLS.
  • MPLS can be logically divided into a Label Switching Edge Router (LER) and a Label Switching Router (LSR).
  • the ingress LER provides a mapping of the Forwarding Equivalence Class (FEC) and the label
  • the egress LER provides the label removal function
  • the LSR is the core switch of the MPLS network, which provides Label Swapping and label distribution.
  • the MPLS connection is called a Label Switching Path (LSP).
  • LSP Label Switching Path
  • NHLFE Next Hop Label Forwarding Entry
  • LDP Label Distribution Protocol
  • RSVP-TE Resource reSerVe Protocol Traffic Engineer extension
  • the LDP protocol includes a set of messages and procedures for establishing an LSP between LSRs.
  • the LDP protocol directly maps the routing information of the network layer to the LSP established at the data link layer.
  • An LSP may be established between two adjacent LSRs, or may be through an entire routing area (including multiple LSRs).
  • the label is assigned to specify a label to be bound to an FEC, and distribution refers to the process of notifying upstream or downstream of this binding. Label distribution and distribution are done under the control of the LDP protocol.
  • the LSR allocates FEC-label bindings to other LSRs that explicitly propose label requests. This method is called Downstream On Demand label distribution.
  • the MPLS architecture also allows the LSR to actively allocate FEC-label bindings to other LSRs that do not request a label. This method is called Downstream Unsolicited label distribution.
  • the main difference between the downstream autonomous label advertisement and the downstream on-demand label advertisement method is which LSR is responsible for initiating the label mapping request and the label mapping notification process.
  • Tag control also has an orderly and independent 'control mode' two ways:
  • the LSR can send the label mapping message to the upstream only when the LSR receives the specific FEC-label mapping message of the next hop of the specific FEC or the LSR is the egress node of the LSP. If the LSR is neither an egress node for a particular FEC nor a label binding for a particular FEC, then the LSR must wait downstream before receiving a FEC-tag binding for a particular FEC and returning a specific FEC-label binding message upstream. A specific FEC-tag response message for the LSR.
  • each LSR can advertise the label mapping to its associated LSR at any time. For example, when working in an independent downstream on-demand label distribution control mode, the LSR can immediately respond to the upstream label request message without waiting for the label mapping message from the next hop LSR. When working in an independent downstream autonomous label distribution control mode, the LSR can advertise a specific FEC-tag mapping message to the LSR connected to it as long as the LSR is ready for label forwarding for a particular FEC. The use of independent label control allows the LSR to forward the label mapping message upstream before receiving the downstream label mapping message.
  • Label retention also has two modes: conservative label retention and free label retention: In the downstream autonomous label distribution mode, label mapping messages for all routes can be received from any neighboring LSR. When the conservative label hold mode is used, only the FEC-tag binding for data forwarding is retained; that is, the received FEC-tag binding comes from the next hop LSR of the route.
  • downstream on-demand label distribution mode the LSR only sends a label request message to the FEC next hop LSR. Since downstream on-demand label distribution is mainly used in environments with limited label resources, such as ATM switches with limited cross-connect space, downstream on-demand label distribution usually uses conservative label retention. The advantage of conservative label retention is that only tags for data forwarding are assigned and maintained. This is very important for LSRs with limited label resources, such as ATM switches.
  • One disadvantage of the conservative label hold mode is that if the route changes the next hop LSR for a particular FEC, the LSR must wait for a specific FEC-tag mapping message from the new next hop before the packet can continue to forward the label.
  • the LSR can receive label mapping messages for all routes from any neighboring LSR.
  • the LSR retains all tag mappings regardless of whether the sending LSR is the next hop of the particular FEC-label mapping it advertises.
  • the LSR may choose to send a label request message to all neighboring LSRs for all known address prefixes.
  • Downstream on-demand label distribution is typically used for devices such as ATM switches.
  • the main advantage of the free label hold mode is that the LSR can respond quickly to route changes, mainly because tag mapping already exists.
  • the main disadvantage of the free label retention method is that the currently unneeded label mapping also needs to be assigned and maintained.
  • MPLS fast reroute technology can be used to switch the LSP to the previously established local backup LSP. On, protecting the LSP is not affected by link/node failure.
  • Figure 2 is a schematic diagram of the LSP path of the MPLS fast re-routing in the prior art
  • the primary LSP path is A-B-C-D-E.
  • the path AGC is used to protect the node B and related links
  • the path BGD is used to protect the node C and related links
  • the path CFE is used to protect the node D and related links
  • the path DFE is used to link the link DE Protect. For example, when there is a fault at point C, point B will switch the network traffic to B-G-D, thus reducing data loss.
  • Bypass mode a pre-configured LSP is used to protect multiple LSPs.
  • the link fails the primary tunnel LSP is routed to the pre-configured LSP, and the pre-configured LSP reaches the next hop router for protection purposes.
  • the backup LSP needs to be explicitly specified manually.
  • the configuration workload is large and cannot be deployed on a large scale.
  • the backup LSP also has a fault. There is no protection mechanism. When it fails, fast reroute cannot be performed.
  • the backup LSP cannot pass through the protected link or node. The requirements are too strict. Sometimes, even if the destination is reachable, the backup LSP cannot be established. Summary of the invention
  • the main object of the present invention is to provide a multi-protocol label switching.
  • MPLS A method of rerouting in a network that not only enables fast rerouting after a node failure, but also saves equipment overhead.
  • a multi-protocol label switching method for rerouting in an MPLS network comprising the following steps:
  • each router in the network records FEC-tag mapping information received from all ports, and generates each label forwarding information according to each FEC-tag mapping information;
  • the label forwarding information generated by the FEC-tag mapping information received by the primary port is used as the primary label forwarding information
  • the label forwarding information generated by the FEC-tag mapping information received by the standby port is the standby label forwarding information.
  • the router generates a local label forwarding table according to the primary label forwarding information and the alternate label forwarding information.
  • the router During data transmission, if the router detects that the primary port is faulty, it forwards the information to the alternate port according to the alternate label forwarding information in the local label forwarding table.
  • the label distribution protocol running in the network works as follows: downstream autonomous label distribution, ordered label control, and free label retention.
  • the method for determining the alternate port in step B may be: manually selecting; or excluding the active port according to the principle of the shortest path, and running the link state routing protocol to automatically calculate the backup port.
  • the manual selection may be as follows: Specify an alternate port for the primary port, and all the FECs with the primary port as the next hop, and the alternate ports are designated ports.
  • the automatic calculation can be configured as follows: Configure a port to be automatically protected or configure all ports of a device to be automatically protected.
  • the process of automatically calculating the backup port may be performed after the normal route calculation is completed.
  • the router detects that the backup port is faulty, you can recalculate the backup port and use the obtained alternate label forwarding information corresponding to the new backup port to replace the spare label corresponding to the original backup port in the local label forwarding table. Forward the message.
  • the label forwarding information is: a next hop label forwarding item generated by the router according to the FEC-tag mapping information, NHLFE;
  • the primary label forwarding information is: an NHLFE generated by the router according to the FEC-tag mapping information received by the primary port;
  • the standby label forwarding information is: the standby NHLFE generated by the router according to the FEC-tag mapping information received by the backup port.
  • the local label forwarding table includes: FTN and NHLFE;
  • the FTN generation method in step C is: Cl, mapping the FEC with the primary NHLFE and the standby NHLFE to generate an FTN. If the FEC is configured to protect the port with the primary NHLFE and the port is protected, the step C includes:
  • LER traverses the FTN, finds the NHLFE next hop as the protected port entry, adds a backup NHLFE to the FTN, and backs up the next hop corresponding to the NHLFE as the determined backup port.
  • the local label forwarding table includes: an ILM and an NHLFE; If the port is configured to be protected, the method for generating the ILM in the step C is: Cl, mapping the ingress label with the primary HLFE and the standby NHLFE to generate a LIM. If the port is protected after the ILM is generated, the step C includes: C2, the LSR traverses the ILM, finds the entry whose NHLFE next hop is the protected port, adds a backup NHLFE to the ILM, and backs up the NHLFE. The next hop is the determined backup port.
  • the method for routing data to the alternate port to continue to transmit data may be: replacing the original label in the received data with the label corresponding to the standby port, and sending the data to the standby port according to the label.
  • the method for rerouting in the MPLS network of the present invention protects a specific port by selecting a backup port in an MPLS network environment running a label distribution protocol, which is applicable to The port is all LSPs of the outbound interface. When this port fails, the device can quickly switch to the backup port, and MPLS forwarding is performed through the backup port to reach the destination.
  • the method of the present invention does not need to adopt complex MPLS TE technology, and realizes distributed processing of multiple nodes, and the backup port can simultaneously implement link protection, node protection, and path protection, and does not need to separately establish backups for links, nodes, and paths.
  • LSP which saves equipment overhead.
  • the present invention since the present invention is implemented locally, it does not require the support of adjacent devices, and has good compatibility.
  • Figure 1 is a schematic diagram of a network structure of MPLS
  • FIG. 2 is a schematic diagram of an LSP path of a MPLS fast reroute in the prior art
  • FIG. 3 is a schematic structural diagram of an MPLS network according to a preferred embodiment of the present invention.
  • FIG. 4 is a schematic diagram of label distribution of the embodiment shown in FIG. 3; 5 is a schematic diagram of label forwarding of R1 in the embodiment shown in FIG. 3; FIG. 6 is a schematic diagram of label forwarding of R2 in the embodiment shown in FIG.
  • FIG. 7 is a schematic diagram of rerouting after R2 failure in the embodiment shown in FIG. 3. Mode for carrying out the invention
  • the present invention performs protection backup on a specific port by selecting a backup port in an MPLS network environment running the LDP protocol. It is applicable to all LSPs that use the port as the outbound interface. When the port is faulty, the device can quickly switch to Backup port, MPLS forwarding through the backup port to reach the destination.
  • the method for rerouting in the MPLS network of the present invention mainly includes the following steps:
  • each router in the network records FEC-tag mapping information received from all ports, and generates each label forwarding information according to each FEC-tag mapping information;
  • the label forwarding information generated by the FEC-tag mapping information received by the primary port is used as the primary label forwarding information
  • the label forwarding information generated by the FEC-tag mapping information received by the standby port is the standby label forwarding information.
  • the router generates a local label forwarding table according to the primary label forwarding information and the alternate label forwarding information.
  • the router During the data transmission process, if the router detects that the primary port is faulty, it forwards the information according to the alternate label in the local label forwarding table, and directly routes to the alternate port to continue the number of transmissions. According to.
  • FIG. 3 is a schematic structural diagram of an MPLS network according to a preferred embodiment of the present invention.
  • R1 is the ingress LER
  • R2, R3, and R4 are LSRs
  • R5 is the egress LER.
  • the LDP protocol is first run on the MPLS network, and its working mode is downstream autonomous (DU) label distribution, ordered label control, and free label maintenance.
  • DU autonomous
  • the egress LER does not need to make a label assignment request from the upstream LSR, and actively allocates the FEC-tag mapping, that is, the binding, and sends the message to the upstream. Therefore, in this embodiment, each router receives FEC-tag mapping information sent by multiple next hop ports.
  • the LSR can receive the label mapping message for the FEC from any neighboring LSR, regardless of whether the LSR that sent the message is the route corresponding to the FEC in the specific FEC-label mapping it advertises. One hop, the LSR retains all label mappings. Therefore, the router in this embodiment records all received FEC-tag mapping information.
  • FIG. 4 is a schematic diagram of label allocation of the embodiment shown in FIG. Among them, R1 arrives at R5 with two paths R1-R2-R5 and R1-R3-R4-R5, and R5 initiates a multi-label mapping message upstream. R5, R4, R3, and R2 respectively send FEC-tag mapping information to the previous hop, which contains the label allocated by itself for the previous hop.
  • R2 and R3 respectively assign R1 to R5 tags L21 and L31
  • R5 and R3 respectively assign R2 to R5 tags L52 and L32
  • R4 and R2 respectively assign R3 to R5
  • R1 generates two NHLFEs according to the FEC-tag mapping information received from R2 and R3, and R2 also generates the FEC-tag mapping information received from R5 and R3.
  • Two NHLFEs, R3 also generate two NHLFEs based on the FEC-tag mapping information received from R4 and R2, and R4 generates an NHLFEo based on the FEC-tag mapping information received from R5.
  • the router configures the protected port. For each FEC corresponding route that uses this port as the next hop, the backup port is determined. For an FEC (route), the protected port is the primary port.
  • R1-R2-R5 is the route corresponding to the FEC.
  • R1 and R2 it is determined as the primary port.
  • the NHLFE generated based on the FEC-label mapping information sent by R2 is used as the primary NHLFE, and R3 is determined.
  • the standby port the NHLFE generated according to the FEC-label mapping information sent by R3 is the standby NHLFEo.
  • R5 is determined as the primary port.
  • the NHLFE generated according to the FEC-label mapping information sent by R5 is used as the primary NHLFE, and R3 is determined as the standby.
  • Port the NHLFE generated according to the FEC-tag mapping information sent by R3 is the standby NHLFE.
  • the method of determining the alternate port is to specify one device port of the LSR as another device port, that is, the backup port of the protected port.
  • These two ports can be either physical ports or logical ports, provided that LDP runs on this port.
  • the backup port can be selected manually or automatically.
  • the manual selection method can be as follows: Specify an alternate port for the primary port, and all the FECs with the primary port as the next hop, and the backup ports are designated ports.
  • the manually selected port may not be optimal, or the configuration is heavy, so it is recommended to use the automatic calculation method to configure.
  • the automatic calculation method calculates the backup port according to the principle of the shortest path when specifying the port to be protected.
  • Automatic calculation can be implemented by the device running link state routing protocol, such as OSPF, IS-IS, and the protocol does not need to be extended.
  • the existing protocol can be used.
  • the criteria for automatic calculation are: discovery from local to destination, but not through protected
  • the shortest path of the port is to exclude the information of the protected port in the link state database, that is, to simulate the interruption of the protected port and calculate the shortest path.
  • the backup port can always be found for protection. If the calculated backup port fails later, the new backup port can be recalculated. After the new backup port is calculated, the backup label forwarding information corresponding to the obtained new backup port is used instead of the backup label forwarding information corresponding to the original backup port in the local label forwarding table.
  • the automatic calculation of the backup port is performed after the normal route calculation is completed. In this way, the calculation of the backup port is performed when the CPU is idle, and the ordinary SPF algorithm can be used to meet the requirements. It is not necessary to enhance the CPU capability or adopt a complicated algorithm, and the CPU load is low.
  • the backup port can be manually configured or automatically generated.
  • the configuration workload is reduced compared with manually specifying the backup LSP.
  • the automatic generation does not require manual explicit designation, which further reduces the The amount of work deployed.
  • R1-R5 each maintains a local label forwarding table.
  • each label forwarding table has only one FTN/LIM and one NHLFE, and the HLFE is the FEC sent according to the next hop of the FEC route. - Tag mapping information generated.
  • the next hop of a label forwarding table is a protected port, an alternate NHLFE is added to the table. The standby NHLFE is generated based on the FEC-tag mapping information sent by the backup port.
  • the local label forwarding table maintained by the ingress LER and the intermediate LSR is slightly different, and is described in detail below.
  • its label forwarding table consists of two segments, FTN and NHLFE, which is a mapping of FEC to NHLFE. If the FTN is generated after the port backup configuration, the normal next hop of the FTN is determined by the IGP shortest path to the FEC, and the primary NHLFE is generated according to the FEC-tag mapping information sent by the next hop of the FEC route. When a new FTN is created, the FEC is mapped to the primary NHLFE and the backup NHLFE to generate an FTN. Thus, the FTN, the primary NHLFE, and the alternate NHLFE form a local label forwarding table.
  • the FEC is mapped to the primary NHLFE.
  • the LER traverses the FTN table to find the entry whose NHLFE next hop is the protected port, and adds a backup NHLFE to the FTN. Backup The next hop corresponding to NHLFE is the determined backup port.
  • the FTN, the primary NHLFE, and the standby NHLFE form a local label forwarding table.
  • FIG. 5 is a schematic diagram of label forwarding of R1 in the embodiment shown in FIG.
  • the figure shows the main entries in the R1 tag forwarding table: Destination R5, Primary NHLFE R1-R2, L21, Alternate NHLFE R1-R3, L31.
  • the intermediate LSR its label forwarding table consists of two segments: ILM and NHLFE.
  • the ILM is the mapping table between the incoming label and the NHLFE. Since both inbound and outbound tags are assigned to a specific FEC, an ILM has a unique correspondence with this FEC.
  • the inbound label is mapped to the primary NHLFE and the standby NHLFE to generate UM.
  • LIM, primary NHLFE, and standby NHLFE form a local label forwarding table.
  • the ingress label is also mapped to the primary NHLFE to generate the LIM. Then the LSR traverses the LIM table to find the entry whose NHLFE next hop is the protected port, and adds a backup to the LIM. NHLFE, the next hop corresponding to the backup NHLFE is the determined backup port. In this way, LIM, primary NHLFE, and standby NHLFE form a local label forwarding table.
  • FIG. 6 is a schematic diagram of label forwarding of R2 in the embodiment shown in FIG. Shown in the figure
  • the main entries in the R2 label forwarding table are: Incoming label L21, primary NHLFE R2-R5, L52, standby NHLFE R2-R3, U2.
  • R2 is the penultimate hop.
  • the label L52 assigned by the egress LER R5 belongs to a special control label, that is, R5 does not assign a substantial label to the FEC. R2, but the next hop that the backup port R3 arrives is not the LER. On this port, the FEC needs to be assigned a label. Therefore, R3 is still required to be assigned a label when generating a backup NHLFE.
  • R1-R5 In order to reroute after a device failure, R1-R5 also maintains the working status of each port: Normal/Failed. When it is detected that a port is not working properly, such as a physical link failure or manual operation, the port is closed and its status is updated immediately. During the data forwarding process, the label forwarding table can be used to obtain the next-hop primary port of the data. If the status of the packet is invalid, the switch is switched to the backup port, and the corresponding label is set, that is, the label corresponding to the alternate port is replaced. Receive the original label in the data, and send the data to the alternate port according to the label.
  • the data arrives at the alternate port. Since the tag is assigned by itself, there must be a corresponding tag forwarding table in it, so that the data can continue to be forwarded to the destination.
  • FIG. 7 is a schematic diagram of rerouting after R2 failure in the embodiment shown in FIG. It is assumed that the LSP of R1-R5 is protected, the shortest path is R1-R2-R5, and the backup port is Rl-R3. On R3, the shortest path to R5 is R3-R2-R5 and the backup port is R3-R4. If R2 fails, both R1 and R3 sense this change and switch to the backup port respectively, thus forming a new LSP, R1-R3-R4-R5. As long as R1-R5 maintains reachability, multiple nodes work independently. It can protect any link and node failure on the path, that is, it can realize path protection.
  • the method for implementing MPLS network re-routing by port backup of the present invention can protect the LSP established by the LDP protocol and the CR-LSP established by the RSVP-TE/CR-LDP at the same time.
  • the destination of the CR-LSP is the egress LER device.
  • LDP establishes a label forwarding table to reach this LER. After the backup port is manually configured or automatically calculated, the backup next hop is added to the label forwarding table corresponding to the CR-LSP. The port is the backup port.
  • the LDP peer whose label is the backup port is allocated to the egress LER.
  • the method of the present invention can also protect IP traffic.
  • the primary next hop of the forwarding table uses IP forwarding, and the alternate next hop uses MPLS forwarding.
  • the label forwarding table has only FTN/ILM and a standby NHLFE. .
  • the method for rerouting the MPLS network of the present invention adopts a method of simulating link failure and calculating a backup port in advance, thereby eliminating the route calculation time after the fault occurs and the time for reestablishing the LSP. This speeds up the rerouting.
  • the present invention does not require the use of complex MPLS TE technology, has low equipment overhead, can be implemented locally, does not require support from adjacent devices, and has good compatibility.

Abstract

A rerouting method in the multi-protocol label switch MPLS network comprises, A, operate the label distribution protocol within the network, and each router in the network records the FEC-label mapping information received from all the ports, and generates the respective label forwarding information based on each FEC-label mapping information; B, the router configures the protected port, and specifies the backup port for the route corresponding to each FEC that considers this port as the next hop; for the route corresponding to one of the FECs, the protected port is the main port; C, the router generates the local label forwarding table based on the main label forwarding information and the backup :Label forwarding information; D, during the data transmission, if the router detects the fault of the main port, the data is routed directly to the backup port to continue the data transmission according to the backup forwarding information in the label local label forwarding table. The usage of the invention can save the time for rerouting, and has small device overhead, and this invention also can be achieved locally, and has well compatibility.

Description

一种多协议标签交换网络中重新路由的方法 技术领域  Method for rerouting in multi-protocol label switching network
本发明涉及多协议标签交换 (MPLS ) 网絡中的路由技术, 特别 涉及一种多协议标签交换 ( MPLS ) 网络中重新路由的方法。 发明背景  The present invention relates to routing techniques in a Multi-Protocol Label Switching (MPLS) network, and more particularly to a method of re-routing in a Multi-Protocol Label Switching (MPLS) network. Background of the invention
多协议标签交换 ( Muxtiprotocol Label Switch, MPLS )最初是用 来提高路由器的转发速度而提出一个协议, 由于 MPLS 在流量工程 ( Traffic Engeering ) 和虚拟网络( VPN ) 这一在目前 IP网络中非常 关键的两项技术中表现。 MPLS 已日益成为扩大 IP 网络规模的重要 标准。  Muxtiprotocol Label Switch (MPLS) was originally proposed to improve the forwarding speed of routers. Because MPLS is very important in traffic IP (Traffic Engeering) and virtual network (VPN) in current IP networks. Performance in two technologies. MPLS has increasingly become an important standard for expanding the scale of IP networks.
MPLS协议的关键是引入了标签(Label )的概念。 MPLS对分组 进行分类, 使用标签来标志属于同一转发类型的分组, 在 MPLS网络 中使用标签来作为决定转发操作的唯一标志。  The key to the MPLS protocol is the introduction of the concept of a label. MPLS classifies packets, uses tags to identify packets that belong to the same forwarding type, and uses labels in the MPLS network as the sole identifier for determining forwarding operations.
参见图 1 , 图 1为 MPLS的网络结构示意图。 MPLS在逻辑上可 以分为标签边缘路由器 (Label Switching Edge Router, LER)和标签交 换路由器 (Label Switching Router, LSR)。 其中入口 LER提供等效转 发类 ( Forwarding Equivalence Class, FEC )和标签的映射, 出口 LER 提供标签的移除功能, 而 LSR是 MPLS的网络的核心交换机, 它提 供标签交换 ( Label Swapping )及标签分发功能。  Referring to Figure 1, Figure 1 is a schematic diagram of the network structure of MPLS. MPLS can be logically divided into a Label Switching Edge Router (LER) and a Label Switching Router (LSR). The ingress LER provides a mapping of the Forwarding Equivalence Class (FEC) and the label, and the egress LER provides the label removal function, and the LSR is the core switch of the MPLS network, which provides Label Swapping and label distribution. Features.
MPLS的连接称为标签交换路径( Label Switching Path, LSP ) 。 每个节点依据下一跳标签转发项 ( Next Hop Label Forwarding Entry, NHLFE ) 来转发数据分組, NHLFE包含有下列内容: (1) 数据分组的下一跳 (Next Hop ) The MPLS connection is called a Label Switching Path (LSP). Each node forwards data packets according to Next Hop Label Forwarding Entry (NHLFE). The NHLFE contains the following contents: (1) Next Hop of the data packet (Next Hop)
(2) 转发数据分组时所使用的 DDL封装  (2) DDL package used when forwarding data packets
(3) 转发数据分组时所使用的标签栈的编码方式  (3) How to encode the label stack used when forwarding data packets
(4) 对数据分组标签栈的操作 , 可能的操作有:  (4) For the operation of the data packet label stack, possible operations are:
① 用一个新的标签替代分组标签栈顶的标签  1 Replace the label at the top of the grouped label stack with a new one
② 弹出标签的栈顶  2 pop-up label top
③ 用一个新的标签替代分组标签栈顶的标签, 并压入一个或多 个新标签  3 Replace the label at the top of the group label stack with a new label and push in one or more new labels
数据分组在进入 MPLS时, 首先被归类为不同的 FEC, 然后就是 把这些 FEC同 NHLFE相映射,进而达到利用标签交换来转发数据分 组的目的。 FEC同 NHLFE的映射关系有两种,入标签映射( Incoming Label Map, ILM ) 和 FEC到 NHFLE映射 ( FTN ) , 前者用来转发已 经标签化了的分组 ( Core LSR ),后者用来转发未标签化的分组( Edge LSR, LER ) , 但在转发后, 分组也已经标签化了。  When data packets enter MPLS, they are first classified into different FECs, and then these FECs are mapped to NHLFE, thereby achieving the purpose of forwarding data packets by label switching. There are two mappings between FEC and NHLFE, Incoming Label Map (ILM) and FEC to NHFLE mapping (FTN). The former is used to forward the already labeled packet (Core LSR), and the latter is used to forward the packet. Labeled packets (Edge LSR, LER), but after forwarding, the packets are already tagged.
要建立 LSP, 还必须借助于标签分配协议, 主要有 LDP ( Label Distribution Protocol )和 RSVP-TE ( Resource reSerVe Protocol Traffic Engineer extension ) 。  To establish an LSP, you must also use the label distribution protocol, mainly LDP ( Label Distribution Protocol ) and RSVP-TE ( Resource reSerVe Protocol Traffic Engineer extension ).
LDP协议包括一組用于在 LSR之间建立 LSP的消息和处理过程。 LDP 协议将网络层的路由信息直接映射到建立在数据链路层的 LSP 上。 一个 LSP可能建立在相邻的两个 LSR之间, 也可能通过整个路 由区域(包括多个 LSR ) 。  The LDP protocol includes a set of messages and procedures for establishing an LSP between LSRs. The LDP protocol directly maps the routing information of the network layer to the LSP established at the data link layer. An LSP may be established between two adjacent LSRs, or may be through an entire routing area (including multiple LSRs).
标签的分配是指定一个标签与某个 FEC绑定, 分发则是指将这 一绑定通知上游或者下游的过程。 标签分配与分发都是在 LDP协议 的控制下完成的。  The label is assigned to specify a label to be bound to an FEC, and distribution refers to the process of notifying upstream or downstream of this binding. Label distribution and distribution are done under the control of the LDP protocol.
标签的分配与分发有两种方式: 1、 LSR对于明确提出标签请求的其它 LSR分配 FEC-标签绑定, 这种方式叫下游按需 ( Downstream On Demand ) 标签分发。 There are two ways to assign and distribute labels: 1. The LSR allocates FEC-label bindings to other LSRs that explicitly propose label requests. This method is called Downstream On Demand label distribution.
2、 MPLS体系结构同样允许 LSR对没提出标签请求的其它 LSR 主动分配 FEC-标签绑定, 这种方式叫下游自主 ( Downstream Unsolicited )标签分发。  2. The MPLS architecture also allows the LSR to actively allocate FEC-label bindings to other LSRs that do not request a label. This method is called Downstream Unsolicited label distribution.
下游自主标签通告和下游按需标签通告方式的主要区别在于由哪 一个 LSR负责发起标签映射请求和标签映射的通告进程。  The main difference between the downstream autonomous label advertisement and the downstream on-demand label advertisement method is which LSR is responsible for initiating the label mapping request and the label mapping notification process.
标签控制也有有序的和独立的'控制方式两种方式:  Tag control also has an orderly and independent 'control mode' two ways:
1、 使用有序的 LSP控制时, 只有当 LSR收到特定 FEC下一跳 的特定 FEC-标签映射消息或者 LSR是 LSP的出口节点时, LSR才可 以向上游发送标签映射消息。 如果 LSR既不是特定 FEC的出口节点 也不存在对于特定 FEC的标签绑定, 那么 LSR在对特定 FEC进行 FEC-标签绑定并向上游 返回特定 FEC-标签绑定消息之前, 必须 等待收到下游 LSR的特定 FEC-标签响应消息。  1. When the LSP control is used, the LSR can send the label mapping message to the upstream only when the LSR receives the specific FEC-label mapping message of the next hop of the specific FEC or the LSR is the egress node of the LSP. If the LSR is neither an egress node for a particular FEC nor a label binding for a particular FEC, then the LSR must wait downstream before receiving a FEC-tag binding for a particular FEC and returning a specific FEC-label binding message upstream. A specific FEC-tag response message for the LSR.
2、使用独立的 LSP控制时, 每个 LSR可以在任何时候向和它相 连的 LSR通告标签映射。 例如, 当工作在独立下游按需标签分发控 制方式下, LSR可以立刻对上游的标签请求消息发出响应, 而不需要 等待来自下一跳 LSR的标签映射消息。 当工作在独立下游自主标签 分发控制方式下,只要 LSR准备好对于特定 FEC进行标签转发, LSR 就可以向和它相连的 LSR通告特定 FEC-标签映射消息。 使用独立标 签控制允许 LSR在收到下游的标签映射消息之前, 就可以向上游通 告标签映射消息。  2. When using independent LSP control, each LSR can advertise the label mapping to its associated LSR at any time. For example, when working in an independent downstream on-demand label distribution control mode, the LSR can immediately respond to the upstream label request message without waiting for the label mapping message from the next hop LSR. When working in an independent downstream autonomous label distribution control mode, the LSR can advertise a specific FEC-tag mapping message to the LSR connected to it as long as the LSR is ready for label forwarding for a particular FEC. The use of independent label control allows the LSR to forward the label mapping message upstream before receiving the downstream label mapping message.
LSR使用独立的还是有序的控制方式决定了 LSR在 LSP建立过 程中的行为。作为一个可配置的可选项, LSR可以对这两种控制方式 都提供支持。 标签保持也有保守标签保持方式和自由标签保持两种方式: 在下游自主标签分发方式中, 从任何相邻 LSR都可以收到对于 所有路由的标签映射消息。 当使用保守标签保持方式时, 只有用于数 据转发的 FEC-标签绑定才会被保留; 即接收到的 FEC-标签绑定来自 路由的下一跳 LSR。 Whether the LSR uses independent or ordered control determines the behavior of the LSR during the LSP establishment process. As a configurable option, the LSR can support both control methods. Label retention also has two modes: conservative label retention and free label retention: In the downstream autonomous label distribution mode, label mapping messages for all routes can be received from any neighboring LSR. When the conservative label hold mode is used, only the FEC-tag binding for data forwarding is retained; that is, the received FEC-tag binding comes from the next hop LSR of the route.
在下游按需标签分发方式中, LSR仅仅向 FEC下一跳 LSR发送 标签请求消息。由于下游按需标签分发方式主要用于标签资源有限的 环境, 如具有有限交叉连接空间的 ATM交换机, 因此下游按需标签 分发方式通常会使用保守标签保持方式。保守标签保持方式的优点在 于只有用于数据转发的标签才会被分配和维护。对于标签资源有限的 LSR (如 ATM交换机) 而言, 这一点是非常重要的。 保守标签保持 方式的一个缺点是如果路由改变了特定 FEC的下一跳 LSR, 在分组 能够继续进行标签转发之前, LSR 必须等待来自新的下一跳的特定 FEC-标签映射消息。  In the downstream on-demand label distribution mode, the LSR only sends a label request message to the FEC next hop LSR. Since downstream on-demand label distribution is mainly used in environments with limited label resources, such as ATM switches with limited cross-connect space, downstream on-demand label distribution usually uses conservative label retention. The advantage of conservative label retention is that only tags for data forwarding are assigned and maintained. This is very important for LSRs with limited label resources, such as ATM switches. One disadvantage of the conservative label hold mode is that if the route changes the next hop LSR for a particular FEC, the LSR must wait for a specific FEC-tag mapping message from the new next hop before the packet can continue to forward the label.
在下游自主标签分发方式下, LSR可以从任何相邻 LSR收到对 于所有路由的标签映射消息。 当使用 ¾由标签保持方式时, 不论发送 LSR是否是它所通告的特定 FEC-标签映射的下一跳, LSR对于所有 的标签映射都加以保留。 当使用下游按需标签分发方式时, LSR可以 选择向所有相邻 LSR对于所有已知的地址前缀发送标签请求消息。 下游按需标签分发方式通常用于诸如 ATM交换机等设备。  In the downstream autonomous label distribution mode, the LSR can receive label mapping messages for all routes from any neighboring LSR. When using the tag-holding mode, the LSR retains all tag mappings regardless of whether the sending LSR is the next hop of the particular FEC-label mapping it advertises. When using the downstream on-demand label distribution method, the LSR may choose to send a label request message to all neighboring LSRs for all known address prefixes. Downstream on-demand label distribution is typically used for devices such as ATM switches.
自由标签保持方式的主要优势在于 LSR可以快速对路由变化作 出响应, 这主要是由于标签映射已经存在。 自由标签保持方式的主要 缺点在于当前不需要的标签映射同样也需要被分配和维护。  The main advantage of the free label hold mode is that the LSR can respond quickly to route changes, mainly because tag mapping already exists. The main disadvantage of the free label retention method is that the currently unneeded label mapping also needs to be assigned and maintained.
在 MPLS网络中, 当 LSP上某个节点或者链路发生故障时, 可 以采用 MPLS快速重路由技术将 LSP切换到事先建立的本地备份 LSP 上, 保护 LSP不会受链路 /节点故障的影响。 In an MPLS network, when a node or link on the LSP fails, MPLS fast reroute technology can be used to switch the LSP to the previously established local backup LSP. On, protecting the LSP is not affected by link/node failure.
MPLS快速重路由技术对网络业务的保护如图 2所示, 图 2为图 2为现有技术 MPLS快速重路由的 LSP路径示意图;  The protection of the network service by the MPLS fast re-routing technology is shown in Figure 2. Figure 2 is a schematic diagram of the LSP path of the MPLS fast re-routing in the prior art;
其中, 主 LSP路径为 A-B-C-D-E。 路径 A-G-C用来对节点 B及 相关链路进行保护,路径 B-G-D用来对节点 C及相关链路进行保护, 路径 C-F-E用来对节点 D及相关链路进行保护, 路径 D-F-E用来对 链路 D-E进行保护。 例如在 C点出现故障时, B点会将网络业务流 量切换到 B-G-D上, 从而减少了数据丢失。  The primary LSP path is A-B-C-D-E. The path AGC is used to protect the node B and related links, the path BGD is used to protect the node C and related links, the path CFE is used to protect the node D and related links, and the path DFE is used to link the link DE Protect. For example, when there is a fault at point C, point B will switch the network traffic to B-G-D, thus reducing data loss.
目前快速重路由的方式有两种: Bypass方式和 Detour方式。 目 前主要使用的是 Bypass方式的快速重路由。 在 Bypass方式下, 一个 预先配置的 LSP被用来保护多个 LSP。 当链路失败时, 主隧道 LSP 被路由到预先配置的 LSP上, 通过这个预先配置的 LSP到达下一跳 路由器, 这样达到保护的目的。  Currently, there are two ways to quickly reroute: Bypass and Detour. Currently, the main use of fast rerouting in Bypass mode. In Bypass mode, a pre-configured LSP is used to protect multiple LSPs. When the link fails, the primary tunnel LSP is routed to the pre-configured LSP, and the pre-configured LSP reaches the next hop router for protection purposes.
目前这种 MPLS快速重路由的方法有以下缺点:  At present, this method of MPLS fast rerouting has the following disadvantages:
1、 依赖于复杂的 MPLS TE技术, 设备开销大;  1. Depending on the complex MPLS TE technology, the equipment costs are large;
2、 备份 LSP需手工显式的指定, 配置工作量大, 不能大规模部 署;  2. The backup LSP needs to be explicitly specified manually. The configuration workload is large and cannot be deployed on a large scale.
3、 依赖于 OSPF-TE/ISIS-TE/RSVP-TE/CR-LDP等协议, 需多个 设备配合工作, 兼容性差;  3. Depending on the protocols such as OSPF-TE/ISIS-TE/RSVP-TE/CR-LDP, multiple devices need to work together, and the compatibility is poor.
4、 为进行链路、 节点和路径保护, 需要分别建立备份 LSP, 带 来不必要的开销;  4. To perform link, node, and path protection, you need to establish backup LSPs separately, which brings unnecessary overhead.
5、 备份 LSP也存在故障可能, 没有保护机制, 当它失效时不能 进行快速重路由;  5. The backup LSP also has a fault. There is no protection mechanism. When it fails, fast reroute cannot be performed.
6、要求备份 LSP不能经过被保护的链路、 节点,要求过于严格, 有时候即使目的地可达, 仍不能建立备份 LSP。 发明内容 6. The backup LSP cannot pass through the protected link or node. The requirements are too strict. Sometimes, even if the destination is reachable, the backup LSP cannot be established. Summary of the invention
有鉴于此, 本发明的主要目的在于提供一种多协议标签交换 In view of this, the main object of the present invention is to provide a multi-protocol label switching.
( MPLS ) 网络中重新路由的方法, 该方法不仅能够实现在节点故障 后的快速重新路由, 而且节省设备开销。 (MPLS) A method of rerouting in a network that not only enables fast rerouting after a node failure, but also saves equipment overhead.
为达到上述目的, 本发明的技术方案具体是这样实现的:  In order to achieve the above object, the technical solution of the present invention is specifically implemented as follows:
一种多协议标签交换 MPLS网络中重新路由的方法,该方法包括 以下步骤:  A multi-protocol label switching method for rerouting in an MPLS network, the method comprising the following steps:
A、 在网络中运行标签分配协议, 网络中的每个路由器记录从所有 端口收到的 FEC-标签映射信息, 并根据各个 FEC-标签映射信息分别生 成各个标签转发信息;  A. Running a label distribution protocol in the network, each router in the network records FEC-tag mapping information received from all ports, and generates each label forwarding information according to each FEC-tag mapping information;
B、 配置被保护端口, 对于将这个端口作为下一跳的每个 FEC对应 的路由, 确定备份端口; 对于一个 FEC对应的路由, 被保护端口即为主 用端口;  B. Configure the protected port. For the route corresponding to each FEC of the next hop, determine the backup port. For a route corresponding to FEC, the protected port is the primary port.
主用端口收到的 FEC-标签映射信息生成的标签转发信息为主用标 签转发信息,备用端口收到的 FEC-标签映射信息生成的标签转发信息为 备用标签转发信息;  The label forwarding information generated by the FEC-tag mapping information received by the primary port is used as the primary label forwarding information, and the label forwarding information generated by the FEC-tag mapping information received by the standby port is the standby label forwarding information.
C、 路由器根据主用标签转发信息和备用标签转发信息生成本地标 签转发表;  C. The router generates a local label forwarding table according to the primary label forwarding information and the alternate label forwarding information.
D> 数据传输过程中, 如果路由器检测到主用端口故障, 则按照本 地标签转发表中的备用标签转发信息, 直接路由到备用端口继续传输数 据。  D> During data transmission, if the router detects that the primary port is faulty, it forwards the information to the alternate port according to the alternate label forwarding information in the local label forwarding table.
其中, 所述网络中运行的标签分配协议的工作方式为: 下游自主标 签分发、 有序的标签控制和自由的标签保持。  The label distribution protocol running in the network works as follows: downstream autonomous label distribution, ordered label control, and free label retention.
步骤 B所述确定备用端口的方法可以为: 手工选择; 或按照最短路 径的原则,排除主用端口,运行链路状态路由协议自动计算出备份端口。 所述手工选择的方式可以是: 为主用端口指定一个备用端口, 所有 以主用端口为下一跳的 FEC, 其备用端口均为指定端口。 The method for determining the alternate port in step B may be: manually selecting; or excluding the active port according to the principle of the shortest path, and running the link state routing protocol to automatically calculate the backup port. The manual selection may be as follows: Specify an alternate port for the primary port, and all the FECs with the primary port as the next hop, and the alternate ports are designated ports.
自动计算的配置方式可以为: 配置一个端口被自动保护或配置一个 设备的所有端口被自动保护。  The automatic calculation can be configured as follows: Configure a port to be automatically protected or configure all ports of a device to be automatically protected.
所述自动计算备份端口的过程可以在正常的路由计算完毕后进行。 在自动计算备份端口的情况下,如果路由器检测到备份端口有故障, 则可以重新计算备份端口, 并用获得的新备份端口对应的备用标签转发 信息, 替代本地标签转发表中原备份端口对应的备用标签转发信息。  The process of automatically calculating the backup port may be performed after the normal route calculation is completed. In the case of automatically calculating the backup port, if the router detects that the backup port is faulty, you can recalculate the backup port and use the obtained alternate label forwarding information corresponding to the new backup port to replace the spare label corresponding to the original backup port in the local label forwarding table. Forward the message.
所述的标签转发信息为: 路由器根据 FEC-标签映射信息, 生成的下 一跳标签转发项 NHLFE;  The label forwarding information is: a next hop label forwarding item generated by the router according to the FEC-tag mapping information, NHLFE;
所述的主用标签转发信息为:路由器根据主用端口收到的 FEC-标签 映射信息, 生成的 NHLFE;  The primary label forwarding information is: an NHLFE generated by the router according to the FEC-tag mapping information received by the primary port;
所述的备用标签转发信息为:路由器根据备份端口收到的 FEC-标签 映射信息, 生成的备用 NHLFE。  The standby label forwarding information is: the standby NHLFE generated by the router according to the FEC-tag mapping information received by the backup port.
对于入口边缘路由器 LER, 所述的本地标签转发表包含: FTN和 NHLFE;  For the ingress edge router LER, the local label forwarding table includes: FTN and NHLFE;
如果已经配置了端口被保护, 则步骤 C中 FTN的生成方法为: Cl、 将 FEC同主用 NHLFE、 备用 NHLFE相映射, 生成 FTN。 如果 FEC同主用 NHLFE的映射生成 FTN后 , 配置了端口被保护, 则所述步骤 C中包括:  If the port is configured to be protected, the FTN generation method in step C is: Cl, mapping the FEC with the primary NHLFE and the standby NHLFE to generate an FTN. If the FEC is configured to protect the port with the primary NHLFE and the port is protected, the step C includes:
C2、 LER遍历 FTN, 查找其 NHLFE下一跳为被保护端口的表项, 为 FTN增加一个备份 NHLFE, 备份 NHLFE对应的下一跳为确定的备 份端口。  C2, LER traverses the FTN, finds the NHLFE next hop as the protected port entry, adds a backup NHLFE to the FTN, and backs up the next hop corresponding to the NHLFE as the determined backup port.
对于标签交换路由器 LSR, 所述的本地标签转发表包含: ILM和 NHLFE; 如果已经配置了端口被保护, 则所述步骤 C中生成 ILM的方法为: Cl、 将入标签同主用 HLFE、 备用 NHLFE相映射, 生成 LIM。 如果在 ILM生成后, 配置了端口被保护, 则所述步骤 C中包括: C2、 LSR遍历 ILM, 查找其 NHLFE下一跳为被保护端口的表项 , 为 ILM增加一个备份 NHLFE, 备份 NHLFE对应的下一跳为确定的备 份端口。 For the label switching router LSR, the local label forwarding table includes: an ILM and an NHLFE; If the port is configured to be protected, the method for generating the ILM in the step C is: Cl, mapping the ingress label with the primary HLFE and the standby NHLFE to generate a LIM. If the port is protected after the ILM is generated, the step C includes: C2, the LSR traverses the ILM, finds the entry whose NHLFE next hop is the protected port, adds a backup NHLFE to the ILM, and backs up the NHLFE. The next hop is the determined backup port.
步骤 D所述路由到备用端口继续传输数据的方法可以为: 用备用端 口对应的标签替代接收数据中的原标签, 根据该标签将数据发送给备用 端口。  The method for routing data to the alternate port to continue to transmit data may be: replacing the original label in the received data with the label corresponding to the standby port, and sending the data to the standby port according to the label.
由上述的技术方案可见, 本发明的这种 MPLS网絡中重新路由的方 法,在一个运行标签分配协议的 MPLS网络环境中,通过选择备份端口, 对一个特定端口进行保护备份,它适用于以该端口为出接口的所有 LSP。 当这个端口故障时, 设备能够快速的切换到备份端口 , 通过该备份端口 进行 MPLS转发, 到达目的地。  It can be seen from the above technical solution that the method for rerouting in the MPLS network of the present invention protects a specific port by selecting a backup port in an MPLS network environment running a label distribution protocol, which is applicable to The port is all LSPs of the outbound interface. When this port fails, the device can quickly switch to the backup port, and MPLS forwarding is performed through the backup port to reach the destination.
因此, 本发明方法不需要采用复杂的 MPLS TE技术, 实现了多个 节点分布式处理,备份端口可同时实现链路保护、节点保护和路径保护, 无需分别建立针对链路、 节点和路径的备份 LSP, 节省了设备开销。 而 且, 由于本发明是本地化实现, 无需相邻设备配合支持, 具有很好的兼 容性。 附图简要说明  Therefore, the method of the present invention does not need to adopt complex MPLS TE technology, and realizes distributed processing of multiple nodes, and the backup port can simultaneously implement link protection, node protection, and path protection, and does not need to separately establish backups for links, nodes, and paths. LSP, which saves equipment overhead. Moreover, since the present invention is implemented locally, it does not require the support of adjacent devices, and has good compatibility. BRIEF DESCRIPTION OF THE DRAWINGS
图 1为 MPLS的网络结构示意图;  Figure 1 is a schematic diagram of a network structure of MPLS;
图 2为现有技术 MPLS快速重路由的 LSP路径示意图;  2 is a schematic diagram of an LSP path of a MPLS fast reroute in the prior art;
图 3为本发明一个较佳实施例的 MPLS网絡结构示意图;  3 is a schematic structural diagram of an MPLS network according to a preferred embodiment of the present invention;
图 4为图 3所示实施例标签分配示意图; 图 5为图 3所示实施例中 R1的标签转发示意图; 图 6为图 3所示实施例中 R2的标签转发示意图; 4 is a schematic diagram of label distribution of the embodiment shown in FIG. 3; 5 is a schematic diagram of label forwarding of R1 in the embodiment shown in FIG. 3; FIG. 6 is a schematic diagram of label forwarding of R2 in the embodiment shown in FIG.
图 7为图 3所示实施例中 R2故障后重路由示意图。 实施本发明的方式  FIG. 7 is a schematic diagram of rerouting after R2 failure in the embodiment shown in FIG. 3. Mode for carrying out the invention
为使本发明的目的、 技术方案及优点更加清楚明白 , 以下参照附图 并举实施例, 对本发明进一步详细说明。  The present invention will be further described in detail below with reference to the accompanying drawings.
本发明在一个运行 LDP协议的 MPLS网络环境中,通过选择备份端 口, 对一个特定端口进行保护备份, 它适用于以该端口为出接口的所有 LSPo 当这个端口故障时, 设备能够快速的切换到备份端口, 通过备份 端口进行 MPLS转发, 到达目的地。  The present invention performs protection backup on a specific port by selecting a backup port in an MPLS network environment running the LDP protocol. It is applicable to all LSPs that use the port as the outbound interface. When the port is faulty, the device can quickly switch to Backup port, MPLS forwarding through the backup port to reach the destination.
本发明 MPLS网络中重新路由的方法, 主要包括以下步驟: The method for rerouting in the MPLS network of the present invention mainly includes the following steps:
A、 在网络中运行标签分配协议, 网絡中的每个路由器记录从所有 端口收到的 FEC-标签映射信息, 并根据各个 FEC-标签映射信息分别生 成各个标签转发信息; A. Running a label distribution protocol in the network, each router in the network records FEC-tag mapping information received from all ports, and generates each label forwarding information according to each FEC-tag mapping information;
B、 配置被保护端口, 对于将这个端口作为下一跳的每个 FEC对应 的路由, 确定备份端口; 对于一个 FEC对应的路由, 被保护端口即为主 用端口;  B. Configure the protected port. For the route corresponding to each FEC of the next hop, determine the backup port. For a route corresponding to FEC, the protected port is the primary port.
主用端口收到的 FEC-标签映射信息生成的标签转发信息为主用标 签转发信息,备用端口收到的 FEC-标签映射信息生成的标签转发信息为 备用标签转发信息;  The label forwarding information generated by the FEC-tag mapping information received by the primary port is used as the primary label forwarding information, and the label forwarding information generated by the FEC-tag mapping information received by the standby port is the standby label forwarding information.
C、 路由器根据主用标签转发信息和备用标签转发信息生成本地标 签转发表;  C. The router generates a local label forwarding table according to the primary label forwarding information and the alternate label forwarding information.
D、 数据传输过程中, 如果路由器检测到主用端口故障, 则按照本 地标签转发表中的备用标签转发信息, 直接路由到备用端口继续传输数 据。 D. During the data transmission process, if the router detects that the primary port is faulty, it forwards the information according to the alternate label in the local label forwarding table, and directly routes to the alternate port to continue the number of transmissions. According to.
以下举一个较佳实施例进行说明。  A preferred embodiment will be described below.
参见图 3 ,图 3为本发明一个较佳实施例的 MPLS网络结构示意图。 其中, R1是入口 LER, R2、 R3、 R4是 LSR, R5是出口 LER。  Referring to FIG. 3, FIG. 3 is a schematic structural diagram of an MPLS network according to a preferred embodiment of the present invention. Where R1 is the ingress LER, R2, R3, and R4 are LSRs, and R5 is the egress LER.
本实施例中,首先在 MPLS网络中运行 LDP协议,其工作方式为下 游自主 (DU)标签分发、 有序的标签控制和自由的标签保持。  In this embodiment, the LDP protocol is first run on the MPLS network, and its working mode is downstream autonomous (DU) label distribution, ordered label control, and free label maintenance.
由于在 DU标签分发方式下, 出口 LER无需上游 LSR提出标签分 配请求, 就主动分配 FEC-标签映射, 也就是绑定, 并将这一消息发送到 上游。 所以本实施例中', 每个路由器会接收到多个下一跳端口发送的 FEC-标签映射信息。  In the DU label distribution mode, the egress LER does not need to make a label assignment request from the upstream LSR, and actively allocates the FEC-tag mapping, that is, the binding, and sends the message to the upstream. Therefore, in this embodiment, each router receives FEC-tag mapping information sent by multiple next hop ports.
由于在自由的标签保持方式下, LSR可以从任何相邻 LSR收到对于 FEC的标签映射消息,不论发送这一消息的 LSR是否是它所通告的特定 FEC-标签映射中 FEC所对应路由的下一跳, LSR对于所有的标签映射 都加以保留。所以本实施例中的路由器记录了所有收到的 FEC-标签映射 信息。  Because in the free label hold mode, the LSR can receive the label mapping message for the FEC from any neighboring LSR, regardless of whether the LSR that sent the message is the route corresponding to the FEC in the specific FEC-label mapping it advertises. One hop, the LSR retains all label mappings. Therefore, the router in this embodiment records all received FEC-tag mapping information.
参见图 4, 图 4为图 3所示实施例标签分配示意图。 其中, R1到达 R5有两个路径 R1-R2-R5和 R1-R3-R4-R5 , R5向上游发起多标签映射消 息。 R5、 R4、 R3、 R2分别向其上一跳发送 FEC-标签映射信息, 其中包 含了自身为上一跳分配的标签。  Referring to FIG. 4, FIG. 4 is a schematic diagram of label allocation of the embodiment shown in FIG. Among them, R1 arrives at R5 with two paths R1-R2-R5 and R1-R3-R4-R5, and R5 initiates a multi-label mapping message upstream. R5, R4, R3, and R2 respectively send FEC-tag mapping information to the previous hop, which contains the label allocated by itself for the previous hop.
最终, 如图 4所示: R2和 R3分别给 R1分配了到达 R5的标签 L21 和 L31、 R5和 R3分别给 R2分配了到达 R5的标签 L52和 L32、 R4和 R2分别给 R3分配了到达 R5的标签 L43和 L23、 R5给 R4分配了到达 R5的标签 L54。  Finally, as shown in Figure 4: R2 and R3 respectively assign R1 to R5 tags L21 and L31, R5 and R3 respectively assign R2 to R5 tags L52 and L32, R4 and R2 respectively assign R3 to R5 The labels L43 and L23, R5 assign R4 a label L54 to R5.
本实施例中, R1根据从 R2和 R3收到的 FEC-标签映射信息生成了 两个 NHLFE, R2根据从 R5和 R3收到的 FEC-标签映射信息也生成了 两个 NHLFE, R3根据从 R4和 R2收到的 FEC-标签映射信息也生成了 两个 NHLFE, R4 根据从 R5 收到的 FEC-标签映射信息生成了一个 NHLFEo In this embodiment, R1 generates two NHLFEs according to the FEC-tag mapping information received from R2 and R3, and R2 also generates the FEC-tag mapping information received from R5 and R3. Two NHLFEs, R3 also generate two NHLFEs based on the FEC-tag mapping information received from R4 and R2, and R4 generates an NHLFEo based on the FEC-tag mapping information received from R5.
然后, 路由器配置被保护端口, 对于将这个端口作为下一跳的每个 FEC对应的路由, 确定备份端口; 对于一个 FEC (路由), 被保护端口即 为主用端口。  Then, the router configures the protected port. For each FEC corresponding route that uses this port as the next hop, the backup port is determined. For an FEC (route), the protected port is the primary port.
例如: 对于某个 FEC来说 R1-R2-R5是该 FEC对应的路由, 则对于 Rl , R2 确定为主用端口, 根据 R2发送的 FEC-标签映射信息生成的 NHLFE为主用 NHLFE, R3确定为备用端口,根据 R3发送的 FEC-标签 映射信息生成的 NHLFE为备用 NHLFEo对于 R2, R5确定为主用端口, 根据 R5发送的 FEC-标签映射信息生成的 NHLFE为主用 NHLFE, R3 确定为备用端口, 根据 R3发送的 FEC-标签映射信息生成的 NHLFE为 备用 NHLFE。  For example, for a certain FEC, R1-R2-R5 is the route corresponding to the FEC. For R1 and R2, it is determined as the primary port. The NHLFE generated based on the FEC-label mapping information sent by R2 is used as the primary NHLFE, and R3 is determined. For the standby port, the NHLFE generated according to the FEC-label mapping information sent by R3 is the standby NHLFEo. For R2, R5 is determined as the primary port. The NHLFE generated according to the FEC-label mapping information sent by R5 is used as the primary NHLFE, and R3 is determined as the standby. Port, the NHLFE generated according to the FEC-tag mapping information sent by R3 is the standby NHLFE.
确定备用端口的方法是:指定 LSR的一个设备端口作为另外一个设 备端口即被保护端口的备份端口。 这两个端口既可以是物理端口, 也可 以是逻辑端口, 前提是 LDP运行在这个端口上。  The method of determining the alternate port is to specify one device port of the LSR as another device port, that is, the backup port of the protected port. These two ports can be either physical ports or logical ports, provided that LDP runs on this port.
备份端口可以手工选择,也可以自动计算。手工选择的方式可以是: 为主用端口指定一个备用端口, 所有以主用端口为下一跳的 FEC, 其备 用端口均为指定端口。  The backup port can be selected manually or automatically. The manual selection method can be as follows: Specify an alternate port for the primary port, and all the FECs with the primary port as the next hop, and the backup ports are designated ports.
在复杂的情况下, 手工选择的端口可能不是最佳的, 或者配置工作 量较大, 所以建议使用自动计算的方法来配置。 自动计算的方法在指定 需要被保护的端口的情况下, 按照最短路径的原则, 计算出备份端口。  In complex cases, the manually selected port may not be optimal, or the configuration is heavy, so it is recommended to use the automatic calculation method to configure. The automatic calculation method calculates the backup port according to the principle of the shortest path when specifying the port to be protected.
自动计算可以通过设备运行链路状态路由协议来实现, 如 OSPF、 IS-IS, 协议不需要作扩展, 按照给出自动计算的准则, 采用现有协议即 可实现。 自动计算的准则是: 发现从本地到目的地, 但不通过被保护端 口的最短路径, 方法是排除链路状态数据库中被保护端口的信息, 即模 拟被保护端口中断的情况, 计算出最短路径来。 Automatic calculation can be implemented by the device running link state routing protocol, such as OSPF, IS-IS, and the protocol does not need to be extended. According to the criteria for automatic calculation, the existing protocol can be used. The criteria for automatic calculation are: discovery from local to destination, but not through protected The shortest path of the port is to exclude the information of the protected port in the link state database, that is, to simulate the interruption of the protected port and calculate the shortest path.
自动计算的配置方式有两种: 一是针对端口, 配置它是被保护的; 二是针对设备, 配置其所有端口均被保护。  There are two ways to configure the automatic calculation: one is to protect the port, and the other is to protect all the ports.
在自动计算的情况下, 只要目的地可达, 总能够发现备份端口进行 保护, 如果计算出的备份端口后来出现故障, 可以重新计算新的备份端 口。 计算出新的备份端口后, 用获得的新备份端口对应的备用标签转发 信息, 替代本地标签转发表中原备份端口对应的备用标签转发信息。  In the case of automatic calculation, as long as the destination is reachable, the backup port can always be found for protection. If the calculated backup port fails later, the new backup port can be recalculated. After the new backup port is calculated, the backup label forwarding information corresponding to the obtained new backup port is used instead of the backup label forwarding information corresponding to the original backup port in the local label forwarding table.
由于自动计算会消耗 CPU 资源, 为防止这种计算减緩路由收敛速 度,在正常的路由计算完毕后再进行备份端口的自动计算。这样,在 CPU 空闲的时候进行对备份端口的计算, 使用普通 SPF算法即可满足要求, 无须增强 CPU能力或采用复杂的算法, CPU负荷低。  Since the automatic calculation consumes CPU resources, in order to prevent this calculation from slowing down the route convergence speed, the automatic calculation of the backup port is performed after the normal route calculation is completed. In this way, the calculation of the backup port is performed when the CPU is idle, and the ordinary SPF algorithm can be used to meet the requirements. It is not necessary to enhance the CPU capability or adopt a complicated algorithm, and the CPU load is low.
本实施例中, 备份端口可手工配置或自动生成, 在手工指定备份端 口的情况下, 相比手工指定备份 LSP, 减轻了配置工作量; 自动生成更 是无需手工显式的指定, 进一步减轻了部署的工作量。  In this embodiment, the backup port can be manually configured or automatically generated. When the backup port is manually designated, the configuration workload is reduced compared with manually specifying the backup LSP. The automatic generation does not require manual explicit designation, which further reduces the The amount of work deployed.
本实施例中, R1-R5各自维护本地标签转发表, 在未实施端口备份 时, 各标签转发表仅有一个 FTN/LIM和一个 NHLFE, 其中的 HLFE 是根据 FEC的路由下一跳发送的 FEC-标签映射信息生成的。 在实施端 口备份后, 若某个标签转发表的下一跳是被保护的端口, 则为这个表增 加一个备用 NHLFE, 备用 NHLFE是根据备份端口发送的 FEC-标签映 射信息生成的。  In this embodiment, R1-R5 each maintains a local label forwarding table. When the port backup is not implemented, each label forwarding table has only one FTN/LIM and one NHLFE, and the HLFE is the FEC sent according to the next hop of the FEC route. - Tag mapping information generated. After the port backup is implemented, if the next hop of a label forwarding table is a protected port, an alternate NHLFE is added to the table. The standby NHLFE is generated based on the FEC-tag mapping information sent by the backup port.
对入口 LER和中间 LSR维护的本地标签转发表稍有所区别, 以下 分别进行详细说明。  The local label forwarding table maintained by the ingress LER and the intermediate LSR is slightly different, and is described in detail below.
对入口 LER, 其标签转发表由 FTN和 NHLFE两段组成, FTN是 FEC同 NHLFE的映射。 若 FTN在端口备份配置后生成, FTN的正常下一跳由到达 FEC的 IGP最短路径决定,主用 NHLFE是根据 FEC的路由下一跳发送的 FEC- 标签映射信息生成。新建 FTN时,将 FEC同主用 NHLFE和备份 NHLFE 相映射, 生成 FTN。 这样, FTN、 主用 NHLFE、 备用 NHLFE组成本地 标签转发表。 For the ingress LER, its label forwarding table consists of two segments, FTN and NHLFE, which is a mapping of FEC to NHLFE. If the FTN is generated after the port backup configuration, the normal next hop of the FTN is determined by the IGP shortest path to the FEC, and the primary NHLFE is generated according to the FEC-tag mapping information sent by the next hop of the FEC route. When a new FTN is created, the FEC is mapped to the primary NHLFE and the backup NHLFE to generate an FTN. Thus, the FTN, the primary NHLFE, and the alternate NHLFE form a local label forwarding table.
若 FTN在端口备份配置前生成, FEC同主用 NHLFE相映射, 生 成 FTN后, LER遍历 FTN表, 查找其 NHLFE下一跳为被保护端口的 表项, 为这个 FTN增加一个备份 NHLFE。 备份 NHLFE对应的下一跳 为确定的备份端口。 这样, FTN、 主用 NHLFE、 备用 NHLFE组成本地 标签转发表。  If the FTN is generated before the port backup configuration, the FEC is mapped to the primary NHLFE. After the FTN is generated, the LER traverses the FTN table to find the entry whose NHLFE next hop is the protected port, and adds a backup NHLFE to the FTN. Backup The next hop corresponding to NHLFE is the determined backup port. Thus, the FTN, the primary NHLFE, and the standby NHLFE form a local label forwarding table.
参见图 5 , 图 5为图 3所示实施例中 R1的标签转发示意图。 图中示 出了 R1标签转发表中的主要表项: 目的地 R5、 主用 NHLFE R1-R2, L21、 备用 NHLFE R1-R3, L31。  Referring to FIG. 5, FIG. 5 is a schematic diagram of label forwarding of R1 in the embodiment shown in FIG. The figure shows the main entries in the R1 tag forwarding table: Destination R5, Primary NHLFE R1-R2, L21, Alternate NHLFE R1-R3, L31.
对于中间 LSR, 其标签转发表由 ILM和 NHLFE两段组成, ILM是 入标签同 NHLFE的映射表。 由于入、 出标签都是分配给特定 FEC的, 一个 ILM同这个 FEC有唯一的对应关系。  For the intermediate LSR, its label forwarding table consists of two segments: ILM and NHLFE. The ILM is the mapping table between the incoming label and the NHLFE. Since both inbound and outbound tags are assigned to a specific FEC, an ILM has a unique correspondence with this FEC.
若 ILM在端口备份配置后生成, 则将入标签同主用 NHLFE、 备用 NHLFE相映射, 生成 UM。 这样, LIM、 主用 NHLFE、 备用 NHLFE 组成本地标签转发表。  If the ILM is generated after the port backup configuration, the inbound label is mapped to the primary NHLFE and the standby NHLFE to generate UM. In this way, LIM, primary NHLFE, and standby NHLFE form a local label forwarding table.
若 ILM在端口备份配置前生成, 也先将入标签同主用 NHLFE相映 射, 生成 LIM, 然后 LSR遍历 LIM表, 查找其 NHLFE下一跳为被保 护端口的表项, 为这个 LIM增加一个备份 NHLFE, 备份 NHLFE对应 的下一跳为确定的备份端口。 这样, LIM、 主用 NHLFE、 备用 NHLFE 组成本地标签转发表。  If the ILM is generated before the port backup configuration, the ingress label is also mapped to the primary NHLFE to generate the LIM. Then the LSR traverses the LIM table to find the entry whose NHLFE next hop is the protected port, and adds a backup to the LIM. NHLFE, the next hop corresponding to the backup NHLFE is the determined backup port. In this way, LIM, primary NHLFE, and standby NHLFE form a local label forwarding table.
参见图 6, 图 6为图 3所示实施例中 R2的标签转发示意图。 图中示 出了 R2标签转发表中的主要表项: 入标签 L21、 主用 NHLFE R2-R5, L52、 备用 NHLFE R2-R3, U2。 Referring to FIG. 6, FIG. 6 is a schematic diagram of label forwarding of R2 in the embodiment shown in FIG. Shown in the figure The main entries in the R2 label forwarding table are: Incoming label L21, primary NHLFE R2-R5, L52, standby NHLFE R2-R3, U2.
由图 6可见, 对于路由 R1-R2-R5 , R2是倒数第二跳, 实际上出口 LER R5为其分配的标签 L52属于特殊的控制标签, 也就是说, R5不为 FEC分配实质的标签给 R2,但备份端口 R3到达的下一跳不是 LER, 在 这个端口上还需要为 FEC分配标签。 因此, 在生成备份 NHLFE时仍需 要 R3为其分配标签。  It can be seen from FIG. 6 that for the route R1-R2-R5, R2 is the penultimate hop. In fact, the label L52 assigned by the egress LER R5 belongs to a special control label, that is, R5 does not assign a substantial label to the FEC. R2, but the next hop that the backup port R3 arrives is not the LER. On this port, the FEC needs to be assigned a label. Therefore, R3 is still required to be assigned a label when generating a backup NHLFE.
为了实现设备故障后能够重新路由, R1-R5各自还维护每个端口的 工作状态: 正常 /失效。 当检测到某个端口不能正常工作时, 如物理链路 失效或人工操作将端口关闭, 立即更新其状态。 在数据转发过程中, 查 找标签转发表可以获得数据的下一跳主用端口, 如果检查到其状态为失 效, 则倒换到备份的端口, 并设置对应的标签, 即用备用端口对应的标 签替代接收数据中的原标签, 根据该标签将数据发送给备用端口。  In order to reroute after a device failure, R1-R5 also maintains the working status of each port: Normal/Failed. When it is detected that a port is not working properly, such as a physical link failure or manual operation, the port is closed and its status is updated immediately. During the data forwarding process, the label forwarding table can be used to obtain the next-hop primary port of the data. If the status of the packet is invalid, the switch is switched to the backup port, and the corresponding label is set, that is, the label corresponding to the alternate port is replaced. Receive the original label in the data, and send the data to the alternate port according to the label.
数据到达备用端口, 由于标签是它自己分配的, 因此其中一定有对 应的标签转发表, 从而可以继续转发数据到目的地。  The data arrives at the alternate port. Since the tag is assigned by itself, there must be a corresponding tag forwarding table in it, so that the data can continue to be forwarded to the destination.
参见图 7,图 7为图 3所示实施例中 R2故障后重路由示意图。其中, 假设对 R1-R5 的 LSP进行保护, 最短路径是 R1-R2-R5, 备份端口是 Rl-R3。在 R3上,到达 R5的最短路径是 R3-R2-R5 ,备份端口是 R3-R4。 如果 R2失效, R1和 R3均感知这一变化, 分别切换到备份端口, 从而 形成新的 LSP, R1-R3-R4-R5. 只要 R1-R5间保持可达性, 多个节点各 自独立工作, 就能对路径上任意链路、 节点失效作出保护, 即能够实现 路径保护。  Referring to FIG. 7, FIG. 7 is a schematic diagram of rerouting after R2 failure in the embodiment shown in FIG. It is assumed that the LSP of R1-R5 is protected, the shortest path is R1-R2-R5, and the backup port is Rl-R3. On R3, the shortest path to R5 is R3-R2-R5 and the backup port is R3-R4. If R2 fails, both R1 and R3 sense this change and switch to the backup port respectively, thus forming a new LSP, R1-R3-R4-R5. As long as R1-R5 maintains reachability, multiple nodes work independently. It can protect any link and node failure on the path, that is, it can realize path protection.
可见, 如果在网络中多个节点均采用本发明, 则既可以做到端口保 护, 也可以同时做到节点和路径保护, 无需分别建立针对链路、 节点和 路径的备份 LSP, 也无需新增功能。 本发明的这种通过端口备份实现 MPLS网络重新路由的方法, 既可 以对由 LDP 协议建立的 LSP 进行保护, 也可以同时对由 RSVP-TE/CR-LDP建立的 CR-LSP进行保护。 It can be seen that if multiple nodes are used in the network, the port protection can be implemented, and the node and path protection can be performed at the same time. It is not necessary to separately establish backup LSPs for links, nodes and paths, and no need to add new Features. The method for implementing MPLS network re-routing by port backup of the present invention can protect the LSP established by the LDP protocol and the CR-LSP established by the RSVP-TE/CR-LDP at the same time.
CR-LSP的目的地是出口 LER设备, LDP为到达这个 LER, 建立了 标签转发表。 在手工指定或自动计算出备份端口后, 为 CR-LSP对应的 标签转发表增加一个备份下一跳, 端口是备份端口, 标签是备份端口相 邻的 LDP对等体为出口 LER分配的。  The destination of the CR-LSP is the egress LER device. LDP establishes a label forwarding table to reach this LER. After the backup port is manually configured or automatically calculated, the backup next hop is added to the label forwarding table corresponding to the CR-LSP. The port is the backup port. The LDP peer whose label is the backup port is allocated to the egress LER.
本发明方法也可以为 IP流量进行保护, 这时候,转发表的主用下一 跳采用 IP转发, 而备用下一跳采用 MPLS转发, 这时的标签转发表只 有 FTN/ILM和一个备用的 NHLFE。  The method of the present invention can also protect IP traffic. At this time, the primary next hop of the forwarding table uses IP forwarding, and the alternate next hop uses MPLS forwarding. At this time, the label forwarding table has only FTN/ILM and a standby NHLFE. .
由上述的实施例可见, 本发明的这种 MPLS网络重新路由的方法, 采用了模拟链路故障、 事先计算备份端口的方式, 省去了故障发生后的 路由计算时间以及 LSP重新建立的时间, 因此加快了重新路由的速度。 而且本发明不需要釆用复杂的 MPLS TE技术, 设备开销小, 能够本地 化实现, 无需相邻设备配合支持, 兼容性好。  It can be seen from the foregoing embodiments that the method for rerouting the MPLS network of the present invention adopts a method of simulating link failure and calculating a backup port in advance, thereby eliminating the route calculation time after the fault occurs and the time for reestablishing the LSP. This speeds up the rerouting. Moreover, the present invention does not require the use of complex MPLS TE technology, has low equipment overhead, can be implemented locally, does not require support from adjacent devices, and has good compatibility.

Claims

权利要求书 Claim
1、 一种多协议标签交换 MPLS 网络中重新路由的方法, 其特征在 于, 该方法包括以下步骤:  A multi-protocol label switching method for rerouting in an MPLS network, characterized in that the method comprises the following steps:
A、 在网络中运行标签分配协议 , 网络中的每个路由器记录从所有 端口收到的 FEC-标签映射信息, 并根据各个 FEC-标签映射信息分别生 成各个标签转发信息;  A. Running a label distribution protocol in the network, each router in the network records FEC-tag mapping information received from all ports, and generates each label forwarding information according to each FEC-tag mapping information;
B、路由器配置被保护端口,对于将这个端口作为下一跳的每个 FEC 对应的路由, 确定备份端口; 对于一个 FEC对应的路由 , 被保护端口即 为主用端口;  B. The router is configured with a protected port. For each FEC corresponding route that uses this port as the next hop, the backup port is determined. For a route corresponding to the FEC, the protected port is the primary port.
主用端口收到的 FEC-标签映射信息生成的标签转发信息为主用标 签转发信息,备用端口收到的 FEC-标签映射信息生成的标签转发信息为 备用标签转发信息;  The label forwarding information generated by the FEC-tag mapping information received by the primary port is used as the primary label forwarding information, and the label forwarding information generated by the FEC-tag mapping information received by the standby port is the standby label forwarding information.
C、 路由器根据主用标签转发信息和备用标签转发信息生成本地标 签转发表;  C. The router generates a local label forwarding table according to the primary label forwarding information and the alternate label forwarding information.
D、 数据传输过程中, 如果路由器检测到主用端口故障, 则按照本 地标签转发表中的备用标签转发信息, 直接路由到备用端口继续传输数 据。  D. During the data transmission process, if the router detects that the primary port is faulty, it forwards the information according to the alternate label in the local label forwarding table, and directly routes to the alternate port to continue transmitting data.
2、如权利要求 1所述的方法, 其特征在于, 所述网絡中运行的标签 分配协议的工作方式为: 下游自主标签分发、 有序的标签控制和自由的 标签保持。  The method of claim 1, wherein the label allocation protocol operating in the network operates in the following manner: downstream autonomous label distribution, ordered label control, and free label retention.
3、 如权利要求 1所述的方法, 其特征在于, 步骤 B所述确定备用 端口的方法为: 手工选择; 或按照最短路径的原则, 排除主用端口, 运 行链路状态路由协议自动计算出备份端口。  3. The method according to claim 1, wherein the method for determining the alternate port in step B is: manually selecting; or excluding the primary port according to the principle of the shortest path, and automatically calculating the running link state routing protocol. Backup port.
4、 如权利要求 3所述的方法, 其特征在于, 所述手工选择的方式: 为主用端口指定一个备用端口 , 所有以主用端口为下一跳的 FEC, 其备 用端口均为指定端口。 4. The method of claim 3, wherein the manner of manual selection is: Specify an alternate port for the primary port. All the FECs with the primary port as the next hop are the designated ports.
5、如权利要求 3所述的方法,其特征在于, 自动计算的配置方式为: 配置一个端口被自动保护或配置一个设备的所有端口被自动保护。  5. The method of claim 3, wherein the automatically calculated configuration mode is: configuring a port to be automatically protected or configuring all ports of a device to be automatically protected.
6、如权利要求 3或 5所述的方法, 其特征在于: 所述自动计算备份 端口的过程在正常的路由计算完毕后进行。  The method according to claim 3 or 5, wherein the process of automatically calculating the backup port is performed after the normal route calculation is completed.
7、如权利要求 3或 5所述的方法, 其特征在于: 在自动计算备份端 口的情况下,如果路由器检测到备份端口有故障,则重新计算备份端口, 并用获得的新备份端口对应的备用标签转发信息 , 替代本地标签转发表 中原备份端口对应的备用标签转发信息。  The method according to claim 3 or 5, wherein: in the case of automatically calculating the backup port, if the router detects that the backup port is faulty, recalculating the backup port and using the obtained new backup port for the backup Label forwarding information, which replaces the alternate label forwarding information corresponding to the original backup port in the local label forwarding table.
8、如权利要求 1所述的方法,其特征在于,所述的标签转发信息为: 路由器根据 FEC-标签映射信息, 生成的下一跳标签转发项 NHLFE; 所述的主用标签转发信息为:路由器 居主用端口收到的 FEC-标签 映射信息, 生成的 HLFE;  The method of claim 1, wherein the label forwarding information is: a next hop label forwarding entry NHLFE generated by the router according to the FEC-tag mapping information; and the primary label forwarding information is : The FEC-tag mapping information received by the router host port, the generated HLFE;
所述的备用标签转发信息为:路由器根据备份端口收到的 FEC-标签 映射信息, 生成的备用 NHLFE。  The standby label forwarding information is: the standby NHLFE generated by the router according to the FEC-tag mapping information received by the backup port.
9、 如权利要求 8 所述的方法, 其特征在于, 对于入口边缘路由器 LER,所述的本地标签转发表包含: FTN(FEC同 NHLFE映射)和 NHLFE; 如果已经配置了端口被保护, 则步骤 C中 FTN的生成方法为: Cl、 将 FEC同主用 NHLFE、 备用 NHLFE相映射, 生成 FTN。  9. The method according to claim 8, wherein, for the ingress edge router LER, the local label forwarding table includes: FTN (FEC and NHLFE mapping) and NHLFE; if the port has been configured to be protected, the step The method for generating the FTN in C is: Cl, mapping the FEC with the primary NHLFE and the standby NHLFE to generate an FTN.
10、 如权利要求 8所述的方法, 其特征在于, 对于 LER, 所述的本 地标签转发表包含: FTN和 NHLFE;  The method according to claim 8, wherein, for the LER, the local label forwarding table includes: FTN and NHLFE;
如果 FEC同主用 NHLFE的映射生成 FTN后, 配置了端口被保护, 则所述步骤 C中包括:  If the port is protected after the FEC is configured with the primary NHLFE to generate the FTN, the step C includes:
C2、 LER遍历 FTN表,查找其 NHLFE下一跳为被保护端口的表项, 为这个 FTN增加一个备份 NHLFE, 备份 NHLFE对应的下一跳为确定 的备份端口。 C2, the LER traverses the FTN table, and finds the entry whose NHLFE next hop is the protected port. Add a backup NHLFE for this FTN, and back up the next hop corresponding to the NHLFE to the determined backup port.
11、 如权利要求 8所述的方法, 其特征在于, 对于标签交换路由器 LSR, 所述的本地标签转发表包含: ILM (入标签同出标签相映射)和 NHLFE;  The method according to claim 8, wherein, for the label switching router LSR, the local label forwarding table includes: an ILM (incoming label and out label mapping) and an NHLFE;
如果已经配置了端口被保护, 则所述步骤 C中生成 ILM的方法为: Cl、 将入标签同主用 NHLFE、 备用 NHLFE相映射, 生成 LIM。  If the port is configured to be protected, the method for generating the ILM in the step C is: Cl, mapping the inbound label with the primary NHLFE and the standby NHLFE to generate a LIM.
12、 如权利要求 8所述的方法, 其特征在于, 对于 LSR, 所述的本 地标签转发表包含: ILM和 NHLFE;  The method according to claim 8, wherein, for the LSR, the local label forwarding table includes: an ILM and an NHLFE;
如果在 ILM生成后, 配置了端口被保护, 则所述步骤 C中包括: C2、 LSR遍历 ILM表,查找其 NHLFE下一跳为被保护端口的表项, 为这个 ILM增加一个备份 NHLFE, 备份 NHLFE对应的下一跳为确定 的备份端口。  If the port is protected after the ILM is generated, the step C includes: C2, the LSR traverses the ILM table, searches for the entry of the NHLFE next hop as the protected port, and adds a backup NHLFE to the ILM. The next hop corresponding to the NHLFE is the determined backup port.
13、 如权利要求 1所述的方法, 其特征在于, 步骤 D所述路由到备 用端口继续传输数据的方法为: 用备用端口对应的标签替代接收数据中 的原标签, 根据该标签将数据发送给备用端口。  The method of claim 1, wherein the method for routing data to the alternate port to continue to transmit data is: replacing the original label in the received data with a label corresponding to the alternate port, and sending the data according to the label Give the alternate port.
PCT/CN2005/001264 2004-08-17 2005-08-15 A rerouting method in the multi-protocol label switch network WO2006017982A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200410058216.X 2004-08-17
CNB200410058216XA CN100518135C (en) 2004-08-17 2004-08-17 Method for renewing route in multi protocol label exchanging network

Publications (1)

Publication Number Publication Date
WO2006017982A1 true WO2006017982A1 (en) 2006-02-23

Family

ID=35907225

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2005/001264 WO2006017982A1 (en) 2004-08-17 2005-08-15 A rerouting method in the multi-protocol label switch network

Country Status (2)

Country Link
CN (1) CN100518135C (en)
WO (1) WO2006017982A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102244602A (en) * 2010-05-11 2011-11-16 华为技术有限公司 Method, device and system for forwarding data under protocol independent multicast dual join
US8565098B2 (en) 2007-10-24 2013-10-22 Huawei Technologies Co., Ltd. Method, device, and system for traffic switching in multi-protocol label switching traffic engineering
WO2016014419A1 (en) 2014-07-21 2016-01-28 Glia, Llc Method for treating radiotherapy-and-chemotherapy associated cognitive or emotional impairment with cannabinoids
CN114039905A (en) * 2021-11-30 2022-02-11 烽火通信科技股份有限公司 Method and device for saving protection resources

Families Citing this family (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100433721C (en) * 2006-01-23 2008-11-12 杭州华三通信技术有限公司 Method for processing label binding
CN100561978C (en) 2006-04-26 2009-11-18 华为技术有限公司 A kind of strategy route device and method
CN100568831C (en) * 2006-04-26 2009-12-09 华为技术有限公司 A kind of method and system that improve network reliability
CN100546284C (en) * 2006-09-13 2009-09-30 华为技术有限公司 Label exchange route protection method and system thereof
CN101051884B (en) * 2007-05-09 2010-10-13 杭州华三通信技术有限公司 Method and device for realizing interface backup
CN101051885B (en) * 2007-05-17 2010-06-02 中兴通讯股份有限公司 Protecting method and device for cut-in device up connection service
CN100583827C (en) 2007-05-17 2010-01-20 华为技术有限公司 Method and equipment for multiple protocol label switching network flow switchover
CN101094175B (en) 2007-06-14 2011-06-01 华为技术有限公司 Method, device, and system for protecting flux of multicast
WO2009040244A1 (en) * 2007-09-28 2009-04-02 Telefonaktiebolaget Lm Ericsson (Publ) Telecommunication network
CN101163100B (en) 2007-11-12 2011-08-24 中兴通讯股份有限公司 Tunnel mapping method
CN101577661B (en) * 2008-05-09 2013-09-11 华为技术有限公司 Method and equipment for switching path
CN101616062B (en) * 2008-06-26 2012-07-04 中兴通讯股份有限公司 Method for realizing IP transmitting
JP5388079B2 (en) * 2009-06-15 2014-01-15 ▲ホア▼▲ウェイ▼技術有限公司 Method, device, and system for establishing a backup label switch path
CN102437955B (en) * 2011-12-16 2016-05-04 杭州华三通信技术有限公司 A kind of LSP guard method and equipment
CN102594712A (en) * 2012-03-28 2012-07-18 北京星网锐捷网络技术有限公司 Method and device for determining label switch path
CN105743784B (en) * 2014-12-08 2020-03-17 中兴通讯股份有限公司 Switching control method and device for deploying high-capacity service
CN105991434B (en) * 2015-02-05 2019-12-06 华为技术有限公司 Method for forwarding MPLS message in ring network and network node
CN106161246B (en) * 2016-06-15 2019-09-06 新华三技术有限公司 The implementation method and device of alternate routing
CN106385362B (en) * 2016-08-30 2019-08-27 迈普通信技术股份有限公司 A kind of unsupported proportional routing switching method and device
CN107864091B (en) * 2017-10-31 2020-04-03 新华三技术有限公司 Link failure processing method and device
CN108400936B (en) * 2018-03-05 2020-09-22 大连大学 MPLS-based spatial information network routing method
CN110932895B (en) * 2019-11-26 2022-07-15 中国联合网络通信集团有限公司 Message forwarding method and device for network slice
CN112398730A (en) * 2020-10-28 2021-02-23 上海欣诺通信技术股份有限公司 Message forwarding method, device, equipment and storage medium in data center network

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030028818A1 (en) * 2001-07-12 2003-02-06 Nec Corporation Communication connection bypass method capable of minimizing traffic loss when failure occurs
CN1433642A (en) * 1999-12-07 2003-07-30 艾利森电话股份有限公司 Integrating signaling system number 7 (SS7) networks with networks using multi-protocol label switching (MPLS)
US20030212927A1 (en) * 2002-05-08 2003-11-13 Navar Venu Gopal Fault-protection mechanism for protecting multi-protocol-label switching (MPLS) capability within a distributed processor router operating in an MPLS network
CN1496629A (en) * 2002-01-17 2004-05-12 ƽ Load balancing for fast reroute backup tunnels

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1433642A (en) * 1999-12-07 2003-07-30 艾利森电话股份有限公司 Integrating signaling system number 7 (SS7) networks with networks using multi-protocol label switching (MPLS)
US20030028818A1 (en) * 2001-07-12 2003-02-06 Nec Corporation Communication connection bypass method capable of minimizing traffic loss when failure occurs
CN1496629A (en) * 2002-01-17 2004-05-12 ƽ Load balancing for fast reroute backup tunnels
US20030212927A1 (en) * 2002-05-08 2003-11-13 Navar Venu Gopal Fault-protection mechanism for protecting multi-protocol-label switching (MPLS) capability within a distributed processor router operating in an MPLS network

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8565098B2 (en) 2007-10-24 2013-10-22 Huawei Technologies Co., Ltd. Method, device, and system for traffic switching in multi-protocol label switching traffic engineering
CN102244602A (en) * 2010-05-11 2011-11-16 华为技术有限公司 Method, device and system for forwarding data under protocol independent multicast dual join
WO2011140813A1 (en) * 2010-05-11 2011-11-17 华为技术有限公司 Method, device and system for forwarding data under protocol independent multicast (pim) dual join
US9313037B2 (en) 2010-05-11 2016-04-12 Huawei Technologies Co., Ltd. Method, apparatus and system for forwarding data under protocol independent multicast dual join
WO2016014419A1 (en) 2014-07-21 2016-01-28 Glia, Llc Method for treating radiotherapy-and-chemotherapy associated cognitive or emotional impairment with cannabinoids
CN114039905A (en) * 2021-11-30 2022-02-11 烽火通信科技股份有限公司 Method and device for saving protection resources

Also Published As

Publication number Publication date
CN1738288A (en) 2006-02-22
CN100518135C (en) 2009-07-22

Similar Documents

Publication Publication Date Title
WO2006017982A1 (en) A rerouting method in the multi-protocol label switch network
EP3041178B1 (en) Fast convergence on link failure in multi-homed ethernet virtual private networks
EP2878100B1 (en) System, method and apparatus for signaling and responding to ero expansion failure in inter domain te lsp
US9781032B1 (en) MPLS label usage in ethernet virtual private networks
JP3790655B2 (en) Label switch network system
US9077561B2 (en) OAM label switched path for fast reroute of protected label switched paths
EP2190150B1 (en) A method, device and system of multi-protocol label exchange traffic engineering flow capacity switch
JP3762749B2 (en) Restoration protection method and apparatus
EP2337301B1 (en) Method, system and network node for establishing label switching path
US8055791B2 (en) Protecting connection traffic using filters
KR101643911B1 (en) Method and related apparatus for establishing link-diverse traffic paths in a telecommunications network
US9270426B1 (en) Constrained maximally redundant trees for point-to-multipoint LSPs
WO2007016834A1 (en) A fast convergence method of point to point services and the provider edge device thereof
US20210392014A1 (en) Resilient multiprotocol label switching (mpls) rings using segment routing
US9246838B1 (en) Label switched path setup using fast reroute bypass tunnel
US9571387B1 (en) Forwarding using maximally redundant trees
WO2008083590A1 (en) Method and apparatus of rapid convergence of point-to-point service
JP5420547B2 (en) RSVP-TE enhancement for MPLS-FRR bandwidth optimization
WO2011060667A1 (en) Method and device for link protection in virtual private local area network
WO2012167516A1 (en) Method, apparatus and system for generating label forwarding table in ring topology
WO2011076029A1 (en) Method and apparatus for implementing fast reroute
WO2012079375A1 (en) Method and system for link protection in a virtual private network
WO2013029438A1 (en) Ethernet interface protection method and network side device
WO2011140890A1 (en) Method and device for realizing fast reroute
WO2007069256A2 (en) Resource sharing among network tunnels

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BW BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE EG ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KM KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NA NG NI NO NZ OM PG PH PL PT RO RU SC SD SE SG SK SL SM SY TJ TM TN TR TT TZ UA UG US UZ VC VN YU ZA ZM ZW

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): GM KE LS MW MZ NA SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IS IT LT LU LV MC NL PL PT RO SE SI SK TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG

121 Ep: the epo has been informed by wipo that ep was designated in this application
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase