WO2008095381A1 - Method for sending label distribution protocol information and label switching router - Google Patents

Method for sending label distribution protocol information and label switching router Download PDF

Info

Publication number
WO2008095381A1
WO2008095381A1 PCT/CN2007/070435 CN2007070435W WO2008095381A1 WO 2008095381 A1 WO2008095381 A1 WO 2008095381A1 CN 2007070435 W CN2007070435 W CN 2007070435W WO 2008095381 A1 WO2008095381 A1 WO 2008095381A1
Authority
WO
WIPO (PCT)
Prior art keywords
ldp message
ldp
message
hop count
tlv
Prior art date
Application number
PCT/CN2007/070435
Other languages
French (fr)
Chinese (zh)
Inventor
Min Peng
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 WO2008095381A1 publication Critical patent/WO2008095381A1/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/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 invention relates to a method for multiprotocol label switching (MPLS) messages and a Label Switching Router (LSR). Background of the invention
  • TLV Type Length Value
  • the unknown TLV bit (U bit ) is used to: when an LDP message received by an LSR in the MPLS network includes an unrecognizable TLV, if the T bit of the TLV The value is a predefined value of the ignoring LDP message, that is, equal to 0, then the LSR ignores the entire LDP message and returns a notification message to the LSR that sent the LDP message; if the U bit of the TLV The value is a predefined value that ignores the TLV, that is, equal to 1. The operation is to ignore the TLV, and the other part of the LDP message containing the TLV will be processed normally, and the LSP can be established normally.
  • the Label Request message and the Label Mapping message can be hop-by-hop along the LSP. Therefore, the TLV carried by the LDP messages can record the information along the LSP and implement the loop. Detection.
  • the hop count TLV ( Hop Count TLV ) is an optional parameter in the label request message or the label mapping message. The hop count TLV records the number of hops along the LSP. When the hop count exceeds the previously configured value, it indicates that a loop occurs.
  • the label request message or the label mapping message sent by the LSR must carry the hop count TLV, and the value of the U bit of the hop count TLV is fixed to the predefined LDP ignoring.
  • the corresponding value of the message which is equal to 0, does not take into account the situation when the receiver of the message does not support loop detection. If the receiving end of the message does not support the loop detection itself, the hop count TLV in the received message cannot be identified, and because the U bit of the hop count TLV is fixed to ignore the corresponding value of the LDP message, that is, 0, the whole The LDP message will be ignored and will not be processed.
  • the LDP message cannot be established because the LDP message is related to the label request message or the label mapping message. It can be seen that the setting of the LDP message sent in the prior art may affect the identification of the entire LDP message by the receiving end and affect the normal establishment of the LSP. Summary of the invention
  • the embodiment of the present invention provides a method for transmitting an LDP message, and the LDP message sent by the method can ensure the normal establishment of the LSP.
  • the embodiment of the present invention further provides an LSR that sends an LDP message, and the LDP message sent by the LSR can ensure the normal establishment of the LSP.
  • the technical solution of the present invention is implemented as follows:
  • a method for transmitting an LDP message includes: determining whether the LDP message to be sent includes a hop count TLV: if yes, modifying the LDP message, and sending the modified LDP message; if not, directly Send the LDP message.
  • the LSR includes:
  • a hop count TLV judging module configured to determine whether the LDP message to be sent includes a hop count TLV: if yes, send a modify command to the LDP message processing module; if not, send the LDP message processing module to the LDP message processing module Modify the command;
  • the LDP message processing module is configured to: modify the LDP message according to the received modification command, and send the modified LDP message to the LDP message sending module; send the LDP message to the LDP message according to the received no modification command.
  • the LDP message sending module is configured to send the received LDP message.
  • the method for transmitting an LDP message and the LSR proposed by the embodiment of the present invention can modify and send the LDP message, and the LDP message sent by the method does not affect the normal establishment of the LSP.
  • FIG. 1 is a basic flowchart of sending an LDP message according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a specific implementation of sending an LDP message according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of an LSR that sends an LDP message according to an embodiment of the present invention. Mode for carrying out the invention
  • Figure 1 is a A basic flow chart for sending an LDP message.
  • Step 101 Determine whether the LDP message to be sent includes the hop count TLV: if yes, go to step 102; if not, go to step 103.
  • Step 102 Modify the LDP message.
  • Step 103 Send an LDP message.
  • the method for modifying the LDP message in the step 102 may be: modifying the value of the U bit of the hop count TLV in the LDP message to: a corresponding value of the predefined hop count TLV, that is, equal to 1. After the modification, if the receiving end does not recognize the hop count TLV, only the hop count TLV will be discarded without affecting the identification of the entire LDP message.
  • an LDP session (Session) needs to be established between the two LSRs.
  • each LSR uses an Initialization message to advertise the other party. Whether it supports loop detection itself.
  • the initialization message carries a loop detection bit (D bit), which is used to indicate whether the LSR that sends the initialization message supports loop detection. If the value of the D bit is a predefined value supporting the loop detection, that is, equal to 1, it indicates that the LSR supports loop detection; if the value of the D bit is a predefined value that does not support loop detection, it is equal to 0. , indicating that the LSR does not support loop detection.
  • D bit loop detection bit
  • the LSR can identify the hop count TLV when it receives the LDP message carrying the hop count TLV. If an LSR does not support loop detection, the LSR receives the bearer. When the LDP message of the TLV is counted, the hop count TLV cannot be recognized. Therefore, before the LDP message is sent, the LDP message can be modified according to whether the receiving end can recognize the hop count TLV.
  • the method may further include: determining whether the receiving end of the LDP message can identify the hop count TLV: if not, modifying the LDP message, the modification The latter LDP message is sent out; if it can be identified, the LDP message is directly sent.
  • the manner of modifying the LDP message may be: modifying the value of the U bit of the hop count TLV in the LDP message to: a corresponding value of the predefined hop count TTL, that is, equal to 1. Or, delete the hop count TLV in the LDP message.
  • the method for determining whether the receiving end of the LDP message can identify the hop count TLV may be: determining whether the value of the D bit in the initialization message sent by the receiving end of the LDP message is a preset support loop detection. The corresponding value, which is equal to 1:
  • the receiving end of the LDP message can identify the hop count TLV
  • FIG. 2 is a flowchart of a specific implementation of sending an LDP message according to an embodiment of the present invention.
  • Step 201 Determine whether the LDP message to be sent includes a hop count TLV: if yes, perform step 202; if not, perform step 204.
  • Step 202 Determine whether the receiving end of the LDP message can identify the hop count TLV: If not, go to step 203; otherwise, go to step 204.
  • Step 203 Delete the hop count TLV in the LDP message, and continue to step 204;
  • Step 204 Send an LDP message.
  • the method for determining whether the receiving end of the LDP message can identify the hop count TLV may be:
  • FIG. 3 is a schematic structural diagram of an LSR that sends an LDP message according to an embodiment of the present invention.
  • the LSR includes: a hop count TLV judging module 301, an LDP message processing module 302, and an LDP message sending module 303;
  • the hop count TLV judging module 301 is configured to determine whether the LDP message to be sent includes a hop count TLV: if yes, send a modification to the LDP message processing module 302. If not included, sending the LDP message processing module 302 to the LDP message processing module 302 without modifying the command; the LDP message processing module 302 is configured to modify the LDP message according to the received modification command, and send the modified LDP message to the
  • the LDP message sending module 303 sends the LDP message to the LDP message sending module 303 according to the received no-modification command, and the LDP message sending module 303 is configured to send the received LDP message.
  • the LDP message processing module 302 may include: a receiving end determining submodule 3021 and a processing submodule 3022;
  • the receiving end determining sub-module 3021 is configured to: after receiving the modification command, determine whether the receiving end of the LDP message can identify the hop count TLV, and if yes, send the processing sub-module 3022 without the modification command, if not, Sending a modification command to the processing sub-module 3022; or, when receiving the no-modification command, forwarding the modification command to the processing sub-module 3022;
  • the processing sub-module 3022 is configured to: modify the LDP message according to the received modification command, and send the modified LDP message to the LDP message sending module 303; or send the LDP message to the LDP message according to the received no modification command.
  • the LDP message sending module 303 is configured to: modify the LDP message according to the received modification command, and send the modified LDP message to the LDP message sending module 303; or send the LDP message to the LDP message according to the received no modification command.
  • the LDP message processing module 302 is configured to modify the value of the U bit of the hop count TLV in the LDP message to a corresponding value of the predefined ignore hop count TLV according to the received modification command, and the modified LDP The message is sent to the LDP message sending module.
  • the predefined value of the ignoring hop count TLV can be 0.
  • the processing sub-module 3022 is configured to delete the TTL of the hop in the LDP message according to the received modification command, or modify the value of the U bit of the TTL of the LDP message to a predefined hop count TLV.
  • the LDP message is sent to the LDP message sending module 303.
  • the receiving end determining module 3021 is configured to determine whether the value of the D bit in the initialization message sent by the receiving end of the LDP message is a preset support loop check. The corresponding value measured, that is, equal to 1:
  • the receiving end of the LDP message can identify the hop count TLV
  • the method for transmitting an LDP message and the LSR can modify the LDP message to be sent, and the modification manner can be: Modify the U bit of the hop count TLV in the LDP message to a predefined ignore. The corresponding value of the hop count TLV; or according to whether the receiving end of the LDP message can identify the hop count TLV to delete or retain the hop count TLV in the LDP message. After the LDP message is sent out, whether the LDP message receiving end can identify the hop count TLV does not affect the identification of the entire LDP message and ensures the normal establishment of the LSP.

