WO2009046652A1 - Link state detecting method and network device - Google Patents

Link state detecting method and network device Download PDF

Info

Publication number
WO2009046652A1
WO2009046652A1 PCT/CN2008/072349 CN2008072349W WO2009046652A1 WO 2009046652 A1 WO2009046652 A1 WO 2009046652A1 CN 2008072349 W CN2008072349 W CN 2008072349W WO 2009046652 A1 WO2009046652 A1 WO 2009046652A1
Authority
WO
WIPO (PCT)
Prior art keywords
sink
packet
received
link
message
Prior art date
Application number
PCT/CN2008/072349
Other languages
French (fr)
Chinese (zh)
Inventor
Yong Tang
Liang Chen
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 WO2009046652A1 publication Critical patent/WO2009046652A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity

Definitions

  • the present invention relates to the field of network communication technologies, and in particular, to a link state detection method and a network device.
  • OAM Operaation and Maintenance
  • MPLS Multiprotocol Label Switching
  • ITU International Telecommunications Union
  • the link detection technology based on the MPLS OAM protocol in the prior art is implemented as follows:
  • the source periodically sends a probe packet to the sink, and the sink determines the detected label switched path (LSP) according to the received probe packet.
  • the label switch path is faulty. If the specified number of probe packets cannot be received within a fixed period of the sink, or if the number of probe packets received exceeds the specified number, the detected LSP is faulty.
  • the sink sends a reverse defect indication (BDI) message to the source through the reverse LSP, notifying the detected LSP that the fault is detected, and triggering the source to start the corresponding protection mechanism, such as protection switching.
  • BDI reverse defect indication
  • the device will exit the defect state and trigger the protection switchover, that is, the backup LSP is switched to the detected LSP.
  • the detected LSP is usually called the primary LSP. .
  • the detection packet sent by the source is CV (Connective Verification) or Fast Failure Detection (FFD).
  • the technical problem to be solved by the embodiments of the present invention is to provide a link state detection method and a network device, which can accurately determine the state of the primary link.
  • an aspect of the embodiment of the present invention provides a method for detecting a link state, where the method includes: a packet sent by a sink end; If the source end receives the verification packet sent by the sink end in the first fixed period and does not receive the specified packet sent by the sink end, or if the source end is in the second fixed period Upon receiving the verification packet sent by the sink, it is determined that the primary link is restored from the fault state to the normal state.
  • the source end of the embodiment of the present invention needs to detect whether the verification packet sent by the sink end is received in a fixed period, and whether the specified packet sent by the sink end is not received.
  • the embodiment of the present invention can more accurately determine whether the primary link is in a fault state or a normal state, thereby avoiding false failback. In turn, business traffic is not interrupted.
  • the embodiment of the invention further provides a network device, where the network device includes:
  • a first receiving unit configured to receive, when the primary link is in a fault state, a packet sent by a sink of the primary link from a reverse link;
  • a first detecting unit configured to determine, in a fixed period, whether to receive the verification packet sent by the sink, and whether the specified packet sent by the sink is not received, and the verification packet is received When the specified message is not received, the main link is detected to be restored from the fault state to the normal state.
  • the embodiment of the invention also provides a network device, including:
  • a second receiving unit configured to receive, when the primary link is in a fault state, a packet sent by a sink of the primary link from a reverse link;
  • a second detecting unit configured to determine, in a fixed period, whether the verification message sent by the sink end is received, and when the verification message is received, detecting that the main link is restored from a fault state to a normal state.
  • the embodiment of the invention further provides a network device, including:
  • the unit that restores the primary link from the fault state to the normal state is determined.
  • the embodiment of the present invention further provides a link state detection system, including a source end and a sink end connected by a primary link and a reverse link, where the sink end is configured to detect that the primary link fails. Sending the specified packet to the source end by using the reverse link, and sending the verification packet when the specified packet is stopped.
  • the embodiment of the present invention can accurately obtain the state of the primary link by detecting whether the verification packet sent by the sink end is received in a fixed period, thereby avoiding error back-cutting, and thus the service traffic is not interrupted.
  • FIG. 1 is a flowchart of a method for processing a source end according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for processing a sink end according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a method for detecting a link state according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of a network device according to Embodiment 2 of the present invention.
  • FIG. 5 is a schematic diagram of a network device according to Embodiment 3 of the present invention.
  • the inventors have found that at least the following problems exist in the prior art: Since the transmission of the BDI packet depends on the reverse LSP, if the reverse LSP enters the defect state, the source end is caused to the primary LSP under certain conditions. The status of the error is incorrectly judged and triggers an incorrect failback, causing traffic to be interrupted.
  • the invention can be better understood by the following description of the embodiments of the invention.
  • FIG. 1 is a flowchart of a method for processing a source end according to an embodiment of the present invention. As shown in FIG. 1, if the source end supports the extended function, the source terminal exits the defect to determine that the extended BDI is received within three cycles. -BDI) The message did not receive the corresponding BDI message.
  • the method includes:
  • Reverse metrics are parameters that measure the performance of the primary link in reverse.
  • Timer ⁇ 3 starts timing.
  • the MPLS ⁇ protocol usually defines a fixed period as three consecutive periods.
  • Timer T4 stops timing.
  • FIG. 2 is a flowchart of a processing method of a sink end according to an embodiment of the present invention.
  • the judgment of whether the extended function is supported is added, and if the extension is supported, the sending is stopped.
  • Forward Defect Indication (FDI) message and BDI message triggering the transmission of E-BDL3 ⁇ 4 text and entering the branch processing flow after E-BDI transmission; if extension is not supported, the procedure is as specified in the original protocol. deal with.
  • the method includes:
  • the sink sends the FDI packet and the BDI packet to the source end.
  • timer T1 starts timing.
  • Timer T1 stops timing, and timer ⁇ 2 starts timing.
  • Timer T2 stops timing.
  • Embodiment 1 A method for detecting a link state, and a method flowchart is shown in FIG. 3, including:
  • the source end periodically sends a probe packet to the sink through the primary link, where the probe packet may be a CV or FFD packet.
  • the sink determines whether the probe packet is not received in the fixed period, or the specified packet received exceeds the specified number. If yes, execute 303, otherwise the process ends.
  • the primary link is faulty, and the sink sends a packet to the source through the reverse link to notify the status of the primary link.
  • the sent packet is a check packet, a specified packet, and the like, and the check packet is an E-BDI packet or an arbitrary packet stipulated by the source end and the sink end, and the specified packet may be a BDI report. Text or fault detection message, etc.
  • the source end determines whether the verification packet sent by the sink end is received in a fixed period, and if yes, execute
  • the source end determines whether the specified packet sent by the sink end is not received in the fixed period. If yes, the main link is restored from the fault state to the normal state, and the source end triggers the protection switching back to cut, so that the traffic is from the backup chain. The road switches to the primary link, otherwise the process ends.
  • the source end sends an acknowledgement packet to the sink end to indicate that the check packet sent by the sink end has been received.
  • the first embodiment is a preferred embodiment of the present invention.
  • the source end may receive a BDI packet, and may not receive a BDI packet. If the verification packet is received, the verification packet may not be received. Therefore, it is necessary to determine the reception status of the two types of packets to accurately determine the status of the primary link. It is worth noting that if the reverse link is in the normal state or the fault state, when the primary link returns to the normal state, the source end cannot receive the BDI packet. In this case, it is determined whether the source end receives the calibration within a fixed period. The message can be informed of the status of the primary link.
  • the verification message in the embodiment of the present invention may be an E-BDI message, and may also be any message stipulated by the source end and the sink end, for example, a 1-byte all-zero message or all 1 message, etc.
  • the FFD (E-FFD) message of the exhibition can also be any message stipulated by the source end and the sink end.
  • the source end and the sink end of the embodiment of the present invention may be a label switching router, or a router or other network equipment without label switching capability, and the primary link and the reverse link may be label switching paths or none. Routing of label switching capabilities, etc.
  • the type field of the BDI packet is 03H
  • the type field of the CV packet is 01H
  • the type field of the FFD packet is 02H.
  • the type fields of the E-CV, E-FFD, and E-BDI use 00H, that is, The type of the reservation in the OAM protocol packet is used to identify the packet as an extended packet. If the source or the sink supports the extended function, the packet is sent to the extended packet after receiving the packet. If the source or sink does not support the extension, the packet will be discarded. This will not affect the original function and ensure compatibility.
  • the reserved fields of BDI, CV and FFD messages are all 00H. After expansion, the reserved field of E-BDI is 01H, the reserved field of E-CV is 02H, and the reserved field of E-FFD is 03H, which distinguishes three extensions.
  • Protocol message The Defect Type and Defect Location fields involved in each extended packet are not processed, and the processing of other fields of the packet is not changed to ensure the unique correspondence between the extended protocol packet and the LSP. Relationship and the reliability of the message.
  • the extended BDI, CV and FFD messages are as follows: 0 7 15 23 31 Type field (00H) Reserved field (01H) Defect type tracking network device source identifier
  • the execution method of the program may include: a message sent by the sink end;
  • the storage medium may be a ROM, a RAM, a magnetic disk or an optical disk, or the like.
  • Embodiment 2 A network device, as shown in FIG. 4, the network device includes a first receiving unit 401, a first detecting unit 402, and a transmitting unit 405.
  • the first receiving unit 401 is configured to receive, when the primary link is in a fault state, the packet sent by the sink end of the primary link from the reverse link;
  • the first detecting unit 402 includes:
  • the first judging unit 403 is configured to determine, in a fixed period, whether the check packet sent by the sink end is received, where the check packet may be an E-BDI packet, or may be a source end and a sink end agreement. Any of the messages, for example, 1 byte of the whole ( ⁇ or ⁇ , etc.).
  • the second determining unit 404 is configured to determine, when the verification packet is received in a fixed period, whether the specified packet sent by the sink is not received, and detect that the primary link is faulty when the specified packet is not received. The state is restored to the normal state, and the specified packet is a BDI packet.
  • the sending unit 405 is configured to send the extended connectivity confirmation packet, the fast fault detection packet, or any packet agreed by the source end and the sink end to the sink end after the first receiving unit 401 receives the verification packet.
  • Implementation 3 A network device, as shown in FIG. 5, the network device includes:
  • the second receiving unit 501 is configured to receive, when the primary link is in a fault state, the packet sent by the sink of the primary link from the reverse link.
  • the second detecting unit 502 is configured to determine, in a fixed period, whether the verification packet sent by the sink end is received, and when the verification packet is received, detecting that the primary link is restored from the fault state to the normal state.
  • the second sending unit 503 is configured to send the extended connectivity confirmation packet, the fast fault detection packet, or any packet agreed by the source end and the sink end to the sink end after the second receiving unit 501 receives the verification packet.
  • the above may further include a module for timing, such as a timer, and the timing module may be integrated with the first detecting unit or the second detecting unit, or may be used as a single module.
  • a module for timing such as a timer
  • the network device can be implemented by software or hardware modules having the same or corresponding functions in addition to the implementation methods provided in the second embodiment and the third embodiment.
  • the source end of the embodiment of the present invention needs to detect whether the check packet sent by the sink end is received in a fixed period, and whether the specified packet sent by the sink end is not received, and
  • the embodiment of the present invention when the reverse link gradually recovers from the fault state to the normal state, the embodiment of the present invention can more accurately determine that the primary link is faulty. The status is still normal, so that error back-cutting can be avoided, so that traffic is not interrupted.
  • the embodiment of the present invention detects whether the device is received in a fixed period.
  • the check packet sent by the sink end can accurately obtain the state of the primary link, thereby avoiding Error-free back-cutting, so that business traffic will not be interrupted.

