WO2015131548A1 - 保护bfd的方法和设备 - Google Patents

保护bfd的方法和设备 Download PDF

Info

Publication number
WO2015131548A1
WO2015131548A1 PCT/CN2014/091168 CN2014091168W WO2015131548A1 WO 2015131548 A1 WO2015131548 A1 WO 2015131548A1 CN 2014091168 W CN2014091168 W CN 2014091168W WO 2015131548 A1 WO2015131548 A1 WO 2015131548A1
Authority
WO
WIPO (PCT)
Prior art keywords
service processing
bfd
processing board
packet
board
Prior art date
Application number
PCT/CN2014/091168
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 WO2015131548A1 publication Critical patent/WO2015131548A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/247Multipath using M:N active or standby paths

Definitions

  • Ethernet technology has gradually become an important technical means for social production and office.
  • the mobile Internet industry is becoming more mature.
  • the development of wireless networks to All-IP (all-IP) networks requires that the aggregation layer equipment has a large capacity and a fast service recovery mechanism to ensure that services are never interrupted and highly reliable.
  • a traditional Ethernet aggregation layer device is usually equipped with a service processing board and multiple service interface cards. This has certain security problems. When the service card of the aggregation layer device fails, all services connected to it will be interrupted. At the same time, a single service processing card will cause the service to be interrupted when upgrading the aggregation layer device.
  • the embodiments of the present invention provide a method and a device for protecting BFD, which are designed to perform inter-board protection on BFD quickly, efficiently, and stably.
  • a method for protecting BFD, which is applied to a BFD device including:
  • the card delivers the non-BFD common IP forwarding packet to the new primary service processing board.
  • the sending the BFD packet to the new primary service processing board and other standby service processing boards, and delivering the non-BFD common IP forwarding packet to the new primary service processing board The steps include:
  • the BFD packet is received for keep-alive.
  • the BFD packet is not kept.
  • the sending the BFD packet to the new primary service processing board and other standby service processing boards, and delivering the non-BFD common IP forwarding packet to the new primary service processing board After the steps include:
  • the alarm is reported, the switch is triggered, the standby service processing card is switched to the new active service processing board, and the BFD report is sent.
  • the file is sent to the remote device to keep the remote device BFD.
  • the sending the BFD packet to the new primary service processing board and other standby service processing boards, and delivering the non-BFD common IP forwarding packet to the new primary service processing board After the steps include:
  • the standby service processing card does not receive the keepalive packet during the detection period, the alarm is not reported, and the switch does not trigger the switch.
  • the detecting the working status of the current board and if detecting that the current board is offline and processing the board for the active service, switching the standby service processing board to the main service processing board After the steps include:
  • a BFD device including:
  • a setting module configured to: set an active service processing board and at least one standby service processing board;
  • a receiving module configured to: receive a BFD packet from the interface card and a non-BFD common IP forwarding packet
  • the switching module is further configured to: if the standby service processing board does not receive the keep-alive packet during the detection period, does not report the alarm, does not trigger the handover, and does not actively send the BFD packet.
  • the setting module is further configured to: if the offline service processing card is detected to be online again, set the re-launched service processing board as a new standby service processing board, where The BFD packet is sent to the new standby service processing board.
  • the embodiment of the invention further provides a computer program, comprising program instructions, when the program instruction is executed by the bidirectional forwarding detection device, so that the bidirectional forwarding detection device can perform the above method.
  • Embodiments of the present invention also provide a computer readable storage medium carrying the computer program.
  • the method for protecting the BFD by using the multi-board card provided by the embodiment of the present invention ensures the inter-board protection of the BFD quickly and efficiently, and ensures that the service is not interrupted.
  • FIG. 1 is a schematic flow chart of a first embodiment of a method for protecting BFD by using a multi-board card according to the present invention
  • FIG. 4 is a schematic flow chart of a third embodiment of a method for protecting BFD by using a multi-board card according to the present invention.
  • FIG. 6 is a functional block diagram of a device for protecting a BFD by using a multi-board card according to the present invention.
  • the embodiment of the present invention provides a method for protecting a BFD by using a multi-board card.
  • the method for protecting a BFD by using a multi-board card includes:
  • Step S200 Detect whether the active service processing board is offline, and if so, switch one of the standby service processing boards to a new primary service processing board.
  • the BFD device detects the current working status of the board. If the main service processing board is offline due to blocking, the BFD device detects that the current board is the main service processing board and works offline. One of the boards of the standby service processing board is directly switched to a new active service processing board.
  • Step S300 Receive BFD packets from the interface card, non-BFD common IP forwarding packets, and non-BFD common IP forwarding packets.
  • Step S400 Send the BFD packet to the new active service processing board and other standby service processing boards, and deliver the non-BFD common IP forwarding packet to the new active service processing board.
  • the BFD device detects that the current board is online, it receives the BFD packet sent by the selector. And the non-BFD common IP forwarding packet, the BFD packet is sent to the new active service processing board and other standby service processing boards, and the non-BFD common IP forwarding packet is delivered to the new active service processing board.
  • the non-BFD common IP forwarding packet is quickly transmitted between the active service processing board and the remote BFD device to complete service processing.
  • the method for protecting the BFD by using the multi-board is provided in the embodiment, and the main service processing board and the at least one standby service processing board are set; detecting whether the main service processing board is offline, and if so, one of them is The standby service processing card is switched to the new active service processing board; the BFD packet is received from the interface card and the non-BFD common IP forwarding packet is sent; the BFD packet is sent to the new active service processing board. And the other standby service processing boards, the non-BFD common IP forwarding packets are delivered to the new main service processing board, and the beneficial effects can be achieved.
  • the BFD is protected between the boards quickly and efficiently, and the service does not occur. Interrupted.
  • step S200 includes:
  • the BFD packet is received on the new service processing card, and the BFD packet is saved.
  • the BFD packet is not kept on the standby service processing card.
  • the BFD packet sent by the receiver is in the keep-alive state. If the BFD device detects that the current board is online and is standby. When the service card is processed, the BFD packet is received but not saved. In the event that the current board is faulty, the BFD packet is sent to the remote BFD device in time.
  • the keep-alive refers to periodically sending a custom structure (such as a keep-alive packet or a heartbeat packet) to let the remote device know that it is still alive to ensure the validity of the connection. In this embodiment, the BFD report is used.
  • the keepalive packet of the text acts as the intermediary for the local BFD and the remote BFD device, thus ensuring the stability of the BFD detection and thus avoiding the change of the network state and ensuring the stability of the network traffic.
  • the method further includes:
  • step S500 if the new active service processing board does not receive the keep-alive package during the detection period, the alarm is reported, the handover is triggered, and the standby service processing board is cut off into the new active service processing board.
  • the BFD packet is sent to the remote device to keep the remote device BFD.
  • the BFD device pre-sets the detection period. If the active service processing board has not received the keep-alive packet during the detection period, the alarm is reported and the standby service processing board that is online is switched to the current new one. The active service processes the board and sends BFD packets to the remote device to keep the remote device BFD.
  • the BFD device provides a consistent timeout period for timeout protection, which speeds up network convergence, reduces application relay time, and improves network reliability.
  • the method further includes:
  • Step S600 When the standby service processing board does not receive the keep-alive packet during the detection period, the alarm is not reported, the handover is not triggered, and the BFD packet is not sent.
  • the BFD device pre-sets the detection period. If the standby service processing card has not received the keep-alive packet during the detection period, the alarm will not be reported and the switch will not be triggered. The BFD packet will not be sent to the remote device. Live remote device BFD.
  • the standby service processing board is used as the storage of the main service processing board. It is usually inactive and does not perform service transmission. If the current main service processing card fails, switch the BFD packet to the remote end.
  • the BFD device is kept active to ensure that services are not interrupted.
  • the method further includes:
  • Step S700 If it is detected that the offline service processing board is re-launched, the re-running service processing board is set as a new standby service processing board, and the BFD packet is sent to a new standby service processing. Board.
  • the BFD device detects that the offline card is re-online, the BFD packet is sent to the new standby service processing card, and the BFD packet is sent to the standby service processing card but is not kept live.
  • the current board is faulty, it is ready to be switched on, and the local BFD packet is sent to the remote BFD device in time to achieve fast and stable network.
  • the method for protecting the BFD by using the multi-board is provided in this embodiment.
  • the local BFD device can quickly switch when the remote BFD device does not detect the BFD device.
  • the BFD abnormality and reconstruction problem are caused, thereby ensuring the stability of the BFD detection and avoiding the change of the network state, ensuring the stability of the network traffic, and in addition, in the limit case, when the card fails, the network problem occurs.
  • the method can also ensure that the BFD reports the alarm in time and triggers the handover.
  • the setting module 10 is configured to: set an active service processing board and at least one standby service processing board;
  • the switching module 20 is configured to: detect whether the primary service processing board is offline, and if so, switch one of the standby service processing boards to a new primary service processing board;
  • the receiving module 30 is configured to: receive the BFD packet from the interface card and the non-BFD common IP forwarding packet;
  • the transmission module 40 is configured to: send the BFD packet to a new primary service processing board and other standby service processing boards, and deliver the non-BFD common IP forwarding packet to the new primary service processing board. card.
  • the interface card of the BFD device is provided with a plurality of boards, wherein the setting module 10 of the selector of the BFD device sets one of the plurality of boards as the main service processing board, and the other plurality of boards are set to
  • the standby service processing board is used to implement the two-way transmission between the primary BFD device and the remote BFD device.
  • the standby service processing card is mainly used as the service reserve card of the primary service processing board.
  • the switching module 20 of the BFD device detects the working status of the current board. If the main service processing board is offline due to blocking, the BFD device detects that the current board is the main service processing board and works offline. And directly switching the one of the other services of the standby service processing card to the new primary service BFD device to receive the packet from the interface card, the packet includes the BFD packet and the non-BFD common IP forwarding packet. .
  • the BFD packet mentioned here refers to various transport protocol packets carrying the content related to the BFD protocol, or the payload portion of the protocol packets carries the content related to the BFD protocol.
  • the non-BFD common IP forwarding packet mentioned here refers to a common IP forwarding packet other than the BFD packet.
  • the receiving module 30 of the BFD device receives the packet from the interface card, and the packet includes the BFD packet and the non-BFD common IP forwarding packet.
  • the BFD packet mentioned here refers to various transport protocol packets carrying the content related to the BFD protocol, or the payload portion of the protocol packets carries the content related to the BFD protocol.
  • the non-BFD common IP forwarding packet mentioned here refers to a common IP forwarding packet other than the BFD packet.
  • the receiving module 30 receives the BFD packet sent by the selector and the non-BFD common IP forwarding packet, and the transmitting module 40 sends the BFD packet to the new active service processing board.
  • Other standby service processing boards that forward non-BFD common IP packets Delivered into the new main business processing board.
  • the non-BFD common IP forwarding packet is quickly transmitted between the active service processing board and the remote BFD device to complete service processing.
  • the device can be used to protect the BFD device in a fast, efficient, and stable manner, and the service is not interrupted.
  • the transmission module 40 in this embodiment is configured to receive BFD packets for keeping alive on a new active service processing board, and receive BFD packets on the standby service processing board. Keep alive.
  • the switching module 30 in this embodiment is further configured to: when the new active service processing board does not receive the keep-alive packet in the detection period, report the alarm, trigger the handover, and use the standby service processing board.
  • the card is cut off to the new primary service processing board, and the BFD packet is sent to the remote device to keep the remote device BFD.
  • the switching module 30 of the BFD device pre-sets the detection period. If the active service processing board has not received the keep-alive packet during the detection period, the alarm is reported and the standby service processing board that is online is switched to
  • the current primary service processing card is configured to send BFD packets to the remote device to keep the remote device BFD active.
  • the BFD device provides a consistent timeout period for timeout protection, which speeds up network convergence, reduces application relay time, and improves network reliability.
  • the switching module 30 in this embodiment is further configured to: if the standby service processing card does not receive the keep-alive packet during the detection period, the alarm is not reported, the handover is not triggered, and the BFD packet is not sent.
  • the switching module 30 of the BFD device pre-sets the detection period. If the standby service processing board has not received the keep-alive packet within the detection period, the alarm is not reported, the handover is not triggered, and the BFD is not sent. The packet is sent to the remote device to keep the remote device BFD.
  • the standby service processing board is used as the storage of the main service processing board. It is usually inactive and does not perform service transmission. If the current main service processing card fails, switch the BFD packet to the remote end. The BFD device is kept active to ensure that services are not interrupted.
  • the setting module 10 in this embodiment is further configured to: if the offline service processing card is detected to be online again, set the re-launched service processing board as a new standby service processing board. Send the BFD packet to the new standby service processing card.
  • the setting module 10 of the BFD device sets the re-launched card as a new standby service processing card, and sends the BFD packet to the standby service processing card. If the current board is faulty, it is ready to be switched on, and the local BFD packet is sent to the remote BFD device in time to achieve a fast and stable network.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve. Thus, the invention is not limited to any specific combination of hardware and software.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • the embodiments of the present invention can perform inter-board protection on the BFD quickly, efficiently, and stably, and ensure that services are not interrupted.

