WO2022222884A1 - Failure sensing method, apparatus and system for forwarding path - Google Patents

Failure sensing method, apparatus and system for forwarding path Download PDF

Info

Publication number
WO2022222884A1
WO2022222884A1 PCT/CN2022/087422 CN2022087422W WO2022222884A1 WO 2022222884 A1 WO2022222884 A1 WO 2022222884A1 CN 2022087422 W CN2022087422 W CN 2022087422W WO 2022222884 A1 WO2022222884 A1 WO 2022222884A1
Authority
WO
WIPO (PCT)
Prior art keywords
identifier
forwarding path
network device
path
forwarding
Prior art date
Application number
PCT/CN2022/087422
Other languages
French (fr)
Chinese (zh)
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 WO2022222884A1 publication Critical patent/WO2022222884A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • 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
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • 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
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements

Definitions

  • a network device may be a first network device in a message forwarding system, and the network device includes: a main control board and an interface board.
  • the main control board includes: a first processor and a first memory.
  • the interface board includes: a second processor, a second memory and an interface card. The main control board and the interface board are coupled.
  • FIG. 10 is a schematic structural diagram of a second network device provided by an embodiment of the present application.
  • the second to fourth segment identifiers are the segment identifiers of PE3, P3, and P1 in the first forwarding path, and the last segment identifier can carry the BSID of the SRv6 TE Policy: BSID1.
  • the method of encapsulating the BSID by the last segment identifier in the segment list may also be called a reduced SRH (reduce SRH) encapsulation method.
  • the controller may deliver two SR policies to the first network device, one of which includes the first forwarding path, and the endpoint of the SR policy is the primary user of CE dual-homing access.
  • PE device another SR policy includes the second forwarding path, and the endpoint of the SR policy is the standby PE device dual-homed by the CE.
  • the first network device may determine the second forwarding path from the other SR policy.
  • the first network device does not determine the second forwarding path by using the VPN FRR technology, it can report fault information to the controller to request the controller to recalculate and deliver the second forwarding path as a backup path. Based on the above manner, reliable switching of forwarding paths can be ensured, and normal forwarding of service flows can be avoided.
  • the last segment identifier in the segment list carries the first identifier.
  • the first identifier is the BSID of the SR policy to which the first forwarding path belongs; or, the first identifier is the path identifier of the first forwarding path.
  • the first service message includes an SRH, and the SRH carries the first identifier.
  • the processor 501 in the network device may be configured to receive the first service packet sent by the first network device through the first forwarding path, and if it is determined that the first forwarding path is faulty, send the packet to the first network device A failure notification message; wherein, the first service message includes a first identifier, and the first identifier is used to determine the first forwarding path, the failure notification message includes the first identifier, and the failure notification message is used to indicate the The first forwarding path is faulty.
  • the processor 501 reference may be made to the foregoing method embodiments. For example, reference may be made to the detailed description of step 102 in the embodiment shown in FIG. 2 , or reference may be made to the detailed description of step 202 in the embodiment shown in FIG. 3 , which will not be repeated here.
  • main control boards 601 there may be one or more main control boards 601, and when there are multiple pieces, it may include an active main control board and a backup main control board.
  • the multiple interface boards can communicate with each other through one or more switching network boards. When there are multiple interface boards, they can jointly implement load sharing and redundant backup.
  • the device does not need a switching network board, and the interface board is responsible for the processing function of the service data of the entire system.
  • the device includes multiple interface boards, which can realize data exchange among the multiple interface boards through the switching network board, and provide large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of network devices in a distributed architecture are greater than those in a centralized architecture.
  • the specific architecture used depends on the specific networking deployment scenario, and there is no restriction here.
  • the message forwarding system includes: a plurality of network devices 01 .
  • the plurality of network devices 01 may include at least a first network device as shown in FIG. 9 , FIG. 11 or FIG. 12 , and may include a second network device as shown in FIG. 10 , FIG. 11 or FIG. 12 .

Abstract

The present application relates to the technical field of communications, and provides a failure sensing method, apparatus and system for a forwarding path. In the solution provided by the present application, a first network device can carry, in a sent service message, a first identifier used for determining a first forwarding path; and after detecting a failure of the first forwarding path, a second network device can feed back a failure notification message carrying the first identifier to the first network device. Therefore, even if an end-to-end detection algorithm is not deployed in the first network device, the failure of the first forwarding path can also be determined on the basis of the first identifier in the failure notification message. By means of the solution provided by the present application, a network device can sense a failure of a forwarding path without deploying the end-to-end detection algorithm in the network device, so that the problems of high deployment complexity and low efficiency caused by the deployment of the end-to-end detection algorithm are effectively avoided.

Description

