WO2012079405A2 - Link trace processing method and system - Google Patents

Link trace processing method and system Download PDF

Info

Publication number
WO2012079405A2
WO2012079405A2 PCT/CN2011/080315 CN2011080315W WO2012079405A2 WO 2012079405 A2 WO2012079405 A2 WO 2012079405A2 CN 2011080315 W CN2011080315 W CN 2011080315W WO 2012079405 A2 WO2012079405 A2 WO 2012079405A2
Authority
WO
WIPO (PCT)
Prior art keywords
ccm
link
port
record field
path record
Prior art date
Application number
PCT/CN2011/080315
Other languages
French (fr)
Chinese (zh)
Other versions
WO2012079405A3 (en
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 WO2012079405A2 publication Critical patent/WO2012079405A2/en
Publication of WO2012079405A3 publication Critical patent/WO2012079405A3/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • 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/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Definitions

  • the present invention relates to the field of communications, and in particular, to a link tracking processing method and system.
  • the 802.1ag standard provides logical point-to-point connectivity detection for Connectivity Fault Management (CFM), ie, Connectivity Check (CC), Link Tracking, and Faults. Point confirmation and isolation.
  • CCM Connectivity Fault Management
  • CC Connectivity Check
  • Link Tracking Link Tracking
  • Faults Point confirmation and isolation.
  • the CC provides logical point-to-point connectivity detection, and the connectivity check is implemented by periodically sending a Connectivity Check Message (CCM).
  • CCM is a protocol frame that provides connectivity detection management.
  • Each Maintenance Sets End Point Identifier (MEP) periodically sends multicast CCM packets to all MEPs in the list according to the remote MEP table, and tells the other party that the peer MEP is in the maintenance set (maintenance associations). , referred to as connectivity within MA).
  • Link Trace is the main means for checking the fault point of the network, including two types of packets: Link Trace Message (LTM) and link tracking. Response (Link Trace Response, referred to as LTR).
  • LTM Link Trace Message
  • LTR Link Trace Response
  • the LT is used to detect the path between the MEPs. It is similar to the Route Trace command in the operating system.
  • the SP calculates the LTR message by sending a multicast LTM message to the specified device and listening to the device along the path. Path information to the specified MEP device.
  • the implementation of the LT function may be: Each maintenance point (MP) of the LTM message will respond to the received LTM message, generate an LTR message, and send it back to the source MP; The MP parses the received message response and obtains a link path.
  • MP maintenance point
  • FIG. 1 is a schematic diagram of a CCM message format definition according to the related art
  • FIG. 2 is a schematic diagram of a LTM message format definition according to the related art, as shown in FIG. 1 and FIG. 2, wherein TIN represents a message format definition method. , divided into 3 parts, type (Type), length (Length), value (Value).
  • Type type
  • Length length
  • Value Value
  • the specific definition can be found in the IEEE802.1ag standard, which is not described here. It can be seen that the CC provides logical point-to-point connectivity detection, and periodically sends detection messages periodically, but this method can only detect the link with fault, but cannot determine the location; and LT is to detect between MEPs. The path can detect the point of failure of the network.
  • a primary object of the present invention is to provide a link tracking processing scheme to solve the problem in the above related art that the fault location cannot be determined using continuity detection.
  • a link tracking processing method is provided.
  • the tracking processing method of the link includes the following steps: the receiving port receives the CCM, wherein the CCM carries a link path record field for indicating a CCM way port; the receiving port updates the link path record field, and The updated link path record field is carried to the CCM and sent to the next port.
  • the method further includes: the receiving port determines the current link state of the CCM according to the link path record field, and according to the current chain of the CCM The road status is prompted.
  • the receiving port determines the current link state of the CCM according to the link path record field, and prompting according to the current link state of the CCM includes: recording the MAC address of the CCM passing port and the MAC address of the receiving port according to the link path record field Determining whether the link of the CCM is looped, and generating a corresponding alarm prompt when the link of the CCM is looped; and/or, the link path record field in the CCM received by the interface port this time is the last time The received link path record field in the CCM is compared to determine whether the link of the CCM is changed, and in the case where the link of the CCM is changed, a corresponding link change prompt is generated.
  • the method before the receiving port receives the CCM, the method further includes: the starting port adding a link path record field in the CCM, and setting the number of MPs passing through the CCM in the link path record field to 1, and starting The MAC address of the originating port is filled in the link path record field as the MAC address of the CCM path port.
  • updating the content of the link path record field further comprises: setting a link state identifier in the link path record field to 1 in case of a link change of the CCM; if the link of the CCM is unchanged Set the link state identifier in the link path record field to 0.
  • the content of the receiving port update link path record field includes at least one of the following: modifying the number of MPs that the CCM passes, modifying the link state identifier of the CCM, and adding the MAC address of the CCM transit port.
  • a link tracking processing system is also provided.
  • a tracking processing system for a link includes a start port, one or more intermediate ports, and a destination port, wherein the intermediate port includes: a receiving module configured to receive a CCM, wherein the CCM is carried for indicating The CCM passes the link path record field of the port; the update module is set to update the content of the link path record field; and the sending module is configured to carry the updated link path record field to the CCM and send it to the next intermediate port or Terminate the destination port.
  • the intermediate port further includes: a prompting module, configured to determine a current link state of the CCM according to the link path record field, and prompting according to the current link state of the CCM.
  • the prompting module is further configured to determine whether the link of the CCM is looped according to the MAC address of the CCM transiting port and the MAC address of the receiving port in the link path record field, and generate a corresponding link when the CCM link is looped. And/or, comparing the link path record field in the CCM received by the interface port with the link path record field in the CCM received last time, determining whether the link of the CCM is changed, and In the case of a link change of the CCM, a corresponding link change prompt is generated.
  • the start port includes: an adding module, configured to add a link path record field in the CCM; and a setting module, configured to set the number of MPs passing through the CCM in the link path record field to 1, and The MAC address of the originating port is filled in the link path record field as the MAC address of the CCM path port.
  • an adding module configured to add a link path record field in the CCM
  • a setting module configured to set the number of MPs passing through the CCM in the link path record field to 1
  • the MAC address of the originating port is filled in the link path record field as the MAC address of the CCM path port.
  • FIG. 1 is a schematic diagram of a CCM message format definition according to the related art
  • FIG. 2 is a schematic diagram of an LTM message format definition according to the related art
  • FIG. 1 is a schematic diagram of a CCM message format definition according to the related art
  • FIG. 2 is a schematic diagram of an LTM message format definition according to the related art
  • FIG. 1 is a schematic diagram of a CCM message format definition according to the related art
  • FIG. 2 is a schematic diagram of an LTM message format definition according to the related art
  • FIG. 2 is a schematic diagram of an LTM message format definition according to the related art
  • FIG. 3 is a link tracking processing method according to an embodiment of the present invention
  • Figure 4 is a block diagram showing the structure of a tracking processing system for a link according to an embodiment of the present invention
  • Figure 5 is a block diagram showing the structure of a tracking processing system for a link according to a preferred embodiment of the present invention
  • 6 is a schematic diagram of a new field link path record field definition according to an embodiment of the present invention
  • FIG. 7 is a schematic diagram of a CCM implementing link tracking detection under a networking condition according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of a method for tracking a link according to an embodiment of the present invention. As shown in FIG. 3, the method includes the following steps: Step S302: A receiving port receives a continuity check message (CCM), where, in a CCM Carrying a link path record field for indicating a CCM path through port; Step S304, receiving the content of the port update link path record field, and carrying the updated link path record field to the CCM for transmission to the next port.
  • CCM continuity check message
  • the method of carrying the link path record field for indicating the CCM path port in the CCM is adopted, and the problem that the fault location cannot be determined by using the continuity detection in the related art is solved, so that the system can use the CCM to track the link.
  • the state improves the processing power of the system.
  • the receiving port may determine the current link state of the CCM according to the link path record field, and according to the current CCM status. The link status is prompted.
  • the method can effectively track the CCM in real time and notify the user of the status, which enhances the performance of the system and improves the user experience.
  • the receiving port determines the current link state of the CCM according to the link path record field, and prompting according to the current link state of the CCM includes: recording the MAC address of the CCM passing port and the MAC address of the receiving port according to the link path record field Determining whether the link of the CCM is looped, and generating a corresponding alarm prompt when the link of the CCM is looped; and/or, the link path record field in the CCM received by the interface port this time is the last time The received link path record field in the CCM is compared to determine whether the link of the CCM is changed, and in the case where the link of the CCM is changed, a corresponding link change prompt is generated.
  • the method can make the user clearly know the routing status of the service, discover the link problem in time, and improve the effectiveness and accuracy of the system.
  • the originating port may add a link path record field in the CCM, and set the number of MPs passing through the CCM in the link path record field to 1, and the MAC address of the start port. The address is filled in the link path record field as the MAC address of the CCM path port.
  • the method is simple and practical, and has high operability.
  • updating the content of the link path record field further includes: setting a link state identifier in the link path record field to 1 in the case of a link change of the CCM; In the case of no change, the link state identifier in the link path record field is set to zero.
  • the method can detect the routing state of the CCM link, notify the user of the link change, and improve the system processing capability.
  • the content of the receiving port update link path record field includes at least one of: modifying the number of MPs through which the CCM passes, modifying the link state identifier of the CCM, and adding the MAC address of the CCM way port. The method is simple and practical, and has high operability.
  • an embodiment of the present invention further provides a link tracking processing system.
  • 4 is a structural block diagram of a link tracking processing system according to an embodiment of the present invention.
  • the system 40 includes a start port 42, one or more intermediate ports 44, and a destination port 46, where
  • the intermediate port 44 includes: a receiving module 442, configured to receive a continuity detection message CCM, where the CCM carries a link path record field for indicating a CCM path port; an update module 444, coupled to the receiving module 442, configured to update The content of the link path record field; and the sending module, configured to carry the updated link path record field to the CCM for transmission to the next intermediate port or destination port.
  • the method of carrying the link path record field for indicating the CCM path port in the CCM is adopted, and the problem that the fault location cannot be determined by using the continuity detection in the related art is solved, so that the system can use the CCM to track the link.
  • the state of the system improves the processing power of the system. It should be noted that the start port 42, the intermediate port 44, and the destination port 46 referred to herein are for a certain
  • the CC message is initiated from the start port 42 and ends through one or more intermediate ports 44 to the destination port 46.
  • the originating port 42 may also be the destination port 46, and each port in the ring link may be the initiator of a certain CC message ( ⁇ , start port 42).
  • . 5 is a structural block diagram of a link tracking processing system according to a preferred embodiment of the present invention.
  • the intermediate port 44 further includes: a prompting module 446 coupled to the updating module 444, configured to record a field according to the link path. Determine the current link state of the CCM and prompt according to the current link state of the CCM.
  • the prompting module 446 is further configured to determine whether the link of the CCM is looped according to the MAC address of the CCM transiting port and the MAC address of the receiving port in the link path record field, and generate the link when the CCM link is looped. Corresponding alarm prompts; and/or, the link path in the CCM received by the interface port this time The recorded field is compared with the link path record field in the last received CCM to determine whether the link of the CCM is changed, and in the case where the link of the CCM is changed, a corresponding link change prompt is generated.
  • the start port 42 includes: an add module 422 configured to add a link path record field in the CCM; and a setting module 424 coupled to the add module 422 and the receive module 442, configured to be in the link path record field
  • the number of MPs passed by the CCM is set to 1, and the MAC address of the originating port is filled in the link path record field as the MAC address of the CCM path port.
  • FIG. 6 is a schematic diagram of a new field link path record field definition according to an embodiment of the present invention.
  • a TIN field may be added to a CCM message, which is called a link path record field (Link Trace Record TIN). ), record the MAC address of the passed MP.
  • Link Trace Record TIN a link path record field
  • each MP of the CCM message path adds the MAC address of the port to the TIN field and saves it directly, so that the packets received by the MP through the path know all the paths that the CCM message has passed before.
  • the tracking processing method of the link in this embodiment may include the following steps: Step 1: The starting port (port 1) sends a CCM packet, where the link path record field in the packet includes the MAC address of port 1. MAC1, and the number of MPs passed by 1. Step 2: The CCM message is sent to the port 2 with the service, and the port 2 receives the parsed CCM message, saves the useful information, and modifies the link path record field in the CCM message, and adds the MAC address MAC2 of the port 2 at the end of the field. The number of MPs is incremented by 1, and then forwarded to the next port 3 with the service. The node in the network (that is, the intermediate port) repeats step 2 and sends it to the destination port.
  • Step 1 The starting port (port 1) sends a CCM packet, where the link path record field in the packet includes the MAC address of port 1. MAC1, and the number of MPs passed by 1.
  • Step 2 The CCM message is sent to the port 2 with the service, and the port 2 receive
  • the destination port resolves the CCM packet. From the link path record field in the CCM packet, the MAC address of all ports through which the service passes can be obtained. address. This will let you know all the port paths that this service has passed. It can be seen that the CC connectivity check is to periodically send a packet to detect the connected line.
  • the LT is the result of reporting the link path after the instance is enabled. According to the solution of the embodiment, the link can be performed in real time without manual operation. Tracking, quickly locate the faulty port, and obtain the network change according to the link tracking result. That is, if the link is protected, the protocol that needs to know the network path, such as STP, can directly obtain the link path that has been obtained.
  • FIG. 7 is a schematic diagram of implementing link tracking detection by a CCM under network conditions according to an embodiment of the present invention.
  • the MAC address of each port is indicated in the figure, in this embodiment.
  • the service is forwarded through port 2 and port 3 and sent to the destination port through the network.
  • MP Num indicates the number of MPs passing through, and the first one can be filled with 1;
  • Link Status indicates whether the link changes, 0 indicates no change, and 1 indicates change.
  • Step S706 the CCM message is received on the port 3, and the judgment is performed according to the CC protocol processing rule, and the storage operation is performed.
  • MP Num is incremented by 1, and the MAC address of port 3 is added to the end of the link path record field 00-00-00-00-00-00-03.
  • the CCM packet is discarded after being processed, and is not forwarded.
  • the CCM passes through those MAC addresses, thereby knowing the connection status of the MAC network.
  • the MAC address in the link path record field may be checked. If it is the same, indicating that the link is looped, a broadcast storm may be caused, and a corresponding prompt is made. It is also possible to check when there is a change in the MAC address record. If there is a change, the path through which the data passes is not the same. Set Link Status to 1.
  • the embodiment of the present invention can be operated, managed, and maintained based on the IEEE 802.1ag standard Ethernet. It is a method for implementing link tracking monitoring in CFM, and the function of link tracking is integrated into the CC, which can be real-time. Tracking the link to solve the problem of using the continuity detection in the related art to determine the fault location, and improving the processing capability of the system.
  • the various modules or steps of the present invention described above may be implemented on a general purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices, optionally, they may be calculated
  • the program code executable by the apparatus is implemented such that they may be stored in the storage device by the computing device, and in some cases, the steps shown or described may be performed in an order different than that herein, or They are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated into a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Abstract