Landscapes

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

Abstract

一种保护BFD的方法以及BFD设备,BFD设备通过设置主用业务处理板卡和至少一备用业务处理板卡;侦测所述主用业务处理板卡是否离线,若是,则将其中一所述备用业务处理板卡切换为新的主用业务处理板卡;接收来自接口卡的BFD报文和非BFD普通IP转发报文;将所述BFD报文发送到新的主用业务处理板卡和其它备用业务处理板卡,将所述非BFD普通IP转发报文投递入新的主用业务处理板卡。

Description

保护BFD的方法和设备 技术领域
本发明涉及但不限于双向传输检测领域,尤其涉及一种保护BFD(Bidirectional Forwarding Detection,双向转发检测)的方法和设备。
背景技术
随着科技和时代的发展,以太网技术逐渐成为社会生产、办公的重要技术手段。尤其是,随着智能终端持有量的快速增长,移动互联网产业也日益成熟。无线网络向All-IP(全IP)网络发展,更加要求汇聚层设备具有容量大,同时有快速的业务回复机制,保证业务永不中断,高度可靠。传统的以太网汇聚层设备通常配备一块业务处理板卡,多块业务接口卡,这样存在一定的安全性问题。当汇聚层设备业务板卡出现故障时,会导致其下挂的所有业务都发生中断。同时,单一的业务处理板卡会导致对汇聚层设备进行升级时需要中断业务。
为此,出现了一些板间保护技术,例如LAG(Link Aggregation Group,链路聚合组),但是,这种保护技术存在着一些瓶颈和缺陷,其只能保护设备上的相关业务流量,而对于BFD的检测流量及告警,不能很好的处理。因此,如何快速高效稳定地对BFD进行板间保护是一个亟待解决的问题。
发明内容
本发明实施例提供一种保护BFD的方法和设备,旨在快速高效稳定地对BFD进行板间保护。
一种保护BFD的方法,应用于BFD设备中,包括:
设置主用业务处理板卡和至少一备用业务处理板卡;
侦测所述主用业务处理板卡是否离线,若是,则将所述至少一备用业务处理板卡中的一个备用业务处理板卡切换为新的主用业务处理板卡;
接收来自接口卡的BFD报文和非BFD普通IP转发报文;
将所述BFD报文发送到新的主用业务处理板卡和其它备用业务处理板 卡,将所述非BFD普通IP转发报文投递入新的主用业务处理板卡。
可选地,所述将所述BFD报文发送到新的主用业务处理板卡和其它备用业务处理板卡,将所述非BFD普通IP转发报文投递入新的主用业务处理板卡的步骤包括:
在新的主用业务处理板卡上,接收BFD报文进行保活;在备用业务处理板卡上,接收BFD报文不进行保活。
可选地,所述将所述BFD报文发送到新的主用业务处理板卡和其它备用业务处理板卡,将所述非BFD普通IP转发报文投递入新的主用业务处理板卡的步骤之后还包括:
如果在检测周期内新的主用业务处理板卡未收到保活包时,则上报告警,触发切换,将备用业务处理板卡切换为新的主用业务处理板卡,并发送BFD报文至远端设备以保活远端设备BFD。
可选地,所述将所述BFD报文发送到新的主用业务处理板卡和其它备用业务处理板卡,将所述非BFD普通IP转发报文投递入新的主用业务处理板卡的步骤之后还包括:
如果在检测周期内备用业务处理板卡未收到保活包时,不上报告警,不触发切换,不主动发送BFD报文。
可选地,所述侦测当前板卡的工作状况,如果检测到当前板卡离线且为所述主用业务处理板卡,则将所述备用业务处理板卡切换为主用业务处理板卡的步骤之后还包括:
当检测到离线的业务处理板卡重新上线时,将所述重新上线的业务处理板卡设置为新的备用业务处理板卡,将所述BFD报文发送给新的备用业务处理板卡。
一种BFD设备,包括:
设置模块,其设置为:设置主用业务处理板卡和至少一备用业务处理板卡;
切换模块,其设置为:侦测所述主用业务处理板卡是否离线,若是,则将其中一所述备用业务处理板卡切换为新的主用业务处理板卡;
接收模块,其设置为:接收来自接口卡的BFD报文和非BFD普通IP转发报文;以及
传输模块,其设置为:将所述BFD报文发送到新的主用业务处理板卡和其它备用业务处理板卡,将所述非BFD普通IP转发报文投递入新的主用业务处理板卡。
可选地,所述传输模块,是设置为:在新的主用业务处理板卡上,接收BFD报文进行保活;在备用业务处理板卡上,接收BFD报文不进行保活。
可选地,所述切换模块,还设置为:在检测周期内新的主用业务处理板卡未收到保活包时,则上报告警,触发切换,将备用业务处理板卡切掉为新的主用业务处理板卡,并发送BFD报文至远端设备以保活远端设备BFD。
可选地,所述切换模块,还设置为:如果在检测周期内备用业务处理板卡未收到保活包,不上报告警,不触发切换,不主动发送BFD报文。
可选地,所述设置模块,还设置为:如果检测到离线的业务处理板卡重新上线时,则将所述重新上线的业务处理板卡设置为新的备用业务处理板卡,将所述BFD报文发送给新的备用业务处理板卡。
本发明实施例还提供一种计算机程序,包括程序指令,当该程序指令被双向转发检测设备执行时,使得该双向转发检测设备可执行上述的方法。
本发明实施例还提供一种载有所述计算机程序的计算机可读存储介质。
本发明实施例提供的利用多板卡保护BFD的方法,快速高效稳定地对BFD进行板间保护,保障业务不发生中断。
附图概述
图1为本发明利用多板卡保护BFD的方法第一实施例的流程示意图;
图2为本发明利用多板卡保护BFD的方法中的所述将所述BFD报文同时发送到新的主用业务处理板卡和其它备用业务处理板卡,将所述非BFD普通IP转发报文投递入新的主用业务处理板卡的步骤的细化流程示意图;
图3为本发明利用多板卡保护BFD的方法第二实施例的流程示意图;
图4为本发明利用多板卡保护BFD的方法第三实施例的流程示意图;
图5为本发明利用多板卡保护BFD的方法第四实施例的流程示意图;
图6为本发明利用多板卡保护BFD的设备的功能模块框图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步 说明。
本发明的较佳实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。在不冲突的情况下,本发明实施例和实施例中的特征可以相互任意组合。
本发明实施例提供一种利用多板卡保护BFD的方法,如图1所示,在第一实施例中,所述利用多板卡保护BFD的方法包括:
步骤S100、设置主用业务处理板卡和至少一备用业务处理板卡。
BFD设备的接口卡上设置有多块板卡,其中,BFD设备的选择器将多块板卡中的其中一块设置为主用业务处理板卡,其他的多块板卡设置为备用业务处理板卡,主用业务处理板卡用于实现主端BFD设备和远端BFD设备业务的双向传输,备用业务处理板卡作为主用业务处理板卡的业务储备板卡。
步骤S200、侦测所述主用业务处理板卡是否离线,若是,则将其中一所述备用业务处理板卡切换为新的主用业务处理板卡。
BFD设备侦测当前板卡的工作状况,如果主用业务处理板卡因为阻塞等原因下线,BFD设备检测到当前板卡为主用业务处理板卡且工作在离线状态时,将其他上线的所述备用业务处理板卡的其中一张板卡直接切换为新的主用业务处理板卡。
步骤S300、接收来自接口卡的BFD报文和非BFD普通IP转发报文和非BFD普通IP转发报文。
BFD设备接收来自接口卡的报文,报文包括BFD报文和非BFD普通IP转发报文。这里所说的BFD报文是指携带有与BFD协议有关内容的各种传输协议报文,或者说,这些协议报文中的净荷部分携带的是与BFD协议有关的内容。这里所说的非BFD普通IP转发报文指的是除BFD报文之外的普通IP转发报文。
步骤S400、将所述BFD报文发送到新的主用业务处理板卡和其它备用业务处理板卡,将所述非BFD普通IP转发报文投递入新的主用业务处理板卡。
BFD设备如果检测到当前板卡上线时,接收选择器发送过来的BFD报文 和非BFD普通IP转发报文,将BFD报文发送到新的主用业务处理板卡和其它备用业务处理板卡,将非BFD普通IP转发报文投递入新的主用业务处理板卡。从而非BFD普通IP转发报文在主用业务处理板卡和远端BFD设备之间快速传输,完成业务处理。
本实施例提供的利用多板卡保护BFD的方法,设置主用业务处理板卡和至少一备用业务处理板卡;侦测所述主用业务处理板卡是否离线,若是,则将其中一所述备用业务处理板卡切换为新的主用业务处理板卡;接收来自接口卡的BFD报文和非BFD普通IP转发报文;将所述BFD报文发送到新的主用业务处理板卡和其它备用业务处理板卡,将所述非BFD普通IP转发报文投递入新的主用业务处理板卡,所能实现的有益效果快速高效稳定地对BFD进行板间保护,保障业务不发生中断。
如图2所示,步骤S200包括:
步骤S200A、在新的主用业务处理板卡上,接收BFD报文,并进行保活;在备用业务处理板卡上,接收BFD报文不进行保活。
BFD设备如果检测到当前板卡上线且是主用业务处理板卡时,接收选择器发送过来的BFD报文保障本端BFD处于保活的状态,如果BFD设备检测到当前板卡上线且是备用业务处理板卡时,接收BFD报文但不进行保活,以备当前板卡出现故障时,及时切换,将本端BFD报文及时发送给远端BFD设备。所述保活指的是定时发送一个自定义的结构体(比如说保活包或者心跳包),让远端设备知道自己还活着,以确保连接的有效性,在本实施例中使用BFD报文的保活包作为本端BFD和远端BFD设备的执行中介,从而保证了BFD检测的稳定进而避免了网络状态的改变,保证了网络流量的稳定。
如图3所示,在第二实施例中,在上述图1所示的第一实施例的基础上,在所述步骤S400之后还包括:
步骤S500、如果在检测周期内新的主用业务处理板卡未收到保活包时,则上报告警,触发切换,将备用业务处理板卡切掉为新的主用业务处理板卡,并发送BFD报文至远端设备以保活远端设备BFD。
BFD设备预设定检测周期,如果在检测周期内,主用业务处理板卡还未收到保活包时,则上报告警并将上线的所述备用业务处理板卡切换为当前的新的主用业务处理板卡,并发送BFD报文至远端设备以保活远端设备BFD。 BFD设备提供一致的超时保护的定时检测周期,从而加快网络收敛速度,减少应用中继时间,提高网络可靠性。
如图4所示,在上述图1所示的第一实施例的基础上,在第三实施例中,所述步骤S400之后还包括:
步骤S600、在检测周期内备用业务处理板卡未收到保活包时,不上报告警,不触发切换,不主动发送BFD报文。
BFD设备预设定检测周期,如果在检测周期内,备用业务处理板卡还未收到保活包时,则不上报告警、不触发切换,不主动发送BFD报文至远端设备以保活远端设备BFD。备用业务处理板卡作为主用业务处理板卡的储备,平常不活动,不进行业务传输,一旦当前的主用业务处理板卡出现故障时,及时切换,将本端BFD报文及时发送给远端BFD设备保活,以保障业务不被中断。
如图5所示,在第四实施例中,在上述图1所示的第一实施例的基础上,在所述步骤S400之后还包括:
步骤S700、如果检测到离线的业务处理板卡重新上线时,则将所述重新上线的业务处理板卡设置为新的备用业务处理板卡,将所述BFD报文发送给新的备用业务处理板卡。
BFD设备如果检测到离线的板卡重新上线时,则将所述重新上线的板卡设置为新的备用业务处理板卡,将BFD报文发送给所述备用业务处理板卡但不进行保活,以备当前板卡出现故障时,随时待命,及时切换,将本端BFD报文及时发送给远端BFD设备,以实现快速稳定网络的目的。
本实施例提供的利用多板卡保护BFD的方法,当主用业务处理板卡发生故障时,本端BFD设备可以在远端BFD设备不感知的情况下快速进行切换,可以避免BFD得不到保护而造成的BFD异常和重建问题,从而保证了BFD检测的稳定进而避免了网络状态的改变,保证了网络流量的稳定,此外,在极限情况下,当板卡发生故障的同时发生网络问题,该方法也可以保证BFD及时上报告警并触发切换。
参见图6,本实施例还提供一种利用多板卡保护BFD的设备,所述利用多板卡保护BFD的设备包括:
设置模块10,设置为:设置主用业务处理板卡和至少一备用业务处理板卡;
切换模块20,设置为:侦测所述主用业务处理板卡是否离线,若是,则将其中一所述备用业务处理板卡切换为新的主用业务处理板卡;
接收模块30,设置为:接收来自接口卡的BFD报文和非BFD普通IP转发报文;
传输模块40,设置为:将所述BFD报文发送到新的主用业务处理板卡和其它备用业务处理板卡,将所述非BFD普通IP转发报文投递入新的主用业务处理板卡。
BFD设备的接口卡上设置有多块板卡,其中,BFD设备的选择器的设置模块10将多块板卡中的其中一块设置为主用业务处理板卡,其他的多块板卡设置为备用业务处理板卡,主用业务处理板卡用于实现主端BFD设备和远端BFD设备业务的双向传输,备用业务处理板卡主要作为主用业务处理板卡的业务储备板卡。
BFD设备的切换模块20侦测当前板卡的工作状况,如果主用业务处理板卡因为阻塞等原因下线的话,BFD设备检测到当前板卡为主用业务处理板卡且工作在离线状态时,将其他上线的所述备用业务处理板卡的其中一张板卡直接切换为新的主用业BFD设备接收来自接口卡的报文,报文包括BFD报文和非BFD普通IP转发报文。这里所说的BFD报文是指携带有与BFD协议有关内容的各种传输协议报文,或者说,这些协议报文中的净荷部分携带的是与BFD协议有关的内容。这里所说的非BFD普通IP转发报文指的是除BFD报文之外的普通IP转发报文。
BFD设备的接收模块30接收来自接口卡的报文,报文包括BFD报文和非BFD普通IP转发报文。这里所说的BFD报文是指携带有与BFD协议有关内容的各种传输协议报文,或者说,这些协议报文中的净荷部分携带的是与BFD协议有关的内容。这里所说的非BFD普通IP转发报文指的是除BFD报文之外的普通IP转发报文。
BFD设备如果检测到当前板卡上线时,接收模块30接收选择器发送过来的BFD报文和非BFD普通IP转发报文,传输模块40将BFD报文发送到新的主用业务处理板卡和其它备用业务处理板卡,将非BFD普通IP转发报文 投递入新的主用业务处理板卡。从而非BFD普通IP转发报文在主用业务处理板卡和远端BFD设备之间快速传输,完成业务处理。
本实施例提供的利用多板卡保护BFD的设备,所能实现的有益效果快速高效稳定地对BFD进行板间保护,保障业务不发生中断。
参见图6,本实施例所述传输模块40,是设置为:在新的主用业务处理板卡上,接收BFD报文进行保活;在备用业务处理板卡上,接收BFD报文但不进行保活。
BFD设备的传输模块40如果检测到当前板卡上线且是主用业务处理板卡时,接收选择器发送过来的BFD报文保障本端BFD处于保活的状态,如果BFD设备检测到当前板卡上线且是备用业务处理板卡时,接收BFD报文但不进行保活,以备当前板卡出现故障时,及时切换,将本端BFD报文及时发送给远端BFD设备。所述保活指的是定时发送一个自定义的结构体(比如说保活包或者心跳包),让远端设备知道自己还活着,以确保连接的有效性,在本实施例中使用BFD报文的保活包作为本端BFD设备和远端BFD设备的执行中介,从而保证了BFD检测的稳定进而避免了网络状态的改变,保证了网络流量的稳定。
参见图6,本实施例所述切换模块30,还设置为:在检测周期内新的主用业务处理板卡未收到保活包时,则上报告警,触发切换,将备用业务处理板卡切掉为新的主用业务处理板卡,并发送BFD报文至远端设备以保活远端设备BFD。
BFD设备的切换模块30预设定检测周期,如果在检测周期内,主用业务处理板卡还未收到保活包时,则上报告警并将上线的所述备用业务处理板卡切换为当前的新的主用业务处理板卡,并发送BFD报文至远端设备以保活远端设备BFD。BFD设备提供一致的超时保护的定时检测周期,从而加快网络收敛速度,减少应用中继时间,提高网络可靠性。
参见图6,本实施例所述切换模块30,还设置为:如果在检测周期内备用业务处理板卡未收到保活包,不上报告警,不触发切换,不主动发送BFD报文。
BFD设备的切换模块30预设定检测周期,如果在检测周期内,备用业务处理板卡还未收到保活包时,则不上报告警、不触发切换,不主动发送BFD 报文至远端设备以保活远端设备BFD。备用业务处理板卡作为主用业务处理板卡的储备,平常不活动,不进行业务传输,一旦当前的主用业务处理板卡出现故障时,及时切换,将本端BFD报文及时发送给远端BFD设备保活,以保障业务不被中断。
参见图6,本实施例所述设置模块10,还设置为:如果检测到离线的业务处理板卡重新上线时,则将所述重新上线的业务处理板卡设置为新的备用业务处理板卡,将所述BFD报文发送给新的备用业务处理板卡。
BFD设备的设置模块10如果检测到离线的板卡重新上线时,则将所述重新上线的板卡设置为新的备用业务处理板卡,将BFD报文发送给所述备用业务处理板卡但不进行保活,以备当前板卡出现故障时,随时待命,及时切换,将本端BFD报文及时发送给远端BFD设备,以实现快速稳定网络的目的。
本实施例提供的利用多板卡保护BFD的设备,当主用业务处理板卡发生故障时,本端BFD设备可以在远端BFD设备不感知的情况下快速进行切换,可以避免BFD得不到保护而造成的BFD异常和重建问题,从而保证了BFD检测的稳定进而避免了网络状态的改变,保证了网络流量的稳定,此外,在极限情况下,当板卡发生故障的同时发生网络问题,该设备也可以保证BFD及时上报告警并触发切换。
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如***、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
上述实施例中的各装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。
上述实施例中的各装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。
任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求所述的保护范围为准。
工业实用性
本发明实施例可以快速高效稳定地对BFD进行板间保护,保障业务不发生中断。

