WO2016169139A1 - 一种单纤故障的响应方法及装置 - Google Patents

一种单纤故障的响应方法及装置 Download PDF

Info

Publication number
WO2016169139A1
WO2016169139A1 PCT/CN2015/084129 CN2015084129W WO2016169139A1 WO 2016169139 A1 WO2016169139 A1 WO 2016169139A1 CN 2015084129 W CN2015084129 W CN 2015084129W WO 2016169139 A1 WO2016169139 A1 WO 2016169139A1
Authority
WO
WIPO (PCT)
Prior art keywords
link
protection group
protection
information
association table
Prior art date
Application number
PCT/CN2015/084129
Other languages
English (en)
French (fr)
Inventor
薛亚军
李青霖
邱军辉
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016169139A1 publication Critical patent/WO2016169139A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks

Definitions

  • This document relates to the field of communication technologies, and in particular, to a method and apparatus for responding to single fiber faults.
  • the standard of 10Gbit/s rate Ethernet is defined in IEEE (Institute of Electrical and Electronics Engineers) 802.3ae, and LFS (Link Fault Signaling) mechanism is defined in 802.3ae.
  • RS Reconciliation SubLayer
  • LF Local Fault
  • MAC Media Access Control
  • RF Remote Fault
  • BFD Bidirectional Forwarding Detection
  • RRC Request for Comments
  • the protection technology between the NEs needs to be implemented, and the 10 Gigabit Ethernet port is deployed.
  • a single-fiber fault occurs on the working link port, for example, the receiving direction of the network element A is faulty, the network element A quickly detects the link fault.
  • the protection switch is generally performed, but The direction of the network element B is normal and does not perform protection switching. This will cause abnormal network traffic.
  • bidirectional detection such as BFD can be deployed on the network to solve this problem.
  • the single-pass or single-way call caused by single-fiber faults will greatly reduce the detection performance of bidirectional detection such as BFD. Switch performance requirements.
  • the technical problem to be solved by the embodiments of the present invention is to provide a single fiber fault response method and device, which can quickly respond to single fiber faults and improve the performance of the two-way detection.
  • an embodiment of the present invention provides a method for responding to a single fiber fault, including:
  • the first device receives the RF signal sent by the second device after detecting the loss of the signal, according to the preset in the first device.
  • the first association table performs a handover decision, and the first association table includes a correspondence between the port of the first device, BFD session information, and protection group information.
  • the BFD session information includes: identification information of the BFD session; the protection group information includes: working link information and protection link information.
  • the performing the handover decision according to the first association table preset in the first device including: searching the first association table according to the port that receives the RF signal, and searching for the port corresponding to the port
  • the BFD session information, and the protection group information corresponding to the BFD session information determines whether to perform the switching of the protection group according to the protection group information.
  • the method further includes: a second association table preset in the second device, where the second association table includes a port of the second device, BFD session information, and a correspondence of protection group information. a relationship; when the second device detects a signal loss, making a handover decision according to the second association table.
  • the performing the handover decision according to the second association table includes:
  • the determining, according to the protection group information, whether to perform the switching of the protection group including:
  • the service is switched to the protection link corresponding to the working link, and the working link of the protection group is faulty;
  • the link is faulty and does not switch; or
  • protection link If the protection link is faulty and the current service is on the working link, set the protection group to protect the link from failing.
  • protection link is faulty and the current service is on the protection link, the service is switched back to the working link, and the protection group protection link is faulty.
  • an embodiment of the present invention further provides a response device for a single fiber fault, including a sending module and a switching decision module, where:
  • the sending module is configured to: when the device and the first device perform bidirectional detection of BFD, send a remote fault RF signal to the first device when a signal loss is detected;
  • the switching decision module is configured to: when the device and the second device perform the bidirectional detection of the BFD, after receiving the RF signal sent by the second device, perform a handover decision according to the preset first association table, where
  • the first association table includes a correspondence between the port of the first device, BFD session information, and protection group information.
  • the BFD session information includes: identification information of the BFD session; the protection group information includes: working link information and protection link information.
  • the handover decision module performs a handover decision according to the preset first association table, where the handover decision module searches the first association table according to the port that receives the RF signal, and searches for the port.
  • the corresponding BFD session information, and the protection group information corresponding to the BFD session information determines whether to perform the switching of the protection group according to the protection group information.
  • the switching decision module is further configured to: when the device and the first device perform BFD detection in a bidirectional manner, when detecting a signal loss, perform a handover decision according to a preset second association table, where
  • the second association table includes the port of the second device, the BFD session information, and the correspondence between the protection group information.
  • the handover decision module performs a handover decision according to the preset second association table, where the handover decision module searches the second association table according to the port that detects the signal loss, and searches for the corresponding port.
  • BFD session information, and a protection group letter corresponding to the BFD session information The information is determined according to the protection group information whether to perform the switching of the protection group.
  • the handover decision module determines, according to the protection group information, whether to perform the switching of the protection group, including:
  • the switching decision module determines that the working link is faulty and the current service is on the working link, and then switches the service to the protection link corresponding to the working link, and sets the working link of the protection group to be faulty; or
  • the handover decision module determines that the working link is faulty and the current service is on the protection link, the protection group working link is faulty and does not switch;
  • the protection group is configured to protect the link from failure and does not switch
  • the handover decision module determines that the protection link is faulty and the current service is on the protection link, the service is switched back to the working link, and the protection group protection link is faulty.
  • the embodiment of the invention further provides a computer readable storage medium storing program instructions, which can be implemented when the program instructions are executed.
  • the method and device for responding to a single fiber fault pre-records the correspondence between the port and the BFD and the protection group.
  • a fast change of the protection group is performed based on the mapping between the port and the BFD-protection group.
  • Embodiment 1 is a flowchart of a method according to Embodiment 1 of the present invention.
  • FIG. 2 is a schematic structural view of a device according to Embodiment 2 of the present invention.
  • FIG. 3 is a working diagram of apparatus A and apparatus B according to Embodiment 3 of the present invention.
  • Figure 5a is a network diagram of a two-network element
  • Figure 5b is a network diagram of multiple network elements.
  • This embodiment describes a method for responding to a single fiber fault, as shown in FIG. 1, including the following steps:
  • Step 110 During the bidirectional detection of the BFD by the second device and the first device, when the second device detects that the signal is lost, sending the RF signal to the first device;
  • the second device transmitting the RF signal to the first device can be implemented by setting the register in the bottom layer by means of an interrupt.
  • Step 120 After receiving the RF signal, the first device performs a handover decision according to a first association table preset in the first device, where the first association table includes a port of the first device, Correspondence between BFD session information and protection group information.
  • the BFD session information includes: BFD session identification information, which is used to identify a BFD session. Information;
  • the protection group information includes: working link information and protection link information, information recorded on the bearer service, and information on whether a fault has occurred.
  • the first device After receiving the RF signal, the first device searches for the first association table according to the port that receives the RF signal, and searches for BFD session information corresponding to the port, and protection group information corresponding to the BFD session information. That is, the identifier of the faulty BFD session corresponding to the port is searched, and the protection group corresponding to the BFD session is searched according to the identifier of the BFD session, and then the protection group is switched according to the protection group information.
  • determining, according to the protection group information, whether to perform protection group switching including:
  • the service is switched to the protection link corresponding to the working link, and the working link of the protection group is faulty;
  • protection link If the protection link is faulty and the current service is on the working link, set the protection group to protect the link from failing.
  • protection link is faulty and the current service is on the protection link, the service is switched back to the working link, and the protection group protection link is faulty.
  • the second device may also preset a second association table, where the second association table includes a port of the second device, BFD session information, and a correspondence between the protection group information;
  • the second device detects a signal loss, and may perform a handover decision according to the second association table.
  • the second device searches for the second association table according to the port that detects the signal loss, and searches for BFD session information corresponding to the port, and protection group information corresponding to the BFD session information, according to the protection group information. It is decided whether to perform the switching of the protection group. How to decide whether to perform protection group switching based on the protection group information is described in the above, and will not be described here.
  • the apparatus for implementing the method of Embodiment 1 above includes a sending module 201 and a switching decision module 202, wherein:
  • the sending module 201 is configured to send a remote fault RF signal to the first device when detecting that the signal is lost during the bidirectional detection of the BFD by the device and the first device;
  • the switching decision module 202 is configured to perform a handover decision according to a preset first association table after receiving the RF signal sent by the second device in the process of performing bidirectional BFD detection between the device and the second device.
  • the first association table includes a correspondence between the port of the first device, BFD session information, and protection group information.
  • the BFD session information includes: identification information of the BFD session; the protection group information includes: working link information and protection link information.
  • the switching decision module 202 performs a handover decision according to the preset first association table, including: the handover decision module 202 searches the first association table according to the port that receives the RF signal, and searches for the corresponding port.
  • the BFD session information, and the protection group information corresponding to the BFD session information determines whether to perform the switching of the protection group according to the protection group information.
  • the switching decision module 202 determines whether to perform the switching of the BFD session according to the protection group information, including:
  • the switching decision module 202 determines that the working link is faulty and the current BFD session is on the working link, and then switches the BFD session to the protection link corresponding to the working link; or
  • the switching decision module 202 determines that the working link is faulty and the current BFD session is on the protection link, and then sets the protection group to fail and does not switch; or
  • the handover decision module 202 determines that the protection link is faulty and the current BFD session is working. On the link, set the protection group to fail and do not switch; or
  • the switching decision module 202 determines that the protection link is faulty and the current BFD session is on the protection link, and then the BFD session is switched back to the working link.
  • the switching decision module 202 is further configured to: when the device and the first device perform bidirectional detection of the BFD, when the signal loss is detected, perform a handover decision according to the preset second association table, where
  • the second association table includes a port of the second device, BFD session information, and a correspondence between the protection group information.
  • the switching decision module 202 searches the second association table according to the port that detects the signal loss, and searches for the BFD session information corresponding to the port, and the protection group information corresponding to the BFD session information, according to the protection group.
  • the information decision is whether or not to perform the switching of the protection group.
  • This embodiment describes the method of Embodiment 1 in detail.
  • an association table is set on both device A and device B.
  • the device A and the device B shown in FIG. 3 perform BFD.
  • the TX in the figure indicates the transmission, and the RX indicates the reception.
  • the process of responding to the single fiber failure is as shown in FIG. 4, and includes:
  • Step 301 Record the correspondence between the port of the device A and the BFD session and the protection group, and the correspondence between the port of the device B and the BFD session and the protection group.
  • the mapping between the port of the device A and the BFD and the protection group can be recorded in two tables: the association table of the port and the BFD session, and the association table of the BFD session and the protection group.
  • the port information is recorded in the association table between the port and the BFD.
  • Link information is recorded in two tables: the association table of the port and the BFD session, and the association table of the BFD session and the protection group.
  • Step 302 the device A and the device B port work normally.
  • the physical layer RS sends the LF signal to the MAC layer and sets the corresponding register;
  • the purpose of setting the register is to inform the control layer by means of an interrupt.
  • Step 303 after transmitting the LF signal generated in step 302, the device B sends the MAC frame and the RF. Signal to device A;
  • the device B can be processed according to a normal link failure, a detection report, and a protection group handover procedure.
  • Step 304 the device A receives the RF signal in the MAC layer setting register, when the device A detects that the RF register is set, generates an alarm interrupt event and sends it to the software control layer;
  • Device A will generate an interrupt based on the state change of the RF register, whereby device A can quickly sense a single fiber fault.
  • Step 305 After receiving the RF alarm generated in step 304, the device A software control layer determines the processing according to the association table between the port and the BFD and the protection group.
  • the network element A and the network element B are configured to protect the network element, and the working link and the protection link are set up from the network element A to the network element B.
  • the network element A and the network element B record the current network element respectively.
  • a table of associations between ports and BFDs and protection groups Assume that after a single fiber fault occurs on the link when the entire network is working properly, NE B detects that the signal is lost, sends RF to NE A, and performs protection group switching or protection group status setting (protection group work or protection group failure).
  • the network element A After receiving the RF signal of the network element B, the network element A sets the port MAC layer RF register, and the network element A detects that the port MAC layer RF register is set, and immediately generates an alarm to be sent to the upper layer software logic control layer in an interrupt manner.
  • the control layer performs the decision. If BFD is configured on the port, the protection group is notified of the traffic switching according to the association table. If the working link is faulty and the current service is on the working link, the switchover is performed immediately. A single fiber is faulty but the current service is on the protection link. If the protection group is working properly (that is, the protection group is working on the link fault), the switch does not switch. If the protection link is faulty and the current service is on the protection link, go back immediately.
  • the protection group is configured to protect the fault (that is, the protection group protects the link from being faulty) and does not switch. If no BFD is configured, the protection group is not operated. In this way, the consistency of the switching operations of the network element A and the network element B can be ensured, and the real-time performance and reliability can be ensured.
  • the processing of the networking situation shown in Figure 5b is similar to the networking scenario shown in Figure 5a, that is, the notification of the single-fiber fault and the handover decision are the same, except that the dual-homing protection replaces the point-to-point protection.
  • the embodiment of the invention further provides a computer readable storage medium storing program instructions, which can be implemented when the program instructions are executed.
  • the embodiments of the present invention can solve the problems of network protection failure or performance degradation caused by single-fiber faults, and can not only quickly switch network nodes in the event of single-fiber faults, but also ensure the detection performance of two-way detection.