Disclosed are a link trace processing method and system. The method comprises the following steps: a receiving port receiving a continuity check message (CCM), the CCM carrying a link path record field for indicating ports through which the CCM passes; the receiving port updating the content of the link path record field, and sending to a next port the CCM carrying the updated link path record field. Through the present invention, the system may use the CCM to trace the state of the link, thereby improving the processing capacity of the system.

Description

链路的跟踪处理方法及系统 技术领域 本发明涉及通信领域, 尤其涉及一种链路的跟踪处理方法及系统。 背景技术 电气和电子工程师学会 (Institute for Electrical and Electronic Engineers, 简称为 TECHNICAL FIELD The present invention relates to the field of communications, and in particular, to a link tracking processing method and system. BACKGROUND OF THE INVENTION Institute for Electrical and Electronic Engineers (abbreviated as
IEEE) 802.1ag标准为以太网连通故障管理 (Connectivity Fault Management, 简称为 CFM) 提供了逻辑上的点对点的连通性检测, 即, 连续性检测 (Connectivity Check, 简称为 CC)、 链路跟踪、 故障点确认和隔离等功能。 其中, CC提供了逻辑上的点对 点的连通性检测,其连通性检查是通过周期性发送连通性检测报文( Connectivity Check Message, 简称为 CCM)来实现。 CCM是一种协议帧, 提供连通性检测管理。 每个维 护集端点 (maintenance Associations End Point Identifier, 简称为 MEP) 依据远端 MEP 表,周期性地发送组播 CCM报文至列表中所有 MEP,告诉对方自己与对端 MEP在维 护集 (maintenance Associations, 简称为 MA) 内的连通性。 在相关技术中, 链路跟踪检测 (Link Trace, 简称为 LT) 是检查网络的故障点的 主要手段, 包括两种报文: 链路跟踪消息 (Link Trace Message, 简称为 LTM)和链路 跟踪应答 (Link Trace Response, 简称为 LTR)。 LT用来检测 MEP之间的路径, 类似 于操作系统中查找路由路径(Route Trace)命令, SP, 通过发送组播 LTM报文到指定 的设备, 并监听沿途设备的响应 LTR报文, 来计算到指定 MEP设备的路径信息。 例 如, LT功能的实现可以是: LTM报文途经的每个维护点 (maintenance point, 简称为 MP) 都将响应接收到的 LTM报文, 产生一个 LTR报文, 回送至源 MP; 然后源端 MP将接收的报文应答进行解析, 得到了一条链路路径。 图 1是根据相关技术的 CCM报文格式定义的示意图,图 2是根据相关技术的 LTM 报文格式定义的示意图, 如图 1和图 2所示, 其中, TIN表示一种报文格式定义方法, 分为 3部分,类型(Type),长度(Length),值( Value)。具体的定义可以在 IEEE802.1ag 标准中查找, 这里不做介绍。 可见, CC提供了逻辑上的点对点的连通性检测, 且是周期性主动发送检测报文, 但这种方法只能检测出链路有故障, 但无法确定的位置; 而 LT是检测 MEP之间的路 径, 可以检测网络的故障点, 但是, 该方法是被动检测的, 即, 需要用户手动发起。 针对上述相关技术中使用 CC检测无法确定故障位置以及使用 LT需要手动发起问 题, 目前并没有提出有效的解决方案。 发明内容 本发明的主要目的在于提供一种链路的跟踪处理方案, 以解决上述相关技术中使 用连续性检测无法确定故障位置的问题。 为了实现上述目的, 根据本发明的一个方面, 提供了一种链路的跟踪处理方法。 根据本发明的链路的跟踪处理方法, 包括以下步骤: 接收端口接收 CCM, 其中, CCM中携带用于指示 CCM途经端口的链路路径记录字段; 接收端口更新链路路径记 录字段的内容, 并将更新后的链路路径记录字段携带到 CCM中发送给下一个端口。 优选地, 将更新后的链路路径记录字段携带到 CCM中发送给下一个端口之前, 该方法还包括: 接收端口根据链路路径记录字段确定 CCM的当前链路状态, 并根据 CCM的当前链路状态进行提示。 优选地,接收端口根据链路路径记录字段确定 CCM的当前链路状态,并根据 CCM 的当前链路状态进行提示包括:根据链路路径记录字段中 CCM途经端口的 MAC地址 和接收端口的 MAC地址确定 CCM的链路是否成环,并在 CCM的链路成环的情况下, 产生相应的告警提示; 和 /或, 将接口端口本次接收到的 CCM中的链路路径记录字段 与上一次接收到的 CCM中的链路路径记录字段进行比较,确定 CCM的链路是否改变, 并在 CCM的链路改变的情况下, 产生相应的链路改变提示。 优选地, 接收端口接收 CCM之前, 该方法还包括: 起始端口在 CCM中添加链路 路径记录字段, 并将链路路径记录字段中的 CCM途经的 MP的个数置为 1, 以及将起 始端口的 MAC地址作为 CCM途经端口的 MAC地址填写到链路路径记录字段中。 优选地, 更新链路路径记录字段的内容还包括: 在 CCM的链路改变的情况下, 将链路路径记录字段中的链路状态标识置为 1 ; 在 CCM的链路没有改变的情况下,将 链路路径记录字段中的链路状态标识置为 0。 优选地, 接收端口更新链路路径记录字段的内容包括至少以下之一: 修改 CCM 途经的 MP的个数、 修改 CCM的链路状态标识、 追加 CCM途经端口的 MAC地址。 为了实现上述目的,根据本发明的另一方面,还提供了一种链路的跟踪处理系统。 根据本发明的链路的跟踪处理系统, 包括一个起始端口、 一个或多个中间端口和 一个目的端口, 其中, 中间端口包括: 接收模块, 设置为接收 CCM, 其中, CCM中 携带用于指示 CCM途经端口的链路路径记录字段; 更新模块, 设置为更新链路路径 记录字段的内容; 以及发送模块, 设置为将更新后的链路路径记录字段携带到 CCM 中发送给下一个中间端口或终止目的端口。 优选地, 中间端口还包括: 提示模块, 设置为根据链路路径记录字段确定 CCM 的当前链路状态, 并根据 CCM的当前链路状态进行提示。 优选地,提示模块还设置为根据链路路径记录字段中 CCM途经端口的 MAC地址 和接收端口的 MAC地址确定 CCM的链路是否成环,并在 CCM的链路成环的情况下, 产生相应的告警提示; 和 /或, 将接口端口本次接收到的 CCM中的链路路径记录字段 与上一次接收到的 CCM中的链路路径记录字段进行比较,确定 CCM的链路是否改变, 并在 CCM的链路改变的情况下, 产生相应的链路改变提示。 优选地, 起始端口包括: 添加模块, 设置为在 CCM中添加链路路径记录字段; 以及设置模块, 设置为将链路路径记录字段中的 CCM途经的 MP的个数置为 1, 以及 将起始端口的 MAC地址作为 CCM途经端口的 MAC地址填写到链路路径记录字段中。 通过本发明,采用在 CCM中携带用于指示 CCM途经端口的链路路径记录字段的 方式, 解决了相关技术中使用连续性检测无法确定故障位置的问题, 使得系统可以利 用 CCM来跟踪链路的状态, 提高了系统的处理能力。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中: 图 1是根据相关技术的 CCM报文格式定义的示意图; 图 2是根据相关技术的 LTM报文格式定义的示意图; 图 3是根据本发明实施例的链路的跟踪处理方法的流程图; 图 4是根据本发明实施例的链路的跟踪处理系统的结构框图; 图 5是根据本发明优选实施例的链路的跟踪处理系统的结构框图; 图 6是根据本发明实施例的新增字段链路路径记录字段定义的示意图; 以及 图 7是根据本发明实施例的 CCM在组网条件下实现链路跟踪检测的示意图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 根据本发明实施例, 提供了一种链路的跟踪处理方法。 图 3是根据本发明实施例 的链路的跟踪处理方法的流程图, 如图 3所示, 该方法包括以下步骤: 步骤 S302, 接收端口接收连续性检测报文(CCM), 其中, CCM中携带用于指示 CCM途经端口的链路路径记录字段; 步骤 S304, 接收端口更新链路路径记录字段的内容, 并将更新后的链路路径记录 字段携带到 CCM中发送给下一个端口。 通过上述步骤,采用在 CCM中携带用于指示 CCM途经端口的链路路径记录字段 的方式, 解决了相关技术中使用连续性检测无法确定故障位置的问题, 使得系统可以 利用 CCM来跟踪链路的状态, 提高了系统的处理能力。 优选地, 在步骤 S304中, 将更新后的链路路径记录字段携带到 CCM中发送给下 一个端口之前, 接收端口可以根据链路路径记录字段确定 CCM的当前链路状态, 并 根据 CCM的当前链路状态进行提示。该方法可以有效地对 CCM进行实时跟踪, 并将 状态通知用户, 增强了系统的性能, 提高了用户体验。 优选地,接收端口根据链路路径记录字段确定 CCM的当前链路状态,并根据 CCM 的当前链路状态进行提示包括:根据链路路径记录字段中 CCM途经端口的 MAC地址 和接收端口的 MAC地址确定 CCM的链路是否成环,并在 CCM的链路成环的情况下, 产生相应的告警提示; 和 /或, 将接口端口本次接收到的 CCM中的链路路径记录字段 与上一次接收到的 CCM中的链路路径记录字段进行比较,确定 CCM的链路是否改变, 并在 CCM的链路改变的情况下, 产生相应的链路改变提示。 该方法可以使得用户可 以清楚地知道业务的路由状况,及时发现链路的问题,提高了系统的有效性和准确性。 优选地, 在步骤 S302之前, 起始端口可以在 CCM中添加链路路径记录字段, 并 将链路路径记录字段中的 CCM途经的 MP的个数置为 1, 以及将起始端口的 MAC地 址作为 CCM途经端口的 MAC地址填写到链路路径记录字段中。该方法简单实用、可 操作性强。 优选地, 在步骤 S304中, 更新链路路径记录字段的内容还包括: 在 CCM的链路 改变的情况下,将链路路径记录字段中的链路状态标识置为 1 ; 在 CCM的链路没有改 变的情况下,将链路路径记录字段中的链路状态标识置为 0。该方法可以对 CCM链路 的路由状态进行检测, 通知用户链路的改变, 提高了系统处理能力。 优选地,在步骤 S304中,接收端口更新链路路径记录字段的内容包括至少以下之 一: 修改 CCM途经的 MP的个数、 修改 CCM的链路状态标识、 追加 CCM途经端口 的 MAC地址。 该方法简单实用、 可操作性强。 对应于上述方法, 本发明实施例还提供了一种链路的跟踪处理系统。 图 4是根据 本发明实施例的链路的跟踪处理系统的结构框图, 如图 4所示, 该系统 40包括一个起 始端口 42、 一个或多个中间端口 44和一个目的端口 46, 其中, 中间端口 44包括: 接 收模块 442, 设置为接收连续性检测报文 CCM, 其中, CCM中携带用于指示 CCM途 经端口的链路路径记录字段; 更新模块 444, 耦合至接收模块 442, 设置为更新链路路 径记录字段的内容; 以及发送模块, 设置为将更新后的链路路径记录字段携带到 CCM 中发送给下一个中间端口或目的端口。 通过上述系统 40, 采用在 CCM中携带用于指示 CCM途经端口的链路路径记录 字段的方式, 解决了相关技术中使用连续性检测无法确定故障位置的问题, 使得系统 可以利用 CCM来跟踪链路的状态, 提高了系统的处理能力。 需要说明的是, 这里所指的起始端口 42、 中间端口 44和目的端口 46是针对某个IEEE) The 802.1ag standard provides logical point-to-point connectivity detection for Connectivity Fault Management (CFM), ie, Connectivity Check (CC), Link Tracking, and Faults. Point confirmation and isolation. The CC provides logical point-to-point connectivity detection, and the connectivity check is implemented by periodically sending a Connectivity Check Message (CCM). CCM is a protocol frame that provides connectivity detection management. Each Maintenance Sets End Point Identifier (MEP) periodically sends multicast CCM packets to all MEPs in the list according to the remote MEP table, and tells the other party that the peer MEP is in the maintenance set (maintenance associations). , referred to as connectivity within MA). In the related art, Link Trace (LT) is the main means for checking the fault point of the network, including two types of packets: Link Trace Message (LTM) and link tracking. Response (Link Trace Response, referred to as LTR). The LT is used to detect the path between the MEPs. It is similar to the Route Trace command in the operating system. The SP calculates the LTR message by sending a multicast LTM message to the specified device and listening to the device along the path. Path information to the specified MEP device. For example, the implementation of the LT function may be: Each maintenance point (MP) of the LTM message will respond to the received LTM message, generate an LTR message, and send it back to the source MP; The MP parses the received message response and obtains a link path. 1 is a schematic diagram of a CCM message format definition according to the related art, and FIG. 2 is a schematic diagram of a LTM message format definition according to the related art, as shown in FIG. 1 and FIG. 2, wherein TIN represents a message format definition method. , divided into 3 parts, type (Type), length (Length), value (Value). The specific definition can be found in the IEEE802.1ag standard, which is not described here. It can be seen that the CC provides logical point-to-point connectivity detection, and periodically sends detection messages periodically, but this method can only detect the link with fault, but cannot determine the location; and LT is to detect between MEPs. The path can detect the point of failure of the network. However, the method is passively detected, that is, it needs to be manually initiated by the user. In view of the above-mentioned related art, the use of CC detection cannot determine the location of the fault and the use of the LT requires manual initiation, and no effective solution has been proposed at present. SUMMARY OF THE INVENTION A primary object of the present invention is to provide a link tracking processing scheme to solve the problem in the above related art that the fault location cannot be determined using continuity detection. In order to achieve the above object, according to an aspect of the present invention, a link tracking processing method is provided. The tracking processing method of the link according to the present invention includes the following steps: the receiving port receives the CCM, wherein the CCM carries a link path record field for indicating a CCM way port; the receiving port updates the link path record field, and The updated link path record field is carried to the CCM and sent to the next port. Preferably, before the updated link path record field is carried to the CCM and sent to the next port, the method further includes: the receiving port determines the current link state of the CCM according to the link path record field, and according to the current chain of the CCM The road status is prompted. Preferably, the receiving port determines the current link state of the CCM according to the link path record field, and prompting according to the current link state of the CCM includes: recording the MAC address of the CCM passing port and the MAC address of the receiving port according to the link path record field Determining whether the link of the CCM is looped, and generating a corresponding alarm prompt when the link of the CCM is looped; and/or, the link path record field in the CCM received by the interface port this time is the last time The received link path record field in the CCM is compared to determine whether the link of the CCM is changed, and in the case where the link of the CCM is changed, a corresponding link change prompt is generated. Preferably, before the receiving port receives the CCM, the method further includes: the starting port adding a link path record field in the CCM, and setting the number of MPs passing through the CCM in the link path record field to 1, and starting The MAC address of the originating port is filled in the link path record field as the MAC address of the CCM path port. Preferably, updating the content of the link path record field further comprises: setting a link state identifier in the link path record field to 1 in case of a link change of the CCM; if the link of the CCM is unchanged Set the link state identifier in the link path record field to 0. Preferably, the content of the receiving port update link path record field includes at least one of the following: modifying the number of MPs that the CCM passes, modifying the link state identifier of the CCM, and adding the MAC address of the CCM transit port. In order to achieve the above object, according to another aspect of the present invention, a link tracking processing system is also provided. A tracking processing system for a link according to the present invention includes a start port, one or more intermediate ports, and a destination port, wherein the intermediate port includes: a receiving module configured to receive a CCM, wherein the CCM is carried for indicating The CCM passes the link path record field of the port; the update module is set to update the content of the link path record field; and the sending module is configured to carry the updated link path record field to the CCM and send it to the next intermediate port or Terminate the destination port. Preferably, the intermediate port further includes: a prompting module, configured to determine a current link state of the CCM according to the link path record field, and prompting according to the current link state of the CCM. Preferably, the prompting module is further configured to determine whether the link of the CCM is looped according to the MAC address of the CCM transiting port and the MAC address of the receiving port in the link path record field, and generate a corresponding link when the CCM link is looped. And/or, comparing the link path record field in the CCM received by the interface port with the link path record field in the CCM received last time, determining whether the link of the CCM is changed, and In the case of a link change of the CCM, a corresponding link change prompt is generated. Preferably, the start port includes: an adding module, configured to add a link path record field in the CCM; and a setting module, configured to set the number of MPs passing through the CCM in the link path record field to 1, and The MAC address of the originating port is filled in the link path record field as the MAC address of the CCM path port. Through the present invention, the method of carrying the link path record field for indicating the CCM path port in the CCM is adopted, and the problem that the fault location cannot be determined by using the continuity detection in the related art is solved, so that the system can use the CCM to track the link. The state improves the processing power of the system. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, In the drawings: FIG. 1 is a schematic diagram of a CCM message format definition according to the related art; FIG. 2 is a schematic diagram of an LTM message format definition according to the related art; FIG. 3 is a link tracking processing method according to an embodiment of the present invention; Figure 4 is a block diagram showing the structure of a tracking processing system for a link according to an embodiment of the present invention; Figure 5 is a block diagram showing the structure of a tracking processing system for a link according to a preferred embodiment of the present invention; 6 is a schematic diagram of a new field link path record field definition according to an embodiment of the present invention; and FIG. 7 is a schematic diagram of a CCM implementing link tracking detection under a networking condition according to an embodiment of the present invention. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. According to an embodiment of the present invention, a link tracking processing method is provided. FIG. 3 is a flowchart of a method for tracking a link according to an embodiment of the present invention. As shown in FIG. 3, the method includes the following steps: Step S302: A receiving port receives a continuity check message (CCM), where, in a CCM Carrying a link path record field for indicating a CCM path through port; Step S304, receiving the content of the port update link path record field, and carrying the updated link path record field to the CCM for transmission to the next port. Through the above steps, the method of carrying the link path record field for indicating the CCM path port in the CCM is adopted, and the problem that the fault location cannot be determined by using the continuity detection in the related art is solved, so that the system can use the CCM to track the link. The state improves the processing power of the system. Preferably, in step S304, before the updated link path record field is carried to the CCM and sent to the next port, the receiving port may determine the current link state of the CCM according to the link path record field, and according to the current CCM status. The link status is prompted. The method can effectively track the CCM in real time and notify the user of the status, which enhances the performance of the system and improves the user experience. Preferably, the receiving port determines the current link state of the CCM according to the link path record field, and prompting according to the current link state of the CCM includes: recording the MAC address of the CCM passing port and the MAC address of the receiving port according to the link path record field Determining whether the link of the CCM is looped, and generating a corresponding alarm prompt when the link of the CCM is looped; and/or, the link path record field in the CCM received by the interface port this time is the last time The received link path record field in the CCM is compared to determine whether the link of the CCM is changed, and in the case where the link of the CCM is changed, a corresponding link change prompt is generated. The method can make the user clearly know the routing status of the service, discover the link problem in time, and improve the effectiveness and accuracy of the system. Preferably, before step S302, the originating port may add a link path record field in the CCM, and set the number of MPs passing through the CCM in the link path record field to 1, and the MAC address of the start port. The address is filled in the link path record field as the MAC address of the CCM path port. The method is simple and practical, and has high operability. Preferably, in step S304, updating the content of the link path record field further includes: setting a link state identifier in the link path record field to 1 in the case of a link change of the CCM; In the case of no change, the link state identifier in the link path record field is set to zero. The method can detect the routing state of the CCM link, notify the user of the link change, and improve the system processing capability. Preferably, in step S304, the content of the receiving port update link path record field includes at least one of: modifying the number of MPs through which the CCM passes, modifying the link state identifier of the CCM, and adding the MAC address of the CCM way port. The method is simple and practical, and has high operability. Corresponding to the foregoing method, an embodiment of the present invention further provides a link tracking processing system. 4 is a structural block diagram of a link tracking processing system according to an embodiment of the present invention. As shown in FIG. 4, the system 40 includes a start port 42, one or more intermediate ports 44, and a destination port 46, where The intermediate port 44 includes: a receiving module 442, configured to receive a continuity detection message CCM, where the CCM carries a link path record field for indicating a CCM path port; an update module 444, coupled to the receiving module 442, configured to update The content of the link path record field; and the sending module, configured to carry the updated link path record field to the CCM for transmission to the next intermediate port or destination port. Through the above system 40, the method of carrying the link path record field for indicating the CCM path port in the CCM is adopted, and the problem that the fault location cannot be determined by using the continuity detection in the related art is solved, so that the system can use the CCM to track the link. The state of the system improves the processing power of the system. It should be noted that the start port 42, the intermediate port 44, and the destination port 46 referred to herein are for a certain
CC报文 (CCM) 来说的, 其中, CC报文的从起始端口 42发起, 通过一个或多个中 间端口 44至目的端口 46结束。对于环状链路的情况,起始端口 42也可能是目的端口 46, 并且, 环状链路中的每个端口都有可能是某一次 CC报文的发起方 (δΡ, 起始端 口 42)。 图 5是根据本发明优选实施例的链路的跟踪处理系统的结构框图, 如图 5所示, 中间端口 44还包括: 提示模块 446, 耦合至更新模块 444, 设置为根据链路路径记录 字段确定 CCM的当前链路状态, 并根据 CCM的当前链路状态进行提示。 优选地, 提示模块 446还设置为根据链路路径记录字段中 CCM途经端口的 MAC 地址和接收端口的 MAC地址确定 CCM的链路是否成环, 并在 CCM的链路成环的情 况下, 产生相应的告警提示; 和 /或, 将接口端口本次接收到的 CCM中的链路路径记 录字段与上一次接收到的 CCM中的链路路径记录字段进行比较,确定 CCM的链路是 否改变, 并在 CCM的链路改变的情况下, 产生相应的链路改变提示。 优选地, 起始端口 42包括: 添加模块 422, 设置为在 CCM中添加链路路径记录 字段; 以及设置模块 424, 耦合至添加模块 422和接收模块 442, 设置为将链路路径记 录字段中的 CCM途经的 MP的个数置为 1, 以及将起始端口的 MAC地址作为 CCM 途经端口的 MAC地址填写到链路路径记录字段中。 下面结合优选实施例和附图对上述实施例的实现过程进行详细说明。 优选实施例一 本实施例将 CC检测连通性和 LT链路跟踪检测结合起来, 在 CC协议报文 (即, CCM) 中增加字段来实现 LT的功能, 实时地检测链路路径。 如果检测到有链路不通, 就可以启动链路保护, 切换到保护链路中; 如果检测到有链路成环, 可以产生告警提 示; 如果检测到有链路改变, 也可以做出链路改变提示。 图 6是根据本发明实施例的新增字段链路路径记录字段定义的示意图, 如图 6所 示, 可以在 CCM报文中增加一个 TIN字段, 这里叫链路路径记录字段 (Link Trace Record TIN) ,记录经过的 MP的 MAC地址。 例如, CCM报文途径的每个 MP, 都将 端口的 MAC地址增加到这个 TIN字段中,直接保存,这样途经的 MP所收到的报文, 都知道 CCM报文以前经过的所有路径。 在实施过程中, 本实施例中链路的跟踪处理方法可以包括如下步骤: 步骤 1, 起始端口 (端口 1 ) 发送 CCM报文, 报文中链路路径记录字段包含了端 口 1的 MAC地址 MAC1, 还有经过的 MP个数 1。 步骤 2, CCM报文随业务到端口 2, 端口 2接收解析 CCM报文, 将有用信息保 存, 在修改 CCM报文中的链路路径记录字段, 在字段尾部增加端口 2的 MAC地址 MAC2, 将 MP个数自增 1, 然后随业务转发到下一个端口 3。 在网络中的节点(即, 中间端口)重复步骤 2,发送到目的端口, 目的端口将 CCM 报文解析, 从 CCM报文中的链路路径记录字段, 就可以获得业务经过的所有端口的 MAC地址。 这样可以知道这条业务经过的所有端口路径。 可见, CC连通性检测是定时地发送报文来进行检测连通行, LT是要启用实例后 才上报一次链路路径的结果, 按照本实施例的方案, 可以不用人工操作, 实时对链路 进行跟踪, 快速地查找定位故障端口, 还可以根据链路跟踪结果, 得到网络的变化情 况, 即, 如果链路保护, STP这类需要知道网络路径的协议, 可以直接根据已经得到 的链路路径来进行操作, 不需要重新计算获取路径, 这样可以提高系统的处理效率。 优选实施例二 图 7是根据本发明实施例的 CCM在组网条件下实现链路跟踪检测的示意图, 如 图 7所示, 各个端口的 MAC地址在图中已标明, 在本实施例中的检测源端口 (即, 起始端口) 到目的端口的连通性检查的过程中, 业务经过端口 2和端口 3转发, 经过 网络发送到目的端口。 如图 6所示, MP Num表示途经 MP的个数, 首个可以填为 1 ; Link Status标识链路是否改变, 0标识不改变, 1表示有改变。 在实施过程中, 链路的跟踪处理方法可以包括如下步骤: 步骤 S702, 目的端口向端口 1 (即, 起始端口) 发送 CCM报文, 端口 1接收到 该 CCM报文后, 在报文中增加字段。 例如, 对于首个 MEP, 可以在 MP Num填写 1, 在 Link Status填写 0,在 MAC address 1填写本端端口的 MAC地址 00-00-00-00-00-01。 步骤 S704, 在端口 2收到了 CCM报文, 对报文进行解析处理, 并做入库操作。 端口 2向端口 3发送 CCM报文, 修改链路路径记录字段。 例如, MP Num=2, MAC address2为端口 2的 MAC地址 00-00-00-00-00-02。 步骤 S706, 在端口 3收到了 CCM报文, 按照 CC协议处理规则进行判断, 并做 入库操作。 转发到下面一个端口时, MP Num 自增 1, 在链路路径记录字段尾部添上 端口 3的 MAC地址 00-00-00-00-00-00-03。 步骤 S708, 网络中的所有端口处理和步骤 S404-S406类似。 为了保证字节过长, 可以设定 Mp_Num <= 32, 如果大于 32, MP Num=0, MAC地址全部清空, 然后在 MAC address 1字节填上本端端口的 MAC地址。 步骤 S710, 如此多次转发, 在终点 (即, 目的端口) 的话, 将 CCM报文处理完 就丢弃掉,不再转发。例如,提取链路路径记录字段,并做入库操作,就可以知道 CCM 途经了那些 MAC地址, 从而得知 MAC网络的连接情况。 优选地, 在步骤 S704-S710中, 可以检查链路路径记录字段中的 MAC地址, 如 果一样, 表示链路成环, 可能会引起广播风暴, 做出相应的提示。 也可以检查里面的 MAC地址记录时候有改变, 若有改变, 表示数据经过的路径是不一样的, 这时候可以 将 Link Status置为 1, 如果和上次一样表示链路没有改变, Link Status置为 0, 还可以 提示用户该链路的路径状态已变更。 综上所述, 本发明实施例可以基于 IEEE802.1ag标准的以太网进行运营、 管理和 维护, 是一种 CFM中实现链路跟踪监测的方法, 将链路跟踪的功能融合进 CC, 可以 实时地对链路进行跟踪,解决了相关技术中使用连续性检测无法确定故障位置的问题, 提高了系统的处理能力。 上述的本发明的各模块或各步骤可以在通用的计算装置上来实现, 它们可以集中 在单个的计算装置上, 或者分布在多个计算装置所组成的网络上, 可选地, 它们可以 用计算装置可执行的程序代码来实现, 从而, 可以将它们存储在存储装置中由计算装 置来执行, 并且在某些情况下, 可以以不同于此处的顺序执行所示出或描述的步骤, 或者将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制作成单 个集成电路模块来实现。 这样, 本发明不限制于任何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。 For the CC message (CCM), the CC message is initiated from the start port 42 and ends through one or more intermediate ports 44 to the destination port 46. For the case of a ring link, the originating port 42 may also be the destination port 46, and each port in the ring link may be the initiator of a certain CC message (δΡ, start port 42). . 5 is a structural block diagram of a link tracking processing system according to a preferred embodiment of the present invention. As shown in FIG. 5, the intermediate port 44 further includes: a prompting module 446 coupled to the updating module 444, configured to record a field according to the link path. Determine the current link state of the CCM and prompt according to the current link state of the CCM. Preferably, the prompting module 446 is further configured to determine whether the link of the CCM is looped according to the MAC address of the CCM transiting port and the MAC address of the receiving port in the link path record field, and generate the link when the CCM link is looped. Corresponding alarm prompts; and/or, the link path in the CCM received by the interface port this time The recorded field is compared with the link path record field in the last received CCM to determine whether the link of the CCM is changed, and in the case where the link of the CCM is changed, a corresponding link change prompt is generated. Preferably, the start port 42 includes: an add module 422 configured to add a link path record field in the CCM; and a setting module 424 coupled to the add module 422 and the receive module 442, configured to be in the link path record field The number of MPs passed by the CCM is set to 1, and the MAC address of the originating port is filled in the link path record field as the MAC address of the CCM path port. The implementation process of the above embodiment will be described in detail below in conjunction with the preferred embodiments and the accompanying drawings. Preferred Embodiment 1 This embodiment combines CC detection connectivity with LT link tracking detection, adds a field in a CC protocol message (ie, CCM) to implement the function of the LT, and detects the link path in real time. If a link is detected, the link protection can be started and switched to the protection link. If a link is detected, a warning can be generated. If a link change is detected, the link can also be made. Change the prompt. 6 is a schematic diagram of a new field link path record field definition according to an embodiment of the present invention. As shown in FIG. 6, a TIN field may be added to a CCM message, which is called a link path record field (Link Trace Record TIN). ), record the MAC address of the passed MP. For example, each MP of the CCM message path adds the MAC address of the port to the TIN field and saves it directly, so that the packets received by the MP through the path know all the paths that the CCM message has passed before. In the implementation process, the tracking processing method of the link in this embodiment may include the following steps: Step 1: The starting port (port 1) sends a CCM packet, where the link path record field in the packet includes the MAC address of port 1. MAC1, and the number of MPs passed by 1. Step 2: The CCM message is sent to the port 2 with the service, and the port 2 receives the parsed CCM message, saves the useful information, and modifies the link path record field in the CCM message, and adds the MAC address MAC2 of the port 2 at the end of the field. The number of MPs is incremented by 1, and then forwarded to the next port 3 with the service. The node in the network (that is, the intermediate port) repeats step 2 and sends it to the destination port. The destination port resolves the CCM packet. From the link path record field in the CCM packet, the MAC address of all ports through which the service passes can be obtained. address. This will let you know all the port paths that this service has passed. It can be seen that the CC connectivity check is to periodically send a packet to detect the connected line. The LT is the result of reporting the link path after the instance is enabled. According to the solution of the embodiment, the link can be performed in real time without manual operation. Tracking, quickly locate the faulty port, and obtain the network change according to the link tracking result. That is, if the link is protected, the protocol that needs to know the network path, such as STP, can directly obtain the link path that has been obtained. To operate, there is no need to recalculate the acquisition path, which can improve the processing efficiency of the system. Preferred Embodiment 2 FIG. 7 is a schematic diagram of implementing link tracking detection by a CCM under network conditions according to an embodiment of the present invention. As shown in FIG. 7, the MAC address of each port is indicated in the figure, in this embodiment. During the process of checking the connectivity check of the source port (that is, the start port) to the destination port, the service is forwarded through port 2 and port 3 and sent to the destination port through the network. As shown in Figure 6, MP Num indicates the number of MPs passing through, and the first one can be filled with 1; Link Status indicates whether the link changes, 0 indicates no change, and 1 indicates change. In the implementation process, the link tracking processing method may include the following steps: Step S702: The destination port sends a CCM packet to the port 1 (ie, the start port), and after receiving the CCM packet, the port 1 is in the packet. Increase the field. For example, for the first MEP, you can fill in 1 in MP Num, 0 in Link Status, and MAC address 00-00-00-00-00-01 in the local port at MAC address 1. Step S704, the CCM packet is received on the port 2, and the packet is parsed and processed, and the storage operation is performed. Port 2 sends a CCM packet to port 3 to modify the link path record field. For example, MP Num=2, MAC address2 is the MAC address of port 2 00-00-00-00-00-02. Step S706, the CCM message is received on the port 3, and the judgment is performed according to the CC protocol processing rule, and the storage operation is performed. When forwarding to the next port, MP Num is incremented by 1, and the MAC address of port 3 is added to the end of the link path record field 00-00-00-00-00-00-03. Step S708, all port processing in the network is similar to steps S404-S406. To ensure that the byte is too long, you can set Mp_Num <= 32. If it is greater than 32, MP Num=0, the MAC address is completely cleared, and then the MAC address of the local port is filled in the MAC address 1 byte. In step S710, the forwarding is performed multiple times. At the end point (ie, the destination port), the CCM packet is discarded after being processed, and is not forwarded. For example, by extracting the link path record field and doing the inbound operation, it is known that the CCM passes through those MAC addresses, thereby knowing the connection status of the MAC network. Preferably, in steps S704-S710, the MAC address in the link path record field may be checked. If it is the same, indicating that the link is looped, a broadcast storm may be caused, and a corresponding prompt is made. It is also possible to check when there is a change in the MAC address record. If there is a change, the path through which the data passes is not the same. Set Link Status to 1. If the link does not change as it was last time, Link Status is set to 0. You can also prompt the user that the path status of the link has changed. In summary, the embodiment of the present invention can be operated, managed, and maintained based on the IEEE 802.1ag standard Ethernet. It is a method for implementing link tracking monitoring in CFM, and the function of link tracking is integrated into the CC, which can be real-time. Tracking the link to solve the problem of using the continuity detection in the related art to determine the fault location, and improving the processing capability of the system. The various modules or steps of the present invention described above may be implemented on a general purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices, optionally, they may be calculated The program code executable by the apparatus is implemented such that they may be stored in the storage device by the computing device, and in some cases, the steps shown or described may be performed in an order different than that herein, or They are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated into a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 Claim
1. 一种链路的跟踪处理方法, 包括以下步骤: A method for tracking a link, comprising the following steps:
接收端口接收连续性检测报文 CCM, 其中, 所述 CCM中携带用于指示所 述 CCM途经端口的链路路径记录字段;  The receiving port receives the continuity detection message CCM, where the CCM carries a link path record field for indicating the CCM path port;
所述接收端口更新所述链路路径记录字段的内容, 并将更新后的所述链路 路径记录字段携带到所述 CCM中发送给下一个端口。  The receiving port updates the content of the link path record field, and carries the updated link path record field to the CCM for transmission to the next port.
2. 根据权利要求 1所述的方法, 其中, 将更新后的所述链路路径记录字段携带到 所述 CCM中发送给所述下一个端口之前, 还包括: The method according to claim 1, wherein, before the updated link path record field is sent to the CCM and sent to the next port, the method further includes:
所述接收端口根据所述链路路径记录字段确定所述 CCM的当前链路状态, 并根据所述 CCM的当前链路状态进行提示。  The receiving port determines a current link state of the CCM according to the link path record field, and prompts according to the current link state of the CCM.
3. 根据权利要求 1或 2的方法, 其中, 所述接收端口根据所述链路路径记录字段 确定所述 CCM的当前链路状态,并根据所述 CCM的当前链路状态进行提示包 括: The method according to claim 1 or 2, wherein the receiving port determines a current link state of the CCM according to the link path record field, and the prompting according to the current link state of the CCM includes:
根据所述链路路径记录字段中所述 CCM途经端口的 MAC地址和所述接收 端口的 MAC地址确定所述 CCM的链路是否成环, 并在所述 CCM的链路成环 的情况下, 产生相应的告警提示; 和 /或,  Determining, according to the MAC address of the CCM way port and the MAC address of the receiving port in the link path record field, whether the link of the CCM is looped, and in a case where the link of the CCM is looped, Generate corresponding alarm prompts; and/or,
将所述接口端口本次接收到的所述 CCM中的所述链路路径记录字段与上 一次接收到的 CCM中的链路路径记录字段进行比较,确定所述 CCM的链路是 否改变, 并在所述 CCM的链路改变的情况下, 产生相应的链路改变提示。  Comparing the link path record field in the CCM received by the interface port with the link path record field in the CCM received last time, determining whether the link of the CCM is changed, and In the event that the link of the CCM changes, a corresponding link change prompt is generated.
4. 根据权利要求 3所述的方法, 其中, 所述接收端口接收所述 CCM之前, 还包 括: The method according to claim 3, wherein before the receiving port receives the CCM, the method further includes:
起始端口在所述 CCM中添加所述链路路径记录字段, 并将所述链路路径 记录字段中的所述 CCM途经的 MP的个数置为 1,以及将所述起始端口的 MAC 地址作为所述 CCM途经端口的 MAC地址填写到所述链路路径记录字段中。  The originating port adds the link path record field in the CCM, and sets the number of MPs passing by the CCM in the link path record field to 1, and the MAC of the start port The address is filled into the link path record field as the MAC address of the CCM path port.
5. 根据权利要求 4所述的方法,其中,更新所述链路路径记录字段的内容还包括: 在所述 CCM的链路改变的情况下, 将所述链路路径记录字段中的链路状 态标识置为 1 ;在所述 CCM的链路没有改变的情况下,将所述链路路径记录字 段中的链路状态标识置为 0。 根据权利要求 1所述的方法, 其中, 所述接收端口更新所述链路路径记录字段 的内容包括至少以下之一: 修改所述 CCM途经的 MP的个数、 修改所述 CCM 的链路状态标识、 追加所述 CCM途经端口的 MAC地址。 一种链路的跟踪处理系统, 包括一个起始端口、 一个或多个中间端口和一个目 的端口, 其中, 所述中间端口包括: 5. The method of claim 4, wherein updating the content of the link path record field further comprises: if the link of the CCM changes, the link in the link path record field The status flag is set to 1; in the case where the link of the CCM has not changed, the link status flag in the link path record field is set to zero. The method according to claim 1, wherein the receiving port updates the content of the link path record field to include at least one of: modifying the number of MPs through which the CCM passes, and modifying a link state of the CCM Identify and append the MAC address of the CCM transit port. A link tracking processing system includes a start port, one or more intermediate ports, and a destination port, where the intermediate port includes:
接收模块, 设置为接收连续性检测报文 CCM, 其中, 所述 CCM中携带用 于指示所述 CCM途经端口的链路路径记录字段;  a receiving module, configured to receive a continuity detection message CCM, where the CCM carries a link path record field for indicating the CCM path port;
更新模块, 设置为更新所述链路路径记录字段的内容; 以及  An update module, configured to update content of the link path record field;
发送模块, 设置为将更新后的所述链路路径记录字段携带到所述 CCM中 发送给下一个所述中间端口或所述目的端口。 根据权利要求 7所述的系统, 其中, 所述中间端口还包括:  And a sending module, configured to carry the updated link path record field to the CCM and send the message to the next intermediate port or the destination port. The system according to claim 7, wherein the intermediate port further comprises:
提示模块, 设置为根据所述链路路径记录字段确定所述 CCM的当前链路 状态, 并根据所述 CCM的当前链路状态进行提示。 根据权利要求 7或 8的系统, 其中, 所述提示模块还设置为根据所述链路路径 记录字段中所述 CCM途经端口的 MAC地址和所述接收端口的 MAC地址确定 所述 CCM的链路是否成环, 并在所述 CCM的链路成环的情况下,产生相应的 告警提示; 和 /或, 将所述接口端口本次接收到的所述 CCM中的所述链路路径 记录字段与上一次接收到的 CCM中的链路路径记录字段进行比较, 确定所述 CCM的链路是否改变, 并在所述 CCM的链路改变的情况下, 产生相应的链路 改变提示。 根据权利要求 9所述的系统, 其中, 所述起始端口包括:  The prompting module is configured to determine a current link state of the CCM according to the link path record field, and prompt according to the current link state of the CCM. The system according to claim 7 or 8, wherein the prompting module is further configured to determine the link of the CCM according to a MAC address of the CCM way port and a MAC address of the receiving port in the link path record field Whether the loop is generated, and in the case that the link of the CCM is looped, a corresponding alarm prompt is generated; and/or, the link path record field in the CCM that the interface port receives this time Comparing with the link path record field in the last received CCM, determining whether the link of the CCM is changed, and in case the link of the CCM is changed, generating a corresponding link change prompt. The system according to claim 9, wherein the start port comprises:
添加模块, 设置为在所述 CCM中添加所述链路路径记录字段; 以及 设置模块, 设置为将所述链路路径记录字段中的所述 CCM途经的 MP的 个数置为 1,以及将所述起始端口的 MAC地址作为所述 CCM途经端口的 MAC 地址填写到所述链路路径记录字段中。  Adding a module, configured to add the link path record field in the CCM; and setting a module, configured to set the number of MPs passing by the CCM in the link path record field to 1, and The MAC address of the originating port is filled in the link path record field as the MAC address of the CCM path port.
PCT/CN2011/080315 2010-12-16 2011-09-28 Link trace processing method and system WO2012079405A2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010592163.5A CN102571464B (en) 2010-12-16 2010-12-16 Link tracking processing method and system
CN201010592163.5 2010-12-16