Claims (12)

  1. 一种保护双向转发检测(BFD)的方法,应用于BFD设备中,包括:
    设置主用业务处理板卡和至少一备用业务处理板卡;
    侦测所述主用业务处理板卡是否离线,若是,则将所述至少一备用业务处理板卡中的一个备用业务处理板卡切换为新的主用业务处理板卡;
    接收来自接口卡的BFD报文和非BFD普通IP转发报文;
    将所述BFD报文发送到新的主用业务处理板卡和其它备用业务处理板卡,将所述非BFD普通IP转发报文投递入新的主用业务处理板卡。
  2. 如权利要求1所述的方法,其中,所述将所述BFD报文发送到新的主用业务处理板卡和其它备用业务处理板卡,将所述非BFD普通IP转发报文投递入新的主用业务处理板卡的步骤包括:
    在新的主用业务处理板卡上,接收BFD报文进行保活;在备用业务处理板卡上,接收BFD报文不进行保活。
  3. 如权利要求1或2所述的方法,其中,所述将所述BFD报文发送到新的主用业务处理板卡和其它备用业务处理板卡,将所述非BFD普通IP转发报文投递入新的主用业务处理板卡的步骤之后还包括:
    如果在检测周期内新的主用业务处理板卡未收到保活包时,则上报告警,触发切换,将备用业务处理板卡切换为新的主用业务处理板卡,并发送BFD报文至远端设备以保活远端设备BFD。
  4. 如权利要求3所述的方法,其中,所述将所述BFD报文发送到新的主用业务处理板卡和其它备用业务处理板卡,将所述非BFD普通IP转发报文投递入新的主用业务处理板卡的步骤之后还包括:
    如果在检测周期内备用业务处理板卡未收到保活包时,不上报告警,不触发切换,不主动发送BFD报文。
  5. 如权利要求3所述的方法,其中,所述侦测当前板卡的工作状况,如 果检测到当前板卡离线且为所述主用业务处理板卡,则将所述备用业务处理板卡切换为主用业务处理板卡的步骤之后还包括:
    当检测到离线的业务处理板卡重新上线时,将所述重新上线的业务处理板卡设置为新的备用业务处理板卡,将所述BFD报文发送给新的备用业务处理板卡。
  6. 一种双向转发检测(BFD)设备,包括:
    设置模块,其设置为:设置主用业务处理板卡和至少一备用业务处理板卡;
    切换模块,其设置为:侦测所述主用业务处理板卡是否离线,若是,则将其中一所述备用业务处理板卡切换为新的主用业务处理板卡;
    接收模块,其设置为:接收来自接口卡的BFD报文和非BFD普通IP转发报文;以及
    传输模块,其设置为:将所述BFD报文发送到新的主用业务处理板卡和其它备用业务处理板卡,将所述非BFD普通IP转发报文投递入新的主用业务处理板卡。
  7. 如权利要求6所述的BFD设备,其中,所述传输模块,是设置为:在新的主用业务处理板卡上,接收BFD报文进行保活;在备用业务处理板卡上,接收BFD报文不进行保活。
  8. 如权利要求6或7所述的BFD设备,其中,所述切换模块,还设置为:在检测周期内新的主用业务处理板卡未收到保活包时,则上报告警,触发切换,将备用业务处理板卡切掉为新的主用业务处理板卡,并发送BFD报文至远端设备以保活远端设备BFD。
  9. 如权利要求8所述的BFD设备,其中,所述切换模块,还设置为:如果在检测周期内备用业务处理板卡未收到保活包,不上报告警,不触发切换,不主动发送BFD报文。
  10. 如权利要求8所述的BFD的设备,其中,所述设置模块,还设置为:如果检测到离线的业务处理板卡重新上线时,则将所述重新上线的业务处理板卡设置为新的备用业务处理板卡,将所述BFD报文发送给新的备用业务处理板卡。
  11. 一种计算机程序,包括程序指令,当该程序指令被双向转发检测设备执行时,使得该双向转发检测设备可执行权利要求1-5任一项所述的方法。
  12. 一种载有权利要求11所述计算机程序的计算机可读存储介质。