Landscapes

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

Abstract

一种单纤故障的响应方法及装置,快速响应单纤故障,提高双向检测的性能。所述方法包括:第二装置与第一装置进行双向检测BFD的过程中,当所述第二装置检测到信号丢失,向所述第一装置发送远程故障RF信号;所述第一装置接收到所述RF信号后,根据在所述第一装置中预设的第一关联表进行切换决策,所述第一关联表包括所述第一装置的端口,BFD会话信息以及保护组信息的对应关系。

Description

一种单纤故障的响应方法及装置 技术领域
本文涉及通信技术领域,尤其涉及单纤故障的响应方法及装置。
背景技术
在IEEE(Institute of Electrical and Electronics Engineers,电气和电子工程师协会)802.3ae中定义了10Gbit/s速率以太网的标准,802.3ae中定义了LFS(Link Fault Signaling,链路故障信号)机制,它属于RS(Reconciliation SubLayer,协调子层),用来标识特理链路的情况。当物理链路出现错误时,物理层就会向本地的MAC(Media Access Control,媒体访问控制)层发送LF(Local Fault,局部故障)序列,MAC层在接收到LF序列后,就会持续发送RF(Remote Fault,远程故障),对接端收到RF的MAC层则会处理发送状态机,停止发送MAC帧。
在RFC(Request For Comments,请求注解)5880中定义了BFD(Bidirectional Forwarding Detection,双向检测),用于检测两个转发点之间故障的网络协议,是一种双向转发检测机制,可以提供毫秒级的检测,可以实现链路的快速检测,BFD通过与上层路由协议联动,可以实现路由的快速收敛,确保业务的永续性。
而对于相关技术组网中需要实施网元间的保护技术,并且会部署万兆以太口。在正常工作的网络中,当工作链路端口发生单纤故障时,例如网元A的收方向故障,网元A很快检测到链路故障,根据状态机决策,一般会进行保护切换,但网元B收方向是正常并不会进行保护切换,这样就会导致网络流量异常。对于这种问题,可以在网络中部署BFD等双向检测解决这个问题,但由于单纤故障导致的单通即单向通话的存在,势必大大降低BFD等双向检测的检测性能,无法满足电信级的切换性能要求。
对于上述在单纤故障情况如何解决单端切换业务异常或者提高部署双向检测的性能等问题,就需要一种技术及装置能够根据RF信号快速响应切换,以达到网络节点同步切换以及电信级的切换性能要求。
发明内容
本发明实施例要解决的技术问题是提供一种单纤故障的响应方法及装置,快速响应单纤故障,提高双向检测的性能。
为了解决上述技术问题,本发明实施例提供了一种单纤故障的响应方法,包括:
第二装置与第一装置进行双向检测BFD的过程中,所述第一装置接收到所述第二装置在检测到信号丢失后发送的RF信号后,根据在所述第一装置中预设的第一关联表进行切换决策,所述第一关联表包括所述第一装置的端口,BFD会话信息以及保护组信息的对应关系。
可选地,所述BFD会话信息包括:BFD会话的标识信息;所述保护组信息包括:工作链路信息和保护链路信息。
可选地,所述根据在所述第一装置中预设的第一关联表进行切换决策,包括:根据接收到所述RF信号的端口查找所述第一关联表,查找与所述端口对应的BFD会话信息,以及与所述BFD会话信息对应的保护组信息,根据保护组信息决策是否进行所述保护组的切换。
可选地,所述方法还包括:在所述第二装置中预设的第二关联表,所述第二关联表包括所述第二装置的端口,BFD会话信息,以及保护组信息的对应关系;当所述第二装置检测到信号丢失,根据所述第二关联表进行切换决策。
可选地,所述根据第二关联表进行切换决策,包括:
根据检测到信号丢失的端口查找所述第二关联表,查找与所述端口对应的BFD会话信息,以及与所述BFD会话信息对应的保护组信息,根据保护组信息决策是否进行所述保护组的切换。
可选地,所述根据保护组信息决策是否进行所述保护组的切换,包括:
判断工作链路发生故障且当前业务处于所述工作链路上,则将所述业务切换到所述工作链路对应的保护链路上,并设置保护组工作链路故障;或者
判断工作链路发生故障且当前业务处于保护链路上,则设置保护组工作 链路故障,不切换;或者
判断保护链路发生故障且当前业务处于工作链路上,则设置保护组保护链路故障,不切换;或者
判断保护链路发生故障且当前业务处于所述保护链路上,则将所述业务回切到工作链路上,并设置保护组保护链路故障。
为了解决上述技术问题,本发明实施例还提供了一种单纤故障的响应装置,包括发送模块和切换决策模块,其中:
所述发送模块,设置为:在本装置与第一装置进行双向检测BFD的过程中,在检测到信号丢失时,向所述第一装置发送远程故障RF信号;
所述切换决策模块,设置为:在本装置与第二装置进行双向检测BFD的过程中,当接收到第二装置发送的RF信号后,根据预设的第一关联表进行切换决策,所述第一关联表包括所述第一装置的端口,BFD会话信息以及保护组信息的对应关系。
可选地,所述BFD会话信息包括:BFD会话的标识信息;所述保护组信息包括:工作链路信息和保护链路信息。
可选地,所述切换决策模块根据预设的第一关联表进行切换决策,包括:所述切换决策模块根据接收到所述RF信号的端口查找所述第一关联表,查找与所述端口对应的BFD会话信息,以及与所述BFD会话信息对应的保护组信息,根据保护组信息决策是否进行所述保护组的切换。
可选地,所述切换决策模块还设置为:在本装置与第一装置进行双向检测BFD的过程中,在检测到信号丢失时,根据预设的第二关联表进行切换决策,所述第二关联表包括所述第二装置的端口,BFD会话信息,以及保护组信息的对应关系。
可选地,所述切换决策模块根据预设的第二关联表进行切换决策,包括:所述切换决策模块根据检测到信号丢失的端口查找所述第二关联表,查找与所述端口对应的BFD会话信息,以及与所述BFD会话信息对应的保护组信 息,根据保护组信息决策是否进行所述保护组的切换。
可选地,所述切换决策模块根据保护组信息决策是否进行所述保护组的切换,包括:
所述切换决策模块判断工作链路发生故障且当前业务处于所述工作链路上,则将所述业务切换到所述工作链路对应的保护链路上,并设置保护组工作链路故障;或者
所述切换决策模块判断工作链路发生故障且当前业务处于保护链路上,则设置保护组工作链路故障,不切换;或者
所述切换决策模块判断保护链路发生故障且当前业务处于工作链路上,则设置保护组保护链路故障,不切换;或者
所述切换决策模块判断保护链路发生故障且当前业务处于所述保护链路上,则将所述业务回切到工作链路上,并设置保护组保护链路故障。
本发明实施例还提供一种计算机可读存储介质,存储有程序指令,当该程序指令被执行时可实现上面所述的方法。
本发明实施例提出的响应单纤故障方法及装置,预先记录端口与BFD、保护组的对应关系,当工作链路或者保护链路物理端口出现单纤故障时,根据收到的RF中断事件,快速感知链路单纤故障的情况,根据端口-BFD-保护组对应关系,进行保护组的快速切换。通过在装置上增加端口、BFD、保护组关联表,告警上报机制,能够很好的解决单纤故障带来的网络保护失效或者性能劣化等问题,不但可以使网络节点在发生单纤故障时快速切换,同时也可以保证双向检测的检测性能。
本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。
附图概述
附图用来提供对本发明技术方案的进一步理解,并且构成说明书的一部 分,与本申请的实施例一起用于解释本发明的技术方案,并不构成对本发明技术方案的限制。
图1为本发明实施例1方法流程图;
图2为本发明实施例2装置结构示意图;
图3为本发明实施例3装置A和装置B工作图;
图4为本发明实施例3装置A和装置B处理单纤故障流程图;
图5a为二网元组网图;
图5b为多网元组网图。
本发明的实施方式
为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。
在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在一些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
实施例1
本实施例描述一种单纤故障的响应方法,如图1所示,包括以下步骤:
步骤110,第二装置与第一装置进行双向检测BFD的过程中,当所述第二装置检测到信号丢失,向所述第一装置发送RF信号;
第二装置向第一装置发送RF信号可以通过在底层设置寄存器,通过中断的方式来实现。
步骤120,所述第一装置接收到所述RF信号后,根据在所述第一装置中预设的第一关联表进行切换决策,所述第一关联表包括所述第一装置的端口,BFD会话信息以及保护组信息的对应关系。
所述BFD会话信息包括:BFD会话的标识信息,即用于标识BFD会话 的信息;
所述保护组信息包括:工作链路信息和保护链路信息,记录有承载业务的信息,以及是否发生故障的信息。
第一装置在接收到RF信号后,根据接收到所述RF信号的端口查找所述第一关联表,查找与所述端口对应的BFD会话信息,与所述BFD会话信息对应的保护组信息,即查找所述端口对应的发生故障的BFD会话的标识,再根据该BFD会话的标识查找该BFD会话对应的保护组,然后根据保护组信息决策是否进行所述保护组的切换。
可选地,根据保护组信息决策是否进行保护组的切换,包括:
判断工作链路发生故障且当前业务处于所述工作链路上,则将所述业务切换到所述工作链路对应的保护链路上,并设置保护组工作链路故障;或者
判断工作链路发生故障且当前业务处于保护链路上,则设置保护组工作链路故障,不切换;或者
判断保护链路发生故障且当前业务处于工作链路上,则设置保护组保护链路故障,不切换;或者
判断保护链路发生故障且当前业务处于所述保护链路上,则将所述业务回切到工作链路上,并设置保护组保护链路故障。
在一个实施例中,所述第二装置中也可以预设第二关联表,所述第二关联表包括所述第二装置的端口,BFD会话信息,以及保护组信息的对应关系;当所述第二装置检测到信号丢失,可以根据所述第二关联表进行切换决策。可选地,第二装置根据检测到信号丢失的端口查找所述第二关联表,查找与所述端口对应的BFD会话信息,以及与所述BFD会话信息对应的保护组信息,根据保护组信息决策是否进行所述保护组的切换。如何根据保护组信息决策是否进行保护组的切换参见上文中描述,此处不再赘述。
正常情况下由于部署的是双向检测,有一个方向会先检测到故障,但另外一个方向链路还是正常,等对端会话删除才会报故障,这样就会出现一端先切换,另外一端后切换的情况。在本实施例中,通过关联端口与BFD及保 护组的关系,利用单通情况下链路接收数据正常,但会有对端故障RF的信号,通过查找关联表及时进行保护组切换,达到两端切换时间差降低到最小,不会出现业务长时间断流,并提高了双向检测的性能。
实施例2
实现上述实施例1方法的装置如图2所示,包括发送模块201和切换决策模块202,其中:
所述发送模块201,设置为在本装置与第一装置进行双向检测BFD的过程中,在检测到信号丢失时,向所述第一装置发送远程故障RF信号;
所述切换决策模块202,设置为在本装置与第二装置进行双向检测BFD的过程中,当接收到第二装置发送的RF信号后,根据预设的第一关联表进行切换决策,所述第一关联表包括所述第一装置的端口,BFD会话信息以及保护组信息的对应关系。
上述BFD会话信息包括:BFD会话的标识信息;保护组信息包括:工作链路信息和保护链路信息。
所述切换决策模块202根据预设的第一关联表进行切换决策,包括:所述切换决策模块202根据接收到所述RF信号的端口查找所述第一关联表,查找与所述端口对应的BFD会话信息,以及与所述BFD会话信息对应的保护组信息,根据保护组信息决策是否进行所述保护组的切换。
所述切换决策模块202根据保护组信息决策是否进行所述BFD会话的切换,包括:
所述切换决策模块202判断工作链路发生故障且当前BFD会话处于所述工作链路上,则将所述BFD会话切换到所述工作链路对应的保护链路上;或者
所述切换决策模块202判断工作链路发生故障且当前BFD会话处于保护链路上,则设置保护组故障,不切换;或者
所述切换决策模块202判断保护链路发生故障且当前BFD会话处于工作 链路上,则设置保护组故障,不切换;或者
所述切换决策模块202判断保护链路发生故障且当前BFD会话处于所述保护链路上,则将所述BFD会话回切到工作链路上。
可选地,所述切换决策模块202还设置为:在本装置与第一装置进行双向检测BFD的过程中,在检测到信号丢失时,根据预设的第二关联表进行切换决策,所述第二关联表包括所述第二装置的端口,BFD会话信息,以及保护组信息的对应关系。可选地,切换决策模块202根据检测到信号丢失的端口查找所述第二关联表,查找与所述端口对应的BFD会话信息,以及与所述BFD会话信息对应的保护组信息,根据保护组信息决策是否进行所述保护组的切换。
实施例3
本实施例对实施例1方法进行详细说明。在本例中,在装置A和装置B上均设置关联表。
如图3所示的装置A和装置B进行BFD,图中的TX表示发送,RX表示接收,响应单纤故障的流程如图4所示,包括:
步骤301,预先分别记录装置A的端口与BFD会话、保护组的对应关系以及装置B的端口与BFD会话、保护组的对应关系;
例如,装置A的端口与BFD、保护组的对应关系可以通过两个表记录:端口和BFD会话的关联表以及BFD会话和保护组的关联表,其中端口和BFD的关联表中记录有端口信息,以及从对应端口上收发BFD报文的BFD会话的标识信息;BFD和保护组的关联表中记录有BFD会话标识与对应保护组的信息,所述保护组信息中记录有工作链路和保护链路信息。
步骤302,装置A与装置B端口正常工作,当装置B检测到信号丢失,物理层RS就向MAC层发送LF信号并设置相应寄存器;
设置寄存器的目的是为了通过中断的方式通知控制层。
步骤303,装置B在步骤302中产生的LF信号后,发送MAC帧和RF 信号给装置A;
装置B可以按照正常链路故障、检测上报、保护组切换流程处理。
步骤304,装置A接收到RF信号在MAC层设置寄存器,当装置A检测到RF寄存器置位,产生告警中断事件上送软件控制层;
装置A会根据RF寄存器的状态变化产生中断,由此装置A能够快速感知单纤故障。
步骤305,装置A软件控制层接收步骤304中产生的RF告警以后,根据端口与BFD、保护组的关联表决策处理。
对于装置A,由于检测本身并没有报链路故障,因此需要查找关联表进行切换。当端口上配置了BFD,则把该端口上所有保护组的流量根据状态机结果进行保护切换;当端口上没有配置BFD,则不进行保护切换。
应用示例:
如图5a中,网元A与网元B配置网元间保护,从网元A到网元B建立工作链路和保护链路,网元A和网元B分别记录下当前本网元上端口与BFD、保护组的关联关系表。假设在整个网络工作正常的情况下链路出现单纤故障后,网元B检测到信号丢失,发送RF到网元A,同时进行保护组切换或者保护组状态设置(保护组工作或者保护组故障),网元A收到网元B的RF信号后,设置端口MAC层RF寄存器,网元A检测到端口MAC层RF寄存器置位,立即产生告警以中断方式上送上层软件逻辑控制层。控制层执行决策,如果端口上配置了BFD,则根据关联关系表通知保护组进行流量切换,如果是工作链路单纤故障且当前业务处于工作链路上,立即进行切换,如果是工作链路单纤故障但当前业务处于保护链路上,设置保护组工作故障(即保护组工作链路故障),不切换;如果是保护链路单纤故障且当前业务处于保护链路上,立即进行回切,如果是保护链路单纤故障单当前业务处于工作链路上,设置保护组保护故障(即保护组保护链路故障),不切换;如果没有配置BFD,则不操作保护组。这样能够保证网元A和网元B倒换动作的一致性,同时也可以保证其实时性和可靠性。
如图5b所示组网情况的处理过程和图5a所示的组网情况类似,即单纤故障的通知及切换决策相同,只是用双归保护代替点到点保护。
本发明实施例还提供一种计算机可读存储介质,存储有程序指令,当该程序指令被执行时可实现上面所述的方法。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相光硬件完成,上述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。
工业实用性
本发明实施例能够很好的解决单纤故障带来的网络保护失效或者性能劣化等问题,不但可以使网络节点在发生单纤故障时快速切换,同时也可以保证双向检测的检测性能。