Abstract

A method for sending label distribution protocol information includes determining whether the ongoing LDP information has Hop Count TLV, if yes, modifying said LDP before sending it out, otherwise, sending said LDP directly. Said method guarantees the reception of the LDP by the receiver, and ensures the normal establishment of the LSP. A LSR for sending said LDP information is also presented.

Description

发送标签分发协议消息的方法及标签交换路由器  Method for transmitting label distribution protocol message and label switching router
技术领域  Technical field
本发明涉及多协议标签交换( Multiprotocol Label Switching, MPLS ) 消息的方法及标签交换路由器( Label Switching Router, LSR )。 发明背景  The invention relates to a method for multiprotocol label switching (MPLS) messages and a Label Switching Router (LSR). Background of the invention
在 MPLS网络中, 不同的 LSR之间传输 LDP消息, 建立标签交换 路径( Label Switching Path, LSP )。大部分 LDP消息采用类型长度值( Type Length Value, TLV )方案进行封装, 每个 LDP消息中包含一个或多个 必选或可选的 TLV。 每个 TLV可分为 4字节的公共 TLV头单元和可变 长度值域单元。 TLV的格式见表 1:  On an MPLS network, LDP messages are transmitted between different LSRs to establish a Label Switching Path (LSP). Most LDP messages are encapsulated by a Type Length Value (TLV) scheme. Each LDP message contains one or more mandatory or optional TLVs. Each TLV can be divided into a 4-byte common TLV header unit and a variable-length value domain unit. The format of TLV is shown in Table 1:
Figure imgf000003_0001
Figure imgf000003_0001
表 1  Table 1
在 TLV的结构定义中,无法识别 TLV比特( Unknown TLV bit, U bit ) 的作用在于: 当 MPLS网络中的一个 LSR接收到的 LDP消息中包含其 无法识别的 TLV时, 如果该 TLV的 U bit的值为预先定义的忽略 LDP 消息的相应值, 即等于 0, 则 LSR忽略整个 LDP消息, 并向发送该 LDP 消息的 LSR返回一个通知( Notification ) 消息; 如果该 TLV的 U bit的 值为预先定义的忽略 TLV的相应值, 即等于 1 , 所作的操作仅仅是忽略 这个 TLV,而包含该 TLV的 LDP消息中的其他部分将被正常处理, LSP 能够正常建立。 In the structure definition of the TLV, the unknown TLV bit (U bit ) is used to: when an LDP message received by an LSR in the MPLS network includes an unrecognizable TLV, if the T bit of the TLV The value is a predefined value of the ignoring LDP message, that is, equal to 0, then the LSR ignores the entire LDP message and returns a notification message to the LSR that sent the LDP message; if the U bit of the TLV The value is a predefined value that ignores the TLV, that is, equal to 1. The operation is to ignore the TLV, and the other part of the LDP message containing the TLV will be processed normally, and the LSP can be established normally.
在不同种类的 LDP消息中, 标签请求( Label Request )消息和标签 映射(Label Mapping ) 消息可以沿 LSP逐跳传播, 所以由这两种 LDP 消息携带的 TLV可以记录 LSP的沿途信息, 实现环路检测。 跳数 TLV ( Hop Count TLV )是标签请求消息或标签映射消息中的可选参数, 跳 数 TLV记录 LSP沿途经过的跳数, 当跳数超过事先配置的值时, 表示 出现环路。  In different types of LDP messages, the Label Request message and the Label Mapping message can be hop-by-hop along the LSP. Therefore, the TLV carried by the LDP messages can record the information along the LSP and implement the loop. Detection. The hop count TLV ( Hop Count TLV ) is an optional parameter in the label request message or the label mapping message. The hop count TLV records the number of hops along the LSP. When the hop count exceeds the previously configured value, it indicates that a loop occurs.
现有技术中, 一个 LSR如果支持环路检测, 则其发送的标签请求消 息或标签映射消息中一定携带跳数 TLV, 且该跳数 TLV的 U bit的值被 固定置为预先定义的忽略 LDP消息的相应值, 即等于 0, 这种定义没有 考虑到该消息的接收端不支持环路检测时的情况。 如果该消息的接收端 本身不支持环路检测, 则不能识别接收到的消息中的跳数 TLV, 又因为 该跳数 TLV的 U bit被固定置为忽略 LDP消息的相应值,即 0,整个 LDP 消息将被忽略不处理, 由于携带该 TLV的是关系到 LSP建立的标签请 求消息或标签映射消息, 所以忽略整个 LDP消息将会导致 LSP无法建 立。可见,现有技术中发送的 LDP消息的设置可能会影响接收端对整个 LDP消息的识别, 影响 LSP的正常建立。 发明内容  In the prior art, if an LSR supports loop detection, the label request message or the label mapping message sent by the LSR must carry the hop count TLV, and the value of the U bit of the hop count TLV is fixed to the predefined LDP ignoring. The corresponding value of the message, which is equal to 0, does not take into account the situation when the receiver of the message does not support loop detection. If the receiving end of the message does not support the loop detection itself, the hop count TLV in the received message cannot be identified, and because the U bit of the hop count TLV is fixed to ignore the corresponding value of the LDP message, that is, 0, the whole The LDP message will be ignored and will not be processed. The LDP message cannot be established because the LDP message is related to the label request message or the label mapping message. It can be seen that the setting of the LDP message sent in the prior art may affect the identification of the entire LDP message by the receiving end and affect the normal establishment of the LSP. Summary of the invention
有鉴于此, 本发明实施例提出一种发送 LDP消息的方法,应用该方 法发送的 LDP消息能够保证 LSP的正常建立。  In this regard, the embodiment of the present invention provides a method for transmitting an LDP message, and the LDP message sent by the method can ensure the normal establishment of the LSP.
本发明实施例还提出一种发送 LDP消息的 LSR,该 LSR发送的 LDP 消息能够保证 LSP的正常建立。 为了实现上述目的, 本发明的技术方案是这样实现的: The embodiment of the present invention further provides an LSR that sends an LDP message, and the LDP message sent by the LSR can ensure the normal establishment of the LSP. In order to achieve the above object, the technical solution of the present invention is implemented as follows:
一种发送 LDP消息的方法, 该方法包括: 判断要发送的 LDP消息 中是否包含跳数 TLV: 如果包含, 则修改所述 LDP消息, 将修改后的 LDP消息发送出去; 如果不包含, 则直接发送所述 LDP消息。  A method for transmitting an LDP message, the method includes: determining whether the LDP message to be sent includes a hop count TLV: if yes, modifying the LDP message, and sending the modified LDP message; if not, directly Send the LDP message.
一种发送 LDP消息的 LSR, 该 LSR包括:  An LSR that sends LDP messages. The LSR includes:
跳数 TLV判断模块, 用于判断要发送的 LDP消息中是否包含跳数 TLV: 如果包含, 则向所述 LDP消息处理模块发送修改命令; 如果不包 含, 则向所述 LDP消息处理模块发送无需修改命令;  a hop count TLV judging module, configured to determine whether the LDP message to be sent includes a hop count TLV: if yes, send a modify command to the LDP message processing module; if not, send the LDP message processing module to the LDP message processing module Modify the command;
LDP消息处理模块,用于根据收到的修改命令修改 LDP消息,将修 改后的 LDP消息发送至所述 LDP消息发送模块; 根据收到的无需修改 命令, 将 LDP消息发送至所述 LDP消息发送模块;  The LDP message processing module is configured to: modify the LDP message according to the received modification command, and send the modified LDP message to the LDP message sending module; send the LDP message to the LDP message according to the received no modification command. Module
LDP消息发送模块, 用于将收到的 LDP消息发送出去。  The LDP message sending module is configured to send the received LDP message.
可见, 本发明实施方式提出的发送 LDP消息的方法及 LSR, 能够对 LDP消息进行修改并发送, 应用该方法发送的 LDP消息不会影响 LSP 的正常建立。 附图简要说明  It can be seen that the method for transmitting an LDP message and the LSR proposed by the embodiment of the present invention can modify and send the LDP message, and the LDP message sent by the method does not affect the normal establishment of the LSP. BRIEF DESCRIPTION OF THE DRAWINGS
图 1为本发明实施例发送 LDP消息的基本流程图;  FIG. 1 is a basic flowchart of sending an LDP message according to an embodiment of the present invention;
图 2为本发明实施例发送 LDP消息的具体实现流程图;  2 is a flowchart of a specific implementation of sending an LDP message according to an embodiment of the present invention;
图 3为本发明实施例发送 LDP消息的 LSR的结构示意图。 实施本发明的方式  FIG. 3 is a schematic structural diagram of an LSR that sends an LDP message according to an embodiment of the present invention. Mode for carrying out the invention
为了使本发明的目的、 技术方案和优点更加清楚, 下面结合附图及 具体实施例对本发明再作进一步详细的说明。  The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
本发明提出一种发送 LDP消息的方法。 参见图 1 , 图 1为本发明实 施例发送 LDP消息的基本流程图。 The present invention provides a method of transmitting an LDP message. Referring to Figure 1, Figure 1 is a A basic flow chart for sending an LDP message.
步骤 101:判断要发送的 LDP消息中是否包含跳数 TLV:如果包含, 则执行步骤 102; 如果不包含, 则执行步骤 103。  Step 101: Determine whether the LDP message to be sent includes the hop count TLV: if yes, go to step 102; if not, go to step 103.
步骤 102: 修改 LDP消息。  Step 102: Modify the LDP message.
步骤 103: 发送 LDP消息。  Step 103: Send an LDP message.
在上述方法中, 步骤 102所述修改 LDP消息的方式可以为: 将所述 LDP消息中跳数 TLV的 U bit的值修改为:预先定义的忽略跳数 TLV的 相应值, 即等于 1。 修改后, 如果接收端不能识别跳数 TLV, 则只会丢 弃跳数 TLV , 而不会影响整个 LDP消息的识别。  In the foregoing method, the method for modifying the LDP message in the step 102 may be: modifying the value of the U bit of the hop count TLV in the LDP message to: a corresponding value of the predefined hop count TLV, that is, equal to 1. After the modification, if the receiving end does not recognize the hop count TLV, only the hop count TLV will be discarded without affecting the identification of the entire LDP message.
由于两个 LSR之间传输标签请求消息或标签映射消息之前,首先需 要在两个 LSR之间建立 LDP会话 ( Session ), 在建立 LDP会话时, 每 个 LSR都使用初始化( Initialization )消息来通告对方自身是否支持环路 检测。 初始化消息中会携带一个环路检测比特(Loop Detection bit, D bit ), 用来表示发送该初始化消息的 LSR是否支持环路检测。 如果 D bit 的值为预先定义的支持环路检测的相应值, 即等于 1 , 表示该 LSR支持 环路检测; 如果 D bit的值为预先定义的不支持环路检测的相应值, 即 等于 0,表示该 LSR不支持环路检测。如果某个 LSR本身支持环路检测, 则该 LSR收到携带跳数 TLV的 LDP消息时, 就能够识别该跳数 TLV; 如果某个 LSR本身不支持环路检测,则该 LSR收到携带跳数 TLV的 LDP 消息时, 就不能识别该跳数 TLV。 因此, 可以在发送 LDP消息之前, 根据接收端能否识别跳数 TLV对 LDP消息进行修改。  Before the label request message or the label mapping message is transmitted between the two LSRs, an LDP session (Session) needs to be established between the two LSRs. When an LDP session is established, each LSR uses an Initialization message to advertise the other party. Whether it supports loop detection itself. The initialization message carries a loop detection bit (D bit), which is used to indicate whether the LSR that sends the initialization message supports loop detection. If the value of the D bit is a predefined value supporting the loop detection, that is, equal to 1, it indicates that the LSR supports loop detection; if the value of the D bit is a predefined value that does not support loop detection, it is equal to 0. , indicating that the LSR does not support loop detection. If an LSR itself supports loop detection, the LSR can identify the hop count TLV when it receives the LDP message carrying the hop count TLV. If an LSR does not support loop detection, the LSR receives the bearer. When the LDP message of the TLV is counted, the hop count TLV cannot be recognized. Therefore, before the LDP message is sent, the LDP message can be modified according to whether the receiving end can recognize the hop count TLV.
这样, 上述方法在判定要发送的 LDP消息中包含跳数 TLV时, 可 以进一步包括: 判断所述 LDP消息的接收端是否能够识别跳数 TLV: 如果不能识别, 则修改所述 LDP消息, 将修改后的 LDP消息发送出去; 如果能够识别, 则直接发送所述 LDP消息。 在上述方法中, 修改 LDP消息的方式可以为: 将所述 LDP消息中 跳数 TLV的 U bit的值修改为: 预先定义的忽略跳数 TLV的相应值, 即 等于 1。 或者, 删除 LDP消息中的跳数 TLV。 In this manner, when the LDP message to be sent includes the hop count TLV, the method may further include: determining whether the receiving end of the LDP message can identify the hop count TLV: if not, modifying the LDP message, the modification The latter LDP message is sent out; if it can be identified, the LDP message is directly sent. In the foregoing method, the manner of modifying the LDP message may be: modifying the value of the U bit of the hop count TLV in the LDP message to: a corresponding value of the predefined hop count TTL, that is, equal to 1. Or, delete the hop count TLV in the LDP message.
在上述方法中, 判断 LDP消息的接收端是否能够识别跳数 TLV的 方式可以为: 判断所述 LDP消息的接收端发送的初始化消息中的 D bit 的值是否为预先设定的支持环路检测的相应值, 即等于 1:  In the foregoing method, the method for determining whether the receiving end of the LDP message can identify the hop count TLV may be: determining whether the value of the D bit in the initialization message sent by the receiving end of the LDP message is a preset support loop detection. The corresponding value, which is equal to 1:
如果是, 则 LDP消息的接收端能够识别跳数 TLV;  If yes, the receiving end of the LDP message can identify the hop count TLV;
如果不是, 则 LDP消息的接收端不能识别跳数 TLV。  If not, the receiving end of the LDP message cannot recognize the hop count TLV.
参见图 2, 图 2为本发明实施例发送 LDP消息的具体实现流程图。 步骤 201:判断要发送的 LDP消息中是否包含跳数 TLV:如果包含, 则执行步骤 202; 如果不包含, 则执行步骤 204。  Referring to FIG. 2, FIG. 2 is a flowchart of a specific implementation of sending an LDP message according to an embodiment of the present invention. Step 201: Determine whether the LDP message to be sent includes a hop count TLV: if yes, perform step 202; if not, perform step 204.
步骤 202: 判断该 LDP消息的接收端是否能够识别跳数 TLV: 如果 不能识别, 则执行步骤 203; 否则, 执行步骤 204。  Step 202: Determine whether the receiving end of the LDP message can identify the hop count TLV: If not, go to step 203; otherwise, go to step 204.
步骤 203: 删除 LDP消息中的跳数 TLV, 继续执行步骤 204;  Step 203: Delete the hop count TLV in the LDP message, and continue to step 204;
步骤 204: 发送 LDP消息。  Step 204: Send an LDP message.
在上述步骤 202中,判断 LDP消息的接收端是否能够识别跳数 TLV 的方式可以为:  In the foregoing step 202, the method for determining whether the receiving end of the LDP message can identify the hop count TLV may be:
判断 LDP消息的接收端发送的初始化消息中的 D bit是否为预先设 定的支持环路检测的相应值, 即等于 1: 如果是, 则该 LDP消息的接收 端能够识别跳数 TLV; 如果不是, 则不能识别。  Determining whether the D bit in the initialization message sent by the receiving end of the LDP message is a corresponding value of the preset support loop detection, that is, equal to 1: If yes, the receiving end of the LDP message can identify the hop count TLV; , it is not recognized.
本发明还提出一种发送 LDP消息的 LSR。 参见图 3, 图 3为本发明 实施例发送 LDP消息的 LSR的结构示意图。该 LSR包括:跳数 TLV判 断模块 301、 LDP消息处理模块 302和 LDP消息发送模块 303;  The present invention also proposes an LSR that transmits an LDP message. Referring to FIG. 3, FIG. 3 is a schematic structural diagram of an LSR that sends an LDP message according to an embodiment of the present invention. The LSR includes: a hop count TLV judging module 301, an LDP message processing module 302, and an LDP message sending module 303;
所述跳数 TLV判断模块 301 ,用于判断要发送的 LDP消息中是否包 含跳数 TLV: 如果包含, 则向所述 LDP消息处理模块 302发送修改命 令; 如果不包含, 则向所述 LDP消息处理模块 302发送无需修改命令; 所述 LDP消息处理模块 302, 用于根据收到的修改命令修改 LDP 消息, 将修改后的 LDP消息发送至所述 LDP消息发送模块 303; 根据 收到的无需修改命令, 将 LDP消息发送至所述 LDP消息发送模块 303; 所述 LDP消息发送模块 303 , 用于将收到的 LDP消息发送出去。 在上述 LSR中, LDP消息处理模块 302可以包括:接收端判断子模 块 3021和处理子模块 3022; The hop count TLV judging module 301 is configured to determine whether the LDP message to be sent includes a hop count TLV: if yes, send a modification to the LDP message processing module 302. If not included, sending the LDP message processing module 302 to the LDP message processing module 302 without modifying the command; the LDP message processing module 302 is configured to modify the LDP message according to the received modification command, and send the modified LDP message to the The LDP message sending module 303: sends the LDP message to the LDP message sending module 303 according to the received no-modification command, and the LDP message sending module 303 is configured to send the received LDP message. In the above LSR, the LDP message processing module 302 may include: a receiving end determining submodule 3021 and a processing submodule 3022;
其中, 接收端判断子模块 3021 , 用于在收到修改命令后, 判断 LDP 消息的接收端是否能够识别跳数 TLV, 如果能够识别, 则向处理子模块 3022发送无需修改命令, 如果不能识别, 则向处理子模块 3022发送修 改命令; 或者, 在收到无需修改命令时, 将无需修改命令转发给处理子 模块 3022;  The receiving end determining sub-module 3021 is configured to: after receiving the modification command, determine whether the receiving end of the LDP message can identify the hop count TLV, and if yes, send the processing sub-module 3022 without the modification command, if not, Sending a modification command to the processing sub-module 3022; or, when receiving the no-modification command, forwarding the modification command to the processing sub-module 3022;
所述处理子模块 3022, 用于根据收到的修改命令修改 LDP消息, 将修改后的 LDP消息发送至所述 LDP消息发送模块 303; 或者, 根据 收到的无需修改命令, 将 LDP消息发送至所述 LDP消息发送模块 303。  The processing sub-module 3022 is configured to: modify the LDP message according to the received modification command, and send the modified LDP message to the LDP message sending module 303; or send the LDP message to the LDP message according to the received no modification command. The LDP message sending module 303.
在上述 LSR中, LDP消息处理模块 302,用于根据收到的修改命令, 将 LDP消息中跳数 TLV的 U bit的值修改为预先定义的忽略跳数 TLV 的相应值, 将修改后的 LDP消息发送至所述 LDP消息发送模块。 此处 预先定义的忽略跳数 TLV的相应值可以为 0。  In the foregoing LSR, the LDP message processing module 302 is configured to modify the value of the U bit of the hop count TLV in the LDP message to a corresponding value of the predefined ignore hop count TLV according to the received modification command, and the modified LDP The message is sent to the LDP message sending module. Here, the predefined value of the ignoring hop count TLV can be 0.
在上述 LSR中, 处理子模块 3022, 用于根据收到的修改命令, 删 除 LDP消息中的跳数 TLV、 或者将 LDP消息中跳数 TLV的 U bit的值 修改为预先定义的忽略跳数 TLV的相应值, 将修改后的 LDP消息发送 至所述 LDP消息发送模块 303。  In the LSR, the processing sub-module 3022 is configured to delete the TTL of the hop in the LDP message according to the received modification command, or modify the value of the U bit of the TTL of the LDP message to a predefined hop count TLV. The LDP message is sent to the LDP message sending module 303.
在上述 LSR中, 接收端判断模块 3021 , 用于判断所述 LDP消息的 接收端发送的初始化消息中的 D bit的值是否为预先设定的支持环路检 测的相应值, 即是否等于 1: In the foregoing LSR, the receiving end determining module 3021 is configured to determine whether the value of the D bit in the initialization message sent by the receiving end of the LDP message is a preset support loop check. The corresponding value measured, that is, equal to 1:
如果是, 则 LDP消息的接收端能够识别跳数 TLV;  If yes, the receiving end of the LDP message can identify the hop count TLV;
如果不是, 则 LDP消息的接收端不能识别跳数 TLV。  If not, the receiving end of the LDP message cannot recognize the hop count TLV.
可见, 本发明实施方式提出的发送 LDP消息的方法及 LSR, 能够对 要发送的 LDP消息进行适应性修改, 修改的方式可以是: 将 LDP消息 中跳数 TLV的 U bit修改为预先定义的忽略跳数 TLV的相应值; 或者 根据 LDP消息的接收端能否识别跳数 TLV删除或保留 LDP消息中跳数 TLV。 使得该 LDP消息发送出去后, 无论 LDP消息的接收端是否能够 识别跳数 TLV , 都不会影响对整个 LDP消息的识别, 保证 LSP的正常 建立。  It can be seen that the method for transmitting an LDP message and the LSR according to the embodiment of the present invention can modify the LDP message to be sent, and the modification manner can be: Modify the U bit of the hop count TLV in the LDP message to a predefined ignore. The corresponding value of the hop count TLV; or according to whether the receiving end of the LDP message can identify the hop count TLV to delete or retain the hop count TLV in the LDP message. After the LDP message is sent out, whether the LDP message receiving end can identify the hop count TLV does not affect the identification of the entire LDP message and ensures the normal establishment of the LSP.