PCT/CN2014/091168 2014-09-17 2014-11-14 保护bfd的方法和设备 WO2015131548A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410476530.3A CN105429814B (zh) 2014-09-17 2014-09-17 利用多板卡保护bfd的方法和设备
CN201410476530.3 2014-09-17

Publications (1)

Publication Number Publication Date
WO2015131548A1 true WO2015131548A1 (zh) 2015-09-11

Family

ID=54054433

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/091168 WO2015131548A1 (zh) 2014-09-17 2014-11-14 保护bfd的方法和设备

Country Status (2)

Country Link
CN (1) CN105429814B (zh)
WO (1) WO2015131548A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114710332A (zh) * 2022-03-23 2022-07-05 新华三技术有限公司 一种许可防克隆方法及装置

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375143B (zh) * 2016-08-29 2020-03-06 新华三技术有限公司 一种链路检测报文发送方法及装置
CN107612754B (zh) * 2017-10-30 2021-07-06 新华三技术有限公司 双向转发链路故障检测方法、装置及网络节点设备
CN109039520B (zh) * 2018-06-15 2020-09-04 上海欣诺通信技术股份有限公司 跨板卡通信方法、光通信***及计算机存储介质
CN110875880B (zh) * 2018-08-29 2022-03-25 北京华为数字技术有限公司 一种数据传输方法、相关设备、***及计算机存储介质
CN109547274A (zh) * 2019-01-28 2019-03-29 新华三技术有限公司 一种维护板切换方法、装置及第一网络设备
CN111669280B (zh) * 2019-03-06 2023-05-16 中兴通讯股份有限公司 一种报文传输方法、装置及存储介质
CN109981407B (zh) * 2019-03-25 2021-02-09 新华三技术有限公司 防攻击报文方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101035057A (zh) * 2007-03-30 2007-09-12 华为技术有限公司 建立组播共享树的方法和数据传送的方法、通信网络
CN101442485A (zh) * 2008-12-18 2009-05-27 华为技术有限公司 一种组播转发的方法、装置和***
CN101465859A (zh) * 2009-01-13 2009-06-24 中兴通讯股份有限公司 一种触发主备用接口板倒换的方法及装置
US7990852B1 (en) * 2008-08-14 2011-08-02 Tellabs San Jose, Inc. Methods and apparatus for improving network communication using BFD and VRRP tracking system
CN102223258A (zh) * 2011-08-02 2011-10-19 杭州华三通信技术有限公司 一种防止bfd会话中断的方法和设备

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105471610B (zh) * 2014-09-05 2020-03-17 中兴通讯股份有限公司 一种使用多板卡保护HQoS的方法和装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101035057A (zh) * 2007-03-30 2007-09-12 华为技术有限公司 建立组播共享树的方法和数据传送的方法、通信网络
US7990852B1 (en) * 2008-08-14 2011-08-02 Tellabs San Jose, Inc. Methods and apparatus for improving network communication using BFD and VRRP tracking system
CN101442485A (zh) * 2008-12-18 2009-05-27 华为技术有限公司 一种组播转发的方法、装置和***
CN101465859A (zh) * 2009-01-13 2009-06-24 中兴通讯股份有限公司 一种触发主备用接口板倒换的方法及装置
CN102223258A (zh) * 2011-08-02 2011-10-19 杭州华三通信技术有限公司 一种防止bfd会话中断的方法和设备

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114710332A (zh) * 2022-03-23 2022-07-05 新华三技术有限公司 一种许可防克隆方法及装置
CN114710332B (zh) * 2022-03-23 2023-09-15 新华三技术有限公司 一种许可防克隆方法及装置