Claims (13)

  1. 一种单纤故障的响应方法,包括:
    第二装置与第一装置进行双向检测BFD的过程中,所述第一装置接收到所述第二装置在检测到信号丢失后发送的RF信号后,根据在所述第一装置中预设的第一关联表进行切换决策,所述第一关联表包括所述第一装置的端口,BFD会话信息以及保护组信息的对应关系。
  2. 根据权利要求1所述的方法,其中,
    所述BFD会话信息包括:BFD会话的标识信息;
    所述保护组信息包括:工作链路信息和保护链路信息。
  3. 根据权利要求1所述的方法,其中,
    所述根据在所述第一装置中预设的第一关联表进行切换决策,包括:
    根据接收到所述RF信号的端口查找所述第一关联表,查找与所述端口对应的BFD会话信息,以及与所述BFD会话信息对应的保护组信息,根据保护组信息决策是否进行所述保护组的切换。
  4. 根据权利要求1所述的方法,
    所述方法还包括:在所述第二装置中预设第二关联表,所述第二关联表包括所述第二装置的端口,BFD会话信息,以及保护组信息的对应关系;
    当所述第二装置检测到信号丢失,根据所述第二关联表进行切换决策。
  5. 根据权利要求4所述的方法,其中,
    所述根据第二关联表进行切换决策,包括:
    根据检测到信号丢失的端口查找所述第二关联表,查找与所述端口对应的BFD会话信息,以及与所述BFD会话信息对应的保护组信息,根据保护组信息决策是否进行所述保护组的切换。
  6. 根据权利要求3或5所述的方法,其中,
    所述根据保护组信息决策是否进行所述保护组的切换,包括:
    判断工作链路发生故障且当前业务处于所述工作链路上,则将所述业务 切换到所述工作链路对应的保护链路上,并设置保护组工作链路故障;或者
    判断工作链路发生故障且当前业务处于保护链路上,则设置保护组工作链路故障,不切换;或者
    判断保护链路发生故障且当前业务处于工作链路上,则设置保护组保护链路故障,不切换;或者
    判断保护链路发生故障且当前业务处于所述保护链路上,则将所述业务回切到工作链路上,并设置保护组保护链路故障。
  7. 一种单纤故障的响应装置,包括发送模块和切换决策模块,其中:
    所述发送模块,设置为:在本装置与第一装置进行双向检测BFD的过程中,在检测到信号丢失时,向所述第一装置发送远程故障RF信号;
    所述切换决策模块,设置为:在本装置与第二装置进行双向检测BFD的过程中,当接收到第二装置发送的RF信号后,根据预设的第一关联表进行切换决策,所述第一关联表包括所述第一装置的端口,BFD会话信息以及保护组信息的对应关系。
  8. 根据权利要求7所述的装置,其中,
    所述BFD会话信息包括:BFD会话的标识信息;
    所述保护组信息包括:工作链路信息和保护链路信息。
  9. 根据权利要求7所述的装置,其中,
    所述切换决策模块根据预设的第一关联表进行切换决策,包括:
    所述切换决策模块根据接收到所述RF信号的端口查找所述第一关联表,查找与所述端口对应的BFD会话信息,以及与所述BFD会话信息对应的保护组信息,根据保护组信息决策是否进行所述保护组的切换。
  10. 根据权利要求7所述的装置,其中,
    所述切换决策模块还设置为:用于在本装置与第一装置进行双向检测BFD的过程中,在检测到信号丢失时,根据预设的第二关联表进行切换决策,所述第二关联表包括所述第二装置的端口,BFD会话信息,以及保护组信息的对应关系。
  11. 根据权利要求10所述的装置,其中,
    所述切换决策模块根据预设的第二关联表进行切换决策,包括:
    所述切换决策模块根据检测到信号丢失的端口查找所述第二关联表,查找与所述端口对应的BFD会话信息,以及与所述BFD会话信息对应的保护组信息,根据保护组信息决策是否进行所述保护组的切换。
  12. 根据权利要求9或11所述的装置,其中,
    所述切换决策模块根据保护组信息决策是否进行所述保护组的切换,包括:
    所述切换决策模块判断工作链路发生故障且当前业务处于所述工作链路上,则将所述业务切换到所述工作链路对应的保护链路上,并设置保护组工作链路故障;或者
    所述切换决策模块判断工作链路发生故障且当前业务处于保护链路上,则设置保护组工作链路故障,不切换;或者
    所述切换决策模块判断保护链路发生故障且当前业务处于工作链路上,则设置保护组保护链路故障,不切换;或者
    所述切换决策模块判断保护链路发生故障且当前业务处于所述保护链路上,则将所述业务回切到工作链路上,并设置保护组保护链路故障。
  13. 一种计算机可读存储介质,存储有程序指令,当该程序指令被执行时可实现权利要求1-6任一项所述的方法。