转发路径的故障感知方法、装置及系统Fault sensing method, device and system for forwarding path
本申请要求于2021年4月19日提交的申请号为202110418201.3、发明名称为“转发路径的故障感知方法、装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202110418201.3 filed on April 19, 2021 and the title of the invention is "Fault Awareness Method, Device and System for Forwarding Path", the entire contents of which are incorporated into this application by reference .
技术领域technical field
本申请涉及通信技术领域,特别涉及一种转发路径的故障感知方法、装置及系统。The present application relates to the field of communication technologies, and in particular, to a method, device and system for fault sensing of a forwarding path.
背景技术Background technique
SRv6是一种基于互联网协议第6版(internet protocol version 6,IPv6)的段路由(segment routing,SR)转发技术。支持SRv6技术的网络设备可以在报文中封装路由扩展头(segment routing header,SRH),该SRH包括用于指示报文的转发路径的段列表(segment list)。接收到报文的网络设备可以基于该段列表转发报文。SRv6 is a segment routing (SR) forwarding technology based on Internet protocol version 6 (IPv6). A network device that supports the SRv6 technology can encapsulate a segment routing header (SRH) in the message, where the SRH includes a segment list (segment list) used to indicate the forwarding path of the message. The network device that receives the packet can forward the packet based on the segment list.
为了实现对转发路径的故障检测,转发路径的头端网络设备中需部署端到端检测算法,例如双向转发检测(bidirectional forwarding detection,BFD)算法,或者无缝BFD(seamless BFD,SBFD)算法等。头端网络设备基于该端到端检测算法检测到报文的转发路径故障后,可以及时切换报文的转发路径。To implement fault detection on the forwarding path, an end-to-end detection algorithm, such as a bidirectional forwarding detection (BFD) algorithm, or a seamless BFD (SBFD) algorithm, needs to be deployed in the head-end network device of the forwarding path. . After detecting a packet forwarding path failure based on the end-to-end detection algorithm, the head-end network device can switch the packet forwarding path in time.
但是,在网络设备中部署端到端检测算法的复杂度较高,效率较低。However, deploying end-to-end detection algorithms in network devices has high complexity and low efficiency.
发明内容SUMMARY OF THE INVENTION
本申请提供了一种转发路径的故障感知方法、装置及系统,可以解决在网络设备中部署端到端检测算法的复杂度较高,效率较低的技术问题。The present application provides a fault sensing method, device and system for a forwarding path, which can solve the technical problems of high complexity and low efficiency of deploying an end-to-end detection algorithm in network equipment.
第一方面,提供了一种转发路径的故障感知方法,应用于第一网络设备;该方法包括:通过第一转发路径发送第一业务报文,以及接收该第一转发路径中的第二网络设备发送的故障通知报文;其中,该第一业务报文包括第一标识,该第一标识用于确定该第一转发路径,该故障通知报文也包括该第一标识,该故障通知报文用于指示该第一转发路径故障。A first aspect provides a forwarding path fault sensing method, applied to a first network device; the method includes: sending a first service packet through the first forwarding path, and receiving a second network in the first forwarding path A failure notification message sent by the device; wherein the first service message includes a first identifier, and the first identifier is used to determine the first forwarding path, and the failure notification message also includes the first identifier, and the failure notification message The text is used to indicate that the first forwarding path is faulty.
由于第一网络设备可以基于第二网络设备反馈的故障通知报文感知到第一转发路径的故障,因此第一网络设备中无需部署端到端检测算法,从而有效避免了部署端到端检测算法而导致的部署复杂度高和效率低的问题。Since the first network device can perceive the failure of the first forwarding path based on the failure notification message fed back by the second network device, there is no need to deploy an end-to-end detection algorithm in the first network device, thus effectively avoiding deployment of an end-to-end detection algorithm This leads to problems of high deployment complexity and low efficiency.
可选地,该方法还可以包括:通过该第一转发路径的备用路径发送第二业务报文,该第二业务报文和该第一业务报文属于同一业务流。Optionally, the method may further include: sending a second service packet through a backup path of the first forwarding path, where the second service packet and the first service packet belong to the same service flow.
第一网络设备在确定第一转发路径故障后,还可以将用于转发报文的路径切换至备用路径,由此可以确保业务流的正常转发,避免业务流中断。After determining that the first forwarding path is faulty, the first network device may also switch the path for forwarding packets to the backup path, thereby ensuring normal forwarding of the service flow and avoiding interruption of the service flow.
可选地,该第一转发路径所属的SR策略包括多条候选路径,该第一转发路径属于该多条候选路径;通过该第一转发路径的备用路径发送第二业务报文的过程可以包括:基于该故障通知报文,从该多条候选路径中确定第二转发路径作为备用路径,并通过该第二转发路径发送封装有第二标识的第二业务报文,该第二标识用于确定该第二转发路径。Optionally, the SR policy to which the first forwarding path belongs includes multiple candidate paths, and the first forwarding path belongs to the multiple candidate paths; the process of sending the second service packet through the backup path of the first forwarding path may include: : Based on the fault notification message, determine a second forwarding path from the multiple candidate paths as a backup path, and send a second service message encapsulated with a second identifier through the second forwarding path, and the second identifier is used for Determine the second forwarding path.
第一网络设备从第一转发路径所属的SR策略中确定第二转发路径,可以确保切换后的第二转发路径依旧能够满足业务流的性能需求,确保业务流的业务体验。The first network device determines the second forwarding path from the SR policy to which the first forwarding path belongs, so as to ensure that the switched second forwarding path can still meet the performance requirements of the service flow and ensure the service experience of the service flow.
可选地,通过该第一转发路径的备用路径发送第二业务报文的过程可以包括:基于该故障通知报文,采用虚拟专用网(virtual private network,VPN)快速重路由(fast reroute,FRR)技术确定第二转发路径作为备用路径,并通过该第二转发路径发送封装有第二标识的第二业务报文,该第二标识用于确定该第二转发路径。Optionally, the process of sending the second service message through the backup path of the first forwarding path may include: based on the fault notification message, adopting a virtual private network (virtual private network, VPN) fast reroute (fast reroute, FRR) ) technology determines the second forwarding path as a backup path, and sends a second service packet encapsulated with a second identifier through the second forwarding path, where the second identifier is used to determine the second forwarding path.
第一网络设备可以在确定第一转发路径所属的SR策略不包括其他候选路径后,采用VPN FRR技术确定第二转发路径,由此可以确保能够可靠地确定出备用路径,进而确保转发路径的可靠切换。After determining that the SR policy to which the first forwarding path belongs does not include other candidate paths, the first network device may use the VPN FRR technology to determine the second forwarding path, thereby ensuring that the backup path can be reliably determined, thereby ensuring the reliability of the forwarding path. switch.
可选地,通过该第一转发路径的备用路径发送第二业务报文的过程可以包括:基于该故障通知报文向控制器发送故障信息,该故障信息用于指示该第一转发路径故障;以及将控制器下发的第二转发路径作为备用路径,并通过该第二转发路径发送封装有第二标识的第二业务报文,该第二标识用于确定该第二转发路径。Optionally, the process of sending the second service packet through the backup path of the first forwarding path may include: sending fault information to the controller based on the fault notification packet, where the fault information is used to indicate that the first forwarding path is faulty; and use the second forwarding path delivered by the controller as a backup path, and send a second service message encapsulated with a second identifier through the second forwarding path, where the second identifier is used to determine the second forwarding path.
第一网络设备可以在确定第一转发路径所属的SR策略不包括其他候选路径后,向控制器发送故障信息,以请求控制器重新计算并下发第二转发路径。或者,第一网络设备可以在采用VPN FRR技术也未确定出可切换的转发路径后,向控制器发送故障信息,以请求控制器重新计算并下发第二转发路径。通过控制器来计算并下发第二转发路径,可以确保转发路径的可靠切换。After determining that the SR policy to which the first forwarding path belongs does not include other candidate paths, the first network device may send fault information to the controller to request the controller to recalculate and deliver the second forwarding path. Alternatively, the first network device may send fault information to the controller after the VPN FRR technology is used and the switchable forwarding path has not been determined, so as to request the controller to recalculate and deliver the second forwarding path. By calculating and delivering the second forwarding path by the controller, reliable switching of the forwarding path can be ensured.
可选地,该第一标识可以为该第一转发路径所属的SR策略的绑定段标识(binding segment identification,BSID);或者,该第一标识可以为SR策略下的候选路径的路径标识,即该第一转发路径的路径标识。其中,该路径标识可以为转发路径的BSID。Optionally, the first identifier may be a binding segment identification (binding segment identification, BSID) of an SR policy to which the first forwarding path belongs; or, the first identifier may be a path identifier of a candidate path under the SR policy, That is, the path identifier of the first forwarding path. The path identifier may be the BSID of the forwarding path.
可选地,该第一业务报文可以包括SRH,该SRH中可以携带有该第一标识。Optionally, the first service packet may include an SRH, and the SRH may carry the first identifier.
可选地,该SRH还包括段列表和标记字段,该段列表包括多个段标识;该段列表中的一个段标识携带有该第一标识,且该标记字段可以用于指示该段列表中包括第一标识。由此,可以便于第二网络设备基于该标记字段的指示,确定该段列表中是否携带有第一标识。Optionally, the SRH also includes a segment list and a marker field, the segment list includes multiple segment identifiers; a segment identifier in the segment list carries the first identifier, and the marker field can be used to indicate that the segment list is in the segment list. Include the first logo. Therefore, it is convenient for the second network device to determine whether the segment list carries the first identifier based on the indication of the flag field.
可选地,该段列表中的最后一个段标识可以携带有第一标识。由于段列表中的最后一个段标识通常为转发路径的头端网络设备(即第一网络设备)的段标识,因此通过该最后一个段标识来携带第一标识,不仅可以确保业务报文的正常转发,而且无需改变业务报文的结构。Optionally, the last segment identifier in the segment list may carry the first identifier. Since the last segment identifier in the segment list is usually the segment identifier of the head-end network device (ie, the first network device) of the forwarding path, carrying the first identifier through the last segment identifier can not only ensure the normal operation of service packets forwarding without changing the structure of service packets.
可选地,该故障通知报文中包括SRH,该SRH携带有该第一标识;或者,该故障通知报文的数据字段携带有该第一标识,且该故障通知报文不包括SRH。Optionally, the fault notification packet includes an SRH, and the SRH carries the first identifier; or, the data field of the fault notification packet carries the first identifier, and the fault notification packet does not include the SRH.
其中,第二网络设备若直接在故障通知报文中封装SRH,并通过该SRH携带第一标识,则该第二网络设备无需对业务报文中的SRH进行解析以获取第一标识,从而可以简化第二网络设备的报文处理操作。第二网络设备若不在该故障通知报文中封装SRH,并通过故障通知报文中的数据字段携带第一标识,则可以有效简化该故障通知报文的结构。Wherein, if the second network device directly encapsulates the SRH in the fault notification message and carries the first identifier through the SRH, the second network device does not need to parse the SRH in the service message to obtain the first identifier, so that it can The packet processing operation of the second network device is simplified. If the second network device does not encapsulate the SRH in the fault notification packet, and carries the first identifier through the data field in the fault notification packet, the structure of the fault notification packet can be effectively simplified.
可选地,该故障通知报文可以为互联网控制信息协议(Internet control message protocol,ICMP)报文。例如,ICMPv6报文。Optionally, the fault notification message may be an Internet control message protocol (Internet control message protocol, ICMP) message. For example, ICMPv6 packets.
由于ICMP报文本身就具备故障指示的功能,因此可以直接在ICMP报文中封装第一标识以指示第一转发路径故障。通过复用传统的ICMP报文,可以在确保网络设备准确感知转发路径故障的前提下,尽量避免改变网络设备对报文的识别和处理行为。Since the ICMP message itself has the function of failure indication, the first identifier may be directly encapsulated in the ICMP message to indicate the failure of the first forwarding path. By multiplexing traditional ICMP packets, it is possible to avoid changing the network device's identification and processing behavior of packets on the premise of ensuring that network devices can accurately perceive forwarding path failures.
另一方面,提供了一种转发路径的故障感知方法,应用于第二网络设备;该方法包括:接收第一网络设备通过第一转发路径发送的第一业务报文,若确定该第一转发路径故障,则向该第一网络设备发送故障通知报文;其中,该第一业务报文包括第一标识,该第一标识用于 确定该第一转发路径,该故障通知报文也包括该第一标识,该故障通知报文用于指示第一转发路径故障。In another aspect, a method for sensing failure of a forwarding path is provided, which is applied to a second network device; the method includes: receiving a first service packet sent by the first network device through the first forwarding path, if it is determined that the first forwarding If the path fails, send a failure notification message to the first network device; wherein, the first service message includes a first identifier, and the first identifier is used to determine the first forwarding path, and the failure notification message also includes the The first identifier, the failure notification message is used to indicate the failure of the first forwarding path.
可选地,该故障通知报文中包括SRH,该SRH携带有该第一标识;或者,该故障通知报文的数据字段携带有该第一标识。Optionally, the fault notification message includes an SRH, and the SRH carries the first identifier; or, a data field of the fault notification message carries the first identifier.
可选地,该故障通知报文为ICMP报文。Optionally, the fault notification message is an ICMP message.
可选地,该第一标识为该第一转发路径所属的SR策略的BSID;或者,该第一标识为该第一转发路径的路径标识。Optionally, the first identifier is the BSID of the SR policy to which the first forwarding path belongs; or, the first identifier is a path identifier of the first forwarding path.
可选地,该第一业务报文包括SRH,该SRH中携带有该第一标识。Optionally, the first service message includes an SRH, and the SRH carries the first identifier.
可选地,该SRH还包括段列表和标记字段,该段列表包括多个段标识;该段列表中的一个段标识携带有该第一标识,且该标记字段用于指示该段列表中包括该第一标识。Optionally, the SRH further includes a segment list and a marker field, the segment list includes multiple segment identifiers; a segment identifier in the segment list carries the first identifier, and the marker field is used to indicate that the segment list includes the first identification.
又一方面,提供了一种第一网络设备,该第一网络设备包括至少一个模块,该至少一个模块可以用于实现上述方面所提供的应用于第一网络设备的转发路径的故障感知方法。In yet another aspect, a first network device is provided, and the first network device includes at least one module, and the at least one module can be used to implement the fault sensing method applied to the forwarding path of the first network device provided by the above aspect.
再一方面,提供了一种第二网络设备,该第二网络设备包括至少一个模块,该至少一个模块可以用于实现上述方面所提供的应用于第二网络设备的转发路径的故障感知方法。In yet another aspect, a second network device is provided, and the second network device includes at least one module, and the at least one module can be used to implement the fault sensing method applied to the forwarding path of the second network device provided by the above aspects.
再一方面,提供了一种网络设备,该网络设备可以包括:存储器,处理器及存储在该存储器上并可在该处理器上运行的计算机程序,该处理器执行该计算机程序时实现上述方面所提供的应用于第一网络设备的转发路径的故障感知方法,或者,实现上述方面提供的应用于第二网络设备的转发路径的故障感知方法。In yet another aspect, a network device is provided, and the network device may include: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor implements the above-mentioned aspects when executing the computer program The provided fault sensing method applied to the forwarding path of the first network device, or implements the fault sensing method provided by the above aspect and applied to the forwarding path of the second network device.
再一方面,提供了一种网络设备,该网络设备可以包括:主控板和接口板,该接口板可以用于实现上述方面所提供的应用于第一网络设备的转发路径的故障感知方法,或者,可以用于实现上述方面提供的应用于第二网络设备的转发路径的故障感知方法。In yet another aspect, a network device is provided, and the network device may include: a main control board and an interface board, and the interface board may be used to implement the fault sensing method provided in the above aspect and applied to the forwarding path of the first network device, Alternatively, the method may be used to implement the method for sensing faults provided in the above aspects and applied to the forwarding path of the second network device.
再一方面,提供了一种网络设备,该网络设备可以为报文转发系统中的第一网络设备,该网络设备包括:主控板和接口板。主控板包括:第一处理器和第一存储器。接口板包括:第二处理器、第二存储器和接口卡。主控板和接口板耦合。In another aspect, a network device is provided. The network device may be a first network device in a message forwarding system, and the network device includes: a main control board and an interface board. The main control board includes: a first processor and a first memory. The interface board includes: a second processor, a second memory and an interface card. The main control board and the interface board are coupled.
第二存储器可以用于存储程序代码,第二处理器用于调用第二存储器中的程序代码,触发接口卡执行如下操作:通过第一转发路径发送第一业务报文,以及接收该第一转发路径中的第二网络设备发送的故障通知报文;其中,该第一业务报文包括第一标识,该第一标识用于确定第一转发路径,该故障通知报文也包括该第一标识,该故障通知报文用于指示该第一转发路径故障。The second memory can be used to store program codes, and the second processor is used to call the program codes in the second memory, triggering the interface card to perform the following operations: sending the first service packet through the first forwarding path, and receiving the first forwarding path The failure notification message sent by the second network device in the device; wherein, the first service message includes a first identifier, the first identifier is used to determine the first forwarding path, and the failure notification message also includes the first identifier, The failure notification message is used to indicate a failure of the first forwarding path.
再一方面,提供了一种网络设备,该网络设备可以为报文转发系统中的第二网络设备,该网络设备包括:主控板和接口板。主控板包括:第一处理器和第一存储器。接口板包括:第二处理器、第二存储器和接口卡。主控板和接口板耦合。In another aspect, a network device is provided, and the network device may be a second network device in a message forwarding system, and the network device includes: a main control board and an interface board. The main control board includes: a first processor and a first memory. The interface board includes: a second processor, a second memory and an interface card. The main control board and the interface board are coupled.
第二存储器可以用于存储程序代码,第二处理器用于调用第二存储器中的程序代码,触发接口卡执行如下操作:接收第一网络设备通过第一转发路径发送的第一业务报文,若确定该第一转发路径故障,则向第一网络设备发送故障通知报文;其中,该第一业务报文包括第一标识,该第一标识用于确定第一转发路径,该故障通知报文也包括该第一标识,该故障通知报文用于指示第一转发路径故障。The second memory can be used to store program codes, and the second processor is used to call the program codes in the second memory, and trigger the interface card to perform the following operations: receive the first service packet sent by the first network device through the first forwarding path, if If it is determined that the first forwarding path is faulty, a failure notification message is sent to the first network device; wherein the first service message includes a first identifier, and the first identifier is used to determine the first forwarding path, and the failure notification message The first identifier is also included, and the failure notification message is used to indicate a failure of the first forwarding path.
再一方面,提供了一种计算机可读存储介质,该计算机可读存储介质中存储有指令,该指令由处理器执行以实现上述方面所提供的应用于第一网络设备的转发路径的故障感知方法,或者,实现上述方面提供的应用于第二网络设备的转发路径的故障感知方法。In yet another aspect, a computer-readable storage medium is provided, where instructions are stored in the computer-readable storage medium, and the instructions are executed by a processor to implement the fault sensing provided in the above aspect and applied to the forwarding path of the first network device The method, or, implement the fault sensing method provided in the above aspect and applied to the forwarding path of the second network device.
再一方面,提供了一种包含指令的计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述方面所提供的应用于第一网络设备的转发路径的故障感知方法,或者,执行上述方面提供的应用于第二网络设备的转发路径的故障感知方法。In yet another aspect, a computer program product containing instructions is provided, when the computer program product is run on a computer, the computer program product causes the computer to execute the fault sensing method applied to the forwarding path of the first network device provided in the above aspect, or, The fault sensing method provided in the above aspect and applied to the forwarding path of the second network device is performed.
再一方面,提供了一种报文转发系统,该报文转发系统可以包括:如上述方面所提供的第一网络设备,以及如上述方面提供的第二网络设备。In another aspect, a message forwarding system is provided, and the message forwarding system may include: the first network device provided in the above aspect, and the second network device provided in the above aspect.
再一方面,提供了一种芯片,该芯片可以用于实现上述方面所提供的应用于第一网络设备的转发路径的故障感知方法,或者,可以用于实现上述方面提供的应用于第二网络设备的转发路径的故障感知方法。In another aspect, a chip is provided, and the chip can be used to implement the fault sensing method provided in the above aspect and applied to the forwarding path of the first network device, or can be used to implement the method provided in the above aspect and applied to the second network The fault detection method of the forwarding path of the device.
综上所述,本申请提供了一种转发路径的故障感知方法、装置及系统,第一网络设备能够在发送的业务报文中携带用于确定第一转发路径的第一标识,第二网络设备在检测到该第一转发路径故障后,可以向第一网络设备反馈携带有该第一标识的故障通知报文。由此,第一网络设备中即使未部署端到端检测算法,也可以基于该故障通知报文中的第一标识确定该第一转发路径故障。由于本申请实施例提供的方案无需在网络设备中部署端到端检测算法,即可使得网络设备快速准确地感知到转发路径的故障,因此有效避免了部署端到端检测算法而导致的部署复杂度较高和效率较低的问题。To sum up, the present application provides a method, device and system for fault sensing of a forwarding path. The first network device can carry the first identifier used to determine the first forwarding path in the sent service packet, and the second network After detecting the failure of the first forwarding path, the device may feed back a failure notification message carrying the first identifier to the first network device. Therefore, even if the end-to-end detection algorithm is not deployed in the first network device, the first forwarding path failure can be determined based on the first identifier in the failure notification packet. Because the solution provided by the embodiments of the present application does not need to deploy an end-to-end detection algorithm in the network device, the network device can quickly and accurately perceive the failure of the forwarding path, thus effectively avoiding the complicated deployment caused by the deployment of the end-to-end detection algorithm. higher and lower efficiency issues.
附图说明Description of drawings
图1是本申请实施例提供的一种报文转发系统的结构示意图;1 is a schematic structural diagram of a message forwarding system provided by an embodiment of the present application;
图2是本申请实施例提供的一种转发路径的故障感知方法的流程图;FIG. 2 is a flowchart of a method for sensing faults in a forwarding path provided by an embodiment of the present application;
图3是本申请实施例提供的另一种转发路径的故障感知方法的流程图;3 is a flowchart of another method for sensing faults of forwarding paths provided by an embodiment of the present application;
图4是本申请实施例提供的一种SRv6报文的结构示意图;FIG. 4 is a schematic structural diagram of an SRv6 message provided by an embodiment of the present application;
图5是本申请实施例提供的另一种报文转发系统的结构示意图;5 is a schematic structural diagram of another message forwarding system provided by an embodiment of the present application;
图6是本申请实施例提供的一种ICMPv6报文的结构示意图;6 is a schematic structural diagram of an ICMPv6 message provided by an embodiment of the present application;
图7是本申请实施例提供的又一种报文转发系统的结构示意图;7 is a schematic structural diagram of another message forwarding system provided by an embodiment of the present application;
图8是本申请实施例提供的再一种报文转发系统的结构示意图;8 is a schematic structural diagram of still another message forwarding system provided by an embodiment of the present application;
图9是本申请实施例提供的一种第一网络设备的结构示意图;FIG. 9 is a schematic structural diagram of a first network device provided by an embodiment of the present application;
图10是本申请实施例提供的一种第二网络设备的结构示意图;FIG. 10 is a schematic structural diagram of a second network device provided by an embodiment of the present application;
图11是本申请实施例提供的一种网络设备的结构示意图;FIG. 11 is a schematic structural diagram of a network device provided by an embodiment of the present application;
图12是本申请实施例提供的另一种网络设备的结构示意图。FIG. 12 is a schematic structural diagram of another network device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面结合附图详细介绍本申请实施例提供的转发路径的故障感知方法、装置及系统。The method, device, and system for fault sensing of a forwarding path provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
图1是本申请实施例提供的一种报文转发系统的结构示意图,如图1所示,该报文转发系统可以包括多个网络设备01,该多个网络设备01之间建立有通信连接。其中,每个网络设备01可以为路由器或交换机等具备报文转发功能的设备,且每个网络设备01也可以称为节点。FIG. 1 is a schematic structural diagram of a message forwarding system provided by an embodiment of the present application. As shown in FIG. 1 , the message forwarding system may include multiple network devices 01, and communication connections are established between the multiple network devices 01 . Wherein, each network device 01 may be a device with a packet forwarding function, such as a router or a switch, and each network device 01 may also be referred to as a node.
可选地,该系统中的网络设备01可以为运营商(provider,P)设备或者运营商边缘(provider edge,PE)设备。其中,若网络设备01为PE设备,则如图1所示,该系统还可以包括与PE设备连接的一个或多个用户边缘(custom edge,CE)设备02。该CE设备02可以为路由器或交换机,且可以与用户终端连接,用于为用户终端提供接入服务。或者,该CE设备02也可以为用户终端。其中,用户终端也可以称为主机或用户设备。Optionally, the network device 01 in the system may be a provider (provider, P) device or a provider edge (provider edge, PE) device. Wherein, if the network device 01 is a PE device, as shown in FIG. 1 , the system may further include one or more user edge (custom edge, CE) devices 02 connected to the PE device. The CE device 02 may be a router or a switch, and may be connected to a user terminal for providing access services for the user terminal. Alternatively, the CE device 02 may also be a user terminal. The user terminal may also be referred to as a host or user equipment.
可选的,参考图1,该报文转发系统还可以包括控制器03,该控制器03与至少一个网络设备01连接,用于管理和控制其所连接的网络设备01。该控制器03还可以用于计算端到端的转发路径,并将转发路径下发至转发路径的头端网络设备,即头节点。Optionally, referring to FIG. 1 , the message forwarding system may further include a controller 03 , and the controller 03 is connected to at least one network device 01 for managing and controlling the network device 01 to which it is connected. The controller 03 can also be used to calculate the end-to-end forwarding path, and deliver the forwarding path to the head-end network device of the forwarding path, that is, the head node.
其中,该控制器03可以为网络控制器,例如可以为软件定义网络(software defined network,SDN)控制器,网络控制引擎(network control engine,NCE)或者路径计算单元服务器(path computation element server,PCE server)等。并且,该控制器03可以为一台服务器,或者由若干台服务器组成的服务器集群,或者是一个云计算服务中心。Wherein, the controller 03 can be a network controller, for example, can be a software defined network (software defined network, SDN) controller, a network control engine (network control engine, NCE) or a path computation element server (path computation element server, PCE) server), etc. Moreover, the controller 03 may be a server, or a server cluster composed of several servers, or a cloud computing service center.
在本申请实施例中,该报文转发系统可以为SRv6系统,该系统中的各个网络设备01均支持SRv6技术,且网络设备01之间可以建立基于SRv6的VPN连接。并且,网络设备01可以接收控制器03发送的SR策略,并基于该SR策略中的候选路径转发业务报文。In this embodiment of the present application, the packet forwarding system may be an SRv6 system, each network device 01 in the system supports the SRv6 technology, and an SRv6-based VPN connection can be established between the network devices 01 . In addition, the network device 01 may receive the SR policy sent by the controller 03, and forward the service packet based on the candidate paths in the SR policy.
可选地,控制器03可以基于BGP链路状态(BGP link-state,BGP-LS)协议收集系统中各个网络设备01上报的链路状态,并可以通过路径计算单元通信协议(path computation element communication protocol,PCEP)下发SR策略。其中,BGP是指边界网关协议(border gateway protocol)。在SRv6系统中,该SR策略也可以称为SRv6流量工程(traffic engineering,TE)策略,即SRv6-TE policy。Optionally, the controller 03 can collect the link state reported by each network device 01 in the system based on the BGP link-state (BGP link-state, BGP-LS) protocol, and can pass the path computation element communication protocol (path computation element communication). protocol, PCEP) to deliver the SR policy. Among them, BGP refers to the border gateway protocol (border gateway protocol). In an SRv6 system, the SR policy may also be referred to as an SRv6 traffic engineering (traffic engineering, TE) policy, that is, an SRv6-TE policy.
本申请实施例提供了一种转发路径的故障感知方法,该方法可以应用于诸如图1所示的报文转发系统。参考图2,该方法包括:The embodiment of the present application provides a fault sensing method for a forwarding path, and the method can be applied to a packet forwarding system such as that shown in FIG. 1 . Referring to Figure 2, the method includes:
步骤101、第一网络设备通过第一转发路径发送第一业务报文,该第一业务报文包括第一标识。Step 101: The first network device sends a first service packet through a first forwarding path, where the first service packet includes a first identifier.
该第一网络设备可以为报文转发系统中的任一网络设备,且该第一网络设备为该第一转发路径的头端网络设备。该第一网络设备通过第一转发路径发送的第一业务报文中可以包括第一标识,该第一标识用于确定该第一转发路径。The first network device may be any network device in the message forwarding system, and the first network device is the head-end network device of the first forwarding path. The first service packet sent by the first network device through the first forwarding path may include a first identifier, where the first identifier is used to determine the first forwarding path.
可选地,该第一标识可以为该第一转发路径所属的SR策略的BSID。或者,该第一标识可以为该第一转发路径的路径标识,例如,该路径标识可以为SR策略下的候选路径的路径标识,且该路径标识可以为候选路径的BSID。Optionally, the first identifier may be the BSID of the SR policy to which the first forwarding path belongs. Alternatively, the first identifier may be the path identifier of the first forwarding path, for example, the path identifier may be the path identifier of the candidate path under the SR policy, and the path identifier may be the BSID of the candidate path.
步骤102、第二网络设备若确定第一转发路径故障,则向第一网络设备发送故障通知报文,该故障通知报文包括该第一标识。Step 102: If the second network device determines that the first forwarding path is faulty, it sends a fault notification packet to the first network device, where the fault notification packet includes the first identifier.
该第二网络设备为该第一转发路径中的一个网络设备。该第二网络设备在接收到第一网络设备通过第一转发路径发送的第一业务报文后,若检测到该第一转发路径故障,则可以向第一网络设备发送故障通知报文。该故障通知报文包括该第一标识,且该故障通知报文用于指示该第一转发路径故障。相应的,第一网络设备接收到该故障通知报文后,即可基于该故障通知报文中的第一标识确定第一转发路径故障。The second network device is a network device in the first forwarding path. After receiving the first service message sent by the first network device through the first forwarding path, the second network device may send a failure notification message to the first network device if it detects that the first forwarding path is faulty. The failure notification message includes the first identifier, and the failure notification message is used to indicate a failure of the first forwarding path. Correspondingly, after receiving the failure notification message, the first network device may determine the failure of the first forwarding path based on the first identifier in the failure notification message.
可以理解的是,该故障通知报文中还可以包括故障标识,第一网络设备可以基于该故障标识确定其接收到的报文为用于指示转发路径故障的故障通知报文。It can be understood that the fault notification packet may further include a fault identifier, and the first network device may determine, based on the fault identifier, that the received packet is a fault notification packet for indicating a forwarding path fault.
综上所述,本申请实施例提供了一种转发路径的故障感知方法,第一网络设备能够在发送的业务报文中携带用于确定第一转发路径的第一标识,第二网络设备在检测到该第一转发路径故障后,可以向第一网络设备反馈携带有该第一标识的故障通知报文。由此,第一网络设备中即使未部署端到端检测算法,也可以基于该故障通知报文中的第一标识确定该第一转发路径故障。由于本申请实施例提供的方案无需在网络设备中部署端到端检测算法,即可使得 网络设备快速准确地感知到转发路径的故障,因此有效避免了部署端到端检测算法而导致的部署复杂度较高和效率较低的问题。To sum up, the embodiments of the present application provide a method for detecting faults in forwarding paths. The first network device can carry a first identifier used to determine the first forwarding path in the sent service After detecting the failure of the first forwarding path, a failure notification message carrying the first identifier may be fed back to the first network device. Therefore, even if the end-to-end detection algorithm is not deployed in the first network device, the first forwarding path failure can be determined based on the first identifier in the failure notification packet. Because the solution provided by the embodiments of the present application does not need to deploy an end-to-end detection algorithm in the network device, the network device can quickly and accurately perceive the failure of the forwarding path, thus effectively avoiding the complicated deployment caused by the deployment of the end-to-end detection algorithm. higher and lower efficiency issues.
并且,网络设备在基于端到端检测算法检测转发路径是否故障时,需要周期性地发送检测报文,该检测报文会挤占业务报文的带宽,导致网络带宽的利用率较低。由于本申请实施例提供的方案无需周期性地发送检测报文,因此可以有效提高网络带宽的利用率,确保业务报文的可靠发送。In addition, when a network device detects whether a forwarding path is faulty based on an end-to-end detection algorithm, it needs to periodically send detection packets. The detection packets will occupy the bandwidth of service packets, resulting in low network bandwidth utilization. Since the solution provided by the embodiment of the present application does not need to send detection packets periodically, the utilization rate of network bandwidth can be effectively improved, and reliable sending of service packets can be ensured.
本申请实施例提供了另一种转发路径的故障感知方法,该方法可以应用于诸如图1所示的报文转发系统。参考图3,该方法包括:This embodiment of the present application provides another method for sensing failure of a forwarding path, and the method can be applied to a packet forwarding system such as that shown in FIG. 1 . Referring to Figure 3, the method includes:
步骤201、第一网络设备通过第一转发路径发送第一业务报文,该第一业务报文包括第一标识。Step 201: The first network device sends a first service packet through a first forwarding path, where the first service packet includes a first identifier.
该第一网络设备可以为报文转发系统中的任一网络设备,且该第一网络设备为该第一转发路径的头端网络设备。该第一网络设备通过第一转发路径发送的第一业务报文中可以包括第一标识,该第一标识能够用于确定该第一转发路径。The first network device may be any network device in the message forwarding system, and the first network device is the head-end network device of the first forwarding path. The first service packet sent by the first network device through the first forwarding path may include a first identifier, where the first identifier can be used to determine the first forwarding path.
作为一种可能的示例,该第一标识可以为第一转发路径所属的SR策略的BSID。作为另一种可能的示例,该第一标识可以为该第一转发路径的路径标识,例如,该路径标识可以为转发路径的BSID。As a possible example, the first identifier may be the BSID of the SR policy to which the first forwarding path belongs. As another possible example, the first identifier may be a path identifier of the first forwarding path, for example, the path identifier may be a BSID of the forwarding path.
可选地,该第一业务报文可以为SRv6报文,该SRv6报文包括SRH,该SRH中可以携带有该第一标识。图4是本申请实施例提供的一种SRv6报文的结构示意图,如图4所示,SRv6报文包括IPv6头、SRH和载荷(payload)。其中,IPv6头至少包括业务报文的源地址(source address,SA)和目的地址(destination address,DA)。Optionally, the first service packet may be an SRv6 packet, the SRv6 packet includes an SRH, and the SRH may carry the first identifier. FIG. 4 is a schematic structural diagram of an SRv6 packet provided by an embodiment of the present application. As shown in FIG. 4 , the SRv6 packet includes an IPv6 header, an SRH, and a payload. The IPv6 header at least includes a source address (source address, SA) and a destination address (destination address, DA) of the service packet.
SRH包括如下字段:下一头部(next header,NH)、扩展头长度(header extension length,Hdr Ext Len)、路由头类型(routing type)、剩余分段个数(segment left,SL)、最后条目(last entry)、标记(flags)、标签(tag)以及段列表(segment list)。该段列表包括多个段标识(segment identification,SID),例如图4中示出了段列表[0]至段列表[n]共n+1个段标识(n可以为大于或等于1的整数)。其中,每个段标识用于指示业务报文的转发路径中的一个网络设备,例如,该段标识可以为网络设备的IPv6地址。由此可知,基于该段列表即可确定业务报文的转发路径。该SL字段用于指示到达目的网络设备(也可以称为目的节点)之前仍需访问的中间网络设备的个数。SRH includes the following fields: next header (next header, NH), extension header length (header extension length, Hdr Ext Len), routing header type (routing type), number of remaining segments (segment left, SL), last The last entry, flags, tags, and segment list. The segment list includes multiple segment identifications (segment identifications, SIDs). For example, FIG. 4 shows a total of n+1 segment identifications from segment list [0] to segment list [n] (n may be an integer greater than or equal to 1). ). Wherein, each segment identifier is used to indicate a network device in the forwarding path of the service packet, for example, the segment identifier may be an IPv6 address of the network device. It can be seen from this that the forwarding path of the service packet can be determined based on the segment list. The SL field is used to indicate the number of intermediate network devices that still need to be accessed before reaching the destination network device (also referred to as the destination node).
其中,该段列表包括的多个段标识中的一个段标识可以携带有该第一标识,且该标记字段用于指示该段列表中包括该第一标识。由此可以便于接收到第一业务报文的网络设备能够基于该标记字段的指示,确定该段列表中是否携带有第一标识。例如,参考图4,该标记字段中的1个比特(bit)可以作为标记位B,该标记位B的值为1时可以指示该段列表中包括该第一标识,该标记位B的值为0时可以指示该段列表中不包括该第一标识。Wherein, one of the segment identifiers included in the segment list may carry the first identifier, and the flag field is used to indicate that the segment list includes the first identifier. Therefore, it is convenient for the network device receiving the first service packet to determine whether the segment list carries the first identifier based on the indication of the flag field. For example, referring to FIG. 4 , 1 bit in the flag field can be used as flag bit B. When the value of flag bit B is 1, it can indicate that the first flag is included in the segment list, and the value of flag bit B can be used as flag bit B. When it is 0, it can indicate that the first identifier is not included in the segment list.
在本申请实施例中,可以通过段列表中的最后一个段标识(即段列表[n])来携带该第一标识。由于段列表中的最后一个段标识通常为转发路径的头端网络设备(即第一网络设备)的段标识,因此通过该最后一个段标识来携带第一标识,不仅可以确保业务报文的正常转发,而且无需改变业务报文的结构。In this embodiment of the present application, the first identifier may be carried by the last segment identifier in the segment list (ie, the segment list [n]). Since the last segment identifier in the segment list is usually the segment identifier of the head-end network device (ie, the first network device) of the forwarding path, carrying the first identifier through the last segment identifier can not only ensure the normal operation of service packets forwarding without changing the structure of service packets.
或者,还可以在段列表中新增一个段标识(例如段列表[-1]或段列表[n+1])来携带该第一标识。Alternatively, a segment identifier (eg, segment list [-1] or segment list [n+1]) may also be added to the segment list to carry the first identifier.
可以理解的是,该第一标识的长度可以等于一个段标识的长度。或者,该第一标识的长度可以小于一个段标识的长度,即该段列表中的某个段标识除了可以携带第一标识,还可以携带除该第一标识之外的其他信息。It can be understood that the length of the first identifier may be equal to the length of a segment identifier. Alternatively, the length of the first identifier may be less than the length of a segment identifier, that is, a segment identifier in the segment list may carry other information than the first identifier in addition to the first identifier.
示例的,参考图5,假设第一网络设备为PE1,其接收到了控制器03下发的SRv6 TE Policy:By way of example, referring to FIG. 5 , it is assumed that the first network device is PE1, which has received the SRv6 TE Policy issued by the controller 03:
Policy 1:Endpoint PE3,color redPolicy 1: Endpoint PE3, color red
Binding Sid:BSID1Binding Sid: BSID1
Candidate path 1:Candidate path 1:
Preference 200Preference 200
SID List:<PE1,P1,P3,PE3>SID List:<PE1,P1,P3,PE3>
Candidate path 2:Candidate path 2:
Preference 100Preference 100
SID List:<PE1,P2,P4,PE3>SID List:<PE1,P2,P4,PE3>
基于上述内容可知,该SRv6 TE Policy的端点(endpoint)为PE3,颜色(color)为红色(red),BSID为BSID1。其中,端点可以用于指示端到端转发路径中公网隧道的尾端网络设备;颜色用于指示该SRv6 TE Policy的性能,即该SRv6 TE Policy指示的隧道的性能,例如低延迟隧道或低成本隧道等。参考上述内容还可以看出,该SRv6 TE Policy包括两条候选路径(candidate path)。其中,第一条候选路径为:PE1→P1→P3→PE3,其优先级(preference)为200;第二条候选路径为:PE1→P2→P4→PE3,其优先级为100。Based on the above content, the endpoint of the SRv6 TE Policy is PE3, the color is red (red), and the BSID is BSID1. The endpoint can be used to indicate the end-end network device of the public network tunnel in the end-to-end forwarding path; the color is used to indicate the performance of the SRv6 TE Policy, that is, the performance of the tunnel indicated by the SRv6 TE Policy, such as a low-latency tunnel or a low-cost tunnel tunnel etc. Referring to the above content, it can also be seen that the SRv6 TE Policy includes two candidate paths. Among them, the first candidate path is: PE1→P1→P3→PE3, and its priority is 200; the second candidate path is: PE1→P2→P4→PE3, and its priority is 100.
由于第一条候选路径的优先级较高,因此PE1可以采用该第一条候选路径作为第一转发路径(即主路径)来转发第一业务报文。参考图5,PE1发送的第一业务报文中封装有SRH,该SRH中的段列表包括5个段标识(即n=5)。其中,第一个段标识为用于标识端点PE3与目的节点CE2之间的VPN信息的SID,根据PE3的VPN策略的不同,该SID可以是End.DT4、End.DT6、End.DX4或End.DX6等,此处统一表示为PE3-VPNSID。第2至第4个段标识依次为该第一转发路径中PE3、P3和P1的段标识,最后一个段标识则可以携带该SRv6 TE Policy的BSID:BSID1。并且,该SRH中标记字段的标记位B的值可以设置为1,SL的值可以设置为n-1,即SL=3。通过段列表中的最后一个段标识封装BSID的方式也可以称为缩减SRH(reduce SRH)封装方式。Because the priority of the first candidate path is higher, PE1 may use the first candidate path as the first forwarding path (ie, the main path) to forward the first service packet. Referring to FIG. 5 , the first service message sent by PE1 is encapsulated with an SRH, and the segment list in the SRH includes 5 segment identifiers (ie, n=5). Among them, the first segment is identified as the SID used to identify the VPN information between the endpoint PE3 and the destination node CE2. According to the different VPN policies of PE3, the SID can be End.DT4, End.DT6, End.DX4 or End. .DX6, etc., are uniformly expressed as PE3-VPNSID here. The second to fourth segment identifiers are the segment identifiers of PE3, P3, and P1 in the first forwarding path, and the last segment identifier can carry the BSID of the SRv6 TE Policy: BSID1. In addition, the value of the flag bit B of the flag field in the SRH can be set to 1, and the value of SL can be set to n-1, that is, SL=3. The method of encapsulating the BSID by the last segment identifier in the segment list may also be called a reduced SRH (reduce SRH) encapsulation method.
基于上述关于SR policy和段列表的介绍可知,SR policy中的候选路径可以指示公网隧道,SRH中的段列表除了包括该公网隧道中各个节点的SID,还可以包括用于标识公网隧道的端点(endpoint)与目的节点之间的VPN信息的SID。Based on the above introduction about the SR policy and the segment list, the candidate paths in the SR policy can indicate the public network tunnel, and the segment list in the SRH not only includes the SID of each node in the public network tunnel, but also can be used to identify the public network tunnel. The SID of the VPN information between the endpoint and the destination node.
步骤202、第二网络设备若确定第一转发路径故障,则向第一网络设备发送故障通知报文,该故障通知报文包括该第一标识。Step 202: If the second network device determines that the first forwarding path is faulty, it sends a fault notification packet to the first network device, where the fault notification packet includes the first identifier.
该第二网络设备为该第一转发路径中的一个网络设备。第二网络设备在接收到第一网络设备通过第一转发路径发送的第一业务报文后,若检测到该第一转发路径故障,则可以向第一网络设备发送故障通知报文。该故障通知报文包括该第一标识,且该故障通知报文用于指示该第一转发路径故障。其中,第二网络设备可以在检测到其用于转发第一业务报文的出接口故障时,或者该出接口对应的链路故障时,确定该第一转发路径故障。可以理解的是,该故障通知报文可以基于诸如IPv6的协议发送至第一网络设备。The second network device is a network device in the first forwarding path. After receiving the first service message sent by the first network device through the first forwarding path, the second network device may send a failure notification message to the first network device if it detects that the first forwarding path is faulty. The failure notification message includes the first identifier, and the failure notification message is used to indicate a failure of the first forwarding path. The second network device may determine that the first forwarding path is faulty when detecting that the outgoing interface used for forwarding the first service packet is faulty, or when the link corresponding to the outgoing interface is faulty. It can be understood that the failure notification message can be sent to the first network device based on a protocol such as IPv6.
作为一种可能的示例,该故障通知报文中可以包括SRH,该SRH携带有该第一标识。也即是,该第二网络设备可以直接将第一业务报文中的SRH封装至故障通知报文中,而无需解析并获取该SRH中的第一标识,由此有效简化了第二网络设备的报文处理操作。As a possible example, the fault notification message may include an SRH, and the SRH carries the first identifier. That is, the second network device can directly encapsulate the SRH in the first service message into the fault notification message without parsing and acquiring the first identifier in the SRH, thereby effectively simplifying the second network device. message processing operations.
作为另一种可能的实例,该故障通知报文的数据字段携带有该第一标识,即该故障通知报文中不包括SRH。由此,该故障通知报文的结构较为简单。第一网络设备在接收到该故障通知报文后,可以直接从故障通知报文的数据字段中获取第一标识,而无需解析SRH,由此有效简化了第一网络设备的报文处理操作。As another possible example, the data field of the fault notification packet carries the first identifier, that is, the fault notification packet does not include SRH. Therefore, the structure of the fault notification message is relatively simple. After receiving the failure notification message, the first network device can directly obtain the first identifier from the data field of the failure notification message without parsing the SRH, thereby effectively simplifying the message processing operation of the first network device.
可以理解的是,该故障通知报文中还可以包括故障标识。接收到该故障通知报文的网络设备(例如第一网络设备)可以基于该故障标识确定其接收到的报文为用于指示转发路径故障的故障通知报文。It can be understood that, the fault notification message may also include a fault identifier. The network device (eg, the first network device) that receives the failure notification message may determine, based on the failure identifier, that the received message is a failure notification message for indicating a forwarding path failure.
可选地,该故障通知报文可以为ICMP报文,例如可以为基于IPv6的ICMPv6报文。图6是本申请实施例提供的一种ICMPv6报文的结构示意图,图6以该ICMPv6报文包括SRH为例进行说明。参考图6,该ICMPv6报文包括IPv6头、SRH、ICMP消息和载荷。该SRH的NH字段可以用于指示该报文还包括ICMP消息,例如,该NH字段的值可以为58。该ICMP消息可以包括如下字段:类型(type)、代码(code)、校验和(checksum)和消息体(message body)。Optionally, the fault notification message may be an ICMP message, for example, may be an IPv6-based ICMPv6 message. FIG. 6 is a schematic structural diagram of an ICMPv6 packet provided by an embodiment of the present application. FIG. 6 is described by taking the ICMPv6 packet including an SRH as an example. Referring to FIG. 6, the ICMPv6 message includes an IPv6 header, an SRH, an ICMP message and a payload. The NH field of the SRH may be used to indicate that the packet further includes an ICMP message, for example, the value of the NH field may be 58. The ICMP message may include the following fields: type (type), code (code), checksum (checksum) and message body (message body).
其中,消息体字段即为故障通知报文的数据字段。type字段用于指示ICMP消息的类型,且type字段的值为0到127表示错误消息,type字段的值128至255表示信息消息。code字段的值用于进一步细分消息的类型。例如,type字段的值为1时可以指示目的不可达。在type字段的值为1时,若code字段的值为0,则可以指示没有到达目标的路由;若code字段的值为3,则可以指示地址不可达。基于上述定义可知,ICMP消息中的type字段的值(或者type字段和code字段的值)可以作为故障标识。可以理解的是,该故障通知报文中也可以不包括载荷。关于该ICMP报文中各字段的相关定义可以参考编号为2463的请求评论(request for comments,RFC)文档中的相关描述,该文档中的相关内容可以通过引用结合在本申请实施例中。The message body field is the data field of the fault notification message. The type field is used to indicate the type of the ICMP message, and the value of the type field is 0 to 127 for an error message, and the value of the type field is 128 to 255 for an information message. The value of the code field is used to further subdivide the type of message. For example, a value of 1 in the type field may indicate that the destination is unreachable. When the value of the type field is 1, if the value of the code field is 0, it may indicate that the route does not reach the destination; if the value of the code field is 3, it may indicate that the address is unreachable. Based on the above definition, it can be known that the value of the type field (or the values of the type field and the code field) in the ICMP message can be used as a fault identifier. It can be understood that, the failure notification message may also not include the payload. For the relevant definitions of the fields in the ICMP message, reference may be made to the relevant descriptions in the request for comments (request for comments, RFC) document numbered 2463, and the relevant content in the document may be incorporated into the embodiments of the present application by reference.
示例的,参考图5,假设第一转发路径中的P3检测到其出接口故障,则P3作为第二网络设备可以向PE1发送封装有BSID1的故障通知报文。该故障通知报文中封装有SRH,该SRH中携带有BSID1。如图5所示,该故障通知报文中IPv6头的SA为P3,DA为PE1,该故障通知报文可以基于IPv6转发至PE1。For example, referring to FIG. 5 , it is assumed that P3 in the first forwarding path detects that its outgoing interface is faulty, then P3, as the second network device, can send a fault notification message encapsulated with BSID1 to PE1. The fault notification message is encapsulated with an SRH, and the SRH carries BSID1. As shown in Figure 5, the SA in the IPv6 header of the fault notification packet is P3, and the DA is PE1. The fault notification packet can be forwarded to PE1 based on IPv6.
由于ICMP报文本身就具备故障指示的功能,因此可以直接在ICMP报文中封装第一标识以指示第一转发路径故障。通过复用传统的ICMP报文,可以在确保网络设备准确感知转发路径故障的前提下,尽量避免改变网络设备对报文的识别和处理行为。Since the ICMP message itself has the function of failure indication, the first identifier may be directly encapsulated in the ICMP message to indicate the failure of the first forwarding path. By multiplexing traditional ICMP packets, it is possible to avoid changing the network device's identification and processing behavior of packets on the premise of ensuring that network devices can accurately perceive forwarding path failures.
可以理解的是,第一转发路径中的网络设备若未检测到路径故障,则可以通过第一转发路径将该第一业务报文正常转发至尾端网络设备。若第一业务报文的SRH中封装有该第一标识,则该第一标识可以随SRH在第一转发路径的尾端网络设备或倒数第二跳网络设备被弹出。It can be understood that, if the network device in the first forwarding path does not detect a path failure, the first service packet can be normally forwarded to the end-end network device through the first forwarding path. If the first identifier is encapsulated in the SRH of the first service packet, the first identifier may be ejected along with the SRH at the end network device or the penultimate hop network device of the first forwarding path.
步骤203、第一网络设备基于该故障通知报文中的第一标识确定该第一转发路径故障。Step 203: The first network device determines that the first forwarding path is faulty based on the first identifier in the fault notification packet.
在本申请实施例中,第一网络设备接收到第二网络设备发送的故障通知报文后,可以基于该故障通知报文中的第一标识确定第一转发路径故障。In this embodiment of the present application, after receiving the failure notification message sent by the second network device, the first network device may determine the failure of the first forwarding path based on the first identifier in the failure notification message.
一方面,对于该第一标识为第一转发路径所属SR策略的BSID的场景。若该SR策略仅包括一条候选路径(即第一转发路径),则第一网络设备基于该BSID确定出SR策略后,即可确定该SR策略中的第一转发路径故障。若该SR策略包括多条候选路径,则由于该多条候选路径中当前用于转发第一业务报文的路径(即第一转发路径)为活跃(active)状态,因此第一网络设备基于该BSID确定出SR策略后,即可确定该SR策略中处于活跃状态的第一转发路径故障。On the one hand, for the scenario where the first identifier is the BSID of the SR policy to which the first forwarding path belongs. If the SR policy includes only one candidate path (ie, the first forwarding path), after determining the SR policy based on the BSID, the first network device may determine that the first forwarding path in the SR policy is faulty. If the SR policy includes multiple candidate paths, since the path currently used for forwarding the first service packet (ie, the first forwarding path) among the multiple candidate paths is in an active state, the first network device based on the After the BSID determines the SR policy, it can be determined that the first forwarding path in the active state in the SR policy is faulty.
另一方面,对于该第一标识为第一转发路径的路径标识(例如转发路径的BSID)的场景,第一网络设备可以直接基于该第一标识确定第一转发路径故障。On the other hand, for a scenario where the first identifier is the path identifier of the first forwarding path (eg, the BSID of the forwarding path), the first network device may directly determine that the first forwarding path is faulty based on the first identifier.
可以理解的是,若该故障通知报文中包括SRH,且SRH中携带该第一标识,则第一网络设备可以解析SRH以获取该第一标识。若该故障通知报文不包括SRH,且故障通知报文中的数据字段携带该第一标识,则第一网络设备可以直接从数据字段中获取该第一标识。It can be understood that, if the fault notification message includes the SRH and the SRH carries the first identifier, the first network device can parse the SRH to obtain the first identifier. If the fault notification packet does not include the SRH, and the data field in the fault notification packet carries the first identifier, the first network device may directly obtain the first identifier from the data field.
还可以理解的是,该故障通知报文中还可以包括故障标识,第一网络设备可以基于该故障标识确定其接收到的报文为用于指示转发路径故障的故障通知报文。若该故障通知报文为ICMP报文,则该第一网络设备可以基于该ICMP报文中的type字段确定其接收到的报文为故障通知报文,并可以基于该ICMP报文的code字段确定第一转发路径的故障类型。It can also be understood that the fault notification packet may further include a fault identifier, and the first network device may determine, based on the fault identifier, that the received packet is a fault notification packet for indicating a forwarding path fault. If the fault notification packet is an ICMP packet, the first network device may determine that the received packet is a fault notification packet based on the type field in the ICMP packet, and may determine based on the code field of the ICMP packet A failure type of the first forwarding path is determined.
步骤204、第一网络设确定第二转发路径为备用路径。Step 204: The first network device determines that the second forwarding path is a backup path.
第一网络设备在基于故障通知报文感知到第一转发路径故障后,还可以确定该第一转发路径的备用路径,以便将第一业务报文所属的业务流切换至该备用路径,以确保该业务流的正常转发。下文以第一网络设备确定第二转发路径为第一转发路径的备用路径为例进行说明。After sensing the failure of the first forwarding path based on the failure notification message, the first network device may also determine a backup path of the first forwarding path, so as to switch the service flow to which the first service message belongs to the backup path to ensure that Normal forwarding of the service flow. The following description will be given by taking the first network device determining that the second forwarding path is a backup path of the first forwarding path as an example.
作为一种可能的示例,若该第一转发路径所属的SR策略包括多条候选路径,则第一网络设备可以从该多条候选路径中确定第二转发路径作为备用路径,由此可以实现转发路径的热备份(hot-standby)保护。例如,该第一网络设备可以将该多条候选路径中除第一转发路径之外的优先级最高的候选路径确定为第二转发路径。As a possible example, if the SR policy to which the first forwarding path belongs includes multiple candidate paths, the first network device may determine the second forwarding path as a backup path from the multiple candidate paths, so that forwarding can be implemented Hot-standby protection of paths. For example, the first network device may determine the candidate path with the highest priority among the multiple candidate paths except the first forwarding path as the second forwarding path.
示例的,参考上述步骤201,假设该第一转发路径所属的SRv6 TE Policy包括两条候选路径,则PE1在确定第一条候选路径故障后,可以将第二条候选路径:PE1→P2→P4→PE3确定为第二转发路径。By way of example, referring to the above step 201, assuming that the SRv6 TE Policy to which the first forwarding path belongs includes two candidate paths, after PE1 determines that the first candidate path is faulty, the second candidate path can be set as: PE1→P2→P4 →PE3 is determined as the second forwarding path.
在该示例中,由于切换后的第二转发路径与第一转发路径属于同一个SR策略,因此可以确保基于该第二转发路径转发业务报文后,依旧能够满足该业务报文所属业务流的性能需求,确保业务流的业务体验。In this example, since the switched second forwarding path and the first forwarding path belong to the same SR policy, it can be ensured that after the service packet is forwarded based on the second forwarding path, the service flow to which the service packet belongs can still be satisfied. Performance requirements to ensure the business experience of the business flow.
可以理解的是,若第一网络设备中配置有热备份保护机制,则第一网络设备可以采用该示例所示的方式确定第二转发路径。It can be understood that, if a hot backup protection mechanism is configured in the first network device, the first network device may determine the second forwarding path in the manner shown in this example.
作为另一种可能的示例,第一网络设备可以采用VPN FRR技术确定该第二转发路径作为备用路径。该VPN FRR技术是一种应用于CE双归属网络模型的故障保护机制,其可以解决主用PE设备故障时的业务端到端快速收敛的问题。其中,CE双归属是指一个CE设备同时接入两个PE设备,其中一个PE设备为主用PE设备,另一个PE设备为备份PE设备。例如,参考图7,CE1与PE1和PE2的连接方式,以及CE2与PE3和PE4的连接方式均为CE双归属网络模型。As another possible example, the first network device may use the VPN FRR technology to determine the second forwarding path as a backup path. The VPN FRR technology is a fault protection mechanism applied to the CE dual-homing network model, which can solve the problem of fast end-to-end service convergence when the primary PE device fails. Wherein, CE dual-homing means that one CE device simultaneously accesses two PE devices, one of which is the active PE device and the other PE device is the backup PE device. For example, referring to FIG. 7 , the connection mode between CE1 and PE1 and PE2, and the connection mode between CE2 and PE3 and PE4 are both CE dual-homed network models.
可以理解的是,在该示例中,控制器可以向第一网络设备下发两个SR策略,其中一个SR策略包括第一转发路径,且该SR策略的端点为CE双归接入的主用PE设备;另一个SR策略包括第二转发路径,且该SR策略的端点为CE双归接入的备用PE设备。第一网络设备在确定第一转发路径故障并触发VPN FRR后,可以从该另一个SR策略中确定出第二转发路径。It can be understood that, in this example, the controller may deliver two SR policies to the first network device, one of which includes the first forwarding path, and the endpoint of the SR policy is the primary user of CE dual-homing access. PE device; another SR policy includes the second forwarding path, and the endpoint of the SR policy is the standby PE device dual-homed by the CE. After determining that the first forwarding path is faulty and triggering the VPN FRR, the first network device may determine the second forwarding path from the other SR policy.
以图7所示的场景为例,控制器向PE1下发的SRv6 TE Policy可以包括:Taking the scenario shown in Figure 7 as an example, the SRv6 TE Policy delivered by the controller to PE1 may include:
Policy 1:Endpoint PE3,color redPolicy 1: Endpoint PE3, color red
Binding Sid:BSID1Binding Sid: BSID1
Candidate path 1:Candidate path 1:
SID List:<PE1,P1,P3,PE3>SID List:<PE1,P1,P3,PE3>
Policy 2:Endpoint PE4,color yellowPolicy 2: Endpoint PE4, color yellow
Binding Sid:BSID2Binding Sid: BSID2
Candidate path 2:Candidate path 2:
SID List:<PE1,P2,P4,PE4>SID List:<PE1,P2,P4,PE4>
参考上述SRv6 TE Policy的内容可以看出,控制器下发的一个SR策略(即Policy 1)的端点为CE2双归接入的主用PE设备:PE3,颜色为红色,BSID为BSID1,候选路径为:PE1→P1→P3→PE3。控制器下发的另一个SR策略(即Policy 2)的端点为CE2双归接入的备用PE设备:PE4,颜色为黄色(yellow),BSID为BSID2,候选路径为:PE1→P2→P4→PE4。Referring to the content of the above SRv6 TE Policy, it can be seen that the endpoint of an SR policy (that is, Policy 1) issued by the controller is the primary PE device dual-homed by CE2: PE3, the color is red, the BSID is BSID1, and the candidate path is It is: PE1→P1→P3→PE3. The endpoint of another SR policy (Policy 2) issued by the controller is the standby PE device dual-homed by CE2: PE4, the color is yellow (yellow), the BSID is BSID2, and the candidate path is: PE1→P2→P4→ PE4.
PE1接收到携带有第一标识:BSID1的故障通知报文后,可以确定Policy 1中的候选路径故障。由于该Policy 1中没有其他备选的候选路径,因此PE1可以将Policy 1指示的隧道的隧道状态置位为停用(down)状态,并触发VPN FRR保护。基于该VPN FRR保护技术,PE1可以将业务报文的转发路径切换为Policy 2中的候选路径,以便通过PE4访问CE2,也即是,PE1可以将该Policy 2中的候选路径确定为第二转发路径。After receiving the failure notification message carrying the first identifier: BSID1, PE1 can determine that the candidate path in Policy 1 is faulty. Since there are no other candidate paths in Policy 1, PE1 can set the tunnel state of the tunnel indicated by Policy 1 to the down state, and trigger VPN FRR protection. Based on the VPN FRR protection technology, PE1 can switch the forwarding path of service packets to the candidate path in Policy 2, so as to access CE2 through PE4, that is, PE1 can determine the candidate path in Policy 2 as the second forwarding path path.
还可以理解的是,第一网络设备在基于VPN FRR技术确定第二转发路径时,若未获取到另一个SR策略中的候选路径,则还可以计算出一条尽力转发(best effort,BE)路径作为第二转发路径。It can also be understood that, when the first network device determines the second forwarding path based on the VPN FRR technology, if it does not obtain a candidate path in another SR policy, it can also calculate a best effort forwarding (best effort, BE) path. as the second forwarding path.
还可以理解的是,若第一网络设备中配置有VPN FRR机制,则第一网络设备可以采用该VPN FRR技术确定第二转发路径。It can also be understood that, if the VPN FRR mechanism is configured in the first network device, the first network device can use the VPN FRR technology to determine the second forwarding path.
作为又一种可能的示例,第一网络设备可以向控制器发送故障信息,该故障信息用于指示该第一转发路径故障。控制器接收到该故障信息后可以重新计算出一个新的转发路径(即第二转发路径),并将该第二转发路径下发至第一网络设备。也即是,第一网络设备可以将控制器重新计算并下发的第二转发路径作为备用路径。As another possible example, the first network device may send fault information to the controller, where the fault information is used to indicate that the first forwarding path is faulty. After receiving the fault information, the controller can recalculate a new forwarding path (ie, the second forwarding path), and deliver the second forwarding path to the first network device. That is, the first network device may use the second forwarding path recalculated and delivered by the controller as a backup path.
示例的,假设控制器向PE1下发的SR策略为Policy 1,该Policy 1中仅包括第一转发路径。则PE1接收到携带有第一标识:BSID1的故障通知报文后,可以确定该Policy 1中的第一转发路径故障。由于该Policy 1中没有其他备选的候选路径,因此PE1可以将Policy 1指示的隧道的隧道状态置位down,并向控制器上报故障信息,该故障信息包括该Policy 1指示的隧道的隧道状态。控制器基于该故障信息确定Policy 1的隧道状态为down后,可以重新计算出一个第二转发路径并下发至PE1。For example, it is assumed that the SR policy delivered by the controller to PE1 is Policy 1, and the Policy 1 only includes the first forwarding path. Then, after receiving the failure notification message carrying the first identifier: BSID1, PE1 can determine that the first forwarding path in the Policy 1 is faulty. Since there are no other candidate paths in Policy 1, PE1 can set the tunnel status of the tunnel indicated by Policy 1 to Down, and report fault information to the controller, where the fault information includes the tunnel status of the tunnel indicated by Policy 1 . After the controller determines that the tunnel status of Policy 1 is down based on the fault information, it can recalculate a second forwarding path and deliver it to PE1.
可以理解的是,在本申请实施例中,若第一网络设备配置有热备份保护机制机制和VPN FRR机制,则第一网络设备在基于故障通知报文感知到第一转发路径故障后,可以先检测该第一转发路径所属的SR策略中是否包括其他候选路径。若该SR策略中包括其他候选路径,则第一网络设备可以从其他候选路径中确定第二转发路径作为备用路径,即第一网络设备可以采用热备份保护的方式切换转发路径。若该SR策略中不包括其他候选路径,则第一网络设备可以采用VPN FRR技术确定第二转发路径作为备用路径。若第一网络设备采用VPN FRR技术未确定出第二转发路径,则可以向控制器上报故障信息,以请求控制器重新计算并下发第二转发路径作为备用路径。基于上述方式,可以确保转发路径的可靠切换,避免影响业务流的正常转发。It can be understood that, in this embodiment of the present application, if the first network device is configured with a hot backup protection mechanism and a VPN FRR mechanism, after sensing the failure of the first forwarding path based on the failure notification message, the first network device may First, check whether the SR policy to which the first forwarding path belongs includes other candidate paths. If the SR policy includes other candidate paths, the first network device may determine the second forwarding path from the other candidate paths as a backup path, that is, the first network device may switch forwarding paths in a hot backup protection manner. If the SR policy does not include other candidate paths, the first network device may use the VPN FRR technology to determine the second forwarding path as a backup path. If the first network device does not determine the second forwarding path by using the VPN FRR technology, it can report fault information to the controller to request the controller to recalculate and deliver the second forwarding path as a backup path. Based on the above manner, reliable switching of forwarding paths can be ensured, and normal forwarding of service flows can be avoided.
步骤205、第一网络设备通过第二转发路径发送第二业务报文。Step 205: The first network device sends the second service packet through the second forwarding path.
第一网络设备确定出第二转发路径后,即可通过该第二转发路径发送第二业务报文。该第二业务报文和该第一业务报文属于同一业务流。也即是,第一网络设备可以将第一业务报文所属的业务流切换至第二转发路径上,以确保该业务流的正常转发,避免业务流中断。其中,该第二业务报文也可以为SRv6报文,该第二业务报文的SRH中也可以包括段列表,该段列表用于指示该第二转发路径。该第二业务报文的结构可以参考第一业务报文的结构,此处不再 赘述。After the first network device determines the second forwarding path, the second service packet can be sent through the second forwarding path. The second service message and the first service message belong to the same service flow. That is, the first network device can switch the service flow to which the first service packet belongs to the second forwarding path, so as to ensure normal forwarding of the service flow and avoid interruption of the service flow. The second service packet may also be an SRv6 packet, and the SRH of the second service packet may also include a segment list, where the segment list is used to indicate the second forwarding path. For the structure of the second service message, reference may be made to the structure of the first service message, which will not be repeated here.
在本申请实施例中,该第二业务报文中可以封装有第二标识,该第二标识用于确定该第二转发路径。可以理解的是,该第二标识可以为该第二转发路径所属SR策略的BSID,或者,该第二标识可以为该第二转发路径的路径标识,例如可以是第二转发路径的BSID。In this embodiment of the present application, the second service packet may be encapsulated with a second identifier, where the second identifier is used to determine the second forwarding path. It can be understood that the second identifier may be the BSID of the SR policy to which the second forwarding path belongs, or the second identifier may be the path identifier of the second forwarding path, for example, the BSID of the second forwarding path.
还可以理解的是,若第一标识和第二标识均为SR策略的BSID,且该第二转发路径为第一转发路径所属的SR策略中的候选路径(即第二转发路径和第一转发路径属于同一个SR策略),则该第二标识和该第一标识可以相同。若该第一标识和第二标识均为路径标识,或者,若该第二转发路径和第一转发路径属于不同的SR策略,则该第二标识和该第一标识不同。It can also be understood that if both the first identifier and the second identifier are the BSIDs of the SR policy, and the second forwarding path is a candidate path in the SR policy to which the first forwarding path belongs (that is, the second forwarding path and the first forwarding path) paths belong to the same SR policy), the second identifier and the first identifier may be the same. If the first identifier and the second identifier are both path identifiers, or if the second forwarding path and the first forwarding path belong to different SR policies, the second identifier and the first identifier are different.
示例的,假设该第二转发路径为第一转发路径所属SR策略中的第二条候选路径。则参考图5,PE1可以在第二业务报文中封装SRH,且该SRH的段列表中的第一个段标识为PE3-VPNSID,第2至第4个段标识依次为该第二转发路径中PE3、P4和P2的段标识,最后一个段标识则可以携带SR策略的BSID:BSID1。For example, it is assumed that the second forwarding path is the second candidate path in the SR policy to which the first forwarding path belongs. 5, PE1 can encapsulate SRH in the second service message, and the first segment in the SRH segment list is identified as PE3-VPNSID, and the second to fourth segment identifiers are the second forwarding path in turn. The segment identifiers of PE3, P4 and P2 in the middle, and the last segment identifier can carry the BSID of the SR policy: BSID1.
或者,假设第二转发路径为PE1基于VPN FRR确定出的另一个SR策略中的候选路径,且该第二转发路径所属的SR策略的BSID为BSID2。则参考图7,PE1可以在第二业务报文中封装SRH,且该SRH的段列表中的第一个段标识为PE4-VPNSID,第2至第4个段标识依次为该第二转发路径中PE4、P4和P2的段标识,最后一个段标识则可以携带该另一个SR策略的BSID:BSID2。Alternatively, it is assumed that the second forwarding path is a candidate path in another SR policy determined by PE1 based on VPN FRR, and the BSID of the SR policy to which the second forwarding path belongs is BSID2. 7, PE1 can encapsulate SRH in the second service message, and the first segment in the segment list of the SRH is identified as PE4-VPNSID, and the second to fourth segment identifiers are the second forwarding path. The segment identifiers of PE4, P4 and P2 in the middle, and the last segment identifier can carry the BSID of the other SR policy: BSID2.
又或者,假设第二转发路径为控制器03重新计算并下发的转发路径,且该第二转发路径所属的SR策略的BSID为BSID2。则参考图8,PE1可以在第二业务报文中封装SRH,且该SRH的段列表中的第一个段标识为PE3-VPNSID,第2至第4个段标识依次为该第二转发路径中PE4、P4和P2的段标识,最后一个段标识则可以携带BSID2。Alternatively, it is assumed that the second forwarding path is a forwarding path recalculated and delivered by the controller 03, and the BSID of the SR policy to which the second forwarding path belongs is BSID2. 8, PE1 can encapsulate SRH in the second service message, and the first segment in the segment list of the SRH is identified as PE3-VPNSID, and the second to fourth segment identifiers are the second forwarding path. The segment identifiers of PE4, P4 and P2 in the middle, and the last segment identifier can carry BSID2.
可以理解的是,上述实施例均是以在SRH中携带第一标识为例进行的说明,当然,该第一标识也可以封装在报文中的其他位置,例如还可以封装在报文的IPv6头中。并且,上述实施例是以故障通知报文为ICMP报文为例进行的说明,当然该故障通知报文也可以为其他类型的报文,例如该故障通知报文可以为构造的专用于通知转发路径故障的报文。It can be understood that the above embodiments are described by taking the first identifier carried in the SRH as an example. Of course, the first identifier can also be encapsulated in other locations in the message, for example, it can also be encapsulated in the IPv6 of the message. in the head. In addition, the above-mentioned embodiment is described by taking the fault notification message as an ICMP message as an example. Of course, the fault notification message can also be other types of messages. For example, the fault notification message can be constructed specifically for notification forwarding. Path failure packets.
还可以理解的是,上述转发路径的故障感知方法中各步骤的执行顺序可以根据情况调节,步骤也可以根据情况增减。例如,上述步骤204和步骤205可以根据情况删除,即第一网络设备在确定第一转发路径故障后,也可以无需切换用于转发业务报文的路径。例如,第一网络设备可以仅向控制器上报故障信息。It can also be understood that, the execution order of each step in the above-mentioned method for sensing a fault of a forwarding path can be adjusted according to the situation, and the steps can also be increased or decreased according to the situation. For example, the above steps 204 and 205 may be deleted according to the situation, that is, after the first network device determines that the first forwarding path is faulty, it may not be necessary to switch the path for forwarding the service packet. For example, the first network device may only report fault information to the controller.
综上所述,本申请实施例提供了一种转发路径的故障感知方法,第一网络设备能够在发送的业务报文中携带用于确定第一转发路径的第一标识,第二网络设备在检测到该第一转发路径故障后,可以向第一网络设备反馈携带有该第一标识的故障通知报文。由此,第一网络设备中即使未部署端到端检测算法,也可以基于该故障通知报文中的第一标识确定该第一转发路径故障。由于本申请实施例提供的方案无需在网络设备中部署端到端检测算法,即可使得网络设备快速准确地感知到转发路径的故障,因此有效避免了部署端到端检测算法而导致的部署复杂度较高和效率较低的问题。To sum up, the embodiments of the present application provide a method for detecting faults in forwarding paths. The first network device can carry a first identifier used to determine the first forwarding path in the sent service After detecting the failure of the first forwarding path, a failure notification message carrying the first identifier may be fed back to the first network device. Therefore, even if the end-to-end detection algorithm is not deployed in the first network device, the first forwarding path failure can be determined based on the first identifier in the failure notification packet. Because the solution provided by the embodiments of the present application does not need to deploy an end-to-end detection algorithm in the network device, the network device can quickly and accurately perceive the failure of the forwarding path, thus effectively avoiding the complicated deployment caused by the deployment of the end-to-end detection algorithm. higher and lower efficiency issues.
并且,由于本申请实施例提供的方案无需第一网络设备周期性地发送检测报文来判断第一转发路径是否故障,因此可以有效提高网络带宽的利用率,确保业务报文的可靠发送。In addition, because the solution provided by the embodiment of the present application does not require the first network device to periodically send detection packets to determine whether the first forwarding path is faulty, the utilization rate of network bandwidth can be effectively improved, and the reliable transmission of service packets can be ensured.
图9是本申请实施例提供的一种第一网络设备的结构示意图,该第一网络设备可以应用于 诸如图1、图5、图7或图8所示的报文转发系统中。例如,该第一网络设备可以为图1所示系统中的任一网络设备01,或者可以为图5、图7或图8所示系统中的PE1。该第一网络设备可以实现上述图2或图3所示实施例中由第一网络设备执行的步骤。参考图9,该第一网络设备包括:FIG. 9 is a schematic structural diagram of a first network device provided by an embodiment of the present application, and the first network device may be applied to a message forwarding system such as that shown in FIG. 1 , FIG. 5 , FIG. 7 , or FIG. 8 . For example, the first network device may be any network device 01 in the system shown in FIG. 1 , or may be PE1 in the system shown in FIG. 5 , FIG. 7 or FIG. 8 . The first network device may implement the steps performed by the first network device in the above-mentioned embodiment shown in FIG. 2 or FIG. 3 . Referring to Figure 9, the first network device includes:
发送模块301,用于通过第一转发路径发送第一业务报文,该第一业务报文包括第一标识,该第一标识用于确定第一转发路径。该发送模块301的功能实现可以参考上述方法实施例中步骤101或步骤201的相关描述。The sending module 301 is configured to send a first service packet through a first forwarding path, where the first service packet includes a first identifier, and the first identifier is used to determine the first forwarding path. For the function implementation of the sending module 301, reference may be made to the relevant description of step 101 or step 201 in the foregoing method embodiments.
接收模块302,用于接收该第一转发路径中的第二网络设备发送的故障通知报文,该故障通知报文包括该第一标识,该故障通知报文用于指示该第一转发路径故障。该接收模块302的功能实现可以参考上述方法实施例中步骤102或步骤202的相关描述。A receiving module 302, configured to receive a failure notification message sent by a second network device in the first forwarding path, where the failure notification message includes the first identifier, and the failure notification message is used to indicate that the first forwarding path is faulty . For the function implementation of the receiving module 302, reference may be made to the relevant description of step 102 or step 202 in the foregoing method embodiments.
可选地,该发送模块301,还可以用于通过该第一转发路径的备用转发路径发送第二业务报文,该第二业务报文和该第一业务报文属于同一业务流。该发送模块301的功能实现还可以参考上述方法实施例中步骤205的相关描述。Optionally, the sending module 301 may be further configured to send a second service packet through the backup forwarding path of the first forwarding path, where the second service packet and the first service packet belong to the same service flow. For the functional implementation of the sending module 301, reference may also be made to the relevant description of step 205 in the foregoing method embodiments.
如图9所示,该第一网络设备还可以包括:确定模块303,该确定模块303用于确定第二转发路径作为备用路径。该确定模块303的功能实现可以参考上述方法实施例中步骤203和步骤204的相关描述。As shown in FIG. 9 , the first network device may further include: a determining module 303, where the determining module 303 is configured to determine the second forwarding path as a backup path. For the functional implementation of the determining module 303, reference may be made to the relevant descriptions of step 203 and step 204 in the foregoing method embodiment.
该发送模块301,可以用于通过该第二转发路径发送封装有第二标识的第二业务报文,该第二标识用于确定该第二转发路径。The sending module 301 may be configured to send a second service packet encapsulated with a second identifier through the second forwarding path, where the second identifier is used to determine the second forwarding path.
作为一种可能的示例,该第一转发路径所属的SR策略包括多条候选路径,该第一转发路径属于该多条候选路径;该确定模块303可以用于:基于该故障通知报文,从该多条候选路径中确定第二转发路径作为备用路径。As a possible example, the SR policy to which the first forwarding path belongs includes multiple candidate paths, and the first forwarding path belongs to the multiple candidate paths; the determining module 303 may be configured to: based on the fault notification message, from the Among the multiple candidate paths, the second forwarding path is determined as a backup path.
作为另一种可能的示例,该确定模块303可以用于:基于该故障通知报文,采用VPN FRR技术确定第二转发路径作为备用路径。As another possible example, the determining module 303 may be configured to: determine the second forwarding path as a backup path by using the VPN FRR technology based on the fault notification message.
作为又一种可能的示例,该发送模块301,还可以用于基于该故障通知报文,向控制器发送故障信息,该故障信息用于指示该第一转发路径故障;该确定模块303可以用于将该控制器下发的第二转发路径作为备用路径。As another possible example, the sending module 301 may also be configured to send fault information to the controller based on the fault notification message, where the fault information is used to indicate that the first forwarding path is faulty; the determining module 303 may use The second forwarding path delivered by the controller is used as a backup path.
可选地,该第一标识可以为该第一转发路径所属的SR策略的BSID;或者,该第一标识可以为该第一转发路径的路径标识。Optionally, the first identifier may be the BSID of the SR policy to which the first forwarding path belongs; or, the first identifier may be a path identifier of the first forwarding path.
可选地,该第一业务报文包括SRH,该SRH中携带有该第一标识。Optionally, the first service message includes an SRH, and the SRH carries the first identifier.
可选地,该SRH还包括段列表和标记字段,该段列表包括多个段标识;该段列表中的一个段标识携带有该第一标识,且该标记字段用于指示该段列表中包括该第一标识。Optionally, the SRH further includes a segment list and a marker field, the segment list includes multiple segment identifiers; a segment identifier in the segment list carries the first identifier, and the marker field is used to indicate that the segment list includes the first identification.
可选地,该段列表中的最后一个段标识携带有该第一标识。Optionally, the last segment identifier in the segment list carries the first identifier.
可选地,该故障通知报文中包括SRH,该SRH携带有该第一标识;或者,该故障通知报文的数据字段携带有该第一标识。Optionally, the fault notification message includes an SRH, and the SRH carries the first identifier; or, a data field of the fault notification message carries the first identifier.
可选地,该故障通知报文可以为ICMP报文。Optionally, the fault notification message may be an ICMP message.
综上所述,本申请实施例提供了一种第一网络设备,该第一网络设备能够在发送的业务报文中携带用于确定第一转发路径的第一标识,第二网络设备在检测到该第一转发路径故障后,可以向第一网络设备反馈携带有该第一标识的故障通知报文。由此,第一网络设备中即使未部署端到端检测算法,也可以基于该故障通知报文中的第一标识确定该第一转发路径故障。由于本申请实施例提供的方案无需在第一网络设备中部署端到端检测算法,即可使得第一网络设备快速准确地感知到转发路径的故障,因此有效避免了部署端到端检测算法而导致的部 署复杂度较高和效率较低的问题。To sum up, the embodiments of the present application provide a first network device, the first network device can carry a first identifier used to determine the first forwarding path in a sent service packet, and the second network device is detecting After the first forwarding path fails, a failure notification message carrying the first identifier may be fed back to the first network device. Therefore, even if the end-to-end detection algorithm is not deployed in the first network device, the first forwarding path failure can be determined based on the first identifier in the failure notification packet. Because the solution provided by the embodiments of the present application does not need to deploy an end-to-end detection algorithm in the first network device, the first network device can quickly and accurately perceive the failure of the forwarding path, thus effectively avoiding the deployment of the end-to-end detection algorithm. The resulting deployment complexity is high and the efficiency is low.
并且,由于本申请实施例提供的方案无需第一网络设备周期性地发送检测报文来判断第一转发路径是否故障,因此可以有效提高网络带宽的利用率,确保业务报文的可靠发送。In addition, because the solution provided by the embodiment of the present application does not require the first network device to periodically send detection packets to determine whether the first forwarding path is faulty, the utilization rate of network bandwidth can be effectively improved, and the reliable transmission of service packets can be ensured.
图10是本申请实施例提供的一种第二网络设备的结构示意图,该第二网络设备可以应用于诸如图1、图5、图7或图8所示的报文转发系统中。例如,该第二网络设备可以为图1所示系统中的任一网络设备01,或者可以为图5、图7或图8所示系统中的P3。该第二网络设备可以实现上述图2或图3所示实施例中由第二网络设备执行的步骤。参考图10,该第二网络设备包括:FIG. 10 is a schematic structural diagram of a second network device provided by an embodiment of the present application, where the second network device may be applied to a packet forwarding system such as that shown in FIG. 1 , FIG. 5 , FIG. 7 , or FIG. 8 . For example, the second network device may be any network device 01 in the system shown in FIG. 1 , or may be P3 in the system shown in FIG. 5 , FIG. 7 or FIG. 8 . The second network device may implement the steps performed by the second network device in the above-mentioned embodiment shown in FIG. 2 or FIG. 3 . Referring to Figure 10, the second network device includes:
接收模块401,用于接收第一网络设备通过第一转发路径发送的第一业务报文,该第一业务报文包括第一标识,该第一标识用于确定第一转发路径。该接收模块401的功能实现可以参考上述方法实施例中步骤101或步骤201的相关描述。The receiving module 401 is configured to receive a first service packet sent by a first network device through a first forwarding path, where the first service packet includes a first identifier, and the first identifier is used to determine the first forwarding path. For the functional realization of the receiving module 401, reference may be made to the relevant description of step 101 or step 201 in the foregoing method embodiments.
发送模块402,用于若确定该第一转发路径故障,则向第一网络设备发送故障通知报文,该故障通知报文包括该第一标识,该故障通知报文用于指示该第一转发路径故障。该发送模块402的功能实现可以参考上述方法实施例中步骤102或步骤202的相关描述。The sending module 402 is configured to send a failure notification message to the first network device if it is determined that the first forwarding path is faulty, where the failure notification message includes the first identifier, and the failure notification message is used to indicate the first forwarding Path failure. For the function implementation of the sending module 402, reference may be made to the relevant description of step 102 or step 202 in the foregoing method embodiments.
可选地,该故障通知报文中包括SRH,该SRH携带有该第一标识;或者,该故障通知报文的数据字段携带有该第一标识。Optionally, the fault notification message includes an SRH, and the SRH carries the first identifier; or, a data field of the fault notification message carries the first identifier.
可选地,该故障通知报文为ICMP报文。Optionally, the fault notification message is an ICMP message.
可选地,该第一标识为第一转发路径所属的SR策略的BSID;或者,该第一标识为第一转发路径的路径标识。Optionally, the first identifier is the BSID of the SR policy to which the first forwarding path belongs; or, the first identifier is the path identifier of the first forwarding path.
可选地,该第一业务报文包括SRH,该SRH中携带有该第一标识。Optionally, the first service message includes an SRH, and the SRH carries the first identifier.
可选地,该SRH还包括段列表和标记字段,该段列表包括多个段标识;该段列表中的一个段标识携带有该第一标识,且该标记字段用于指示该段列表中包括该第一标识。Optionally, the SRH further includes a segment list and a marker field, the segment list includes multiple segment identifiers; a segment identifier in the segment list carries the first identifier, and the marker field is used to indicate that the segment list includes the first identification.
综上所述,本申请实施例提供了一种第二网络设备,该第二网络设备能够接收第一网络设备通过第一转发路径发送的携带有第一标识的业务报文,且可以在检测到该第一转发路径故障后,向第一网络设备反馈携带有该第一标识的故障通知报文。由此,第一网络设备中即使未部署端到端检测算法,也可以基于该故障通知报文中的第一标识确定该第一转发路径故障。由于本申请实施例提供的方案无需在第一网络设备中部署端到端检测算法,即可使得第一网络设备快速准确地感知到转发路径的故障,因此有效避免了部署端到端检测算法而导致的部署复杂度较高和效率较低的问题。To sum up, the embodiment of the present application provides a second network device, the second network device can receive a service packet carrying a first identifier sent by the first network device through the first forwarding path, and can detect After the first forwarding path fails, a failure notification message carrying the first identifier is fed back to the first network device. Therefore, even if the end-to-end detection algorithm is not deployed in the first network device, the first forwarding path failure can be determined based on the first identifier in the failure notification packet. Because the solution provided by the embodiments of the present application does not need to deploy an end-to-end detection algorithm in the first network device, the first network device can quickly and accurately perceive the failure of the forwarding path, thus effectively avoiding the deployment of the end-to-end detection algorithm. The resulting deployment complexity is high and the efficiency is low.
并且,由于本申请实施例提供的方案无需第一网络设备周期性地发送检测报文来判断第一转发路径是否故障,因此可以有效提高网络带宽的利用率,确保业务报文的可靠发送。In addition, because the solution provided by the embodiment of the present application does not require the first network device to periodically send detection packets to determine whether the first forwarding path is faulty, the utilization rate of network bandwidth can be effectively improved, and the reliable transmission of service packets can be ensured.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上文描述的第一网络设备、第二网络设备以及各模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the first network device, the second network device and each module described above, reference may be made to the corresponding processes in the foregoing method embodiments, It is not repeated here.
可以理解的是,本申请实施例提供的第一网络设备和第二网络设备均可以用专用集成电路(application-specific integrated circuit,ASIC)实现,或可编程逻辑器件(programmable logic device,PLD)实现,上述PLD可以是复杂程序逻辑器件(complex programmable logical device,CPLD),现场可编程门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。或者,也可以通过软件实现上述方法实施例提供的转发路径的故障感知方法,当通过软件实现上述方法实施例提供的转发路径的故障感知方法时,上 述第一网络设备和第二网络设备中的各个模块也可以为软件模块。It can be understood that, both the first network device and the second network device provided by the embodiments of the present application may be implemented by an application-specific integrated circuit (ASIC), or a programmable logic device (PLD) , the above-mentioned PLD can be a complex program logic device (complex programmable logical device, CPLD), field-programmable gate array (field-programmable gate array, FPGA), general array logic (generic array logic, GAL) or any combination thereof. Alternatively, the fault sensing method of the forwarding path provided by the above method embodiments may also be implemented by software. When the fault sensing method of the forwarding path provided by the above method embodiments is implemented by software, the first network device and the second network device. The individual modules may also be software modules.
图11是本申请实施例提供的一种网络设备的结构示意图,该网络设备可以应用于诸如图1、图5、图7或图8所示的报文转发系统中。例如,该网络设备可以为图1所示系统中的任一网络设备01,或者可以为图5、图7或图8所示系统中的PE1,或者可以为图5、图7或图8所示系统中的P3。如图11所示,该网络设备可以包括:处理器501、存储器502、收发器503和总线504。其中,总线504用于连接处理器501、存储器502和收发器503。通过收发器503(可以是有线或者无线)可以实现与其他设备之间的通信连接。存储器502中存储有计算机程序,该计算机程序用于实现各种应用功能。当图10所示的网络设备中的各个模块采取软件模块的方式实现时,这些软件模块对应的程序可以存储在网络设备的存储器502中。FIG. 11 is a schematic structural diagram of a network device provided by an embodiment of the present application, and the network device may be applied to a packet forwarding system such as that shown in FIG. 1 , FIG. 5 , FIG. 7 , or FIG. 8 . For example, the network device may be any network device 01 in the system shown in FIG. 1 , or may be PE1 in the system shown in FIG. 5 , FIG. 7 or FIG. 8 , or may be the system shown in FIG. 5 , FIG. 7 or FIG. 8 Display P3 in the system. As shown in FIG. 11 , the network device may include: a processor 501 , a memory 502 , a transceiver 503 and a bus 504 . The bus 504 is used to connect the processor 501 , the memory 502 and the transceiver 503 . The communication connection with other devices can be realized through the transceiver 503 (which may be wired or wireless). A computer program for realizing various application functions is stored in the memory 502 . When each module in the network device shown in FIG. 10 is implemented in the form of software modules, programs corresponding to these software modules may be stored in the memory 502 of the network device.
可以理解的是,在本申请实施例中,处理器501可以是CPU,该处理器501还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)、GPU或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者是任何常规的处理器等。It can be understood that, in this embodiment of the present application, the processor 501 may be a CPU, and the processor 501 may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gates Arrays (FPGAs), GPUs or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or any conventional processor or the like.
存储器502可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data date SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。 Memory 502 may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically programmable Erase programmable read-only memory (electrically EPROM, EEPROM) or flash memory. Volatile memory may be random access memory (RAM), which acts as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), Double data rate synchronous dynamic random access memory (double data date SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (synchlink DRAM, SLDRAM) and direct Memory bus random access memory (direct rambus RAM, DR RAM).
总线504除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线504。In addition to the data bus, the bus 504 may also include a power bus, a control bus, a status signal bus, and the like. For clarity, however, the various buses are labeled as bus 504 in the figure.
一方面,该网络设备中的处理器501可以用于通过第一转发路径发送第一业务报文,以及接收该第一转发路径中的第二网络设备发送的故障通知报文;其中,该第一业务报文包括第一标识,该第一标识用于确定该第一转发路径,该故障通知报文包括该第一标识,该故障通知报文用于指示该第一转发路径故障。该处理器501的详细处理过程可以参考上述方法实施例。例如,可以参考图2所示实施例中步骤101的详细描述,或者,可以参考图3所示实施例中步骤201,以及步骤203至步骤205的详细描述,这里不再赘述。On the one hand, the processor 501 in the network device may be configured to send a first service packet through a first forwarding path, and receive a failure notification packet sent by a second network device in the first forwarding path; wherein the first forwarding path A service packet includes a first identifier, and the first identifier is used to determine the first forwarding path, and the failure notification packet includes the first identifier, and the failure notification packet is used to indicate that the first forwarding path is faulty. For the detailed processing process of the processor 501, reference may be made to the foregoing method embodiments. For example, reference may be made to the detailed description of step 101 in the embodiment shown in FIG. 2 , or reference may be made to the detailed description of step 201 and steps 203 to 205 in the embodiment shown in FIG. 3 , which will not be repeated here.
另一方面,该网络设备中的处理器501可以用于接收第一网络设备通过第一转发路径发送的第一业务报文,以及若确定该第一转发路径故障,则向第一网络设备发送故障通知报文;其中,该第一业务报文包括第一标识,该第一标识用于确定第一转发路径,该故障通知报文包括该第一标识,该故障通知报文用于指示该第一转发路径故障。该处理器501的详细处理过程可以参考上述方法实施例。例如,可以参考图2所示实施例中步骤102的详细描述,或者,可以参考图3所示实施例中步骤202的详细描述,这里不再赘述。On the other hand, the processor 501 in the network device may be configured to receive the first service packet sent by the first network device through the first forwarding path, and if it is determined that the first forwarding path is faulty, send the packet to the first network device A failure notification message; wherein, the first service message includes a first identifier, and the first identifier is used to determine the first forwarding path, the failure notification message includes the first identifier, and the failure notification message is used to indicate the The first forwarding path is faulty. For the detailed processing process of the processor 501, reference may be made to the foregoing method embodiments. For example, reference may be made to the detailed description of step 102 in the embodiment shown in FIG. 2 , or reference may be made to the detailed description of step 202 in the embodiment shown in FIG. 3 , which will not be repeated here.
图12是本申请实施例提供的一种网络设备的结构示意图,该网络设备可以应用于诸如图 1、图5、图7或图8所示的报文转发系统中。例如,该网络设备可以为图1所示系统中的任一网络设备01,或者可以为图5、图7或图8所示系统中的PE1,或者可以为图5、图7或图8所示系统中的P3。如图12所示,该网络设备可以包括:主控板601和至少一个接口板(接口板也称为线卡或业务板),例如图12中示出了接口板602和接口板603。多个接口板的情况下可以包括交换网板604,该交换网板604用于完成各接口板之间的数据交换。FIG. 12 is a schematic structural diagram of a network device provided by an embodiment of the present application, and the network device may be applied to a packet forwarding system such as that shown in FIG. 1 , FIG. 5 , FIG. 7 , or FIG. 8 . For example, the network device may be any network device 01 in the system shown in FIG. 1 , or may be PE1 in the system shown in FIG. 5 , FIG. 7 or FIG. 8 , or may be the system shown in FIG. 5 , FIG. 7 or FIG. 8 Display P3 in the system. As shown in FIG. 12 , the network device may include: a main control board 601 and at least one interface board (an interface board is also called a line card or a service board), for example, an interface board 602 and an interface board 603 are shown in FIG. 12 . In the case of multiple interface boards, a switch fabric board 604 may be included, and the switch fabric board 604 is used to complete data exchange between the interface boards.
主控板601用于完成系统管理、设备维护、协议处理等功能。接口板602和603用于提供各种业务接口(例如,POS接口、GE接口、ATM接口等),并实现报文的转发。主控板601上主要有3类功能单元:系统管理控制单元、系统时钟单元和系统维护单元。主控板601、接口板602以及接口板603之间通过系统总线与系统背板相连实现互通。接口板602上包括一个或多个中央处理器6021。中央处理器6021用于对接口板602进行控制管理并与主控板601上的中央处理器6011进行通信,以及用于报文的转发处理。接口板602上的转发表项存储器6024用于存储转发表项,中央处理器6021可以通过查找转发表项存储器6024中存储的转发表项进行报文的转发。The main control board 601 is used to complete functions such as system management, equipment maintenance, and protocol processing. The interface boards 602 and 603 are used to provide various service interfaces (eg, POS interface, GE interface, ATM interface, etc.), and realize packet forwarding. There are mainly three types of functional units on the main control board 601: a system management control unit, a system clock unit and a system maintenance unit. The main control board 601 , the interface board 602 and the interface board 603 are connected to the system backplane through the system bus to realize intercommunication. The interface board 602 includes one or more central processing units 6021 . The central processing unit 6021 is used to control and manage the interface board 602, communicate with the central processing unit 6011 on the main control board 601, and perform packet forwarding processing. The forwarding table entry memory 6024 on the interface board 602 is used to store the forwarding table entry, and the central processing unit 6021 can forward the message by searching for the forwarding table entry stored in the forwarding table entry memory 6024 .
该接口板602包括一个或多个物理接口卡6023用于接收上一跳节点发送的报文,并根据中央处理器6021的指示向下一跳节点发送处理后的报文。具体实现过程这里不再逐一赘述。所述中央处理器6021的具体功能这里同样不再逐一赘述。The interface board 602 includes one or more physical interface cards 6023 for receiving the message sent by the previous hop node, and sending the processed message to the next hop node according to the instruction of the central processing unit 6021 . The specific implementation process will not be repeated here. The specific functions of the central processing unit 6021 are also not repeated here.
可以理解的是,该第一网络设备中的发送模块301和接收模块302可以位于接口板602中,确定模块303可以位于主控板601中。第二网络设备中的接收模块401和发送模块402可以位于接口板602中。It can be understood that the sending module 301 and the receiving module 302 in the first network device may be located in the interface board 602 , and the determining module 303 may be located in the main control board 601 . The receiving module 401 and the sending module 402 in the second network device may be located in the interface board 602 .
还可以理解,如图12所示,本实施例中包括多个接口板,采用分布式的转发机制,这种机制下,接口板603的结构与接口板602的结构基本相同,且接口板603上的操作与所述接口板602的操作基本相似,为了简洁,不再赘述。此外,可以理解的是,图12中的接口板602中的中央处理器6021和/或网络处理器6022可以是专用硬件或芯片,如可以采用专用集成电路来实现上述功能,这种实现方式即为通常所说的转发面采用专用硬件或芯片处理的方式。在另外的实施方式中,所述中央处理器6021和/或网络处理器6022也可以采用通用的处理器,如通用的CPU来实现以上描述的功能。It can also be understood that, as shown in FIG. 12 , this embodiment includes multiple interface boards and adopts a distributed forwarding mechanism. Under this mechanism, the structure of the interface board 603 is basically the same as that of the interface board 602 , and the interface board 603 The operations above are basically similar to those of the interface board 602, and are not repeated for brevity. In addition, it can be understood that the central processing unit 6021 and/or the network processor 6022 in the interface board 602 in FIG. 12 may be dedicated hardware or chips. For example, an application-specific integrated circuit may be used to implement the above functions. Special hardware or chip processing is adopted for the so-called forwarding plane. In another implementation manner, the central processing unit 6021 and/or the network processor 6022 may also use a general-purpose processor, such as a general-purpose CPU, to implement the functions described above.
此外可以理解的是,主控板601可能有一块或多块,有多块的时候可以包括主用主控板和备用主控板。接口板可能有一块或多块,该设备的数据处理能力越强,提供的接口板越多。多块接口板的情况下,该多块接口板之间可以通过一块或多块交换网板通信,有多块的时候可以共同实现负荷分担冗余备份。在集中式转发架构下,该设备可以不需要交换网板,接口板承担整个系统的业务数据的处理功能。在分布式转发架构下,该设备包括多块接口板,可以通过交换网板实现多块接口板之间的数据交换,提供大容量的数据交换和处理能力。所以,分布式架构的网络设备的数据接入和处理能力要大于集中式架构的设备。具体采用哪种架构,取决于具体的组网部署场景,此处不做任何限定。In addition, it can be understood that there may be one or more main control boards 601, and when there are multiple pieces, it may include an active main control board and a backup main control board. There may be one or more interface boards. The stronger the data processing capability of the device, the more interface boards are provided. In the case of multiple interface boards, the multiple interface boards can communicate with each other through one or more switching network boards. When there are multiple interface boards, they can jointly implement load sharing and redundant backup. Under the centralized forwarding architecture, the device does not need a switching network board, and the interface board is responsible for the processing function of the service data of the entire system. Under the distributed forwarding architecture, the device includes multiple interface boards, which can realize data exchange among the multiple interface boards through the switching network board, and provide large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of network devices in a distributed architecture are greater than those in a centralized architecture. The specific architecture used depends on the specific networking deployment scenario, and there is no restriction here.
具体的实施例中,存储器6012和存储器6024可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其它类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其它类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only Memory,CD-ROM)或其它光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘或者其它磁存储设备、或者能够用于携 带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质,但不限于此。接口板602中的存储器6024可以是独立存在,并通过通信总线与中央处理器6021相连接;或者,存储器6024也可以和中央处理器6021集成在一起。主控板601中的存储器6012可以是独立存在,并通过通信总线与中央处理器6011相连接;或者,存储器6012也可以和中央处理器6011集成在一起。In specific embodiments, memory 6012 and memory 6024 may be read-only memory (ROM) or other types of static storage devices that can store static information and instructions, random access memory (RAM) Or other types of dynamic storage devices that can store information and instructions, and can also be electrically erasable programmable read-only memory (EEPROM), compact disc read-only Memory (CD- ROM) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disc or other magnetic storage device, or capable of carrying or storing desired in the form of instructions or data structures program code and any other medium that can be accessed by a computer, but is not limited thereto. The memory 6024 in the interface board 602 may exist independently and be connected to the central processing unit 6021 through a communication bus; or, the memory 6024 may also be integrated with the central processing unit 6021 . The memory 6012 in the main control board 601 may exist independently and be connected to the central processing unit 6011 through a communication bus; or, the memory 6012 may also be integrated with the central processing unit 6011 .
存储器6024用于存储程序代码,并由中央处理器6021来控制执行,存储器6012用于存储程序代码,并由中央处理器6011来控制执行。该中央处理器6021和/或中央处理器6011可以通过执行程序代码来实现上述实施例所提供的应用于第一网络设备或第二网络设备的转发路径的故障感知方法。存储器6024和/或存储器6012存储的程序代码中可以包括一个或多个软件模块。这一个或多个软件模块可以为上述图9或图10所示实施例中提供的功能模块。The memory 6024 is used for storing program codes, and the execution is controlled by the central processing unit 6021, and the memory 6012 is used for storing the program codes, and the execution is controlled by the central processing unit 6011. The central processing unit 6021 and/or the central processing unit 6011 may execute the program code to implement the fault sensing method provided in the above embodiment and applied to the forwarding path of the first network device or the second network device. One or more software modules may be included in the program code stored in memory 6024 and/or memory 6012. The one or more software modules may be the functional modules provided in the above-mentioned embodiment shown in FIG. 9 or FIG. 10 .
具体实施例中,该物理接口卡6023,可以是使用任何收发器一类的装置,用于与其它设备或通信网络通信,如以太网,无线接入网(radio access network,RAN),无线局域网(wireless local area networks,WLAN)等。In a specific embodiment, the physical interface card 6023 can be a device that uses any transceiver to communicate with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area network (wireless local area networks, WLAN), etc.
本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有指令,该指令由处理器执行以实现上述方法实施例提供的由第一网络设备或第二网络设备执行的转发路径的故障感知方法。Embodiments of the present application further provide a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and the instructions are executed by a processor to implement the first network device or the second network device provided by the foregoing method embodiments. The failure-aware method of the forwarding path performed.
本申请实施例还提供了一种包含指令的计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述方法实施例提供的由第一网络设备或第二网络设备执行的转发路径的故障感知方法。The embodiments of the present application further provide a computer program product containing instructions, when the computer program product runs on a computer, the computer program product enables the computer to execute the forwarding path provided by the above method embodiments and executed by the first network device or the second network device fault perception method.
本申请实施例还提供了一种报文转发系统,如图1所示,该报文转发系统包括:多个网络设备01。该多个网络设备01至少可以包括如图9、图11或图12所示的第一网络设备,且可以包括如图10、图11或图12所示的第二网络设备。An embodiment of the present application further provides a message forwarding system. As shown in FIG. 1 , the message forwarding system includes: a plurality of network devices 01 . The plurality of network devices 01 may include at least a first network device as shown in FIG. 9 , FIG. 11 or FIG. 12 , and may include a second network device as shown in FIG. 10 , FIG. 11 or FIG. 12 .
可选地,报文转发系统可以为SRv6系统。Optionally, the packet forwarding system may be an SRv6 system.
本申请实施例还提供了一种芯片,该芯片可以用于实现上述方法实施例提供的由第一网络设备或第二网络设备执行的转发路径的故障感知方法。An embodiment of the present application further provides a chip, which can be used to implement the method for sensing faults of a forwarding path performed by the first network device or the second network device provided in the above method embodiments.
上述实施例,可以全部或部分地通过软件、硬件、固件或其他任意组合来实现。当使用软件实现时,上述实施例可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载或执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以为通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集合的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质。半导体介质可以是固态硬盘(solid state drive,SSD)。The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented in software, the above-described embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded or executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer may be a general purpose computer, special purpose computer, computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server or data center Transmission to another website site, computer, server, or data center is by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that contains one or more sets of available media. The usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVDs), or semiconductor media. The semiconductor medium may be a solid state drive (SSD).
本申请中术语“至少一个”的含义是指一个或多个,本申请中术语“多个”的含义是指两个或两个以上,例如,多个节点是指两个或两个以上的节点。本文中术语“系统”和“网络” 经常可互换使用。在本文中提及的“和/或”,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。The meaning of the term "at least one" in this application refers to one or more, and the meaning of the term "plurality" in this application refers to two or more, for example, a plurality of nodes refers to two or more node. The terms "system" and "network" are often used interchangeably herein. The "and/or" mentioned in this text means that there can be three kinds of relationships, for example, A and/or B, can mean that A exists alone, A and B exist at the same time, and B exists alone. The character "/" generally indicates that the associated objects are an "or" relationship.
以上所述,仅为本申请的可选实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above are only optional embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of various equivalents within the technical scope disclosed in the present application. Modifications or substitutions of the present application shall be included within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (25)

  1. 一种转发路径的故障感知方法,其特征在于,应用于第一网络设备;所述方法包括:A fault sensing method for a forwarding path, characterized in that it is applied to a first network device; the method includes:
    通过第一转发路径发送第一业务报文,所述第一业务报文包括第一标识,所述第一标识用于确定所述第一转发路径;Send a first service packet through a first forwarding path, where the first service packet includes a first identifier, and the first identifier is used to determine the first forwarding path;
    接收所述第一转发路径中的第二网络设备发送的故障通知报文,所述故障通知报文包括所述第一标识,所述故障通知报文用于指示所述第一转发路径故障。A failure notification message sent by a second network device in the first forwarding path is received, where the failure notification message includes the first identifier, and the failure notification message is used to indicate a failure of the first forwarding path.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    基于所述故障通知报文,通过所述第一转发路径的备用路径发送第二业务报文,所述第二业务报文和所述第一业务报文属于同一业务流。Based on the failure notification message, a second service message is sent through the backup path of the first forwarding path, where the second service message and the first service message belong to the same service flow.
  3. 根据权利要求2所述的方法,其特征在于,所述第一转发路径所属的段路由SR策略包括多条候选路径,所述第一转发路径属于所述多条候选路径;所述通过所述第一转发路径的备用路径发送第二业务报文,包括:The method according to claim 2, wherein the segment routing SR policy to which the first forwarding path belongs includes multiple candidate paths, and the first forwarding path belongs to the multiple candidate paths; The backup path of the first forwarding path sends the second service packet, including:
    基于所述故障通知报文,从所述多条候选路径中确定第二转发路径作为所述备用路径;determining a second forwarding path from the multiple candidate paths as the backup path based on the failure notification message;
    通过所述第二转发路径发送封装有第二标识的第二业务报文,所述第二标识用于确定所述第二转发路径。A second service packet encapsulated with a second identifier is sent through the second forwarding path, where the second identifier is used to determine the second forwarding path.
  4. 根据权利要求2所述的方法,其特征在于,所述通过所述第一转发路径的备用路径发送第二业务报文,包括:The method according to claim 2, wherein the sending the second service packet through the backup path of the first forwarding path comprises:
    基于所述故障通知报文,采用虚拟专用网VPN快速重路由FRR技术确定第二转发路径作为所述备用路径;Based on the failure notification message, adopt the virtual private network VPN fast rerouting FRR technology to determine the second forwarding path as the backup path;
    通过所述第二转发路径发送封装有第二标识的第二业务报文,所述第二标识用于确定所述第二转发路径。A second service packet encapsulated with a second identifier is sent through the second forwarding path, where the second identifier is used to determine the second forwarding path.
  5. 根据权利要求2所述的方法,其特征在于,所述通过所述第一转发路径的备用路径发送第二业务报文,包括:The method according to claim 2, wherein the sending the second service packet through the backup path of the first forwarding path comprises:
    基于所述故障通知报文,向控制器发送故障信息,所述故障信息用于指示所述第一转发路径故障;based on the fault notification message, sending fault information to the controller, where the fault information is used to indicate that the first forwarding path is faulty;
    将所述控制器下发的第二转发路径作为所述备用路径;using the second forwarding path delivered by the controller as the backup path;
    通过所述第二转发路径发送封装有第二标识的第二业务报文,所述第二标识用于确定所述第二转发路径。A second service packet encapsulated with a second identifier is sent through the second forwarding path, where the second identifier is used to determine the second forwarding path.
  6. 根据权利要求1至5任一所述的方法,其特征在于,所述第一标识为所述第一转发路径所属的SR策略的绑定段标识;The method according to any one of claims 1 to 5, wherein the first identifier is a binding segment identifier of an SR policy to which the first forwarding path belongs;
    或者,所述第一标识为所述第一转发路径的路径标识。Alternatively, the first identifier is a path identifier of the first forwarding path.
  7. 根据权利要求1至6任一所述的方法,其特征在于,所述第一业务报文包括路由扩展头SRH,所述SRH中携带有所述第一标识。The method according to any one of claims 1 to 6, wherein the first service packet includes a routing extension header SRH, and the SRH carries the first identifier.
  8. 根据权利要求7所述的方法,其特征在于,所述SRH还包括段列表和标记字段,所述段列表包括多个段标识;The method according to claim 7, wherein the SRH further comprises a segment list and a marker field, and the segment list includes a plurality of segment identifiers;
    所述段列表中的一个段标识携带有所述第一标识,且所述标记字段用于指示所述段列表中包括所述第一标识。A segment identifier in the segment list carries the first identifier, and the flag field is used to indicate that the segment list includes the first identifier.
  9. 根据权利要求8所述的方法,其特征在于,所述段列表中的最后一个段标识携带有所述第一标识。The method according to claim 8, wherein the last segment identifier in the segment list carries the first identifier.
  10. 根据权利要求1至9任一所述的方法,其特征在于,所述故障通知报文中包括SRH,所述SRH携带有所述第一标识;The method according to any one of claims 1 to 9, wherein the fault notification message includes an SRH, and the SRH carries the first identifier;
    或者,所述故障通知报文的数据字段携带有所述第一标识。Or, the data field of the fault notification message carries the first identifier.
  11. 根据权利要求1至10任一所述的方法,其特征在于,所述故障通知报文为互联网控制信息协议ICMP报文。The method according to any one of claims 1 to 10, wherein the failure notification message is an Internet Control Information Protocol (ICMP) message.
  12. 一种转发路径的故障感知方法,其特征在于,应用于第二网络设备;所述方法包括:A fault sensing method for a forwarding path, characterized in that it is applied to a second network device; the method includes:
    接收第一网络设备通过第一转发路径发送的第一业务报文,所述第一业务报文包括第一标识,所述第一标识用于确定所述第一转发路径;receiving a first service packet sent by a first network device through a first forwarding path, where the first service packet includes a first identifier, where the first identifier is used to determine the first forwarding path;
    若确定所述第一转发路径故障,则向所述第一网络设备发送故障通知报文,所述故障通知报文包括所述第一标识,所述故障通知报文用于指示所述第一转发路径故障。If it is determined that the first forwarding path is faulty, send a fault notification packet to the first network device, where the fault notification packet includes the first identifier, and the fault notification packet is used to indicate the first Forwarding path failure.
  13. 根据权利要求12所述的方法,其特征在于,所述故障通知报文中包括路由扩展头SRH,所述SRH携带有所述第一标识;The method according to claim 12, wherein the fault notification message includes a routing extension header SRH, and the SRH carries the first identifier;
    或者,所述故障通知报文的数据字段携带有所述第一标识。Or, the data field of the fault notification message carries the first identifier.
  14. 根据权利要求12或13所述的方法,其特征在于,所述故障通知报文为互联网控制信息协议ICMP报文。The method according to claim 12 or 13, wherein the failure notification message is an Internet Control Information Protocol (ICMP) message.
  15. 根据权利要求12至14任一所述的方法,其特征在于,所述第一标识为所述第一转发路径所属的段路由SR策略的绑定段标识;The method according to any one of claims 12 to 14, wherein the first identifier is a binding segment identifier of a segment routing SR policy to which the first forwarding path belongs;
    或者,所述第一标识为所述第一转发路径的路径标识。Alternatively, the first identifier is a path identifier of the first forwarding path.
  16. 根据权利要求12至15任一所述的方法,其特征在于,所述第一业务报文包括SRH,所述SRH中携带有所述第一标识。The method according to any one of claims 12 to 15, wherein the first service packet includes an SRH, and the SRH carries the first identifier.
  17. 根据权利要求16所述的方法,其特征在于,所述SRH还包括段列表和标记字段,所述段列表包括多个段标识;The method of claim 16, wherein the SRH further comprises a segment list and a marker field, and the segment list includes a plurality of segment identifiers;
    所述段列表中的一个段标识携带有所述第一标识,且所述标记字段用于指示所述段列表中包括所述第一标识。A segment identifier in the segment list carries the first identifier, and the flag field is used to indicate that the segment list includes the first identifier.
  18. 一种第一网络设备,其特征在于,所述第一网络设备包括:A first network device, characterized in that the first network device includes:
    发送模块,用于通过第一转发路径发送第一业务报文,所述第一业务报文包括第一标识,所述第一标识用于确定所述第一转发路径;a sending module, configured to send a first service packet through a first forwarding path, where the first service packet includes a first identifier, and the first identifier is used to determine the first forwarding path;
    接收模块,用于接收所述第一转发路径中的第二网络设备发送的故障通知报文,所述故障通知报文包括所述第一标识,所述故障通知报文用于指示所述第一转发路径故障。a receiving module, configured to receive a failure notification message sent by a second network device in the first forwarding path, where the failure notification message includes the first identifier, and the failure notification message is used to indicate the first A forwarding path failure.
  19. 根据权利要求18所述的第一网络设备,其特征在于,所述发送模块,还用于:The first network device according to claim 18, wherein the sending module is further configured to:
    基于所述故障通知报文,通过所述第一转发路径的备用路径发送第二业务报文,所述第二业务报文和所述第一业务报文属于同一业务流。Based on the failure notification message, a second service message is sent through the backup path of the first forwarding path, where the second service message and the first service message belong to the same service flow.
  20. 根据权利要求19所述的第一网络设备,其特征在于,所述第一转发路径所属的段路由SR策略包括多条候选路径,所述第一转发路径属于所述多条候选路径;所述第一网络设备,还包括:The first network device according to claim 19, wherein the segment routing SR policy to which the first forwarding path belongs includes multiple candidate paths, and the first forwarding path belongs to the multiple candidate paths; the The first network device also includes:
    确定模块,用于基于所述故障通知报文,从所述多条候选路径中确定第二转发路径作为所述备用路径;a determining module, configured to determine a second forwarding path from the multiple candidate paths as the backup path based on the failure notification message;
    所述发送模块,用于通过所述第二转发路径发送封装有第二标识的第二业务报文,所述第二标识用于确定所述第二转发路径。The sending module is configured to send a second service message encapsulated with a second identifier through the second forwarding path, where the second identifier is used to determine the second forwarding path.
  21. 根据权利要求19所述的第一网络设备,其特征在于,所述第一网络设备,还包括:The first network device according to claim 19, wherein the first network device further comprises:
    确定模块,用于基于所述故障通知报文,采用虚拟专用网VPN快速重路由FRR技术确定第二转发路径作为所述备用路径;a determining module, configured to determine a second forwarding path as the backup path based on the failure notification message by adopting the virtual private network VPN fast rerouting FRR technology;
    所述发送模块,用于通过所述第二转发路径发送封装有第二标识的第二业务报文,所述第二标识用于确定所述第二转发路径,所述第二标识用于确定所述第二转发路径。The sending module is configured to send a second service message encapsulated with a second identifier through the second forwarding path, where the second identifier is used to determine the second forwarding path, and the second identifier is used to determine the second forwarding path.
  22. 根据权利要求19所述的第一网络设备,其特征在于,The first network device according to claim 19, wherein,
    所述发送模块,还用于基于所述故障通知报文,向控制器发送故障信息,所述故障信息用于指示所述第一转发路径故障;The sending module is further configured to send fault information to the controller based on the fault notification message, where the fault information is used to indicate that the first forwarding path is faulty;
    所述第一网络设备还包括:确定模块,用于将所述控制器下发的第二转发路径作为所述备用路径;The first network device further includes: a determining module configured to use the second forwarding path delivered by the controller as the backup path;
    所述发送模块,用于通过所述第二转发路径发送封装有第二标识的第二业务报文,所述第二标识用于确定所述第二转发路径。The sending module is configured to send a second service message encapsulated with a second identifier through the second forwarding path, where the second identifier is used to determine the second forwarding path.
  23. 一种第二网络设备,其特征在于,所述第二网络设备包括:A second network device, characterized in that the second network device comprises:
    接收模块,用于接收第一网络设备通过第一转发路径发送的第一业务报文,所述第一业务报文包括第一标识,所述第一标识用于确定所述第一转发路径;a receiving module, configured to receive a first service packet sent by a first network device through a first forwarding path, where the first service packet includes a first identifier, and the first identifier is used to determine the first forwarding path;
    发送模块,用于若确定所述第一转发路径故障,则向所述第一网络设备发送故障通知报文,所述故障通知报文包括所述第一标识,所述故障通知报文用于指示所述第一转发路径故障。A sending module, configured to send a failure notification message to the first network device if it is determined that the first forwarding path is faulty, where the failure notification message includes the first identifier, and the failure notification message is used for Indicates that the first forwarding path is faulty.
  24. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,所述指令由处理器执行以实现如权利要求1至17任一所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium stores instructions, and the instructions are executed by a processor to implement the method according to any one of claims 1 to 17 .
  25. 一种报文转发系统,其特征在于,所述报文转发系统包括:如权利要求18至22任一所述的第一网络设备,以及如权利要求23所述的第二网络设备。A message forwarding system, characterized in that, the message forwarding system comprises: the first network device as claimed in any one of claims 18 to 22, and the second network device as claimed in claim 23.