Publications (2)

Publication Number Publication Date
WO2012079405A2 true WO2012079405A2 (en) 2012-06-21
WO2012079405A3 WO2012079405A3 (en) 2012-11-01

Family

ID=46245153

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/080315 WO2012079405A2 (en) 2010-12-16 2011-09-28 Link trace processing method and system

Country Status (2)

Country Link
CN (1) CN102571464B (en)
WO (1) WO2012079405A2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103684887A (en) * 2013-12-31 2014-03-26 杭州华三通信技术有限公司 Method and equipment for generating connectivity fault detection network system hardware table entry
CN105450469A (en) * 2015-12-01 2016-03-30 许继电气股份有限公司 Method for detecting faults of rapid communication bus in industrial equipment

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107784065B (en) * 2017-08-17 2021-04-27 平安壹钱包电子商务有限公司 Service data tracking method and device, computer equipment and storage medium
CN110380893B (en) * 2019-06-19 2022-08-12 深圳壹账通智能科技有限公司 Communication fault analysis method and device and block chain communication platform
CN114338568B (en) * 2020-09-30 2024-03-01 中车株洲电力机车研究所有限公司 Data stream statistics method and Ethernet switch

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101771614A (en) * 2010-01-15 2010-07-07 瑞斯康达科技发展股份有限公司 DHCP route tracing method and DHCP relay equipment
US20100238791A1 (en) * 2008-09-15 2010-09-23 Ian Duncan Systems and methods for connectivity fault management extensions for automated activation of services through association of service related attributes

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8054751B2 (en) * 2004-05-10 2011-11-08 Alcatel Lucent Remote access link fault indication mechanism
CN101174975B (en) * 2006-11-03 2010-05-12 华为技术有限公司 Periodic line fault location method and system in Ethernet
CN101820368A (en) * 2010-04-08 2010-09-01 华为技术有限公司 Ethernet link failure detection method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100238791A1 (en) * 2008-09-15 2010-09-23 Ian Duncan Systems and methods for connectivity fault management extensions for automated activation of services through association of service related attributes
CN101771614A (en) * 2010-01-15 2010-07-07 瑞斯康达科技发展股份有限公司 DHCP route tracing method and DHCP relay equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103684887A (en) * 2013-12-31 2014-03-26 杭州华三通信技术有限公司 Method and equipment for generating connectivity fault detection network system hardware table entry
CN103684887B (en) * 2013-12-31 2017-01-04 杭州华三通信技术有限公司 A kind of method and apparatus connecting the generation of error detection group network system hardware table item
CN105450469A (en) * 2015-12-01 2016-03-30 许继电气股份有限公司 Method for detecting faults of rapid communication bus in industrial equipment

