WO2014206207A1 - 一种路由撤销方法和网络设备 - Google Patents

一种路由撤销方法和网络设备 Download PDF

Info

Publication number
WO2014206207A1
WO2014206207A1 PCT/CN2014/079902 CN2014079902W WO2014206207A1 WO 2014206207 A1 WO2014206207 A1 WO 2014206207A1 CN 2014079902 W CN2014079902 W CN 2014079902W WO 2014206207 A1 WO2014206207 A1 WO 2014206207A1
Authority
WO
WIPO (PCT)
Prior art keywords
network device
bfd
routing information
module
failure
Prior art date
Application number
PCT/CN2014/079902
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 WO2014206207A1 publication Critical patent/WO2014206207A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • 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/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/023Delayed use of routing table updates
    • 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

Definitions

  • the present invention relates to communications technologies, and in particular, to a method and network device routing withdrawal Background t
  • the Bidirectional Forwarding Detection (BFD) protocol can quickly detect communication faults between a pair of network devices, so that the network device can switch traffic to the backup link according to the quickly detected faults to speed up network convergence and ensure services. Continue to reduce the impact of equipment failure or link failure on the business and improve network availability.
  • the BFD protocol can detect the link between a pair of network devices. However, when the neighboring device detected by BFD fails, BFD detection cannot be performed. As shown in Figure 1, only two BFD sessions can be used. Linkage. For example, as shown in Figure 1, the BFDx session between the PEn and the PEm of the Provider Edge (PE) router cannot detect the link between the PE1 and the PE1.
  • the BFD2 session can be associated with the BFD session.
  • a route revocation method including:
  • the network device When the network device detects a link failure with the first network device or the first network device is faulty, the network device encapsulates the routing information of the first network device into a bidirectional forwarding detection BFD packet, and the BFD report The text includes routing information of the first network device;
  • the network device sends the BFD packet to the second network device, so that the second network device revokes the route of the second network device to the first network device.
  • the network device when the network device detects a link failure between the first network device or the first network device is faulty, the network device is configured by the network device
  • the routing information is encapsulated into a BFD packet, and the BFD packet includes the routing information of the first network device, specifically:
  • the first BFD module of the network device detects a link failure with the first network device or the first network device is faulty, the first BFD module of the network device notifies the routing information of the first network device Giving a second BFD module to the network device;
  • the second BFD module of the network device searches for a BFD packet template corresponding to the first network device, and obtains a BFD packet that matches the routing information of the first network device.
  • the network device when the network device detects the first network device When the link device is faulty or the first network device is faulty, the network device encapsulates the routing information of the first network device into a BFD packet, where the BFD packet includes the routing information of the first network device, specifically: When the first BFD module of the network device detects a link failure with the first network device or the first network device is faulty, the first BFD module of the network device notifies the routing information of the first network device Giving a second BFD module to the network device;
  • the second BFD module of the network device encapsulates the routing information of the first network device into a BFD packet.
  • the BFD packet carries an revoked routing field, where the revoked routing field includes routing information
  • the field, the type information field, the routing information field includes routing information of the first network device
  • the type Type field includes indication information for revoking the routing information.
  • the method further includes:
  • the network device When the network device detects a link failure recovery or a first network device failure recovery with the first network device, the network device encapsulates the routing information of the failure recovery link or the failure recovery first network device into a BFD packet, where the BFD packet includes the fault recovery link or the routing information of the fault recovery first network device;
  • the network device sends the BFD packet to the second network device, so that the second network device restores the route of the second network device to the first network device.
  • the network device is specifically a convergence side gateway ASG, and the first network device is specifically a base station.
  • the side gateway CSG, the second network device is specifically a wireless service side gateway RSG.
  • a network device is provided, including:
  • a packaging module configured to: when the network device detects a link failure with the first network device or the first network device is faulty, the routing information of the first network device is encapsulated into a bidirectional forwarding detection BFD packet, where The BFD packet includes the routing information of the first network device;
  • a sending module configured to send the BFD packet to the second network device, so that the second network device revokes the route of the second network device to the first network device.
  • the encapsulating module specifically includes a first BFD module and a second BFD module.
  • the first BFD module is configured to detect a link failure between the first network device or the first network device, and is used to detect a link failure with the first network device or a failure of the first network device, Notifying the routing information of the first network device to the second BFD module;
  • the second BFD module is configured to search for a BFD packet template corresponding to the first network device, and obtain a BFD packet that matches the routing information of the first network device.
  • the encapsulating module specifically includes a first BFD module and a second BFD module.
  • the first BFD module is configured to detect a link failure between the first network device or the first network device, and is used to detect a link failure with the first network device or a failure of the first network device, Notifying the routing information of the first network device to the second BFD module;
  • the second BFD module is configured to encapsulate the routing information of the first network device into a BFD packet.
  • the BFD packet carries a revocation route field, where the revocation route field includes The routing information field, the type information field, the routing information field includes routing information of the first network device, and the type Type field includes indication information for revoking the routing information.
  • the encapsulating module is further configured to: when the network device is inspected When the link failure between the first network device and the first network device is detected, the routing information of the fault recovery link or the fault recovery first network device is encapsulated into a BFD packet, where the BFD packet includes Recovering the routing information of the first network device by the fault recovery link or the fault recovery;
  • a sending module configured to send the BFD packet to the second network device, so that the second network device restores the route of the second network device to the first network device.
  • the network device is specifically an aggregation side gateway ASG.
  • a network device including a processor, a memory, and a transmitter, where the memory is used to store program code, where:
  • the processor is configured to invoke program code in the memory, and perform the following operations:
  • the routing information of the first network device is encapsulated into a bidirectional forwarding detection BFD packet, where the BFD packet includes Routing information of the first network device;
  • the transmitter is configured to send the BFD packet to the second network device, so that the second network device revokes the route of the second network device to the first network device.
  • the fourth aspect provides a route revocation system, including: the network device and the second network device, as shown in any of the second aspect or the third aspect, where the second network device is configured to revoke the second network device The route to the first network device.
  • the route revocation method and device provided by the embodiment of the present invention, when the network device detects a link failure with the first network device or the first network device fails, the network device routes the first network device
  • the information is encapsulated into a bidirectional forwarding detection BFD packet, where the BFD packet includes the routing information of the first network device, and the network device sends the BFD packet to the second network device, so that the second network device Revoking the route of the second network device to the first network device.
  • the route of the network device to the first network device can be directly deleted on the second network device, and the other normal link receiving services are not affected.
  • FIG. 1 is a schematic block diagram of interconnection of three network devices according to an embodiment of the present invention.
  • FIG. 2 is a schematic block diagram of interconnection of multiple network devices according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of a route revocation method according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of an IP radio access network according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a BFD packet format according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a network device according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a network device according to another embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a route revocation system according to an embodiment of the present invention. detailed description
  • the embodiment of the present invention devises a route revocation method. Referring to FIG. 3, the method includes the following steps:
  • Step 301 When the network device detects that the link between the first network device is faulty or the first network device is faulty, the network device encapsulates the routing information of the first network device into a bidirectional forwarding detection BFD packet.
  • the BFD packet includes the routing information of the first network device;
  • Step 302 The network device sends the BFD packet to the second network device, so that the second network device revokes the route of the second network device to the first network device.
  • the route revocation method of the embodiment of the present invention can directly delete, on the second network device, the route that is deleted by the network device to the first network device, and does not affect other normal link receiving services.
  • step 301 can be implemented, but not limited to, by the following means.
  • Manner 1 When the first BFD module of the network device detects a link failure with the first network device or the first network device fails, the first BFD module of the network device will be the first network device Notifying the routing information to the second BFD module of the network device;
  • the second BFD module of the network device searches for a BFD packet template corresponding to the first network device, and obtains a BFD packet that matches the routing information of the first network device.
  • Manner 2 When the first BFD module of the network device detects that the link between the first network device is faulty or the first network device is faulty, the first BFD module of the network device Notifying the routing information to the second BFD module of the network device;
  • the second BFD module of the network device encapsulates the routing information of the first network device into a BFD packet.
  • the routing information includes a route ID and a network mask of the first network device.
  • the BFD packet carries a revocation route field
  • the revocation route field includes a routing information field and a type Type field, where the routing information field includes routing information of the first network device, and the type
  • the Type field contains indication information for revoking the routing information.
  • a route revocation method designed by the embodiment of the present invention further includes:
  • the network device When the network device detects a link failure recovery or a first network device failure recovery with the first network device, the network device encapsulates the routing information of the failure recovery link or the failure recovery first network device into a BFD packet, where the BFD packet includes the fault recovery link or the routing information of the fault recovery first network device;
  • the network device sends the BFD packet to the second network device, so that the second network device restores the route of the second network device to the first network device.
  • the network device is specifically a convergence side gateway ASG
  • the first network device is specifically a base station side gateway CSG
  • the second network device is specifically a wireless service side gateway RSG.
  • a preferred embodiment 1 of the present invention will now be described with reference to FIG.
  • the method for rerouting provided by the embodiment of the present invention can be applied to a metropolitan area network, and can also be applied to an IP radio access network.
  • IP Radio Access Network IP Radio Access Network
  • the BFD technology is used for reliability protection.
  • the site site gateway (CSG) to the aggregation side gateway (Aggregation Site) Gateway, ASG) Pseudowire Redundancy (PW Redundancy) protection that is, the primary PW and the standby PW are established between the CSG1 and the primary ASG, and between the CSG1 and the standby ASG.
  • the PW is established between the primary PW and the standby PW. Redundancy redundancy protection.
  • the primary PW link is abnormal, the traffic from CSG1 to the primary ASG is switched to CSG1 to the standby ASG.
  • PW Redundancy redundancy protection CSG3 and primary ASG are also established between CSG2 and the primary ASG and between CSG2 and standby ASG.
  • PW Redundancy redundancy protection is also established between CSG2 and standby ASG.
  • VPN FRR VPN Fast Reroute
  • MPLS TE Hot Standby MPLS TE HSB
  • RSG Radio Service Gateway
  • Step 1 When the aggregation side gateway main ASG detects the link from the base station side gateway CSG1 to the aggregation side gateway main ASG (PW,
  • the aggregation side gateway main ASG encapsulates the routing information of the base station side gateway CSG1 into a bidirectional forwarding detection BFD packet, and the routing information includes the IP address and subnet mask of the base station side gateway CSG1. Code, such as 100. 1. 1. 0/24.
  • the BFD packet includes the routing information of the base station side gateway CSG1; the BFD packet further includes indication information for revoking the routing information.
  • the embodiment of the present invention carries the field of the revocation route in the BFD protocol field of the RFC 5880: 1.
  • the routing information Data field where the routing information field includes the routing information of the first network device, which may be IPv4/ IPv6 routing; 2.
  • Type Type field including indication information for revoking the routing information.
  • the aggregation side gateway main ASG and the standby ASG include a first BFD module corresponding to the base station side gateways CSG1, CSG2, and CSG3, respectively, and the aggregation side gateway main ASG and the standby ASG also include the wireless service respectively.
  • the second BFD module corresponding to the side gateway main RSG and the standby RSG,
  • step 1 it may be, but is not limited to, implementing step 1 in the following manner
  • Manner 1 When the first BFD module of the primary side ASG of the aggregation side gateway detects a link fault with the base station side gateway CSG1, the first BFD module of the primary side ASG of the aggregation side gateway sets the base station side gateway CSG1 The routing information is notified to the second BFD module of the aggregation side gateway main ASG; the specific notification manner may be in a broadcast or unicast mode, and the embodiments of the present invention are not limited, and all belong to the protection scope of the embodiment of the present invention.
  • the second BFD module of the aggregation side gateway main ASG stores a BFD packet template corresponding to each base station side gateway CSG, and the BFD packet template encapsulates the complete BFD packet according to the format shown in FIG.
  • the BFD packet includes the routing information of the base station side gateway CSG.
  • the BFD packet further includes indication information for revoking the routing information.
  • the second BFD module of the aggregation side gateway main ASG searches for a BFD packet template corresponding to the base station side gateway CSG, and obtains a BFD packet that matches the routing information of the base station side gateway CSG1.
  • the second BFD module of the primary ASG of the aggregation side gateway does not need to be encapsulated, and directly sends the encapsulated BFD packet to the primary RSG of the wireless service side gateway, so that the primary RSG of the wireless service side gateway cancels the RSG to the CSG1. routing. Thereafter, the RSG can use the alternate link to CSG1 or re-select the route to CSG1, and subsequently switch traffic to CSG1 to the alternate link or re-selected route. And because there is no need for encapsulation, the forwarding plane will directly The encapsulated complete BFD packet is sent to the primary RSG of the wireless service side gateway.
  • Manner 2 When the first BFD module of the primary side ASG of the aggregation side gateway detects a link fault with the base station side gateway CSG1, the first BFD module of the primary side ASG of the aggregation side gateway sets the base station side gateway CSG1 The routing information is notified to the second BFD module of the aggregation side gateway main ASG; the specific notification manner may be in a broadcast or unicast mode, and the embodiments of the present invention are not limited, and all belong to the protection scope of the embodiment of the present invention.
  • the second BFD module of the aggregation side gateway main ASG encapsulates the routing information of the base station side gateway CSG1 into a BFD packet.
  • the BFD packet is a BFD packet encapsulated in the format shown in FIG. 5, and the BFD packet includes the routing information of the base station side gateway CSG.
  • the BFD packet further includes indication information for revoking the routing information.
  • Step 2 The aggregation side gateway main ASG sends the BFD message to the radio service side gateway main RSG, so that the radio service side gateway main RSG revokes the radio service side gateway main RSG to the base station side. The route of the gateway CSG1.
  • the RSG can then use the alternate link to CSG1 or re-select the route to CSG1 and subsequently switch traffic to CSG1 to the alternate link or re-routed. Because the undo routing method uses BFD packet transmission, the entire implementation process requires only a period of one hundred milliseconds, so that the user does not perceive the link abnormality and improve the user experience.
  • the remote RSA main RSG can be notified to the base station side gateway CSG1, which may be:
  • the aggregation side gateway primary ASG When the aggregation side gateway main ASG detects the link recovery of the link (PW, LSP, tunnel, interface, etc.) of the base station side gateway CSG1 to the aggregation side gateway main ASG, the aggregation side gateway primary ASG will use the base station side gateway CSG1
  • the routing information is encapsulated into a BFD packet, and the BFD packet includes the routing information of the base station side gateway CSG1.
  • the BFD packet further includes indication information for restoring the routing information of the base station side gateway CSG1.
  • the embodiment of the present invention further provides a network device.
  • the method includes: a packaging module 601, configured to encapsulate routing information of the first network device when the network device detects a link failure between the first network device or a first network device failure And detecting, by the bidirectional forwarding, the BFD packet, where the BFD packet includes the routing information of the first network device;
  • the sending module 602 is configured to send the BFD packet to the second network device, so that the second network device revokes the route of the second network device to the first network device.
  • the package module specifically includes a first BFD module and a second BFD module.
  • the first BFD module is configured to detect a link failure between the first network device or the first network device, and is used to detect a link failure with the first network device or a failure of the first network device, Notifying the routing information of the first network device to the second BFD module;
  • the second BFD module is configured to search for a BFD packet template corresponding to the first network device, and obtain a BFD packet that matches the routing information of the first network device.
  • the package module specifically includes a first BFD module and a second BFD module.
  • the first BFD module is configured to detect a link failure between the first network device or the first network device, and is used to detect a link failure with the first network device or a failure of the first network device, Notifying the routing information of the first network device to the second BFD module;
  • the second BFD module is configured to encapsulate the routing information of the first network device into a BFD packet.
  • the BFD packet carries a revocation route field, where the revocation route field includes a routing information field and a type Type field, and the routing information field includes routing information of the first network device, where the type Type field includes The indication information of the routing information is revoked.
  • the encapsulating module is further configured to restore the fault recovery link or the fault to the first network device when the network device detects a link failure between the first network device or a first network device failure recovery.
  • the routing information is encapsulated into a BFD packet, where the BFD packet includes the fault recovery link or the routing information of the fault recovery first network device, and the sending module is configured to send the BFD packet to the second network device, Causeting the second network device to resume routing of the second network device to the first network device.
  • the network device is specifically a convergence side gateway ASG.
  • An embodiment of the present invention further provides a network device, which includes: a processor 701, a memory 702, a transmitter 703, and a bus 704.
  • the processor 701, the memory 702, and the transceiver 703 are connected by a bus 704. And complete the communication with each other, where:
  • the bus 704 can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus, or an Extended Industry Standard Architecture (ESA) bus.
  • ISA Industry Standard Architecture
  • PCI Peripheral Component
  • ESA Extended Industry Standard Architecture
  • the bus 704 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one line is shown in Figure 8, but it does not mean that there is only one bus or one type of bus.
  • Memory 702 is for storing program code, the program code including operational instructions.
  • the memory 702 may include a random access memory (RAM), and may also include a non-volatile memory such as a disk memory.
  • the processor 701 may be a Central Processing Unit (CPU), or an Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention.
  • CPU Central Processing Unit
  • ASIC Specific Integrated Circuit
  • the transmitter 703 is mainly used to implement the transmission and reception of communication data between the network device and other network devices in this embodiment.
  • the processor 701 is configured to invoke the program code in the memory 702, to perform the following operations: when the network device detects a link failure with the first network device or the first network device fails, The routing information of the first network device is encapsulated into a bidirectional forwarding detection BFD packet, where the BFD packet includes routing information of the first network device;
  • the transmitter 703 is configured to send the BFD packet to the second network device, so that the second network device revokes the route of the second network device to the first network device.
  • the embodiment of the present invention further provides a route revocation system.
  • the network device and the second network device according to the embodiment of the present invention are included.
  • the network device is as shown in the foregoing, and the second network device is configured to revoke the route of the second network device to the first network device.
  • the network device when the network device detects that the link between the first network device is faulty or the first network device is faulty, the network device encapsulates the routing information of the first network device into a bidirectional forwarding detection BFD report.
  • the BFD packet includes the routing information of the first network device, and the network device sends the BFD packet to the second network device, so that the second network device revokes the second network device to The route of the first network device.
  • the route of the network device to the first network device can be directly deleted on the second network device, and does not affect other normal link receiving services.
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or otherwise.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program code.
  • ROM read-only memory
  • RAM random access memory
  • magnetic disk or an optical disk and the like, which can store program code.

Landscapes

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

Abstract

本发明实施例提供的一种路由撤销方法和设备,当网络设备检测到与第一网络设备间的链路故障或者第一网络设备故障时,所述网络设备将所述第一网络设备的路由信息封装成双向转发检测BFD报文,所述BFD报文包含所述第一网络设备的路由信息;所述网络设备发送所述BFD报文给第二网络设备,以使所述第二网络设备撤销所述第二网络设备到所述第一网络设备的路由。能够在第二网络设备上直接删除经所述网络设备到第一网络设备的路由,不影响其他正常的链路接收业务。

Description

-种路由撤销方法和网络设备 技术领域
本发明涉及通信技术领域, 特别涉及一种路由撤销方法和网络设备 t 背景技术
双向转发检测 (Bidirectional Forwarding Detection, BFD)协议能快速检测到一对网 络设备间的通信故障, 以至网络设备能够根据快速检测出的故障将流量切换至备份链路 以加快网络收敛速度, 能够保证业务继续进行, 减小设备故障或链路故障对业务的影响, 提高网络的可用性。
虽然 BFD协议可以检测一对网络设备之间的链路进行检测, 但是当采用 BFD检测的相邻 设备发生故障时, 没法实现 BFD检测, 如图 1所示, 只能通过二个 BFD会话的联动。 例 如图 1所示的网络设备,服务商边缘(Provider Edge, PE)路由器 PEn和 PEm之间的 BFDx 会话没法检测 PE1和 PEn之间的链路故障, 只能通过 BFD2会话联动 BFDx会话。 但是,如图 2所示,在多个 PE (例如 PE 1, PE2 "·ΡΕ i )禾口 PEn都建立 BFD会话( BFD 1, BFD2 '"BFD i ) 时, 如果一个或者几个 BFD会话宕, 则不能联动 PEn和 PEm之间的 BFDx会话宕, 因为还有其 他的链路仍然正常, 如果 BFDx会话宕, 则会影响其他正常的链路也不能接收业务。 发明内容
为了不影响其他正常的链路接收业务, 本发明实施例提供一种路由撤销方法和网络设备。 第一方面, 提供了一种路由撤销方法, 包括:
当网络设备检测到与第一网络设备间的链路故障或者第一网络设备故障时, 所述网络设 备将所述第一网络设备的路由信息封装成双向转发检测 BFD报文, 所述 BFD报文包含所 述第一网络设备的路由信息;
所述网络设备发送所述 BFD报文给第二网络设备, 以使所述第二网络设备撤销所述第二 网络设备到所述第一网络设备的路由。 结合第一方面, 在第一种可能的实现方式中, 当网络设备检测到与第一网络设备间的链 路故障或者第一网络设备故障时, 所述网络设备将所述第一网络设备的路由信息封装成 BFD报文, 所述 BFD报文包含所述第一网络设备的路由信息具体包括:
当所述网络设备的第一 BFD模块检测到与第一网络设备间的链路故障或者第一网络 设备故障时, 所述网络设备的第一 BFD模块将所述第一网络设备的路由信息通知给 所述网络设备的第二 BFD模块;
所述网络设备的第二 BFD模块查找与所述第一网络设备对应的 BFD报文模板, 获得 与所述第一网络设备的路由信息匹配的 BFD报文。
结合第一方面, 在第二种可能的实现方式中, 当网络设备检测到与第一网络设备间 的链路故障或者第一网络设备故障时, 所述网络设备将所述第一网络设备的路由信 息封装成 BFD报文, 所述 BFD报文包含所述第一网络设备的路由信息具体包括: 当所述网络设备的第一 BFD模块检测到与第一网络设备间的链路故障或者第一网络 设备故障时, 所述网络设备的第一 BFD模块将所述第一网络设备的路由信息通知给 所述网络设备的第二 BFD模块;
所述网络设备的第二 BFD模块将所述第一网络设备的路由信息封装成 BFD报文。 结合第一方面, 和第一方面的第一种或者第二种可能的实现方式, 在第三种可能的 实现方式中, 所述 BFD报文携带撤销路由字段, 所述撤销路由字段包括路由信息字 段、 类型 Type字段, 所述路由信息字段包含所述第一网络设备的路由信息, 所述类 型 Type字段包含撤销所述路由信息的指示信息。
结合第一方面, 在第四种可能的实现方式中, 所述方法还包括:
当所述网络设备检测到与第一网络设备间的链路故障恢复或者第一网络设备故障恢 复时, 所述网络设备将所述故障恢复链路或者故障恢复第一网络设备的路由信息封 装成 BFD报文, 所述 BFD报文包含所述故障恢复链路或者故障恢复第一网络设备的 路由信息;
所述网络设备发送所述 BFD报文给第二网络设备, 以使所述第二网络设备恢复所述 第二网络设备到所述第一网络设备的路由。
结合第一方面, 或结合第一方面的上述任意一种可能的实现方式, 在第五种可能的 实现方式中,所述网络设备具体为汇聚侧网关 ASG,所述第一网络设备具体为基站侧 网关 CSG, 所述第二网络设备具体为无线业务侧网关 RSG。 第二方面, 提供了一种网络设备, 包括:
封装模块, 用于当所述网络设备检测到与第一网络设备间的链路故障或者第一网络 设备故障时, 将所述第一网络设备的路由信息封装成双向转发检测 BFD报文, 所述 BFD报文包含所述第一网络设备的路由信息;
发送模块, 用于发送所述 BFD报文给第二网络设备, 以使所述第二网络设备撤销所 述第二网络设备到所述第一网络设备的路由。
结合第二方面, 在第一种可能的实现方式中, 所述封装模块具体包括第一 BFD模块 和第二 BFD模块,
所述第一 BFD模块, 用于检测与第一网络设备间的链路故障或者第一网络设备故障, 并用于当检测到与第一网络设备间的链路故障或者第一网络设备故障时, 将所述第 一网络设备的路由信息通知给所述第二 BFD模块;
所述第二 BFD模块, 用于查找查找与所述第一网络设备对应的 BFD报文模板, 获得 与所述第一网络设备的路由信息匹配的 BFD报文。 结合第二方面, 在第二种可能的 实现方式中, 所述封装模块具体包括第一 BFD模块和第二 BFD模块,
所述第一 BFD模块, 用于检测与第一网络设备间的链路故障或者第一网络设备故障, 并用于当检测到与第一网络设备间的链路故障或者第一网络设备故障时, 将所述第 一网络设备的路由信息通知给所述第二 BFD模块;
所述第二 BFD模块, 用于将所述第一网络设备的路由信息封装成 BFD报文。
结合第二方面, 或第二方面的的第二种可能或第三种可能的实现方式, 在第三种可 能的实现方式中, 所述 BFD报文携带撤销路由字段, 所述撤销路由字段包括路由信 息字段、 类型 Type字段, 所述路由信息字段包含所述第一网络设备的路由信息, 所 述类型 Type字段包含撤销所述路由信息的指示信息。 结合第二方面, 在第四种可能的实现方式中, 封装模块, 还用于当所述网络设备检 测到与第一网络设备间的链路故障或者第一网络设备故障恢复时, 将所述故障恢复 链路或者故障恢复第一网络设备的路由信息封装成 BFD报文, 所述 BFD报文包含所 述故障恢复链路或者故障恢复第一网络设备的路由信息;
发送模块, 用于发送所述 BFD报文给第二网络设备, 以使所述第二网络设备恢复所 述第二网络设备到所述第一网络设备的路由。
结合第二方面, 在第五种可能的实现方式中, 所述网络设备具体为汇聚侧网关 ASG。 第三方面, 提供一种网络设备, 包括处理器、 存储器和发送器, 所述存储器用于存 储程序代码, 其中:
所述处理器, 用于调用所述存储器中的程序代码, 执行以下操作:
当所述网络设备检测到与第一网络设备间的链路故障或者第一网络设备故障时, 将 所述第一网络设备的路由信息封装成双向转发检测 BFD报文, 所述 BFD报文包含所 述第一网络设备的路由信息;
所述发送器, 用于发送所述 BFD报文给第二网络设备, 以使所述第二网络设备撤销 所述第二网络设备到所述第一网络设备的路由。 第四方面, 提供一种路由撤销系统, 包括: 如第二方面或者第三方面任一所示的网 络设备和第二网络设备, 所述第二网络设备, 用于撤销所述第二网络设备到第一网 络设备的路由。 本发明实施例提供的一种路由撤销方法和设备, 当网络设备检测到与第一网络设备 间的链路故障或者第一网络设备故障时, 所述网络设备将所述第一网络设备的路由 信息封装成双向转发检测 BFD报文, 所述 BFD报文包含所述第一网络设备的路由信 息; 所述网络设备发送所述 BFD报文给第二网络设备, 以使所述第二网络设备撤销 所述第二网络设备到所述第一网络设备的路由。 能够在第二网络设备上直接删除经 所述网络设备到第一网络设备的路由, 不影响其他正常的链路接收业务。 附图说明
为了更清楚地说明本发明实施例的技术方案, 下面将对本发明实施例中所需要使用的附 图作简单地介绍, 显而易见地, 下面所描述的附图仅仅是本发明的一些实施例, 对于本 领域普通技术人员来讲, 在不付出创造 性劳动的前提下, 还可以根据这些附图获得其 他的附图。
图 1是本发明实施例的三个网路设备互联的示意框图;
图 2是本发明实施例的多个网路设备互联的的示意框图;
图 3是本发明实施例的路由撤销方法的示意流程图;
图 4是本发明实施例的 IP无线接入网的示意图;
图 5是本发明实施例的 BFD报文格式的示意图;
图 6是本发明实施例的网络设备的结构示意图;
图 7是本发明另一实施例的网络设备的结构示意图;
图 8是本发明实施例的路由撤销系统的结构示意图。 具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描 述, 显然, 所描述的实施例是本发明的一部分实施例, 而不是全部实施例。基于本发明 中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实 施例, 都应属于本发明保护的范围。
下面结合说明书附图对本发明实施例作进一步详细描述。
本发明实施例设计了一种路由撤销方法, 参阅图 3所示, 该方法包括如下步骤:
步骤 301 : 当网络设备检测到与第一网络设备间的链路故障或者第一网络设备故障 时, 所述网络设备将所述第一网络设备的路由信息封装成双向转发检测 BFD报文, 所述 BFD报文包含所述第一网络设备的路由信息;
步骤 302:所述网络设备发送所述 BFD报文给第二网络设备, 以使所述第二网络设备 撤销所述第二网络设备到所述第一网络设备的路由。
本发明实施例的路由撤销方法,能够在第二网络设备上直接删除经所述网络设备删除经 所述网络设备到第一网络设备的路由, 不影响其他正常的链路接收业务。 较佳地, 可以但不限于通过下述方式实现步骤 301。
方式一: 当所述网络设备的第一 BFD模块检测到与第一网络设备间的链路故障或者 第一网络设备故障时, 所述网络设备的第一 BFD模块将所述第一网络设备的路由信 息通知给所述网络设备的第二 BFD模块;
所述网络设备的第二 BFD模块查找与所述第一网络设备对应的 BFD报文模板, 获得 与所述第一网络设备的路由信息匹配的 BFD报文。
方式二: 当所述网络设备的第一 BFD模块检测到与第一网络设备间的链路故障或者 第一网络设备故障时, 所述网络设备的第一 BFD模块将所述第一网络设备的路由信 息通知给所述网络设备的第二 BFD模块;
所述网络设备的第二 BFD模块将所述第一网络设备的路由信息封装成 BFD报文。 较佳地, 所述路由信息包括所述第一网络设备的路由 ID ( Router ID) 和子网掩码 (Network Mask)。
较佳地, 所述 BFD报文携带撤销路由字段, 所述撤销路由字段包括路由信息字段、 类型 Type 字段, 所述路由信息字段包含所述第一网络设备的路由信息, 所述类型
Type字段包含撤销所述路由信息的指示信息。
较佳地, 当网络设备检测到与多个第一网络设备间的链路故障或者多个第一网络设 备故障时, 可以将所述多个第一网络设备的路由信息封装在同一个 BFD报文中,, 这 样可以一次发送需要撤销的所有路由。 较佳地, 本发明实施例设计的一种路由撤销方法, 还包括:
当所述网络设备检测到与第一网络设备间的链路故障恢复或者第一网络设备故障恢 复时, 所述网络设备将所述故障恢复链路或者故障恢复第一网络设备的路由信息封 装成 BFD报文, 所述 BFD报文包含所述故障恢复链路或者故障恢复第一网络设备的 路由信息;
所述网络设备发送所述 BFD报文给第二网络设备, 以使所述第二网络设备恢复所述 第二网络设备到所述第一网络设备的路由。
较佳地,所述网络设备具体为汇聚侧网关 ASG,所述第一网络设备具体为基站侧网关 CSG, 所述第二网络设备具体为无线业务侧网关 RSG。 下面结合图 4说明本发明的优选实施例一。
本发明实施例提供的撤销路由的方法可以应用到城域网, 也可以应用到 IP无线接入网
( IP Radio Access Network, IPRAN) 中。
当前 IPRAN部署的 Layer2十 Layer3部署场景中, 如图 4所示通常采用 BFD技术来进行 可靠性保护, 基站侧网关(Cell Site Gateway, CSG)到汇聚侧网关(Aggregation Site Gateway, ASG) 部署伪线冗余 ( Pseudowire Redundancy, PW Redundancy ) 保护, 也就 是说 CSGl和主 ASG以及 CSGl和备 ASG之间建立主用 PW和备用 PW, 主用 PW和备用 PW 之间建立 PW Redundancy冗余保护, 当主用 PW链路异常后, CSG1到主 ASG的流量切换 到 CSG1到备用 ASG; 当然 CSG2和主 ASG以及 CSG2和备 ASG之间也建立 PW Redundancy 冗余保护, CSG3和主 ASG以及 CSG2和备 ASG之间也建立 PW Redundancy冗余保护。 在
ASG到无线业务侧网关(Radio Service Gateway, RSG)之间部署 VPN快速重路由 (VPN Fast Reroute , VPN FRR) 和 MPLS TE热备 (MPLS TE Hot Standby, MPLS TE HSB ) 保 护。 对于 CSGl来说主用链路 PW故障后, 从 CSG1到主 ASG之间的流量可以切换到备 ASG, 从 RNC到 CSG1的流量, 依然从主 RSG到主 ASG, 如果主 ASG和备 ASG之间链路正常, 虽然主用 PW链路故障, RNC到 CSG1的流量可以通过主 ASG, 经过备 ASG, 然后通过备 用 PW回到 CSG1。但是如果此时主 ASG和备 ASG之间的链路也异常时,从主 RSG到 CSG1 的流量到达主 ASG后, 由于链路都异常, 路由中断, 从 RNC到 CSG1的报文会丢失。 当主用 PW和主 ASG和备 ASG之间的链路都异常时, 会导致从 RSG到基站的流量由于主 ASG到备 ASG链路异常也中断。 为了避免流量中断, 可以采用本发明实施例提供的路由 撤销的方法, 包括: 步骤 1 :当汇聚侧网关主 ASG检测到基站侧网关 CSG1到所述汇聚侧网关主 ASG的链路 ( PW,
LSP, Tunnel , 接口等) 宕, 所述汇聚侧网关主 ASG将该基站侧网关 CSG1的路由信息封 装成双向转发检测 BFD报文, 所述路由信息包括该基站侧网关 CSG1的 IP地址和子网掩 码, 如 100. 1. 1. 0/24。
所述 BFD报文包含该基站侧网关 CSG1的路由信息; 所述 BFD报文还包含撤销所述路由 信息的指示信息。
如图 5所示, 本发明实施例在 RFC5880的 BFD协议字段中携带撤销路由的字段: 1、 路 由信息 Data字段, 所述路由信息字段包含所述第一网络设备的路由信息, 可以为 IPv4/ IPv6路由; 2、 类型 Type字段, 包含撤销所述路由信息的指示信息。
其中, 所述汇聚侧网关主 ASG和备 ASG包含分别与所述基站侧网关 CSG1、 CSG2、 CSG3 对应的第一 BFD模块, 所述汇聚侧网关主 ASG和备 ASG也包含分别与所述无线业务侧网 关主 RSG、 备 RSG对应的第二 BFD模块,
其中, 可以但不限于通过下述方式实现步骤 1,
方式一: 当所述汇聚侧网关主 ASG的第一 BFD模块检测到与基站侧网关 CSG1间的链路 故障时, 所述汇聚侧网关主 ASG的第一 BFD模块将所述基站侧网关 CSG1的的路由信息 通知给所述汇聚侧网关主 ASG的第二 BFD模块; 具体通知方式可以采用广播或者单播方 式, 本发明实施例不对以进行限制, 都属于本发明实施例的保护范围。
所述汇聚侧网关主 ASG的第二 BFD模块中保存有与每一个基站侧网关 CSG对应的 BFD报 文模板, 该 BFD报文模板是按照图 5所示的格式封装完整的 BFD报文, 所述 BFD报文包 含该基站侧网关 CSG的路由信息; 所述 BFD报文还包含撤销所述路由信息的指示信息。 所述汇聚侧网关主 ASG的第二 BFD模块查找与所述基站侧网关 CSG对应的 BFD报文模板, 获得与所述基站侧网关 CSG1的路由信息匹配的 BFD报文。
所述汇聚侧网关主 ASG的第二 BFD模块不需要封装, 直接将该已经封装完整的 BFD报文 发送给无线业务侧网关主 RSG, 以使该无线业务侧网关主 RSG撤销该 RSG到 CSG1的路由。 之后,该 RSG可以使用到 CSG1的备用链路或者重新选择到 CSG1的路由,并在后续有到 CSG1 的流量倒换到备用链路或者重新选择的路由。 而因为不需要封装, 转发平面直接将该已经 封装完整的 BFD报文发送给无线业务侧网关主 RSG, 更是可以减少整个撤销路由方法需要 的时间, 使用户不会感知到链路异常, 提高用户体验。 方式二: 当所述汇聚侧网关主 ASG的第一 BFD模块检测到与基站侧网关 CSG1间的链路故 障时, 所述汇聚侧网关主 ASG的第一 BFD模块将所述基站侧网关 CSG1的的路由信息通知 给所述汇聚侧网关主 ASG的第二 BFD模块; 具体通知方式可以采用广播或者单播方式, 本 发明实施例不对以进行限制, 都属于本发明实施例的保护范围。
所述汇聚侧网关主 ASG的第二 BFD模块将所述基站侧网关 CSG1的路由信息封装成 BFD报 文。 该 BFD报文是按照图 5所示的格式封装的 BFD报文, 所述 BFD报文包含该基站侧网关 CSG的路由信息; 所述 BFD报文还包含撤销所述路由信息的指示信息。 步骤 2 : 所述汇聚侧网关主 ASG发送所述 BFD报文给所述无线业务侧网关主 RSG, 以使所 述无线业务侧网关主 RSG撤销所述无线业务侧网关主 RSG到所述基站侧网关 CSG1的路由。 之后,该 RSG可以使用到 CSG1的备用链路或者重新选择到 CSG1的路由,并在后续有到 CSG1 的流量倒换到备用链路或者重新选择的路由。 因为该撤销路由方法使用 BFD报文传送, 整 个实现过程只需要百毫秒级别内时间, 使用户不会感知到链路异常, 提高用户体验。 当基站侧网关 CSG1和汇聚侧网关主 ASG的链路恢复时,通知远端的无线业务侧网关主 RSG 可以恢复到基站侧网关 CSG1的路由, 具体可以为:
当汇聚侧网关主 ASG检测到基站侧网关 CSG1到汇聚侧网关主 ASG的链路 ( PW, LSP, Tunnel , 接口等)的链路恢复时,汇聚侧网关主 ASG将所述基站侧网关 CSG1的路由信息封装成 BFD 报文, 所述 BFD报文包含所述基站侧网关 CSG1的路由信息; 较佳地, 所述 BFD报文还包 含恢复所述基站侧网关 CSG1的路由信息的指示信息。
所述汇聚侧网关主 ASG发送所述 BFD报文给无线业务侧网关主 RSG, 以使所述无线业务侧 网关主 RSG恢复所述无线业务侧网关主 RSG到所述基站侧网关 CSG1的路由。 并在后续有 到 CSG1的流量倒换到该路由。 基于同一设计思路, 本发明实施例还提供了一种网络设备。 参阅图 6所示, 包括: 封装模块 601, 用于当所述网络设备检测到与第一网络设备间的链路故障或者第一网络设 备故障时, 将所述第一网络设备的路由信息封装成双向转发检测 BFD报文, 所述 BFD报文 包含所述第一网络设备的路由信息;
发送模块 602, 用于发送所述 BFD报文给第二网络设备, 以使所述第二网络设备撤销所述 第二网络设备到所述第一网络设备的路由。 较佳地, 所述封装模块具体包括第一 BFD模块和第二 BFD模块,
所述第一 BFD模块, 用于检测与第一网络设备间的链路故障或者第一网络设备故障, 并用 于当检测到与第一网络设备间的链路故障或者第一网络设备故障时, 将所述第一网络设备 的路由信息通知给所述第二 BFD模块;
所述第二 BFD模块, 用于查找查找与所述第一网络设备对应的 BFD报文模板, 获得与所述 第一网络设备的路由信息匹配的 BFD报文。 或者较佳地, 所述封装模块具体包括第一 BFD模块和第二 BFD模块,
所述第一 BFD模块, 用于检测与第一网络设备间的链路故障或者第一网络设备故障, 并用 于当检测到与第一网络设备间的链路故障或者第一网络设备故障时, 将所述第一网络设备 的路由信息通知给所述第二 BFD模块; 所述第二 BFD模块, 用于将所述第一网络设备的路由信息封装成 BFD报文。
较佳地,所述 BFD报文携带撤销路由字段,所述撤销路由字段包括路由信息字段、类型 Type 字段, 所述路由信息字段包含所述第一网络设备的路由信息, 所述类型 Type字段包含撤 销所述路由信息的指示信息。
较佳地, 封装模块, 还用于当所述网络设备检测到与第一网络设备间的链路故障或者第一 网络设备故障恢复时, 将所述故障恢复链路或者故障恢复第一网络设备的路由信息封装成 BFD报文, 所述 BFD报文包含所述故障恢复链路或者故障恢复第一网络设备的路由信息; 发送模块, 用于发送所述 BFD报文给第二网络设备, 以使所述第二网络设备恢复所述第二 网络设备到所述第一网络设备的路由。 较佳地, 所述网络设备具体为汇聚侧网关 ASG。 本发明的实施例还提供一种网络设备, 参照图 7所示包括: 处理器 701、 存储器 702、 发 送器 703、 和总线 704, 该处理器 701、 存储器 702和收发器 703、 通过总线 704连接并完 成相互间的通信, 其中:
该总线 704可以是工业标准体系结构 (Industry Standard Architecture, ISA) 总线、 外部设备互连 (Peripheral Component, PCI ) 总线或扩展工业标准体系结构 (Extended Industry Standard Architecture, EISA) 总线等。 该总线 704可以分为地址总线、 数据 总线、 控制总线等。 为便于表示, 图 8中仅用一条线表示, 但并不表示仅有一根总线或一 种类型的总线。
存储器 702用于存储程序代码, 该程序代码包括操作指令。 存储器 702可能包括高速随机 存储器(random access memory, RAM),也可能包括非易失性存储器(non_volati le memory), 例如磁盘存储器。
处理器 701可能是一个中央处理器 (Central Processing Unit, CPU), 或者是特定集成 电路 (Appl ication Specific Integrated Circuit, ASIC), 或者是被配置成实施本发明 实施例的一个或多个集成电路。
发送器 703, 主要用于实现本实施例中的网络设备与其它网络设备之间通信数据的收发。 具体地, 处理器 701, 用于调用存储器 702中的程序代码, 用以执行以下操作: 当所述网络设备检测到与第一网络设备间的链路故障或者第一网络设备故障时, 将所述第 一网络设备的路由信息封装成双向转发检测 BFD报文, 所述 BFD报文包含所述第一网络设 备的路由信息;
发送器 703用于发送所述 BFD报文给第二网络设备, 以使所述第二网络设备撤销所述第二 网络设备到所述第一网络设备的路由。 基于同一设计思路, 本发明实施例还提供了一种路由撤销系统, 如图 8所示, 包括本发明 实施例的网络设备和第二网络设备。 网络设备如前面所示, 第二网络设备, 用于撤销所述 第二网络设备到第一网络设备的路由。 本发明实施例中, 当网络设备检测到与第一网络设备间的链路故障或者第一网络设备故障 时,所述网络设备将所述第一网络设备的路由信息封装成双向转发检测 BFD报文,所述 BFD 报文包含所述第一网络设备的路由信息;所述网络设备发送所述 BFD报文给第二网络设备, 以使所述第二网络设备撤销所述第二网络设备到所述第一网络设备的路由。能够在第二网 络设备上直接删除经所述网络设备到第一网络设备的路由, 不影响其他正常的链路接收业 务。 本领域普通技术人员可以意识到, 结合本文中所公开的实施例描述的各示例的单元及算法 步骤, 能够以电子硬件、 或者计算机软件和电子硬件的结合来实现。 这些功能究竟以硬件 还是软件方式来执行, 取决于技术方案的特定应用和设计约束条件。 专业技术人员可以对 每个特定的应用来使用不同方法来实现所描述的功能, 但是这种实现不应认为超出本发明 的范围。
所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述描述的系统、 装置和 单元的具体工作过程, 可以参考前述方法实施例中的对应过程, 在此不再赘述。
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统、 装置和方法, 可以通过其 它的方式实现。例如, 以上所描述的装置实施例仅仅是示意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可以有另外的划分方式, 例如多个单元或组件可以 结合或者可以集成到另一个系统, 或一些特征可以忽略, 或不执行。 另一点, 所显示或讨 论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口, 装置或单元的间接耦合 或通信连接, 可以是电性, 机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的, 作为单元显示的部件 可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可以分布到多个网络单元 上。 可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。 另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可以是各个单 元单独物理存在, 也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时, 可以存储在一 个计算机可读取存储介质中。 基于这样的理解, 本发明的技术方案本质上或者说对现有技 术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来, 该计算机软件 产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机, 服务器, 或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。 而前述的 存储介质包括: U盘、 移动硬盘、 只读存储器 (ROM, Read-Only Memory), 随机存取存储 器 (RAM, Random Access Memory )、 磁碟或者光盘等各种可以存储程序代码的介质。 以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限于此, 任何熟悉本 技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到变化或替换, 都应涵盖在本 发明的保护范围之内。 因此, 本发明的保护范围应所述以权利要求的保护范围为准。

Claims

权 利 要 求 书
1.一种路由撤销方法, 其特征在于,
当网络设备检测到与第一网络设备间的链路故障或者第一网络设备故障时, 所述网 络设备将所述第一网络设备的路由信息封装成双向转发检测 BFD报文, 所述 BFD报 文包含所述第一网络设备的路由信息;
所述网络设备发送所述 BFD报文给第二网络设备, 以使所述第二网络设备撤销所述 第二网络设备到所述第一网络设备的路由。
2.根据所述权利要求 1所述的方法, 其特征在于,
当网络设备检测到与第一网络设备间的链路故障或者第一网络设备故障时, 所述网 络设备将所述第一网络设备的路由信息封装成 BFD报文, 所述 BFD报文包含所述第 一网络设备的路由信息具体包括:
当所述网络设备的第一 BFD模块检测到与第一网络设备间的链路故障或者第一网络 设备故障时, 所述网络设备的第一 BFD模块将所述第一网络设备的路由信息通知给 所述网络设备的第二 BFD模块;
所述网络设备的第二 BFD模块查找与所述第一网络设备对应的 BFD报文模板, 获得 与所述第一网络设备的路由信息匹配的 BFD报文。
3. 根据所述权利要求 1所述的方法, 其特征在于,
当网络设备检测到与第一网络设备间的链路故障或者第一网络设备故障时, 所述网 络设备将所述第一网络设备的路由信息封装成 BFD报文, 所述 BFD报文包含所述第 一网络设备的路由信息具体包括:
当所述网络设备的第一 BFD模块检测到与第一网络设备间的链路故障或者第一网络 设备故障时, 所述网络设备的第一 BFD模块将所述第一网络设备的路由信息通知给 所述网络设备的第二 BFD模块;
所述网络设备的第二 BFD模块将所述第一网络设备的路由信息封装成 BFD报文。
4.根据所述权利要求 1或 2或 3所述的方法, 其特征在于,
所述 BFD报文携带撤销路由字段, 所述撤销路由字段包括路由信息字段、 类型 Type 字段, 所述路由信息字段包含所述第一网络设备的路由信息, 所述类型 Type字段包 含撤销所述路由信息的指示信息。
5. 根据所述权利要求 1所述的方法, 其特征在于, 所述方法还包括:
当所述网络设备检测到与第一网络设备间的链路故障恢复或者第一网络设备故障恢 复时, 所述网络设备将所述故障恢复链路或者故障恢复第一网络设备的路由信息封 装成 BFD报文, 所述 BFD报文包含所述故障恢复链路或者故障恢复第一网络设备的 路由信息;
所述网络设备发送所述 BFD报文给第二网络设备, 以使所述第二网络设备恢复所述 第二网络设备到所述第一网络设备的路由。
6.根据所述权利要求 1-5任一所述的方法, 其特征在于,
所述网络设备具体为汇聚侧网关 ASG, 所述第一网络设备具体为基站侧网关 CSG, 所 述第二网络设备具体为无线业务侧网关 RSG。
7.—种网络设备, 其特征在于, 包括:
封装模块, 用于当所述网络设备检测到与第一网络设备间的链路故障或者第一网络 设备故障时, 将所述第一网络设备的路由信息封装成双向转发检测 BFD报文, 所述 BFD报文包含所述第一网络设备的路由信息;
发送模块, 用于发送所述 BFD报文给第二网络设备, 以使所述第二网络设备撤销所 述第二网络设备到所述第一网络设备的路由。
8. 根据所述权利要求 7所述的网络设备, 其特征在于,
所述封装模块具体包括第一 BFD模块和第二 BFD模块,
所述第一 BFD模块, 用于检测与第一网络设备间的链路故障或者第一网络设备故障, 并用于当检测到与第一网络设备间的链路故障或者第一网络设备故障时, 将所述第 一网络设备的路由信息通知给所述第二 BFD模块;
所述第二 BFD模块, 用于查找查找与所述第一网络设备对应的 BFD报文模板, 获得 与所述第一网络设备的路由信息匹配的 BFD报文。
9. 根据所述权利要求 7所述的网络设备, 其特征在于,
所述封装模块具体包括第一 BFD模块和第二 BFD模块,
所述第一 BFD模块, 用于检测与第一网络设备间的链路故障或者第一网络设备故障, 并用于当检测到与第一网络设备间的链路故障或者第一网络设备故障时, 将所述第 一网络设备的路由信息通知给所述第二 BFD模块;
所述第二 BFD模块, 用于将所述第一网络设备的路由信息封装成 BFD报文。
10. 根据所述权利要求 7或 8或 9所述的网络设备, 其特征在于,
所述 BFD报文携带撤销路由字段, 所述撤销路由字段包括路由信息字段、 类型 Type 字段, 所述路由信息字段包含所述第一网络设备的路由信息, 所述类型 Type字段包 含撤销所述路由信息的指示信息。
11. 根据所述权利要求 7所述的网络设备, 其特征在于,
封装模块, 还用于当所述网络设备检测到与第一网络设备间的链路故障或者第一网 络设备故障恢复时, 将所述故障恢复链路或者故障恢复第一网络设备的路由信息封 装成 BFD报文, 所述 BFD报文包含所述故障恢复链路或者故障恢复第一网络设备的 路由信息;
发送模块, 用于发送所述 BFD报文给第二网络设备, 以使所述第二网络设备恢复所 述第二网络设备到所述第一网络设备的路由。
12.根据所述权利要求 7-11任一所述的网络设备, 其特征在于,
所述网络设备具体为汇聚侧网关 ASG。
13. 一种网络设备, 其特征在于, 包括处理器、 存储器和发送器, 所述存储器用于 存储程序代码, 其中:
所述处理器, 用于调用所述存储器中的程序代码, 执行以下操作:
当所述网络设备检测到与第一网络设备间的链路故障或者第一网络设备故障时, 将 所述第一网络设备的路由信息封装成双向转发检测 BFD报文, 所述 BFD报文包含所 述第一网络设备的路由信息; 所述发送器, 用于发送所述 BFD报文给第二网络设备, 以使所述第二网络设备撤销 所述第二网络设备到所述第一网络设备的路由。
14. 一种路由撤销系统, 其特征在于, 包括: 如权利要求 7-13任一所示的网络设 备和第二网络设备, 所述第二网络设备, 用于撤销所述第二网络设备到第一网络设 备的路由。
PCT/CN2014/079902 2013-06-29 2014-06-16 一种路由撤销方法和网络设备 WO2014206207A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310270236.2 2013-06-29
CN201310270236.2A CN104253745B (zh) 2013-06-29 2013-06-29 一种路由撤销方法和网络设备

Publications (1)

Publication Number Publication Date
WO2014206207A1 true WO2014206207A1 (zh) 2014-12-31

Family

ID=52141025

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/079902 WO2014206207A1 (zh) 2013-06-29 2014-06-16 一种路由撤销方法和网络设备

Country Status (2)

Country Link
CN (1) CN104253745B (zh)
WO (1) WO2014206207A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112367257A (zh) * 2020-10-30 2021-02-12 新华三技术有限公司 路由通告方法及装置

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105827419B (zh) * 2015-01-05 2020-03-10 华为技术有限公司 一种转发设备故障处理的方法、设备和控制器
CN106209617B (zh) * 2015-04-29 2020-12-11 中兴通讯股份有限公司 一种通告路由和撤销路由的方法和相应的路由设备
CN110753002B (zh) * 2019-09-29 2023-04-07 北京浪潮数据技术有限公司 流量调度方法及装置
CN110740094B (zh) * 2019-10-28 2021-09-21 新华三信息安全技术有限公司 一种网络设备、bfd报文的传输方法及装置
CN113630314B (zh) * 2020-05-09 2022-09-16 北京金山云网络技术有限公司 混合云专线接入网络的灾备方法及装置
CN115051947B (zh) * 2022-06-30 2024-02-23 中兴通讯股份有限公司 通信状态切换、端口配置方法、通信系统及介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090010153A1 (en) * 2007-07-03 2009-01-08 Cisco Technology, Inc. Fast remote failure notification
CN101355486A (zh) * 2007-07-23 2009-01-28 中国移动通信集团公司 一种路由切换的方法、设备及系统
CN101431448A (zh) * 2008-10-22 2009-05-13 华为技术有限公司 定位ip承载网故障的方法、设备和系统
CN102164051A (zh) * 2011-05-18 2011-08-24 西安交通大学 面向业务的故障检测与定位方法
US20110242968A1 (en) * 2008-08-14 2011-10-06 Tellabs San Jose, Inc Method and Apparatus for Improving Network Communication Using BFD and VRRP Tracking System

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8543718B2 (en) * 2006-03-02 2013-09-24 Cisco Technology, Inc. Technique for efficiently and dynamically maintaining bidirectional forwarding detection on a bundle of links
US8531976B2 (en) * 2008-03-07 2013-09-10 Cisco Technology, Inc. Locating tunnel failure based on next-next hop connectivity in a computer network
CN101800676A (zh) * 2010-02-20 2010-08-11 中兴通讯股份有限公司 链路检测方法、装置和系统
CN102195822B (zh) * 2010-03-01 2014-05-07 杭州华三通信技术有限公司 一种故障检测的方法和服务提供商边缘设备
CN102195861B (zh) * 2010-03-19 2015-04-08 杭州华三通信技术有限公司 一种路由切换过程中建立bfd会话的方法和装置
US8543728B2 (en) * 2010-03-25 2013-09-24 Verizon Patent And Licensing Inc. Dampening interface flapping
CN101834773A (zh) * 2010-03-30 2010-09-15 中兴通讯股份有限公司 一种虚拟专用局域网业务的保护方法和系统
CN102223241B (zh) * 2010-04-15 2013-09-11 杭州华三通信技术有限公司 网络变化通知方法和设备
CN102255765B (zh) * 2010-05-21 2014-07-30 华为技术有限公司 双向转发检测的方法和设备
CN101924654B (zh) * 2010-08-23 2015-04-01 中兴通讯股份有限公司 一种基于点到多点业务的路径切换方法及系统
CN102316041B (zh) * 2011-09-09 2014-10-29 福建星网锐捷网络有限公司 一种路由切换的方法及装置
CN102611577A (zh) * 2012-03-02 2012-07-25 中兴通讯股份有限公司 一种基于ldp会话的pw保护方法、装置及系统
CN102857399B (zh) * 2012-08-20 2015-06-17 华为技术有限公司 Vpls双归属网络的mac地址删除方法、设备及系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090010153A1 (en) * 2007-07-03 2009-01-08 Cisco Technology, Inc. Fast remote failure notification
CN101355486A (zh) * 2007-07-23 2009-01-28 中国移动通信集团公司 一种路由切换的方法、设备及系统
US20110242968A1 (en) * 2008-08-14 2011-10-06 Tellabs San Jose, Inc Method and Apparatus for Improving Network Communication Using BFD and VRRP Tracking System
CN101431448A (zh) * 2008-10-22 2009-05-13 华为技术有限公司 定位ip承载网故障的方法、设备和系统
CN102164051A (zh) * 2011-05-18 2011-08-24 西安交通大学 面向业务的故障检测与定位方法

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112367257A (zh) * 2020-10-30 2021-02-12 新华三技术有限公司 路由通告方法及装置
CN112367257B (zh) * 2020-10-30 2022-10-21 新华三技术有限公司 路由通告方法及装置

Also Published As

Publication number Publication date
CN104253745B (zh) 2018-05-29
CN104253745A (zh) 2014-12-31

Similar Documents

Publication Publication Date Title
WO2014206207A1 (zh) 一种路由撤销方法和网络设备
CN108574614B (zh) 一种报文处理方法、设备及网络系统
CN107846342B (zh) 一种vxlan报文的转发方法、设备及系统
EP2852104B1 (en) Method and device for establishing multi-protocol label switching traffic engineering tunnel
US7990852B1 (en) Methods and apparatus for improving network communication using BFD and VRRP tracking system
US9426678B2 (en) Implementing dual-homed node protection
US8750096B2 (en) Method and apparatus for improving data integrity during a router recovery process
EP2725743B1 (en) Methods and device for processing location information about fault point
US11146484B2 (en) Method, device, and system for deferring switchback
CN108243114B (zh) 一种转发报文的方法、设备及系统
CN101789879B (zh) 一种关联链路的动态维护方法及装置
CN101800774A (zh) 一种接入环保护方法及接入环保护网络
CN101610535A (zh) 多链路直连场景下保证bfd会话稳定性的方法、系统及装置
WO2018113294A1 (zh) 一种转发报文的方法、设备及系统
WO2015028090A1 (en) Methods and apparatus
EP2658177B1 (en) Method for detecting tunnel faults and traffic engineering node
WO2014029282A1 (zh) 跨域保护互通方法及系统
WO2012065409A1 (zh) 分组传送网的保护方法和装置
CN106161232B (zh) 一种隧道保护切换的方法和装置
CN103036781A (zh) 一种主路径链路故障处理方法及装置
WO2011011934A1 (zh) 一种以太网隧道分段保护方法和装置
WO2012000329A1 (zh) 一种传送多协议标签交换网络的子网保护方法及装置
CN111885630B (zh) 数据传输方法及通信装置
CN103607301A (zh) 一种ecmp方式下链路故障的保护切换方法和设备
WO2015135280A1 (zh) 一种实现按需智能拨号的方法、系统和接入路由器

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

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

Country of ref document: EP

Kind code of ref document: A1