PCT/CN2022/087422 2021-04-19 2022-04-18 Failure sensing method, apparatus and system for forwarding path WO2022222884A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110418201.3 2021-04-19
CN202110418201.3A CN115225452A (en) 2021-04-19 2021-04-19 Fault sensing method, device and system for forwarding path

Publications (1)

Publication Number Publication Date
WO2022222884A1 true WO2022222884A1 (en) 2022-10-27

Family

ID=83605577

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/087422 WO2022222884A1 (en) 2021-04-19 2022-04-18 Failure sensing method, apparatus and system for forwarding path

Country Status (2)

Country Link
CN (1) CN115225452A (en)
WO (1) WO2022222884A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040071080A1 (en) * 2002-09-30 2004-04-15 Fujitsu Limited Label switching router and path switchover control method thereof
US6725401B1 (en) * 2000-10-26 2004-04-20 Nortel Networks Limited Optimized fault notification in an overlay mesh network via network knowledge correlation
CN105282028A (en) * 2014-06-05 2016-01-27 中兴通讯股份有限公司 Message transmission method, nodes and path management servers
CN109873760A (en) * 2017-12-01 2019-06-11 华为技术有限公司 Handle the method and apparatus of routing and the method and apparatus of data transmission
CN112152924A (en) * 2019-06-29 2020-12-29 华为技术有限公司 Method and related device for forwarding message in data center network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6725401B1 (en) * 2000-10-26 2004-04-20 Nortel Networks Limited Optimized fault notification in an overlay mesh network via network knowledge correlation
US20040071080A1 (en) * 2002-09-30 2004-04-15 Fujitsu Limited Label switching router and path switchover control method thereof
CN105282028A (en) * 2014-06-05 2016-01-27 中兴通讯股份有限公司 Message transmission method, nodes and path management servers
CN109873760A (en) * 2017-12-01 2019-06-11 华为技术有限公司 Handle the method and apparatus of routing and the method and apparatus of data transmission
CN112152924A (en) * 2019-06-29 2020-12-29 华为技术有限公司 Method and related device for forwarding message in data center network