Claims

权利要求书 Claim
1、 一种发送标签分发协议 LDP消息的方法, 其特征在于, 该方法 包括: A method for transmitting a label distribution protocol LDP message, the method comprising:
判断要发送的 LDP消息中是否包含跳数类型长度值 TLV: 如果包 含, 则修改所述 LDP消息, 将修改后的 LDP消息发送出去; 如果不包 含, 则直接发送所述 LDP消息。  Determining whether the LDP message to be sent includes the hop type length value TLV: If yes, the LDP message is modified, and the modified LDP message is sent; if not, the LDP message is directly sent.
2、根据权利要求 1所述的方法, 其特征在于,在判定要发送的 LDP 消息中包含跳数 TLV时, 进一步包括:  The method according to claim 1, wherein when determining that the LDP message to be sent includes the hop count TLV, the method further includes:
判断所述 LDP消息的接收端是否能够识别跳数 TLV: 如果不能识 另' h 则修改所述 LDP消息, 将修改后的 LDP消息发送出去; 如果能够 识别, 则直接发送所述 LDP消息。  Determining whether the receiving end of the LDP message can identify the hop count TLV: If the LDP message is not recognized, the LDP message is modified, and the modified LDP message is sent out; if it can be identified, the LDP message is directly sent.
3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述修改 LDP 消息的方式为:  The method according to claim 1 or 2, wherein the manner of modifying the LDP message is:
将所述 LDP消息中跳数 TLV的无法识别 TLV比特 U bit的值修改 为: 预先定义的忽略跳数 TLV的相应值。  The value of the unrecognized TLV bit U bit of the hop count TLV in the LDP message is modified as: The corresponding value of the predefined hop count TLV.
4、 根据权利要求 2所述的方法, 其特征在于, 所述修改 LDP消息 的方式为: 删除 LDP消息中的跳数 TLV。  The method according to claim 2, wherein the modifying the LDP message is: deleting the hop count TLV in the LDP message.
5、 根据权利要求 2所述的方法, 其特征在于, 所述判断 LDP消息 的接收端是否能够识别跳数 TLV的方式为:  The method according to claim 2, wherein the manner of determining whether the receiving end of the LDP message can identify the hop count TLV is:
判断所述 LDP消息的接收端发送的初始化消息中的环路检测比特 D bit的值是否为预先设定的支持环路检测的相应值:  Determining whether the value of the loop detection bit D bit in the initialization message sent by the receiving end of the LDP message is a preset value of the support loop detection:
如果是, 则 LDP消息的接收端能够识别跳数 TLV;  If yes, the receiving end of the LDP message can identify the hop count TLV;
如果不是, 则 LDP消息的接收端不能识别跳数 TLV。  If not, the receiving end of the LDP message cannot recognize the hop count TLV.
6、一种发送 LDP消息的标签交换路由器 LSR,其特征在于,该 LSR 包括: A label switching router LSR that transmits an LDP message, characterized in that the LSR include:
跳数 TLV判断模块, 用于判断要发送的 LDP消息中是否包含跳数 TLV: 如果包含, 则向所述 LDP消息处理模块发送修改命令; 如果不包 含, 则向所述 LDP消息处理模块发送无需修改命令;  a hop count TLV judging module, configured to determine whether the LDP message to be sent includes a hop count TLV: if yes, send a modify command to the LDP message processing module; if not, send the LDP message processing module to the LDP message processing module Modify the command;
LDP消息处理模块,用于根据收到的修改命令修改 LDP消息,将修 改后的 LDP消息发送至所述 LDP消息发送模块; 或者, 根据收到的无 需修改命令, 将 LDP消息发送至所述 LDP消息发送模块;  The LDP message processing module is configured to: modify the LDP message according to the received modification command, and send the modified LDP message to the LDP message sending module; or send the LDP message to the LDP according to the received no modification command. Message sending module;
LDP消息发送模块, 用于将收到的 LDP消息发送出去。  The LDP message sending module is configured to send the received LDP message.
7、 根据权利要求 6所述的 LSR, 其特征在于, 所述 LDP消息处理 模块包括:  The LSR according to claim 6, wherein the LDP message processing module comprises:
接收端判断子模块, 用于在收到修改命令后, 判断 LDP消息的接收 端是否能够识别跳数 TLV, 如果能够识别, 则向处理子模块发送无需修 改命令, 如果不能识别, 则向处理子模块发送修改命令; 或者, 在收到 无需修改命令时, 将无需修改命令转发给处理子模块;  The receiving end determining sub-module is configured to: after receiving the modification command, determine whether the receiving end of the LDP message can identify the hop count TLV, and if yes, send a no-modification command to the processing sub-module, if not, to the processing sub-module The module sends a modification command; or, when the command does not need to be modified, the modification command is forwarded to the processing submodule;
处理子模块, 用于根据收到的修改命令修改 LDP消息, 将修改后的 LDP消息发送至所述 LDP消息发送模块; 或者, 根据收到的无需修改 命令, 将 LDP消息发送至所述 LDP消息发送模块。  The processing submodule is configured to: modify the LDP message according to the received modification command, and send the modified LDP message to the LDP message sending module; or send the LDP message to the LDP message according to the received no modification command. Send module.
8、 根据权利要求 6所述的 LSR, 其特征在于, 所述 LDP消息处理 模块, 用于根据收到的修改命令, 将 LDP消息中跳数 TLV的 U bit的值 修改为预先定义的忽略跳数 TLV的相应值, 将修改后的 LDP消息发送 至所述 LDP消息发送模块。  The LSR according to claim 6, wherein the LDP message processing module is configured to modify the value of the U bit of the hop count TLV in the LDP message to a predefined ignore hop according to the received modification command. The corresponding value of the number of TLVs is sent to the LDP message sending module.
9、 根据权利要求 7所述的 LSR, 其特征在于, 所述处理子模块, 用于根据收到的修改命令, 删除 LDP消息中的跳数 TLV、 或者将 LDP 消息中跳数 TLV的 U bit的值修改为预先定义的忽略跳数 TLV的相应 值, 将修改后的 LDP消息发送至所述 LDP消息发送模块。 The LSR according to claim 7, wherein the processing sub-module is configured to delete a TTL of a TTL in an LDP message according to the received modification command, or a U bit of a TTL of the LDP message The value is modified to a corresponding value of the predefined hop count TTL, and the modified LDP message is sent to the LDP message sending module.
10、 根据权利要求 7所述的 LSR, 其特征在于, 所述接收端判断子 模块, 用于判断所述 LDP消息的接收端发送的初始化消息中的 D bit的 值是否为预先设定的支持环路检测的相应值: The LSR according to claim 7, wherein the receiving end determining submodule is configured to determine whether the value of the D bit in the initialization message sent by the receiving end of the LDP message is a preset support. Corresponding values for loop detection:
如果是, 则 LDP消息的接收端能够识别跳数 TLV;  If yes, the receiving end of the LDP message can identify the hop count TLV;
如果不是, 则 LDP消息的接收端不能识别跳数 TLV。  If not, the receiving end of the LDP message cannot recognize the hop count TLV.
PCT/CN2007/070435 2007-02-05 2007-08-08 Method for sending label distribution protocol information and label switching router WO2008095381A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNB2007100034845A CN100550855C (en) 2007-02-05 2007-02-05 Send the method and the LSR of label distribution protocol message
CN200710003484.5 2007-02-05