Also Published As

Publication number Publication date
CN105429814A (zh) 2016-03-23
CN105429814B (zh) 2020-08-04

Similar Documents

Publication Publication Date Title
WO2015131548A1 (zh) 保护bfd的方法和设备
US9544223B2 (en) Communication system, control apparatus, method for controlling same, and program
US20140050078A1 (en) Communication interruption time reduction method in a packet communication network
WO2016095344A1 (zh) 链路切换方法、装置及线卡
US8724450B2 (en) Network relay system and method of controlling a network relay system
KR20150088559A (ko) 네트워크의 장애를 복구하는 방법 및 장치
CN106301840B (zh) 双向转发检测bfd报文的发送方法及装置
CN104065569A (zh) 信息处理***和设备及其控制方法以及数据传输设备
US9503317B2 (en) Method and device for processing communication path
CN102739462B (zh) 一种测试报文的发送方法以及装置
CN103036724B (zh) 状态信息传输方法、网络设备及组合设备
WO2016065751A1 (zh) 恢复链路通讯的方法、业务线卡及***
JP2006229399A (ja) 通信システム、中継ノード及びそれらに用いる通信方法並びにそのプログラム
WO2016082509A1 (zh) 一种检测标签交换路径连通性的方法及装置
WO2015117395A1 (zh) 通信异常处理方法及网元设备
WO2015180265A1 (zh) 多链路保护倒换的方法及装置
CN114070799B (zh) 优先级暂停帧的处理方法、处理装置及目标网络设备
JP2013046164A (ja) ネットワークシステムおよびネットワーク故障回避方法
US20180183709A1 (en) Communication node, communication system, communication method, and program
CN106330537B (zh) Sdn网络设备控制面管理装置及方法
CN106937350B (zh) 基于移动终端的路由方法及***
JP6057470B2 (ja) ネットワークのアラーム処理システム
CN113037622B (zh) 一种防止bfd震荡的***及方法
US20170346678A1 (en) Methods, systems, and computer readable media for providing high availability support at a bypass switch
JP2011035512A (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: 14884418

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

Country of ref document: EP

Kind code of ref document: A1