Abstract

A link state detecting method and a network device are disclosed. The link state detecting method includes multiple steps. When a main link is in a fault state, a source end of the main link receives messages transmitted from a destination end of the main link from a reversing link. If the source end receives a checkout message transmitted from the destination end during a first fixed period and does not receive a specific message transmitted from the destination end, or if the source end receives the checkout message transmitted from the destination end during a second fixed period, it is determined that the main link changes from the faultstate to a normal state.

Description

链路状态的检测方法以及网络设备  Link state detection method and network device
本申请要求于 2007 年 9 月 30 日提交中国专利局、 申请号为 200710151391.7、 发明名称为 "链路状态的检测方法以及网络设备,,的中国专利 申请的优先权, 其全部内容通过引用结合在本申请中。  This application claims priority to Chinese Patent Application No. 200710151391.7, entitled "Detection Method of Link Status and Network Equipment," filed on September 30, 2007, the entire contents of which are incorporated by reference. In this application.
技术领域 Technical field
本发明涉及网络通信技术领域,尤其涉及链路状态的检测方法以及网络设 备。  The present invention relates to the field of network communication technologies, and in particular, to a link state detection method and a network device.
背景技术 Background technique
基于多协议标签交换(MPLS, Multiprotocol Label Switching )的操作和维 护 ( OAM, Operations and Maintenance )是国际电信联盟 ( ITU, International Telecommunications Union )标准规定的链路检测技术。  OAM (Operation and Maintenance) based on Multiprotocol Label Switching (MPLS) is a link detection technology defined by the International Telecommunications Union (ITU) standard.
现有技术中基于 MPLS OAM协议的链路检测技术是这样实现的: 源端周 期性地向宿端发送探测报文,宿端根据收到的探测报文来判断被检测的标签交 换路径(LSP, Label Switch Path )是否故障, 如果宿端固定周期内不能接收到 规定数目的探测报文, 或者收到的探测报文超过规定数目, 则认为被检测的 LSP故障。 宿端通过反向 LSP向源端发送反向缺陷指示(BDI, Backward Defect Indication )报文, 通知被检测的 LSP发生故障, 并触发源端启动相应的保护机 制, 例如保护切换等。 源端在连续 3个周期内没有收到 BDI报文则会退出缺陷 状态, 并触发保护倒换回切, 也就是从备份 LSP切换到被检测的 LSP, 通常将 被检测的 LSP称为主 LSP。 其中, 源端发送的探测报文是连通确认 ( CV , Connectivity Verification )或快速故障检测(FFD, Fast Failure Detection )才艮文 等。  The link detection technology based on the MPLS OAM protocol in the prior art is implemented as follows: The source periodically sends a probe packet to the sink, and the sink determines the detected label switched path (LSP) according to the received probe packet. The label switch path is faulty. If the specified number of probe packets cannot be received within a fixed period of the sink, or if the number of probe packets received exceeds the specified number, the detected LSP is faulty. The sink sends a reverse defect indication (BDI) message to the source through the reverse LSP, notifying the detected LSP that the fault is detected, and triggering the source to start the corresponding protection mechanism, such as protection switching. If the source does not receive the BDI packet for 3 consecutive cycles, the device will exit the defect state and trigger the protection switchover, that is, the backup LSP is switched to the detected LSP. The detected LSP is usually called the primary LSP. . The detection packet sent by the source is CV (Connective Verification) or Fast Failure Detection (FFD).
发明内容 Summary of the invention
本发明实施例要解决的技术问题是提供一种链路状态的检测方法以及网 络设备, 能够准确判断主链路的状态。  The technical problem to be solved by the embodiments of the present invention is to provide a link state detection method and a network device, which can accurately determine the state of the primary link.
为解决上述技术问题,本发明实施例的一方面提供了一种链路状态的检测 方法, 该方法包括: 的宿端发送的报文; 所述源端如果在第一固定周期内收到所述宿端发送的校验报文并且没有 收到所述宿端发送的指定报文时,或者如果所述源端在第二固定周期内收到所 述宿端发送的校验报文时, 确定所述主链路由故障状态恢复至正常状态。 To solve the above technical problem, an aspect of the embodiment of the present invention provides a method for detecting a link state, where the method includes: a packet sent by a sink end; If the source end receives the verification packet sent by the sink end in the first fixed period and does not receive the specified packet sent by the sink end, or if the source end is in the second fixed period Upon receiving the verification packet sent by the sink, it is determined that the primary link is restored from the fault state to the normal state.
由于本发明实施例的源端需要在固定周期内检测是否收到所述宿端发送 的校验报文, 以及是否没有收到所述宿端发送的指定报文, 与现有技术仅判断 是否收到指定报文相比较,本发明实施例在反向链路逐渐从故障状态恢复至正 常状态时, 能够更加准确地判断主链路是处于故障状态还是正常状态,从而可 以避免错误回切, 进而使得业务流量不会被中断。  The source end of the embodiment of the present invention needs to detect whether the verification packet sent by the sink end is received in a fixed period, and whether the specified packet sent by the sink end is not received. When the reverse link is gradually recovered from the fault state to the normal state, the embodiment of the present invention can more accurately determine whether the primary link is in a fault state or a normal state, thereby avoiding false failback. In turn, business traffic is not interrupted.
本发明实施例还提供了一种网络设备, 该网络设备包括:  The embodiment of the invention further provides a network device, where the network device includes:
第一接收单元,用于在所述主链路处于故障状态时从反向链路接收所述主 链路的宿端发送的报文;  a first receiving unit, configured to receive, when the primary link is in a fault state, a packet sent by a sink of the primary link from a reverse link;
第一检测单元, 用于在固定周期内判断是否收到所述宿端发送的校验报 文, 以及是否没有收到所述宿端发送的指定报文, 并在收到所述校验报文并且 没有收到所述指定报文时, 检测得到所述主链路由故障状态恢复至正常状态。  a first detecting unit, configured to determine, in a fixed period, whether to receive the verification packet sent by the sink, and whether the specified packet sent by the sink is not received, and the verification packet is received When the specified message is not received, the main link is detected to be restored from the fault state to the normal state.
本发明实施例也提供了一种网络设备, 包括:  The embodiment of the invention also provides a network device, including:
第二接收单元,用于在所述主链路处于故障状态时从反向链路接收所述主 链路的宿端发送的报文;  a second receiving unit, configured to receive, when the primary link is in a fault state, a packet sent by a sink of the primary link from a reverse link;
第二检测单元, 用于在固定周期内判断是否收到所述宿端发送的校验报 文, 并在收到所述校验报文时检测得到主链路由故障状态恢复至正常状态。  And a second detecting unit, configured to determine, in a fixed period, whether the verification message sent by the sink end is received, and when the verification message is received, detecting that the main link is restored from a fault state to a normal state.
本发明实施例还提供一种网络设备, 包括:  The embodiment of the invention further provides a network device, including:
用于在主链路处于故障状态时从反向链路接收所述主链路的宿端发送的 报文的单元;  Means for receiving a message sent by a sink of the primary link from a reverse link when the primary link is in a fault state;
用于检测到在第一固定周期内收到所述宿端发送的校验报文并且没有收 到所述宿端发送的指定报文时,或者在第二固定周期内收到所述宿端发送的校 验报文时, 确定所述主链路由故障状态恢复至正常状态的单元。  When it is detected that the check packet sent by the sink end is received in the first fixed period, and the specified packet sent by the sink end is not received, or the sink end is received in the second fixed period. When the verification packet is sent, the unit that restores the primary link from the fault state to the normal state is determined.
本发明实施例还提供一种链路状态的检测系统,包括通过主链路和反向链 路相连的源端和宿端, 所述宿端用于检测到所述主链路发生故障后,通过所述 反向链路向所述源端发送指定报文, 并在停止发送所述指定报文时,发送校验 报文。 本发明实施例只要在固定周期内检测是否收到宿端发送的校验报文就能 够准确得到主链路的状态,从而可以避免错误回切, 进而使得业务流量不会被 中断。 The embodiment of the present invention further provides a link state detection system, including a source end and a sink end connected by a primary link and a reverse link, where the sink end is configured to detect that the primary link fails. Sending the specified packet to the source end by using the reverse link, and sending the verification packet when the specified packet is stopped. The embodiment of the present invention can accurately obtain the state of the primary link by detecting whether the verification packet sent by the sink end is received in a fixed period, thereby avoiding error back-cutting, and thus the service traffic is not interrupted.
附图说明 DRAWINGS
图 1是本发明实施例一种源端的处理方法流程图;  1 is a flowchart of a method for processing a source end according to an embodiment of the present invention;
图 2是本发明实施例一种宿端的处理方法流程图;  2 is a flowchart of a method for processing a sink end according to an embodiment of the present invention;
图 3是本发明实施例一链路状态的检测方法流程图;  3 is a flowchart of a method for detecting a link state according to an embodiment of the present invention;
图 4是本发明实施例二网络设备的示意图;  4 is a schematic diagram of a network device according to Embodiment 2 of the present invention;
图 5是本发明实施例三网络设备的示意图。  FIG. 5 is a schematic diagram of a network device according to Embodiment 3 of the present invention.
具体实施方式 detailed description
发明人在实现本发明过程中, 发现现有技术中至少存在如下问题: 由于 BDI报文的发送依赖于反向 LSP, 如果反向 LSP进入缺陷状态, 在一定条件下 会使得源端对主 LSP的状态出现错误判断并触发错误的回切, 导致流量中断。 人员能够更好地理解本发明, 下面结合附图对本发明实施例进行详细说明。  In the process of implementing the present invention, the inventors have found that at least the following problems exist in the prior art: Since the transmission of the BDI packet depends on the reverse LSP, if the reverse LSP enters the defect state, the source end is caused to the primary LSP under certain conditions. The status of the error is incorrectly judged and triggers an incorrect failback, causing traffic to be interrupted. The invention can be better understood by the following description of the embodiments of the invention.
参照图 1 , 图 1是本发明实施例一种源端的处理方法流程图, 由图 1可知, 若源端支持扩展功能, 源端退出缺陷的判断条件为 3个周期内收到扩展 BDI ( E-BDI )报文并且没有收到相应 BDI报文。 该方法包括:  Referring to FIG. 1, FIG. 1 is a flowchart of a method for processing a source end according to an embodiment of the present invention. As shown in FIG. 1, if the source end supports the extended function, the source terminal exits the defect to determine that the extended BDI is received within three cycles. -BDI) The message did not receive the corresponding BDI message. The method includes:
101、 复位所有计时器, 即对计时器 T3、 Τ4进行复位。  101. Reset all timers, that is, reset timers T3 and Τ4.
102、 判断是否收到 BDI报文, 如果是, 执行 103 , 否则返回执行 101。 102. Determine whether a BDI message is received, and if yes, execute 103, otherwise return to execution 101.
103、停止所有的反向度量,反向度量就是对反向衡量主链路性能的参数。 103. Stop all reverse metrics. Reverse metrics are parameters that measure the performance of the primary link in reverse.
104、 计时器 Τ3开始计时。  104. Timer Τ3 starts timing.
105、 判断计时器 Τ3是否小于 13个周期, 如果是, 执行 106, 否则执行 110。 105. Determine whether the timer Τ3 is less than 13 cycles, if yes, execute 106, otherwise execute 110.
106、 判断源端是否支持扩展, 如果是, 执行 107, 否则执行 108。 106. Determine whether the source supports extension. If yes, execute 107, otherwise execute 108.
107、 判断是否收到 E-BDI报文, 如果是, 执行 108, 否则返回执行 105。 107. Determine whether an E-BDI message is received, and if yes, execute 108, otherwise return to execution 105.
108、 判断 3个周期内是否没有收到 BDI报文, 如果是, 执行 109, 否则返 回执行 105。 108. Determine whether the BDI message is not received within 3 cycles. If yes, execute 109, otherwise return to execution 105.
109、 重置所有的反向度量, 也就是重置反向衡量主链路性能的参数, 然 后返回执行 101。 110、 计时器 T3停止计时, 计时器 Τ4 开始计时。 109. Reset all reverse metrics, that is, reset the parameters that measure the performance of the primary link in reverse, and then return to execution 101. 110. The timer T3 stops counting, and the timer Τ4 starts timing.
111、 判断源端是否支持扩展功能, 如果是, 执行 112, 否则执行 113。 111. Determine whether the source end supports the extended function. If yes, execute 112, otherwise execute 113.
112、 判断固定周期内是否收到 E-BDI报文, 如果是, 执行 113 , 否则返回 执行 111。 其中, MPLS ΟΑΜ协议通常将固定周期规定为持续的 3个周期。 112. Determine whether an E-BDI message is received within a fixed period. If yes, execute 113, otherwise return to execution 111. Among them, the MPLS ΟΑΜ protocol usually defines a fixed period as three consecutive periods.
113、 判断固定周期内是否没有收到 BDI报文, 如果是, 执行 114, 否则返 回执行 111。 其中, 所述固定周期与 112的固定周期一致。  113. Determine whether a BDI message is not received within a fixed period. If yes, execute 114, otherwise return to execution 111. The fixed period is consistent with the fixed period of 112.
114、 判断持续的 10个周期内是否没有收到 BDI报文, 如果是, 执行 115, 否则执行 116。  114. Determine whether the BDI message is not received within 10 consecutive periods. If yes, execute 115, otherwise execute 116.
115、 计时器 T4 停止计时。  115. Timer T4 stops timing.
116、 判断源端是否收到 BDI报文, 如果是, 返回执行 114, 否则返回执行 116. Determine whether the source end receives the BDI message, and if yes, return to execute 114, otherwise return to execute.
111。 111.
参照图 2, 图 2是本发明实施例一种宿端的处理方法流程图, 由图 2可知, 宿端从缺陷状态退出的时候, 增加了是否支持扩展功能的判断, 若支持扩展, 则停止发送前向缺陷指示 ( FDI , Forward Defect Indication )报文和 BDI报文, 同时触发 E-BDL¾文的发送, 并进入 E-BDI发送后的分支处理流程; 若不支持 扩展, 则按原协议规定流程处理。 该方法包括:  Referring to FIG. 2, FIG. 2 is a flowchart of a processing method of a sink end according to an embodiment of the present invention. As shown in FIG. 2, when the sink end exits from the defect state, the judgment of whether the extended function is supported is added, and if the extension is supported, the sending is stopped. Forward Defect Indication (FDI) message and BDI message, triggering the transmission of E-BDL3⁄4 text and entering the branch processing flow after E-BDI transmission; if extension is not supported, the procedure is as specified in the original protocol. deal with. The method includes:
201、 对计时器 Tl、 Τ2进行复位。  201. Reset the timers T1 and Τ2.
202、 判断是否检测到缺陷, 如果是, 执行 203 , 否则返回执行 201。  202. Determine whether a defect is detected. If yes, execute 203, otherwise return to execution 201.
203、 判断宿端是否收到源端发送的 FDI报文, 如果是, 执行 205 , 否则执 行 204, 生成缺陷警告, 再执行 205。  203. Determine whether the sink end receives the FDI packet sent by the source end, if yes, execute 205, otherwise execute 204, generate a defect warning, and then execute 205.
205、 宿端向源端发送 FDI报文和 BDI报文。  205. The sink sends the FDI packet and the BDI packet to the source end.
206、 计时器 T1 开始计时。  206, timer T1 starts timing.
207、 判断 T1是否小于 10个周期, 如果是, 执行 208, 否则执行 212。  207. Determine whether T1 is less than 10 cycles. If yes, execute 208, otherwise execute 212.
208、 判断缺陷是否结束, 如果是, 执行 209, 否则返回执行 207。  208. Determine whether the defect is over. If yes, execute 209, otherwise return to execution 207.
209、 判断宿端是否支持扩展功能, 如果是, 执行 210, 否则执行 211。 209. Determine whether the sink supports the extended function. If yes, execute 210, otherwise execute 211.
210、停止发送 FDI报文和 BDI报文, 同时发送 E-BDI报文,然后再执行 201。210. Stop sending FDI messages and BDI messages, send E-BDI packets at the same time, and then execute 201.
211、 停止发送 FDI报文和 BDI报文, 然后再执行 201。 211. Stop sending FDI messages and BDI messages, and then execute 201.
212、 计时器 T1停止计时, 计时器 Τ2 开始计时。  212. Timer T1 stops timing, and timer Τ2 starts timing.
213、 判断是否结束缺陷, 如果是, 执行 214, 否则继续执行 213。 214、 判断宿端是否支持扩展功能, 如果是, 执行 215, 否则停止发送 FDI 才艮文和 BDI艮文。 213. Determine whether the defect is ended. If yes, execute 214, otherwise continue to perform 213. 214. Determine whether the sink supports the extended function. If yes, execute 215, otherwise stop sending the FDI to the text and the BDI text.
215、 停止发送 FDI报文和 BDI报文, 同时发送 E-BDI报文。  215. Stop sending FDI messages and BDI messages, and send E-BDI packets at the same time.
216、 判断持续 10个周期内是否收到 9至 11个预期的 CV报文, 并且没有收 到不期望的报文, 如果是, 执行 217, 否则执行 219。  216. Determine whether 9 to 11 expected CV messages are received within 10 cycles, and no undesired messages are received. If yes, execute 217, otherwise execute 219.
217、 计时器 T2停止计时。  217. Timer T2 stops timing.
218、 重置所有的度量, 也就是对主链路的性能进行衡量的参数。  218. Reset all metrics, that is, parameters that measure the performance of the primary link.
219、 判断是否检测到缺陷, 如果是, 执行 220, 然后执行 213 , 否则执行 219. Determine whether a defect is detected. If yes, execute 220, and then execute 213, otherwise execute
220。 220.
220、 向源端发送 FDI报文和 BDI报文, 然后执行 213。  220. Send an FDI packet and a BDI packet to the source end, and then execute 213.
实施例一、 一种链路状态的检测方法, 方法流程图如图 3所示, 包括: Embodiment 1 A method for detecting a link state, and a method flowchart is shown in FIG. 3, including:
301、 源端通过主链路向宿端周期性地发送探测报文, 其中, 该探测报文 可以是 CV或 FFD报文。 301. The source end periodically sends a probe packet to the sink through the primary link, where the probe packet may be a CV or FFD packet.
302、 宿端判断固定周期内是否没有收到探测报文, 或者收到的指定报文 超过规定数目, 如果是, 执行 303 , 否则结束流程。  302. The sink determines whether the probe packet is not received in the fixed period, or the specified packet received exceeds the specified number. If yes, execute 303, otherwise the process ends.
303、 主链路出现故障, 宿端通过反向链路向源端发送报文通知主链路的 状态。 其中, 发送的报文为校验报文、 指定报文等, 所述校验报文是 E-BDI报 文或源端和宿端约定的任意报文, 所述指定报文可以是 BDI报文或故障检测报 文等。  303. The primary link is faulty, and the sink sends a packet to the source through the reverse link to notify the status of the primary link. The sent packet is a check packet, a specified packet, and the like, and the check packet is an E-BDI packet or an arbitrary packet stipulated by the source end and the sink end, and the specified packet may be a BDI report. Text or fault detection message, etc.
304、 源端判断固定周期内是否收到宿端发送的校验报文, 如果是, 执行 304. The source end determines whether the verification packet sent by the sink end is received in a fixed period, and if yes, execute
305, 否则说明主链路还处于故障状态, 结束流程。 305, otherwise the main link is still in a fault state, and the process ends.
305、 源端判断固定周期内是否没有收到宿端发送的指定报文, 如果是, 说明主链路由故障状态恢复至正常状态, 同时源端触发保护倒换回切,使得流 量从备份链路切换到主链路上, 否则结束流程。  305. The source end determines whether the specified packet sent by the sink end is not received in the fixed period. If yes, the main link is restored from the fault state to the normal state, and the source end triggers the protection switching back to cut, so that the traffic is from the backup chain. The road switches to the primary link, otherwise the process ends.
306、 源端向宿端发送确认报文表示已收到宿端发送的校验报文。  306. The source end sends an acknowledgement packet to the sink end to indicate that the check packet sent by the sink end has been received.
上述实施例一是本发明优选实施例 ,本实施例的反向链路从故障状态趋向 正常状态时, 此时源端可能收到 BDI报文, 也可能收不到 BDI报文, 同时也可 能收到校验报文, 也可能收不到校验报文, 因此需要对两种报文的接收情况进 行判断才能够准确地确定主链路的状态。 值得说明的是,如果反向链路一直处于正常状态或故障状态, 当主链路恢 复正常状态时, 源端都不能收到 BDI报文, 此时只要判断源端在固定周期内是 否收到校验报文就能获知主链路的状态。 The first embodiment is a preferred embodiment of the present invention. When the reverse link of the embodiment goes from a fault state to a normal state, the source end may receive a BDI packet, and may not receive a BDI packet. If the verification packet is received, the verification packet may not be received. Therefore, it is necessary to determine the reception status of the two types of packets to accurately determine the status of the primary link. It is worth noting that if the reverse link is in the normal state or the fault state, when the primary link returns to the normal state, the source end cannot receive the BDI packet. In this case, it is determined whether the source end receives the calibration within a fixed period. The message can be informed of the status of the primary link.
还值得说明的是, 本发明实施例的校验报文可以是 E-BDI报文, 此外还可 以是源端和宿端约定的任意报文, 例如, 1字节的全 0报文或全 1报文等。 展的 FFD ( E-FFD )报文, 也可以是源端和宿端约定的任意报文。  It is also to be noted that the verification message in the embodiment of the present invention may be an E-BDI message, and may also be any message stipulated by the source end and the sink end, for example, a 1-byte all-zero message or all 1 message, etc. The FFD (E-FFD) message of the exhibition can also be any message stipulated by the source end and the sink end.
最后, 本发明实施例的源端和宿端可以是标签交换路由器,也可以是没有 标签交换能力的路由器或其他网络设备,所述的主链路和反向链路可以是标签 交换路径或没有标签交换能力的路由等。  Finally, the source end and the sink end of the embodiment of the present invention may be a label switching router, or a router or other network equipment without label switching capability, and the primary link and the reverse link may be label switching paths or none. Routing of label switching capabilities, etc.
下面结合表 1、 表 2和表 3对 BDI报文、 CV报文以及 FFD报文的扩展进行说 明, 对报文的扩展涉及到两个部分:  The expansion of BDI packets, CV packets, and FFD packets is described below in conjunction with Table 1, Table 2, and Table 3. The extension of the packet involves two parts:
1 ) 、 类型 ( Type )字段  1 ) , type ( Type ) field
BDI报文的类型字段为 03H, CV报文的类型字段为 01H, FFD报文的类型 字段是 02H, 扩展之后, E-CV、 E-FFD和 E-BDI的类型字段均使用 00H , 也就 是 OAM协议报文中的保留类型, 以此标识此报文为扩展报文, 若源端或宿端 支持扩展功能, 则在收到带此标识的报文后进入扩展报文的处理流程, 若源端 或宿端不支持扩展, 则对报文做丟弃处理, 不会对原有功能产生影响, 保证了 兼容性。  The type field of the BDI packet is 03H, the type field of the CV packet is 01H, and the type field of the FFD packet is 02H. After the extension, the type fields of the E-CV, E-FFD, and E-BDI use 00H, that is, The type of the reservation in the OAM protocol packet is used to identify the packet as an extended packet. If the source or the sink supports the extended function, the packet is sent to the extended packet after receiving the packet. If the source or sink does not support the extension, the packet will be discarded. This will not affect the original function and ensure compatibility.
2 ) 、 保留 (Reserve )字段  2) , Reserve (Reserve) field
BDI、 CV和 FFD报文的保留字段均为 00H, 扩展之后, E-BDI的保留字段 为 01H, E-CV的保留字段为 02H, E-FFD的保留字段为 03H , 以此区分三种扩 展的协议报文。 对各扩展报文中涉及到的缺陷类型(Defect Type )和缺陷位置 ( Defect Location ) 字段不做处理, 而对于报文的其他字段的处理不做更改, 确保扩展协议报文与 LSP的唯一对应关系以及报文的可靠性。  The reserved fields of BDI, CV and FFD messages are all 00H. After expansion, the reserved field of E-BDI is 01H, the reserved field of E-CV is 02H, and the reserved field of E-FFD is 03H, which distinguishes three extensions. Protocol message. The Defect Type and Defect Location fields involved in each extended packet are not processed, and the processing of other fields of the packet is not changed to ensure the unique correspondence between the extended protocol packet and the LSP. Relationship and the reliability of the message.
扩展后的 BDI、 CV和 FFD报文具体如下: 0 7 15 23 31 类型字段(00H) 保留字段(01H) 缺 陷 类 型 跟踪网络设备源标识符 The extended BDI, CV and FFD messages are as follows: 0 7 15 23 31 Type field (00H) Reserved field (01H) Defect type tracking network device source identifier
缺陷位置 填充字段 Defect location padding field
16位交叉奇偶校验 16-bit cross parity
表 1  Table 1
0 7 15 23 31 类型字段(00H) 保留字段(02H) 跟踪网络设备源标识符  0 7 15 23 31 Type field (00H) Reserved field (02H) Track network device source identifier
缺陷位置 填充字段 Defect location padding field
16位交叉奇偶校验 16-bit cross parity
表 2 0 7 23 31 类型字段(00H ) 保留字段(03H ) 缺 陷 类 型 跟踪网络设备源标识符 Table 2 0 7 23 31 Type field (00H) Reserved field (03H) Defect type tracking network device source identifier
缺陷位置 Defect location
Figure imgf000010_0001
Figure imgf000010_0001
表 3  table 3
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分是可 以通过程序指示相关的硬件来完成,所述的程序可以存储于计算机可读取存储 介质中, 该程序在执行时, 包括: 的宿端发送的报文;  It will be understood by those skilled in the art that all or part of the methods for implementing the above embodiments may be implemented by a program indicating related hardware, and the program may be stored in a computer readable storage medium, and when executed, the program includes : The message sent by the sink;
在固定周期内检测是否收到所述宿端发送的校验报文,以及是否没有收到 所述宿端发送的指定报文,并在收到所述校验报文并且没有收到所述指定报文 时, 检测得到所述主链路由故障状态恢复至正常状态。  Detecting whether the verification packet sent by the sink is received, and whether the specified packet sent by the sink is not received, and the verification packet is received and the When a packet is specified, it is detected that the primary link is restored from a fault state to a normal state.
另外, 程序的执行方法可以包括: 的宿端发送的报文;  In addition, the execution method of the program may include: a message sent by the sink end;
在固定周期内检测是否收到所述宿端发送的校验报文,并在收到所述校验 报文时, 检测得到所述主链路由故障状态恢复至正常状态。  Detecting whether the verification packet sent by the sink is received in a fixed period, and detecting that the primary link is restored from a fault state to a normal state when the check packet is received.
其中, 所述的存储介质可以是 ROM、 RAM, 磁碟或光盘等等。  The storage medium may be a ROM, a RAM, a magnetic disk or an optical disk, or the like.
实施例二、一种网络设备, 由图 4可知,该网络设备包括第一接收单元 401、 第一检测单元 402和发送单元 405。  Embodiment 2 A network device, as shown in FIG. 4, the network device includes a first receiving unit 401, a first detecting unit 402, and a transmitting unit 405.
其中, 第一接收单元 401用于在主链路处于故障状态时从反向链路接收所 述主链路的宿端发送的报文; 其中, 第一检测单元 402包括: The first receiving unit 401 is configured to receive, when the primary link is in a fault state, the packet sent by the sink end of the primary link from the reverse link; The first detecting unit 402 includes:
第一判断单元 403 , 用于在固定周期内判断是否收到所述宿端发送的校验 报文,所述校验报文可以是 E-BDI报文,还可以是源端和宿端约定的任意报文, 例如, 1字节的全 (^艮文或全 艮文等。  The first judging unit 403 is configured to determine, in a fixed period, whether the check packet sent by the sink end is received, where the check packet may be an E-BDI packet, or may be a source end and a sink end agreement. Any of the messages, for example, 1 byte of the whole (^艮文 or 艮文, etc.).
第二判断单元 404, 用于在固定周期内收到校验报文时判断是否没有收到 所述宿端发送的指定报文,并在没有收到指定报文时检测得到主链路由故障状 态恢复至正常状态, 所述指定报文是 BDI报文。  The second determining unit 404 is configured to determine, when the verification packet is received in a fixed period, whether the specified packet sent by the sink is not received, and detect that the primary link is faulty when the specified packet is not received. The state is restored to the normal state, and the specified packet is a BDI packet.
其中,发送单元 405用于在第一接收单元 401收到校验报文之后向宿端发送 扩展的连通确认报文、 快速故障检测报文或源端和宿端约定的任意报文。  The sending unit 405 is configured to send the extended connectivity confirmation packet, the fast fault detection packet, or any packet agreed by the source end and the sink end to the sink end after the first receiving unit 401 receives the verification packet.
实施三、 一种网络设备, 由图 5可知, 该网络设备包括:  Implementation 3: A network device, as shown in FIG. 5, the network device includes:
第二接收单元 501 , 用于在主链路处于故障状态时从反向链路接收所述主 链路的宿端发送的报文。  The second receiving unit 501 is configured to receive, when the primary link is in a fault state, the packet sent by the sink of the primary link from the reverse link.
第二检测单元 502 , 用于在固定周期内判断是否收到所述宿端发送的校验 报文, 并在收到校验报文时检测得到主链路由故障状态恢复至正常状态。  The second detecting unit 502 is configured to determine, in a fixed period, whether the verification packet sent by the sink end is received, and when the verification packet is received, detecting that the primary link is restored from the fault state to the normal state.
第二发送单元 503 ,用于在第二接收单元 501收到校验报文之后向宿端发送 扩展的连通确认报文、 快速故障检测报文或源端和宿端约定的任意报文。  The second sending unit 503 is configured to send the extended connectivity confirmation packet, the fast fault detection packet, or any packet agreed by the source end and the sink end to the sink end after the second receiving unit 501 receives the verification packet.
值得说明的是, 上述还可以包括用来计时的模块, 例如计时器, 所述计时 模块可以和第一检测单元或第二检测单元集成在一起,也可以单独作为一个模 块。  It should be noted that the above may further include a module for timing, such as a timer, and the timing module may be integrated with the first detecting unit or the second detecting unit, or may be used as a single module.
还值得说明的是,网络设备除了上述实施例二和实施例三所提供的实现方 式之外, 还可以用具有相同或相应功能的软件或硬件模块来实现 。  It is also worth noting that the network device can be implemented by software or hardware modules having the same or corresponding functions in addition to the implementation methods provided in the second embodiment and the third embodiment.
综上所述,由于本发明实施例的源端需要在固定周期内检测是否收到所述 宿端发送的校验报文, 以及是否没有收到所述宿端发送的指定报文, 与现有技 术仅判断是否收到指定报文(例如, BDI报文)相比较, 本发明实施例在反向 链路逐渐从故障状态恢复至正常状态时 ,能够更加准确地判断主链路是处于故 障状态还是正常状态,从而可以避免错误回切,进而使得业务流量不会被中断。  In summary, the source end of the embodiment of the present invention needs to detect whether the check packet sent by the sink end is received in a fixed period, and whether the specified packet sent by the sink end is not received, and In the embodiment of the present invention, when the reverse link gradually recovers from the fault state to the normal state, the embodiment of the present invention can more accurately determine that the primary link is faulty. The status is still normal, so that error back-cutting can be avoided, so that traffic is not interrupted.
另外, 由于反向链路一直处于故障或正常状态都不会发送 BDI报文, 这样 就会对主链路的状态进行错误判断,此时本发明实施例只要在固定周期内检测 是否收到所述宿端发送的校验报文就能够准确得到主链路的状态,从而可以避 免错误回切, 进而使得业务流量不会被中断。 In addition, since the BDI packet is not sent in the faulty or normal state, the state of the primary link is incorrectly determined. In this embodiment, the embodiment of the present invention detects whether the device is received in a fixed period. The check packet sent by the sink end can accurately obtain the state of the primary link, thereby avoiding Error-free back-cutting, so that business traffic will not be interrupted.
上实施例的说明只是用于帮助理解本发明的方法及其核心思想; 同时,对于本 领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会 有改变之处, 综上所述, 本说明书内容不应理解为对本发明的限制。 The description of the above embodiments is only for helping to understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in specific embodiments and applications. In summary, the content of the specification should not be construed as limiting the invention.

Claims

权 利 要 求 Rights request
1、 一种链路状态的检测方法, 其特征是, 所述方法包括: 的宿端发送的报文;  A method for detecting a link state, where the method includes: a packet sent by a sink end;
所述源端如果在第一固定周期内收到所述宿端发送的校验报文并且没有 收到所述宿端发送的指定报文时,或者如果所述源端在第二固定周期内收到所 述宿端发送的校验报文时, 确定所述主链路由故障状态恢复至正常状态。  If the source end receives the verification packet sent by the sink end in the first fixed period and does not receive the specified packet sent by the sink end, or if the source end is in the second fixed period Upon receiving the verification packet sent by the sink, it is determined that the primary link is restored from the fault state to the normal state.
2、 如权利要求 1所述的方法, 其特征是, 所述方法进一步包括: 所述宿端检测到所述主链路发生故障后,通过所述反向链路发送所述指定 报文。  2. The method according to claim 1, wherein the method further comprises: after detecting, by the sink, that the primary link fails, transmitting the specified packet through the reverse link.
3、 如权利要求 2所述的方法, 其特征是, 所述方法进一步包括: 所述宿端停止发送所述指定报文时, 发送所述校验报文。  The method according to claim 2, wherein the method further comprises: when the sink stops transmitting the specified packet, sending the verification packet.
4、 如权利要求 3所述的方法, 其特征是, 所述方法进一步包括: 在所述宿端发送所述校验报文之前, 判断所述宿端是否支持扩展功能, 如 果是, 则执行所述发送所述校验报文。  The method according to claim 3, wherein the method further comprises: determining, before the sending end of the verification message, whether the sink end supports an extended function, and if yes, executing Sending the verification packet.
5、 如权利要求 1至 4任一项所述的方法, 其特征是, 所述校验报文是扩展 的反向缺陷指示报文或源端和宿端约定的任意报文。  The method according to any one of claims 1 to 4, wherein the verification message is an extended reverse defect indication message or an arbitrary message agreed by the source end and the sink end.
6、 如权利要求 1至 4任一项所述的方法, 其特征是, 所述指定报文是反向 缺陷指示报文或故障检测报文。  The method according to any one of claims 1 to 4, wherein the specified message is a reverse defect indication message or a failure detection message.
7、 一种网络设备, 用作主链路的源端, 其特征是, 所述网络设备包括: 第一接收单元,用于在所述主链路处于故障状态时从反向链路接收所述主 链路的宿端发送的报文;  A network device, which is used as a source end of a primary link, the network device includes: a first receiving unit, configured to receive, by the reverse link, when the primary link is in a fault state a packet sent by a sink of the primary link;
第一检测单元, 用于在固定周期内判断是否收到所述宿端发送的校验报 文, 以及是否没有收到所述宿端发送的指定报文, 并在收到所述校验报文并且 没有收到所述指定报文时, 检测得到所述主链路由故障状态恢复至正常状态。  a first detecting unit, configured to determine, in a fixed period, whether to receive the verification packet sent by the sink, and whether the specified packet sent by the sink is not received, and the verification packet is received When the specified message is not received, the main link is detected to be restored from the fault state to the normal state.
8、 如权利要求 7所述的网络设备, 其特征是, 第一检测单元包括: 第一判断单元, 用于在固定周期内判断是否收到所述校验报文; 第二判断单元,用于在固定周期内收到所述校验报文时判断是否没有收到 所述指定报文,并在没有收到指定报文时检测得到主链路由故障状态恢复至正 常状态。 The network device according to claim 7, wherein the first detecting unit comprises: a first determining unit, configured to determine whether the check message is received in a fixed period; When the verification packet is received in a fixed period, it is determined whether the specified packet is not received, and when the specified packet is not received, the main link is detected to be restored from the fault state to the positive state. Constant state.
9、 如权利要求 7或 8所述的网络设备, 其特征是, 所述网络设备进一步包 括:  The network device according to claim 7 or 8, wherein the network device further comprises:
发送单元,用于在第一接收单元收到校验报文之后向宿端发送扩展的连通 确认报文、 快速故障检测报文或源端和宿端约定的任意报文。  The sending unit is configured to send the extended connectivity confirmation packet, the fast fault detection packet, or any packet agreed by the source end and the sink end to the sink end after the first receiving unit receives the verification packet.
10、 一种网络设备, 用作主链路的源端, 其特征是, 所述网络设备包括: 第二接收单元,用于在所述主链路处于故障状态时从反向链路接收所述主 链路的宿端发送的报文;  A network device, configured to be used as a source of a primary link, the network device, comprising: a second receiving unit, configured to receive, when the primary link is in a fault state, receive from a reverse link a packet sent by a sink of the primary link;
第二检测单元, 用于在固定周期内判断是否收到所述宿端发送的校验报 文, 并在收到所述校验报文时检测得到主链路由故障状态恢复至正常状态。  And a second detecting unit, configured to determine, in a fixed period, whether the verification message sent by the sink end is received, and when the verification message is received, detecting that the main link is restored from a fault state to a normal state.
11、 一种网络设备, 其特征是, 包括:  11. A network device, characterized by comprising:
用于在主链路处于故障状态时从反向链路接收所述主链路的宿端发送的 报文的单元;  Means for receiving a message sent by a sink of the primary link from a reverse link when the primary link is in a fault state;
用于检测到在第一固定周期内收到所述宿端发送的校验报文并且没有收 到所述宿端发送的指定报文时,或者在第二固定周期内收到所述宿端发送的校 验报文时, 确定所述主链路由故障状态恢复至正常状态的单元。  When it is detected that the check packet sent by the sink end is received in the first fixed period, and the specified packet sent by the sink end is not received, or the sink end is received in the second fixed period. When the verification packet is sent, the unit that restores the primary link from the fault state to the normal state is determined.
12、一种链路状态的检测系统, 包括通过主链路和反向链路相连的源端和 宿端, 其特征是,  12. A link state detection system, comprising: a source end and a sink end connected by a primary link and a reverse link, wherein:
所述宿端, 用于检测到所述主链路发生故障后,通过所述反向链路向所述 源端发送指定 文, 并在停止发送所述指定"¾文时, 发送校验"¾文。  The sink end is configured to: after detecting that the primary link fails, send a specified text to the source end by using the reverse link, and send a check when stopping the sending of the specified “3⁄4 text” 3⁄4 text.
13、 如权利要求 12所述的系统, 其特征是, 所述宿端进一步用于在发送所 述校验报文之前, 判断所述宿端是否支持扩展功能, 如果是, 则执行所述发送 所述校验报文。  The system according to claim 12, wherein the sink is further configured to determine whether the sink supports an extended function before sending the check packet, and if yes, perform the sending The verification message.
14、 如权利要求 13所述的系统, 其特征是,  14. The system of claim 13 wherein:
所述源端,用于在主链路处于故障状态时从反向链路接收所述主链路的宿 端发送的报文,检测到在第一固定周期内收到所述宿端发送的校验报文并且没 有收到所述宿端发送的指定报文时,或者在第二固定周期内收到所述宿端发送 的校验报文时, 确定所述主链路由故障状态恢复至正常状态。  The source end is configured to receive, when the primary link is in a fault state, the packet sent by the sink end of the primary link from the reverse link, and detect that the sent by the sink end is received in the first fixed period. Determining that the primary link is restored from a fault state when the packet is received and the specified packet sent by the sink is not received, or when the check packet sent by the sink is received in the second fixed period. To normal state.
PCT/CN2008/072349 2007-09-30 2008-09-12 Link state detecting method and network device WO2009046652A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200710151391.7 2007-09-30
CNA2007101513917A CN101136810A (en) 2007-09-30 2007-09-30 Link state detecting method and network appliance

Publications (1)

Publication Number Publication Date
WO2009046652A1 true WO2009046652A1 (en) 2009-04-16

Family

ID=39160665

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/072349 WO2009046652A1 (en) 2007-09-30 2008-09-12 Link state detecting method and network device

Country Status (2)

Country Link
CN (1) CN101136810A (en)
WO (1) WO2009046652A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111698028A (en) * 2020-04-30 2020-09-22 新华三信息技术有限公司 FC link detection method, device, equipment and machine readable storage medium
CN113938403A (en) * 2020-07-13 2022-01-14 华为技术有限公司 Capability notification method and related equipment

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136810A (en) * 2007-09-30 2008-03-05 华为技术有限公司 Link state detecting method and network appliance
CN101610270B (en) * 2009-08-03 2012-08-08 浙江宇视科技有限公司 Signaling terminating method and signaling terminating gateway
CN102055660B (en) * 2009-11-10 2012-07-11 杭州华三通信技术有限公司 Main link restoration control method and switching system
CN101777997A (en) * 2010-01-21 2010-07-14 中兴通讯股份有限公司 Method and system for switching flow of network link

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060098581A1 (en) * 2004-11-05 2006-05-11 Cisco Technology, Inc. Method and apparatus for conveying link state information in a network
CN1953400A (en) * 2005-10-17 2007-04-25 华为技术有限公司 A method to control the continuity detection of Ethernet link
CN101043383A (en) * 2006-03-20 2007-09-26 中兴通讯股份有限公司 Method for detecting single-channel fault of ring-type network
CN101136810A (en) * 2007-09-30 2008-03-05 华为技术有限公司 Link state detecting method and network appliance

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060098581A1 (en) * 2004-11-05 2006-05-11 Cisco Technology, Inc. Method and apparatus for conveying link state information in a network
CN1953400A (en) * 2005-10-17 2007-04-25 华为技术有限公司 A method to control the continuity detection of Ethernet link
CN101043383A (en) * 2006-03-20 2007-09-26 中兴通讯股份有限公司 Method for detecting single-channel fault of ring-type network
CN101136810A (en) * 2007-09-30 2008-03-05 华为技术有限公司 Link state detecting method and network appliance

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111698028A (en) * 2020-04-30 2020-09-22 新华三信息技术有限公司 FC link detection method, device, equipment and machine readable storage medium
CN113938403A (en) * 2020-07-13 2022-01-14 华为技术有限公司 Capability notification method and related equipment
US11943099B2 (en) 2020-07-13 2024-03-26 Huawei Technologies Co., Ltd. Capability notification method and related device

Also Published As

Publication number Publication date
CN101136810A (en) 2008-03-05

Similar Documents

Publication Publication Date Title
US8305882B2 (en) Methods, systems, and computer program products for detecting and/or correcting faults in a multiprotocol label switching network by using redundant paths between nodes
EP2224644B1 (en) A protection method, system and device in the packet transport network
US7773877B2 (en) Method for handling channel failures in an automatically switched optical network
US8730814B2 (en) Communication network connection failure protection methods and systems
JP5508289B2 (en) Network recovery system and method from multilink failure
WO2008131624A1 (en) Distributed ethernet system and method for detecting fault based thereon
WO2009046652A1 (en) Link state detecting method and network device
US20090199040A1 (en) Method and device for implementing link pass through in point-to-multipoint network
WO2008055436A1 (en) Method of controlling the status of graceful restart and router
US20070097857A1 (en) Method and Apparatus for Fault Management in Ethernet and Multi-Protocol Label Switching Network Interworking Network
WO2008006268A1 (en) Method system and node device for realizing service protection in the automatically switched optical network
WO2012037820A1 (en) Multi-protocol label switch system, node device and method for establishing bidirectional tunnel
WO2011015011A1 (en) Method and system for ring network fault detection and locating
WO2012088910A1 (en) Method and system for detecting connectivity fault
CN104852809A (en) Method and system for processing SD (signal degradation) fault
WO2012097595A1 (en) Method and system for implementing shared-mesh protection
EP2129042A1 (en) A multicast network system, node and a method for detecting a fault of a multicast network link
WO2016033870A1 (en) Tunnel signal degradation notifying and switching method and apparatus, and computer storage medium
US10033573B2 (en) Protection switching method, network, and system
WO2021143524A1 (en) Fault detection method, and apparatus
WO2011020257A1 (en) Method and apparatus for notifying failure lsp information
US7869350B1 (en) Method and apparatus for determining a data communication network repair strategy
WO2007118429A1 (en) Method and apparatus for detecting backward defect indication path condition
WO2008040194A1 (en) Method and system for protecting multicast tree
WO2008095390A1 (en) An equipment for detecting the line fault of the pseudo wire emulation and a method thereof

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

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

Country of ref document: EP

Kind code of ref document: A1