Publications (1)

Publication Number Publication Date
WO2008095381A1 true WO2008095381A1 (en) 2008-08-14

Family

ID=38697795

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2007/070435 WO2008095381A1 (en) 2007-02-05 2007-08-08 Method for sending label distribution protocol information and label switching router

Country Status (2)

Country Link
CN (1) CN100550855C (en)
WO (1) WO2008095381A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104322024A (en) * 2012-04-04 2015-01-28 阿尔卡特朗讯公司 System and method for data plane fate separation of label distribution protocol (LDP) label switched paths (LSPs)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1677938A (en) * 2004-03-31 2005-10-05 华为技术有限公司 Method for realizing label switching path network
US20060013127A1 (en) * 2004-07-15 2006-01-19 Fujitsu Limited MPLS network system and node
CN1805412A (en) * 2005-01-14 2006-07-19 三星电子株式会社 Fast rerouting apparatus and method for mpls multicast

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1677938A (en) * 2004-03-31 2005-10-05 华为技术有限公司 Method for realizing label switching path network
US20060013127A1 (en) * 2004-07-15 2006-01-19 Fujitsu Limited MPLS network system and node
CN1805412A (en) * 2005-01-14 2006-07-19 三星电子株式会社 Fast rerouting apparatus and method for mpls multicast