Also Published As

Publication number Publication date
CN115225452A (en) 2022-10-21

Similar Documents

Publication Publication Date Title
US11533249B2 (en) Route processing method and apparatus, and data transmission method and apparatus
CN111385206B (en) Message forwarding method, network system, related equipment and computer storage medium
JP7479490B2 (en) Packet processing method and apparatus, network device, and storage medium
KR102450096B1 (en) Method and node for transmitting packet in network
CN107547366B (en) Message forwarding method and device
RU2530338C2 (en) Prepared connection based on state of communication lines of providers (plsb) with routed redundancy
US20220078114A1 (en) Method and Apparatus for Providing Service for Traffic Flow
US11811595B2 (en) Signaling IP path tunnels for traffic engineering
WO2020186803A1 (en) Fault protection method, node, and storage medium
WO2021148021A1 (en) Packet processing method, apparatus and system
CN108574639A (en) EVPN message processing methods, equipment and system
US11349749B2 (en) Node protection for bum traffic for multi-homed node failure
US20160099873A1 (en) Technique of Operating a Network Node for Load Balancing
US20200127885A1 (en) Node protection for bum traffic for multi-homed node failure
US20220124023A1 (en) Path Switching Method, Device, and System
US20230308386A1 (en) Packet Transmission Method and Apparatus
WO2022057810A1 (en) Service packet forwarding method, sr policy sending method, device, and system
WO2022222884A1 (en) Failure sensing method, apparatus and system for forwarding path
WO2022017225A1 (en) Message sending method, device and system
WO2018040614A1 (en) Method, related device, and system for establishing label-switched path for virtual private network
CN111885630B (en) Data transmission method and communication device
CN115883452A (en) Communication method and communication device
WO2024067084A1 (en) Path fault detection method and related apparatus
US20230370366A1 (en) Packet Transmission Method, Transmission Control Method, Apparatus, and System
CN117768340A (en) Fault detection method, device and system

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

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

Country of ref document: EP

Kind code of ref document: A1