PCT/CN2015/084129 2015-04-23 2015-07-15 一种单纤故障的响应方法及装置 WO2016169139A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510198451.5 2015-04-23
CN201510198451.5A CN106160843A (zh) 2015-04-23 2015-04-23 一种单纤故障的响应方法及装置

Publications (1)

Publication Number Publication Date
WO2016169139A1 true WO2016169139A1 (zh) 2016-10-27

Family

ID=57142886

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/084129 WO2016169139A1 (zh) 2015-04-23 2015-07-15 一种单纤故障的响应方法及装置

Country Status (2)

Country Link
CN (1) CN106160843A (zh)
WO (1) WO2016169139A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110995585A (zh) * 2019-12-10 2020-04-10 武汉瑞盈通网络技术有限公司 一种链路非负载分担保护方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008148296A1 (fr) * 2007-05-30 2008-12-11 Huawei Technologies Co., Ltd. Procédé de détection des anomalies, système de communication et routeur de commutation d'étiquettes
CN101447900A (zh) * 2008-12-15 2009-06-03 华为技术有限公司 一种建立双向转发检测的方法、系统及设备
CN102255765A (zh) * 2010-05-21 2011-11-23 华为技术有限公司 双向转发检测的方法和设备
CN102571460A (zh) * 2012-03-09 2012-07-11 中兴通讯股份有限公司 单纤故障切换方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008148296A1 (fr) * 2007-05-30 2008-12-11 Huawei Technologies Co., Ltd. Procédé de détection des anomalies, système de communication et routeur de commutation d'étiquettes
CN101447900A (zh) * 2008-12-15 2009-06-03 华为技术有限公司 一种建立双向转发检测的方法、系统及设备
CN102255765A (zh) * 2010-05-21 2011-11-23 华为技术有限公司 双向转发检测的方法和设备
CN102571460A (zh) * 2012-03-09 2012-07-11 中兴通讯股份有限公司 单纤故障切换方法及装置