Also Published As

Publication number Publication date
CN100550855C (en) 2009-10-14
CN101009654A (en) 2007-08-01

Similar Documents

Publication Publication Date Title
WO2020233192A1 (en) Method and apparatus for providing service for service flow
KR101576412B1 (en) System and method for implementing label switch router (lsr) overload protection
WO2016131225A1 (en) Message forward processing method, apparatus, controller and routing forward device
US20140254600A1 (en) Transmission system, transmission apparatus, and transmission method
WO2008083570A1 (en) A method and network unit device for transferring the test message
WO2007009349A1 (en) Method and apparatus for transmitting message
WO2010051699A1 (en) Method, system and network node for establishing label switching path
WO2007016841A1 (en) A method for achieving fault detection of ip forwarding plane
WO2009071030A1 (en) Method for reporting device information, system and device for obtaining device information
WO2016023499A1 (en) Method and apparatus for processing modified packet
WO2009024040A1 (en) A method and route equipment for sending route
WO2014019348A1 (en) Method, device and system for operation, management and maintenance of oam configuration
WO2011015102A1 (en) Method and network device for associated channel capability negotiation
WO2008131686A1 (en) Method and provider edge device for releasing and processing pseudowire information
WO2013071866A1 (en) Host name transfer method and device
WO2013113171A1 (en) Flow identification method, device, and system
EP1786158A1 (en) A method for informing and negotiating the monitor ability of the label switching capability
WO2009117948A1 (en) Method and device for notifying a network topology change
EP4131854A1 (en) Performance measurement method and apparatus, device, and storage medium
WO2009009992A1 (en) A method, system, source end and destination end for indexing the label switching path by means of a label
WO2013170813A1 (en) Oam method and device based on multi-protocol label switching
WO2009076848A1 (en) A method and device of automatic topology discovery and resource management in the pbb network
US9369379B2 (en) System and method providing secured contexts in MPLS LFIB
WO2013075476A1 (en) Ethernet link detection method and device
WO2008095381A1 (en) Method for sending label distribution protocol information and label switching router

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: 07800913

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: 07800913

Country of ref document: EP

Kind code of ref document: A1