Also Published As

Publication number Publication date
CN102571464A (en) 2012-07-11
WO2012079405A3 (en) 2012-11-01
CN102571464B (en) 2015-06-03

Similar Documents

Publication Publication Date Title
US8406143B2 (en) Method and system for transmitting connectivity fault management messages in ethernet, and a node device
US11374857B2 (en) Network device management method and apparatus, and system for indicating a network device to perform management operation
US8982710B2 (en) Ethernet operation and maintenance (OAM) with flexible forwarding
JP5265785B2 (en) Scaled Ethernet OAM for mesh and hub-and-spoke networks
EP2933977B1 (en) Method, network element and network for integrity check in live connectivity frames
US11611509B2 (en) Communication method, communications device, and communications system
WO2007073649A1 (en) A method and system for obtaining path maximum transfer unit in network
US8432833B2 (en) Auto MEP ID assignment within CFM maintenance association
WO2008119300A1 (en) A protecting method and device for ethernet tree service
WO2014019348A1 (en) Method, device and system for operation, management and maintenance of oam configuration
WO2015143810A1 (en) Node fault detection method and apparatus
US11601335B2 (en) Methods and systems for neighbor-acknowledged graceful insertion/removal protocol
WO2015096409A1 (en) Method, device and system for discovering link in software-defined network
WO2012079405A2 (en) Link trace processing method and system
WO2016062165A1 (en) Method and apparatus for implementing operations, administration and maintenance function
WO2020173424A1 (en) Message processing method, and gateway device
WO2009092257A1 (en) Fault detection method and device for provider backbone transport network
WO2014117737A1 (en) Oam packet processing method, device and system
WO2012167474A1 (en) Method, device and system for detecting network loop
US11463349B2 (en) Fault diagnosis method and apparatus thereof
US8670299B1 (en) Enhanced service status detection and fault isolation within layer two networks
WO2006089490A1 (en) A method for implementing fec bfd
US9749215B2 (en) Method for receiving information, method for sending information, and apparatus for the same
WO2015024523A1 (en) Ip bearer network failure determining method and system
WO2011124178A2 (en) Fault detection method, route node 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: 11849344

Country of ref document: EP

Kind code of ref document: A2

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11849344

Country of ref document: EP

Kind code of ref document: A2