Also Published As

Publication number Publication date
CN106160843A (zh) 2016-11-23

Similar Documents

Publication Publication Date Title
US9237092B2 (en) Method, apparatus, and system for updating ring network topology information
US8213320B2 (en) Method and switching device for stack port configuration
US9794194B2 (en) Relay system and switching device
JP5913635B2 (ja) 冗長ネットワーク接続
US8929203B2 (en) Method and apparatus for supporting mismatch detection
US20080056142A1 (en) Test method for message paths in communications networks and redundant network arrangements
US9385944B2 (en) Communication system, path switching method and communication device
JP6278818B2 (ja) 中継システムおよびスイッチ装置
US20100260040A1 (en) ethernet ring system and a master node and an initialization method thereof
US8737201B2 (en) Data relay apparatus, and ring-type communication system
WO2007092132A2 (en) System and method for detecting and recovering from virtual switch link failures
WO2012149862A1 (zh) 环网故障切换方法和装置
US9960993B2 (en) Packet network linear protection systems and methods in a dual home or multi-home configuration
WO2019001197A1 (zh) 一种链路切换方法及装置
JP2016536906A (ja) ネットワーク保護方法およびネットワーク保護装置、オフリングノード、ならびにシステム
JP5338428B2 (ja) 通信装置及びその方法並びに通信システム及びその方法
WO2011017900A1 (zh) 一种以太网隧道分段保护方法及系统
US10033573B2 (en) Protection switching method, network, and system
US9246796B2 (en) Transmitting and forwarding data
WO2014101125A1 (zh) 聚合组链路协商方法、装置和系统
WO2016169139A1 (zh) 一种单纤故障的响应方法及装置
Park et al. Toward control path high availability for software-defined networks
CN102857423A (zh) 一种分布式链路聚合系统中业务流转发方法及节点
JP5518771B2 (ja) 冗長ネットワークシステム、終端装置及び中継点隣接装置
WO2014030732A1 (ja) 通信システム、通信装置、プロテクション切り替え方法および切り替えプログラム

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

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

Country of ref document: EP

Kind code of ref document: A1