Movatterモバイル変換


[0]ホーム

URL:


CN102571464B - Link tracking processing method and system - Google Patents

Link tracking processing method and system
Download PDF

Info

Publication number
CN102571464B
CN102571464BCN201010592163.5ACN201010592163ACN102571464BCN 102571464 BCN102571464 BCN 102571464BCN 201010592163 ACN201010592163 ACN 201010592163ACN 102571464 BCN102571464 BCN 102571464B
Authority
CN
China
Prior art keywords
ccm
link
port
record field
path record
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
CN201010592163.5A
Other languages
Chinese (zh)
Other versions
CN102571464A (en
Inventor
黄登成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE CorpfiledCriticalZTE Corp
Priority to CN201010592163.5ApriorityCriticalpatent/CN102571464B/en
Priority to PCT/CN2011/080315prioritypatent/WO2012079405A2/en
Publication of CN102571464ApublicationCriticalpatent/CN102571464A/en
Application grantedgrantedCritical
Publication of CN102571464BpublicationCriticalpatent/CN102571464B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The invention discloses link tracking processing method and system. The method comprises the following steps: a receiving port receives a CCM (Continuity Check Message) carrying a link trace record field for indicating CCM passing ports; and the receive port updates the content of the link trace record field, and the updated link trace record field is carried in the CCM and sent to the next port. By adopting the invention, the system can utilize the CCM to track the link state, thereby having improved processing capability.

Description

Translated fromChinese
链路的跟踪处理方法及系统Method and system for tracking and processing links

技术领域technical field

本发明涉及通信领域,尤其涉及一种链路的跟踪处理方法及系统。The present invention relates to the communication field, in particular to a link tracking processing method and system.

背景技术Background technique

电气和电子工程师学会(Institute for Electrical and Electronic Engineers,简称为IEEE)802.1ag标准为以太网连通故障管理(Connectivity Fault Management,简称为CFM)提供了逻辑上的点对点的连通性检测,即,连续性检测(Connectivity Check,简称为CC)、链路跟踪、故障点确认和隔离等功能。其中,CC提供了逻辑上的点对点的连通性检测,其连通性检查是通过周期性发送连通性检测报文(ConnectivityCheck Message,简称为CCM)来实现。CCM是一种协议帧,提供连通性检测管理。每个维护集端点(maintenance Associations End Point Identifier,简称为MEP)依据远端MEP表,周期性地发送组播CCM报文至列表中所有MEP,告诉对方自己与对端MEP在维护集(maintenance Associations,简称为MA)内的连通性。The Institute for Electrical and Electronic Engineers (IEEE) 802.1ag standard provides logical point-to-point connectivity detection for Ethernet Connectivity Fault Management (CFM), that is, continuity Detection (Connectivity Check, referred to as CC), link tracking, fault point confirmation and isolation and other functions. Among them, the CC provides a logical point-to-point connectivity check, and its connectivity check is implemented by periodically sending a connectivity check message (ConnectivityCheck Message, referred to as CCM). CCM is a protocol frame that provides connectivity detection management. Each maintenance associations end point identifier (MEP for short) periodically sends multicast CCM messages to all MEPs in the list according to the remote MEP table, telling the other party that it and the peer MEP are in the maintenance associations (maintenance associations) , referred to as connectivity within MA).

在相关技术中,链路跟踪检测(Link Trace,简称为LT)是检查网络的故障点的主要手段,包括两种报文:链路跟踪消息(Link Trace Message,简称为LTM)和链路跟踪应答(Link Trace Response,简称为LTR)。LT用来检测MEP之间的路径,类似于操作系统中查找路由路径(Route Trace)命令,即,通过发送组播LTM报文到指定的设备,并监听沿途设备的响应LTR报文,来计算到指定MEP设备的路径信息。例如,LT功能的实现可以是:LTM报文途经的每个维护点(maintenance point,简称为MP)都将响应接收到的LTM报文,产生一个LTR报文,回送至源MP;然后源端MP将接收的报文应答进行解析,得到了一条链路路径。In related technologies, link trace detection (Link Trace, referred to as LT) is the main means of checking the fault point of the network, including two kinds of messages: link trace message (Link Trace Message, referred to as LTM) and link trace Response (Link Trace Response, referred to as LTR). LT is used to detect the path between MEPs, similar to the Route Trace command in the operating system, that is, by sending a multicast LTM message to the specified device, and listening to the response LTR message of the device along the way, to calculate Path information to the specified MEP equipment. For example, the realization of the LT function may be: each maintenance point (MP for short) that the LTM message passes through will respond to the received LTM message, generate an LTR message, and send it back to the source MP; then the source end The MP parses the received message response and obtains a link path.

图1是根据相关技术的CCM报文格式定义的示意图,图2是根据相关技术的LTM报文格式定义的示意图,如图1和图2所示,其中,TLV表示一种报文格式定义方法,分为3部分,类型(type),长度(length),值(value)。具体的定义可以在IEEE802.1ag标准中查找,这里不做介绍。Fig. 1 is a schematic diagram according to the definition of the CCM message format of the related technology, and Fig. 2 is a schematic diagram of the definition of the LTM message format according to the related technology, as shown in Fig. 1 and Fig. 2, wherein, TLV represents a kind of 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 will not be introduced here.

可见,CC提供了逻辑上的点对点的连通性检测,且是周期性主动发送检测报文,但这种方法只能检测出链路有故障,但无法确定的位置;而LT是检测MEP之间的路径,可以检测网络的故障点,但是,该方法是被动检测的,即,需要用户手动发起。It can be seen that CC provides logical point-to-point connectivity detection, and periodically sends detection messages proactively, but this method can only detect link failures, but cannot determine the location; while LT detects connectivity between MEPs. The path of the network can detect the failure point of the network, but this method is passive detection, that is, it needs to be manually initiated by the user.

针对上述相关技术中使用CC检测无法确定故障位置以及使用LT需要手动发起问题,目前并没有提出有效的解决方案。For the problems in the above-mentioned related technologies that the fault location cannot be determined by using CC detection and manual initiation is required by using LT, no effective solution has been proposed so far.

发明内容Contents of the invention

本发明的主要目的在于提供一种链路的跟踪处理方案,以解决上述相关技术中使用连续性检测无法确定故障位置的问题。The main purpose of the present invention is to provide a link tracking processing solution to solve the problem in the above-mentioned related art that the fault location cannot be determined by using the continuity detection.

为了实现上述目的,根据本发明的一个方面,提供了一种链路的跟踪处理方法。In order to achieve the above object, according to one aspect of the present invention, a link tracking processing method is provided.

根据本发明的链路的跟踪处理方法,包括以下步骤:接收端口接收连续性检测报文CCM,其中,CCM中携带用于指示CCM途经端口的链路路径记录字段;接收端口更新链路路径记录字段的内容,并将更新后的链路路径记录字段携带到CCM中发送给下一个端口。The link tracking processing method according to the present invention includes the following steps: the receiving port receives the continuity detection message CCM, wherein the CCM carries a link path record field for indicating the port through which the CCM passes; the receiving port updates the link path record field, and carry the updated link path record field into the CCM and send it to the next port.

进一步地,将更新后的链路路径记录字段携带到CCM中发送给下一个端口之前,还包括:接收端口根据链路路径记录字段确定CCM的当前链路状态,并根据CCM的当前链路状态进行提示。Further, before carrying the updated link path record field into the CCM and sending it to the next port, it also includes: the receiving port determines the current link state of the CCM according to the link path record field, and determines the current link state of the CCM according to the current link state of the CCM. Prompt.

进一步地,接收端口根据链路路径记录字段确定CCM的当前链路状态,并根据CCM的当前链路状态进行提示包括:根据链路路径记录字段中CCM途经端口的MAC地址和接收端口的MAC地址确定CCM的链路是否成环,并在CCM的链路成环的情况下,产生相应的告警提示;和/或,将接口端口本次接收到的CCM中的链路路径记录字段与上一次接收到的CCM中的链路路径记录字段进行比较,确定CCM的链路是否改变,并在CCM的链路改变的情况下,产生相应的链路改变提示。Further, 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: according to the MAC address of the port passed by the CCM in the link path record field and the MAC address of the receiving port Determine whether the link of the CCM is looped, and in the case of the link of the CCM, generate a corresponding alarm prompt; and/or, compare the link path record field in the CCM received by the interface port this time with the last time The link path record field in the received CCM is compared to determine whether the link of the CCM is changed, and if the link of the CCM is changed, a corresponding link change prompt is generated.

进一步地,接收端口接收CCM之前,还包括:起始端口在CCM中添加链路路径记录字段,并将链路路径记录字段中的CCM途经的MP的个数置为1,以及将起始端口的MAC地址作为CCM途经端口的MAC地址填写到链路路径记录字段中。Further, before the receiving port receives the CCM, it also includes: the starting port adds a link path record field in the CCM, and sets the number of MPs passed by the CCM in the link path record field to 1, and sets the starting port Fill in the link path record field with the MAC address of the CCM as the MAC address of the port passed by the CCM.

进一步地,更新链路路径记录字段的内容还包括:在CCM的链路改变的情况下,将链路路径记录字段中的链路状态标识置为1;在CCM的链路没有改变的情况下,将链路路径记录字段中的链路状态标识置为0。Further, updating the content of the link path record field also includes: when the link of the CCM is changed, setting the link state identifier in the link path record field to 1; , and set the link state identifier in the link path record field to 0.

进一步地,接收端口更新链路路径记录字段的内容包括至少以下之一:修改CCM途经的MP的个数、修改CCM的链路状态标识、追加CCM途经端口的MAC地址。Further, the content of the link path record field updated by the receiving port includes at least one of the following: modifying the number of MPs passed by the CCM, modifying the link state identifier of the CCM, and adding the MAC address of the port passed by the CCM.

为了实现上述目的,根据本发明的另一方面,还提供了一种链路的跟踪处理系统。In order to achieve the above purpose, according to another aspect of the present invention, a system for tracking and processing links is also provided.

根据本发明的链路的跟踪处理系统,包括一个起始端口、一个或多个中间端口和一个目的端口,其中,中间端口包括:接收模块,用于接收连续性检测报文CCM,其中,CCM中携带用于指示CCM途经端口的链路路径记录字段;更新模块,用于更新链路路径记录字段的内容;以及发送模块,用于将更新后的链路路径记录字段携带到CCM中发送给下一个中间端口或终止目的端口。The link tracking processing system according to the present invention includes a starting port, one or more intermediate ports and a destination port, wherein the intermediate port includes: a receiving module for receiving a continuity detection message CCM, wherein the CCM Carry the link path record field used to indicate the CCM through the port; the update module is used to update the content of the link path record field; and the sending module is used to carry the updated link path record field into the CCM and send it to Next intermediate port or termination destination port.

进一步地,中间端口还包括:提示模块,用于根据链路路径记录字段确定CCM的当前链路状态,并根据CCM的当前链路状态进行提示。Further, the intermediate port further includes: a prompting module, configured to determine the current link status of the CCM according to the link path record field, and give a prompt according to the current link status of the CCM.

进一步地,提示模块还用于根据链路路径记录字段中CCM途经端口的MAC地址和接收端口的MAC地址确定CCM的链路是否成环,并在CCM的链路成环的情况下,产生相应的告警提示;和/或,将接口端口本次接收到的CCM中的链路路径记录字段与上一次接收到的CCM中的链路路径记录字段进行比较,确定CCM的链路是否改变,并在CCM的链路改变的情况下,产生相应的链路改变提示。Further, the prompting module is also used to determine whether the link of the CCM is in a loop according to the MAC address of the CCM passing port and the MAC address of the receiving port in the link path record field, and generate a corresponding and/or compare the link path record field in the CCM received by the interface port this time with the link path record field in the last received CCM to determine whether the link of the CCM has changed, and When the link of the CCM is changed, a corresponding link change prompt is generated.

进一步地,起始端口包括:添加模块,用于在CCM中添加链路路径记录字段;以及设置模块,用于将链路路径记录字段中的CCM途经的MP的个数置为1,以及将起始端口的MAC地址作为CCM途经端口的MAC地址填写到链路路径记录字段中。Further, the starting port includes: an adding module for adding a link path record field in the CCM; and a setting module for setting the number of MPs passed by the CCM in the link path record field to 1, and setting The MAC address of the starting port is filled in the link path record field as the MAC address of the CCM transit port.

通过本发明,采用在CCM中携带用于指示CCM途经端口的链路路径记录字段的方式,解决了相关技术中使用连续性检测无法确定故障位置的问题,使得系统可以利用CCM来跟踪链路的状态,提高了系统的处理能力。Through the present invention, the method of carrying the link path record field used to indicate the port through which the CCM passes in the CCM solves the problem in the related art that the failure location cannot be determined by using the continuity detection, so that the system can use the CCM to track the link state, which improves the processing capability of the system.

附图说明Description of drawings

此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention and constitute a part of the application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention. In the attached picture:

图1是根据相关技术的CCM报文格式定义的示意图;FIG. 1 is a schematic diagram of the definition of a CCM message format according to the related art;

图2是根据相关技术的LTM报文格式定义的示意图;Fig. 2 is a schematic diagram according to the definition of the LTM message format of the related art;

图3是根据本发明实施例的链路的跟踪处理方法的流程图;Fig. 3 is a flow chart of a link tracking processing method according to an embodiment of the present invention;

图4是根据本发明实施例的链路的跟踪处理系统的结构框图;FIG. 4 is a structural block diagram of a link tracking processing system according to an embodiment of the present invention;

图5是根据本发明优选实施例的链路的跟踪处理系统的结构框图;Fig. 5 is a structural block diagram of a link tracking processing system according to a preferred embodiment of the present invention;

图6是根据本发明实施例的新增字段链路路径记录字段定义的示意图;以及FIG. 6 is a schematic diagram of the definition of a newly added field link path record field according to an embodiment of the present invention; and

图7是根据本发明实施例的CCM在组网条件下实现链路跟踪检测的示意图。Fig. 7 is a schematic diagram of link tracking and detection implemented by CCM under networking conditions according to an embodiment of the present invention.

具体实施方式Detailed ways

下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present invention will be described in detail with reference to the drawings and examples. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

根据本发明实施例,提供了一种链路的跟踪处理方法。图3是根据本发明实施例的链路的跟踪处理方法的流程图,如图3所示,该方法包括以下步骤:According to an embodiment of the present invention, a link tracking processing method is provided. Fig. 3 is a flow chart of a link tracking processing method according to an embodiment of the present invention. As shown in Fig. 3, the method includes the following steps:

步骤S302,接收端口接收连续性检测报文(CCM),其中,CCM中携带用于指示CCM途经端口的链路路径记录字段;Step S302, the receiving port receives a continuity detection message (CCM), wherein the CCM carries a link path record field for indicating that the CCM passes through the port;

步骤S304,接收端口更新链路路径记录字段的内容,并将更新后的链路路径记录字段携带到CCM中发送给下一个端口。Step S304, the receiving port updates the content of the link path record field, and carries the updated link path record field into the CCM and sends it to the next port.

通过上述步骤,采用在CCM中携带用于指示CCM途经端口的链路路径记录字段的方式,解决了相关技术中使用连续性检测无法确定故障位置的问题,使得系统可以利用CCM来跟踪链路的状态,提高了系统的处理能力。Through the above steps, the method of carrying the link path record field used to indicate the port through which the CCM is carried in the CCM solves the problem in the related art that the failure location cannot be determined by using the continuity detection, so that the system can use the CCM to track the link. state, which improves the processing capability of the system.

优选地,在步骤S304中,将更新后的链路路径记录字段携带到CCM中发送给下一个端口之前,接收端口可以根据链路路径记录字段确定CCM的当前链路状态,并根据CCM的当前链路状态进行提示。该方法可以有效地对CCM进行实时跟踪,并将状态通知用户,增强了系统的性能,提高了用户体验。Preferably, in step S304, before carrying the updated link path record field into the CCM and sending it to the next port, the receiving port can determine the current link state of the CCM according to the link path record field, and according to the current link state of the CCM The link status will be 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.

优选地,接收端口根据链路路径记录字段确定CCM的当前链路状态,并根据CCM的当前链路状态进行提示包括:根据链路路径记录字段中CCM途经端口的MAC地址和接收端口的MAC地址确定CCM的链路是否成环,并在CCM的链路成环的情况下,产生相应的告警提示;和/或,将接口端口本次接收到的CCM中的链路路径记录字段与上一次接收到的CCM中的链路路径记录字段进行比较,确定CCM的链路是否改变,并在CCM的链路改变的情况下,产生相应的链路改变提示。该方法可以使得用户可以清楚地知道业务的路由状况,及时发现链路的问题,提高了系统的有效性和准确性。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: according to the MAC address of the port passed by the CCM in the link path record field and the MAC address of the receiving port Determine whether the link of the CCM is looped, and in the case of the link of the CCM, generate a corresponding alarm prompt; and/or, compare the link path record field in the CCM received by the interface port this time with the last time The link path record field in the received CCM is compared to determine whether the link of the CCM is changed, and if the link of the CCM is changed, a corresponding link change prompt is generated. The method can enable the user to know the routing status of the service clearly, discover link problems in time, and improve the validity and accuracy of the system.

优选地,在步骤S302之前,起始端口可以在CCM中添加链路路径记录字段,并将链路路径记录字段中的CCM途经的MP的个数置为1,以及将起始端口的MAC地址作为CCM途经端口的MAC地址填写到链路路径记录字段中。该方法简单实用、可操作性强。Preferably, before step S302, the initial port can add a link path record field in the CCM, and set the number of MPs passed by the CCM in the link path record field to 1, and set the MAC address of the initial port Fill in the link path record field as the MAC address of the port through which the CCM passes. The method is simple, practical and highly operable.

优选地,在步骤S304中,更新链路路径记录字段的内容还包括:在CCM的链路改变的情况下,将链路路径记录字段中的链路状态标识置为1;在CCM的链路没有改变的情况下,将链路路径记录字段中的链路状态标识置为0。该方法可以对CCM链路的路由状态进行检测,通知用户链路的改变,提高了系统处理能力。Preferably, in step S304, updating the content of the link path record field also includes: when the link of the CCM is changed, setting the link status identifier in the link path record field to 1; If there is no change, set the link state identifier in the link path record field to 0. The method can detect the routing state of the CCM link, notify the user of link changes, and improve the system processing capability.

优选地,在步骤S304中,接收端口更新链路路径记录字段的内容包括至少以下之一:修改CCM途经的MP的个数、修改CCM的链路状态标识、追加CCM途经端口的MAC地址。该方法简单实用、可操作性强。Preferably, in step S304, the content of the link path record field updated by the receiving port includes at least one of the following: modifying the number of MPs passed by the CCM, modifying the link state identifier of the CCM, and adding the MAC address of the port passed by the CCM. The method is simple, practical and highly operable.

对应于上述方法,本发明实施例还提供了一种链路的跟踪处理系统。图4是根据本发明实施例的链路的跟踪处理系统的结构框图,如图4所示,该系统40包括一个起始端口42、一个或多个中间端口44和一个目的端口46,其中,中间端口44包括:接收模块442,用于接收连续性检测报文CCM,其中,CCM中携带用于指示CCM途经端口的链路路径记录字段;更新模块444,耦合至接收模块442,用于更新链路路径记录字段的内容;以及发送模块,用于将更新后的链路路径记录字段携带到CCM中发送给下一个中间端口或目的端口。Corresponding to the above method, an embodiment of the present invention further provides a link tracking processing system. Fig. 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 starting port 42, one or more intermediate ports 44 and a destination port 46, wherein, The intermediate port 44 includes: a receiving module 442, configured to receive a continuity detection message CCM, wherein the CCM carries a link path record field used to indicate the port through which the CCM passes; an updating module 444, coupled to the receiving module 442, for updating The content of the link path record field; and a sending module, configured to carry the updated link path record field into the CCM and send it to the next intermediate port or destination port.

通过上述系统40,采用在CCM中携带用于指示CCM途经端口的链路路径记录字段的方式,解决了相关技术中使用连续性检测无法确定故障位置的问题,使得系统可以利用CCM来跟踪链路的状态,提高了系统的处理能力。Through the above system 40, the method of carrying the link path record field in the CCM to indicate the port that the CCM passes through solves the problem in the related art that the failure location cannot be determined by using the continuity detection, so that the system can use the CCM to track the link The status of the system improves the processing capacity of the system.

需要说明的是,这里所指的起始端口42、中间端口44和目的端口46是针对某个CC报文(CCM)来说的,其中,CC报文的从起始端口42发起,通过一个或多个中间端口44至目的端口46结束。对于环状链路的情况,起始端口42也可能是目的端口46,并且,环状链路中的每个端口都有可能是某一次CC报文的发起方(即,起始端口42)。It should be noted that the initial port 42, intermediate port 44, and destination port 46 referred to here are for a certain CC message (CCM), wherein, the CC message is initiated from the initial port 42 and passed through a or multiple intermediate ports 44 to destination ports 46 end. In the case of a ring link, the starting 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 (that is, the starting port 42) .

图5是根据本发明优选实施例的链路的跟踪处理系统的结构框图,如图5所示,中间端口44还包括:提示模块446,耦合至更新模块444,用于根据链路路径记录字段确定CCM的当前链路状态,并根据CCM的当前链路状态进行提示。Fig. 5 is the structural block diagram of the tracking processing system of the link according to the preferred embodiment of the present invention, as shown in Fig. 5, the intermediate port 44 also includes: prompting module 446, is coupled to updating module 444, is used for recording field according to link path Determine the current link state of the CCM, and give a prompt according to the current link state of the CCM.

优选地,提示模块446还用于根据链路路径记录字段中CCM途经端口的MAC地址和接收端口的MAC地址确定CCM的链路是否成环,并在CCM的链路成环的情况下,产生相应的告警提示;和/或,将接口端口本次接收到的CCM中的链路路径记录字段与上一次接收到的CCM中的链路路径记录字段进行比较,确定CCM的链路是否改变,并在CCM的链路改变的情况下,产生相应的链路改变提示。Preferably, the prompting module 446 is also used to determine whether the link of the CCM is looped according to the MAC address of the CCM passing port and the MAC address of the receiving port in the link path record field, and when the link of the CCM is looped, generate Corresponding alarm prompts; and/or, comparing the link path record field in the CCM received by the interface port this time with the link path record field in the last received CCM to determine whether the link of the CCM has changed, And when the link of the CCM is changed, a corresponding link change prompt is generated.

优选地,起始端口42包括:添加模块422,用于在CCM中添加链路路径记录字段;以及设置模块424,耦合至添加模块422和接收模块442,用于将链路路径记录字段中的CCM途经的MP的个数置为1,以及将起始端口的MAC地址作为CCM途经端口的MAC地址填写到链路路径记录字段中。Preferably, the starting port 42 includes: an adding module 422 for adding a link path record field in the CCM; and a setting module 424 coupled to the adding module 422 and the receiving module 442 for adding the link path record field to The number of MPs passed by the CCM is set to 1, and the MAC address of the initial port is filled in the link path record field as the MAC address of the port passed by the CCM.

下面结合优选实施例和附图对上述实施例的实现过程进行详细说明。The implementation process of the above-mentioned embodiments will be described in detail below in conjunction with preferred embodiments and accompanying drawings.

优选实施例一Preferred embodiment one

本实施例将CC检测连通性和LT链路跟踪检测结合起来,在CC协议报文(即,CCM)中增加字段来实现LT的功能,实时地检测链路路径。如果检测到有链路不通,就可以启动链路保护,切换到保护链路中;如果检测到有链路成环,可以产生告警提示;如果检测到有链路改变,也可以做出链路改变提示。In this embodiment, the CC detection connectivity and the LT link tracking detection are combined, and a field is added in the CC protocol message (that is, CCM) to realize the function of the LT, and the link path is detected in real time. If a link failure is detected, link protection can be activated and switched to the protection link; if a link loop is detected, an alarm prompt can be generated; if a link change is detected, link protection can also be made Change prompt.

图6是根据本发明实施例的新增字段链路路径记录字段定义的示意图,如图6所示,可以在CCM报文中增加一个TLV字段,这里叫链路路径记录字段(Link TraceRecord TLV),记录经过的MP的MAC地址。例如,CCM报文途径的每个MP,都将端口的MAC地址增加到这个TLV字段中,直接保存,这样途经的MP所收到的报文,都知道CCM报文以前经过的所有路径。Fig. 6 is a schematic diagram of the definition of the newly added field link path record field according to the embodiment of the present invention. As shown in Fig. 6, a TLV field can be added in the CCM message, which is called link path record field (Link TraceRecord TLV) here , record the MAC address of the passing MP. For example, each MP on the path of the CCM message adds the MAC address of the port to the TLV field and saves it directly. In this way, the packets received by the passing MP know all the paths that the CCM message has passed before.

在具体实施过程中,本实施例中链路的跟踪处理方法可以包括如下步骤:In the specific implementation process, the link tracking processing method in this embodiment may include the following steps:

步骤1,起始端口(端口1)发送CCM报文,报文中链路路径记录字段包含了端口1的MAC地址MAC1,还有经过的MP个数1。In step 1, the starting port (port 1) sends a CCM message, and the link path record field in the message includes the MAC address MAC1 of port 1 and the number 1 of MPs passed through.

步骤2,CCM报文随业务到端口2,端口2接收解析CCM报文,将有用信息保存,在修改CCM报文中的链路路径记录字段,在字段尾部增加端口2的MAC地址MAC2,将MP个数自增1,然后随业务转发到下一个端口3。Step 2: The CCM message goes to port 2 along with the service. Port 2 receives and analyzes the CCM message, and saves the useful information. After modifying the link path record field in the CCM message, add the MAC address MAC2 of port 2 at the end of the field. The number of MPs is incremented by 1, and then forwarded to the next port 3 along with the business.

在网络中的节点(即,中间端口)重复步骤2,发送到目的端口,目的端口将CCM报文解析,从CCM报文中的链路路径记录字段,就可以获得业务经过的所有端口的MAC地址。这样可以知道这条业务经过的所有端口路径。Repeat step 2 at the node in the network (that is, the intermediate port), send it to the destination port, and the destination port will analyze the CCM message, and from the link path record field in the CCM message, you can obtain the MAC addresses of all ports that the service passes through address. In this way, all port paths through which this service passes can be known.

可见,CC连通性检测是定时地发送报文来进行检测连通行,LT是要启用实例后才上报一次链路路径的结果,按照本实施例的方案,可以不用人工操作,实时对链路进行跟踪,快速地查找定位故障端口,还可以根据链路跟踪结果,得到网络的变化情况,即,如果链路保护,STP这类需要知道网络路径的协议,可以直接根据已经得到的链路路径来进行操作,不需要重新计算获取路径,这样可以提高系统的处理效率。It can be seen that the CC connectivity detection is to periodically send messages to detect the connectivity, and the LT is to report the result of the link path once after the instance is enabled. According to the solution of this embodiment, the link can be monitored in real time without manual operation. Tracking, quickly find and locate faulty ports, and obtain network changes based on link tracking results, that is, if link protection, protocols such as STP that need to know the network path, can be directly based on the link path that has been obtained. The operation does not need to recalculate the acquisition path, which can improve the processing efficiency of the system.

优选实施例二Preferred embodiment two

图7是根据本发明实施例的CCM在组网条件下实现链路跟踪检测的示意图,如图7所示,各个端口的MAC地址在图中已标明,在本实施例中的检测源端口(即,起始端口)到目的端口的连通性检查的过程中,业务经过端口2和端口3转发,经过网络发送到目的端口。如图6所示,MPNum表示途经MP的个数,首个可以填为1;Link Status标识链路是否改变,0标识不改变,1表示有改变。Fig. 7 is a schematic diagram of link tracking detection implemented by CCM under networking conditions according to an embodiment of the present invention. As shown in Fig. 7, the MAC addresses of each port are marked in the figure, and the detection source port in this embodiment ( That is, during the connectivity check process from the starting 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, MPNum indicates the number of passing MPs, and the first one can be filled with 1; Link Status indicates whether the link has changed, 0 indicates no change, and 1 indicates change.

在具体实施过程中,链路的跟踪处理方法可以包括如下步骤:In the specific implementation process, the tracking processing method of the link may include the following steps:

步骤S702,目的端口向端口1(即,起始端口)发送CCM报文,端口1接收到该CCM报文后,在报文中增加字段。例如,对于首个MEP,可以在MPNum填写1,在Link Status填写0,在MAC address1填写本端端口的MAC地址00-00-00-00-00-01。In step S702, the destination port sends a CCM message to port 1 (ie, the starting port), and port 1 adds a field to the message after receiving the CCM message. For example, for the first MEP, you can fill in 1 in MPNum, 0 in Link Status, and fill in MAC address 00-00-00-00-00-01 of the local port in MAC address1.

步骤S704,在端口2收到了CCM报文,对报文进行解析处理,并做入库操作。端口2向端口3发送CCM报文,修改链路路径记录字段。例如,MP Num=2,MACaddress2为端口2的MAC地址00-00-00-00-00-02。In step S704, the CCM message is received at the port 2, and the message is analyzed 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, MACaddress2 is the MAC address 00-00-00-00-00-02 of port 2.

步骤S706,在端口3收到了CCM报文,按照CC协议处理规则进行判断,并做入库操作。转发到下面一个端口时,MP Num自增1,在链路路径记录字段尾部添上端口3的MAC地址00-00-00-00-00-00-03。In step S706, when the CCM message is received at port 3, it is judged according to the processing rules of the CC protocol, and the storage operation is performed. When forwarding to the next port, the MP Num is incremented by 1, and the MAC address of port 3, 00-00-00-00-00-00-03, is added at the end of the link path record field.

步骤S708,网络中的所有端口处理和步骤S404-S406类似。为了保证字节过长,可以设定Mp_Num<=32,如果大于32,MP Num=0,MAC地址全部清空,然后在MAC address 1字节填上本端端口的MAC地址。Step S708, all port processing in the network is similar to steps S404-S406. In order to ensure that the bytes are too long, you can set Mp_Num<=32, if it is greater than 32, MP Num=0, all MAC addresses are cleared, and then fill in the MAC address of the local port in the MAC address 1 byte.

步骤S710,如此多次转发,在终点(即,目的端口)的话,将CCM报文处理完就丢弃掉,不再转发。例如,提取链路路径记录字段,并做入库操作,就可以知道CCM途经了那些MAC地址,从而得知MAC网络的连接情况。Step S710, so many times of forwarding, if at the end point (that is, the destination port), the CCM message is discarded after being processed and not forwarded again. For example, by extracting the link path record field and performing storage operations, you can know which MAC addresses the CCM passes through, and thus know the connection status of the MAC network.

优选地,在步骤S704-S710中,可以检查链路路径记录字段中的MAC地址,如果一样,表示链路成环,可能会引起广播风暴,做出相应的提示。也可以检查里面的MAC地址记录时候有改变,若有改变,表示数据经过的路径是不一样的,这时候可以将Link Status置为1,如果和上次一样表示链路没有改变,Link Status置为0,还可以提示用户该链路的路径状态已变更。Preferably, in steps S704-S710, the MAC address in the link path record field can be checked, if the same, it means that the link is looped, which may cause a broadcast storm, and a corresponding prompt is made. You can also check if the MAC address record inside has changed. If there is a change, it means that the path of the data is different. At this time, you can set the Link Status to 1. If it is the same as last time, it means that the link has not changed, and the Link Status is set to 1. If it is 0, it can also prompt the user that the path status of the link has changed.

综上所述,本发明实施例可以基于IEEE802.1ag标准的以太网进行运营、管理和维护,是一种CFM中实现链路跟踪监测的方法,将链路跟踪的功能融合进CC,可以实时地对链路进行跟踪,解决了相关技术中使用连续性检测无法确定故障位置的问题,提高了系统的处理能力。To sum up, the embodiment of the present invention can be operated, managed and maintained based on the IEEE802. The link is tracked accurately, which solves the problem that the fault location cannot be determined by using the continuity detection in the related technology, and improves the processing capacity of the system.

上述的本发明的各模块或各步骤可以在通用的计算装置上来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Each module or each step of the present invention described above can be implemented on a general-purpose computing device, and they can be concentrated on a single computing device, or distributed on a network formed by a plurality of computing devices, optionally, they can use computing device-executable program code, so that they can be stored in a storage device to be executed by a computing device, and in some cases, the steps shown or described can be performed in an order different from that shown or described herein, or They are realized by making them into respective integrated circuit modules, or making a plurality of modules or steps among them into a single integrated circuit module. As such, the present invention is not limited to any specific combination of hardware and software.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (8)

Translated fromChinese
1.一种链路的跟踪处理方法,其特征在于,包括以下步骤:1. a tracking processing method of a link, characterized in that, comprising the following steps:接收端口接收连续性检测报文CCM,其中,所述CCM中携带用于指示所述CCM途经端口的链路路径记录字段,并且所述CCM用于跟踪所述链路的状态;The receiving port receives the continuity detection message CCM, wherein the CCM carries a link path record field for indicating that the CCM passes through the port, and the CCM is used to track the state of the link;所述接收端口更新所述链路路径记录字段的内容,并将更新后的所述链路路径记录字段携带到所述CCM中发送给下一个端口,The receiving port updates the content of the link path record field, and carries the updated link path record field into the CCM and sends it to the next port,将更新后的所述链路路径记录字段携带到所述CCM中发送给所述下一个端口之前,还包括:Before carrying the updated link path record field into the CCM and sending it to the next port, it also includes:所述接收端口根据所述链路路径记录字段确定所述CCM的当前链路状态,并根据所述CCM的当前链路状态进行提示。The receiving port determines the current link state of the CCM according to the link path record field, and prompts according to the current link state of the CCM.2.根据权利要求1所述的方法,其特征在于,所述接收端口根据所述链路路径记录字段确定所述CCM的当前链路状态,并根据所述CCM的当前链路状态进行提示包括:2. The method according to claim 1, wherein 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 :根据所述链路路径记录字段中所述CCM途经端口的MAC地址和所述接收端口的MAC地址确定所述CCM的链路是否成环,并在所述CCM的链路成环的情况下,产生相应的告警提示;和/或,Determine whether the link of the CCM is looped according to the MAC address of the port passing through the CCM and the MAC address of the receiving port in the link path record field, and if the link of the CCM is looped, Generate corresponding warning prompts; and/or,将所述接收端口本次接收到的所述CCM中的所述链路路径记录字段与上一次接收到的CCM中的链路路径记录字段进行比较,确定所述CCM的链路是否改变,并在所述CCM的链路改变的情况下,产生相应的链路改变提示。comparing the link path record field in the CCM received by the receiving port this time with the link path record field in the last received CCM to determine whether the link of the CCM has changed, and When the link of the CCM is changed, a corresponding link change prompt is generated.3.根据权利要求2所述的方法,其特征在于,所述接收端口接收所述CCM之前,还包括:3. The method according to claim 2, wherein, before receiving the CCM at the receiving port, further comprising:起始端口在所述CCM中添加所述链路路径记录字段,并将所述链路路径记录字段中的所述CCM途经的维护点的个数置为1,以及将所述起始端口的MAC地址作为所述CCM途经端口的MAC地址填写到所述链路路径记录字段中。The starting port adds the link path record field in the CCM, and sets the number of maintenance points passed by the CCM in the link path record field to 1, and sets the The MAC address is filled in the link path record field as the MAC address of the port passed by the CCM.4.根据权利要求3所述的方法,其特征在于,更新所述链路路径记录字段的内容还包括:4. The method according to claim 3, wherein updating the content of the link path record field further comprises:在所述CCM的链路改变的情况下,将所述链路路径记录字段中的链路状态标识置为1;在所述CCM的链路没有改变的情况下,将所述链路路径记录字段中的链路状态标识置为0。When the link of the CCM is changed, set the link state identifier in the link path record field to 1; if the link of the CCM is not changed, set the link path record The link state flag in the field is set to 0.5.根据权利要求1所述的方法,其特征在于,所述接收端口更新所述链路路径记录字段的内容包括至少以下之一:修改所述CCM途经的维护点的个数、修改所述CCM的链路状态标识、追加所述CCM途经端口的MAC地址。5. The method according to claim 1, wherein updating the content of the link path record field by the receiving port includes at least one of the following: modifying the number of maintenance points passed by the CCM, modifying the The link state identifier of the CCM, and the MAC address of the port passed by the CCM is added.6.一种链路的跟踪处理系统,其特征在于,包括一个起始端口、一个或多个中间端口和一个目的端口,其中,所述中间端口包括:6. A tracking processing system for a link, characterized in that it comprises a starting port, one or more intermediate ports and a destination port, wherein the intermediate ports include:接收模块,用于接收连续性检测报文CCM,其中,所述CCM中携带用于指示所述CCM途经端口的链路路径记录字段,并且所述CCM用于跟踪所述链路的状态;A receiving module, configured to receive a continuity detection message CCM, wherein the CCM carries a link path record field used to indicate the port through which the CCM passes, and the CCM is used to track the state of the link;更新模块,用于更新所述链路路径记录字段的内容;以及An update module, configured to update the content of the link path record field; and发送模块,用于将更新后的所述链路路径记录字段携带到所述CCM中发送给下一个所述中间端口或所述目的端口,a sending module, configured to carry the updated link path record field into the CCM and send it to the next intermediate port or the destination port,所述中间端口还包括:The intermediate port also includes:提示模块,用于根据所述链路路径记录字段确定所述CCM的当前链路状态,并根据所述CCM的当前链路状态进行提示。A prompting module, configured to determine the current link state of the CCM according to the link path record field, and give a prompt according to the current link state of the CCM.7.根据权利要求6所述的系统,其特征在于,所述提示模块还用于根据所述链路路径记录字段中所述CCM途经端口的MAC地址和接收端口的MAC地址确定所述CCM的链路是否成环,并在所述CCM的链路成环的情况下,产生相应的告警提示;和/或,将所述接收端口本次接收到的所述CCM中的所述链路路径记录字段与上一次接收到的CCM中的链路路径记录字段进行比较,确定所述CCM的链路是否改变,并在所述CCM的链路改变的情况下,产生相应的链路改变提示。7. The system according to claim 6, wherein the prompting module is further configured to determine the address of the CCM according to the MAC address of the CCM passing port and the MAC address of the receiving port in the link path record field. Whether the link is looped, and if the link of the CCM is looped, a corresponding alarm prompt is generated; and/or, the link path in the CCM received by the receiving port this time The record field is compared with the link path record field in the last received CCM to determine whether the link of the CCM has changed, and if the link of the CCM has changed, a corresponding link change prompt is generated.8.根据权利要求7所述的系统,其特征在于,所述起始端口包括:8. The system according to claim 7, wherein the initial port comprises:添加模块,用于在所述CCM中添加所述链路路径记录字段;以及Adding module for adding the link path record field in the CCM; and设置模块,用于将所述链路路径记录字段中的所述CCM途经的维护点的个数置为1,以及将所述起始端口的MAC地址作为所述CCM途经端口的MAC地址填写到所述链路路径记录字段中。A setting module, configured to set the number of maintenance points passed by the CCM in the link path record field to 1, and fill in the MAC address of the initial port as the MAC address of the port passed by the CCM In the link path record field.
CN201010592163.5A2010-12-162010-12-16Link tracking processing method and systemExpired - Fee RelatedCN102571464B (en)

Priority Applications (2)

Application NumberPriority DateFiling DateTitle
CN201010592163.5ACN102571464B (en)2010-12-162010-12-16Link tracking processing method and system
PCT/CN2011/080315WO2012079405A2 (en)2010-12-162011-09-28Link trace processing method and system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201010592163.5ACN102571464B (en)2010-12-162010-12-16Link tracking processing method and system

Publications (2)

Publication NumberPublication Date
CN102571464A CN102571464A (en)2012-07-11
CN102571464Btrue CN102571464B (en)2015-06-03

Family

ID=46245153

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201010592163.5AExpired - Fee RelatedCN102571464B (en)2010-12-162010-12-16Link tracking processing method and system

Country Status (2)

CountryLink
CN (1)CN102571464B (en)
WO (1)WO2012079405A2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103684887B (en)*2013-12-312017-01-04杭州华三通信技术有限公司A kind of method and apparatus connecting the generation of error detection group network system hardware table item
CN105450469A (en)*2015-12-012016-03-30许继电气股份有限公司Method for detecting faults of rapid communication bus in industrial equipment
CN107784065B (en)*2017-08-172021-04-27平安壹钱包电子商务有限公司Service data tracking method and device, computer equipment and storage medium
CN110380893B (en)*2019-06-192022-08-12深圳壹账通智能科技有限公司Communication fault analysis method and device and block chain communication platform
CN114338568B (en)*2020-09-302024-03-01中车株洲电力机车研究所有限公司Data stream statistics method and Ethernet switch

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101174975A (en)*2006-11-032008-05-07华为技术有限公司 Method and system for link fault location in Ethernet
CN101771614A (en)*2010-01-152010-07-07瑞斯康达科技发展股份有限公司DHCP route tracing method and DHCP relay equipment
CN101820368A (en)*2010-04-082010-09-01华为技术有限公司Ethernet link failure detection method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US8054751B2 (en)*2004-05-102011-11-08Alcatel LucentRemote access link fault indication mechanism
US8184526B2 (en)*2008-09-152012-05-22Ciena CorporationSystems and methods for Connectivity Fault Management extensions for automated activation of services through association of service related attributes

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101174975A (en)*2006-11-032008-05-07华为技术有限公司 Method and system for link fault location in Ethernet
CN101771614A (en)*2010-01-152010-07-07瑞斯康达科技发展股份有限公司DHCP route tracing method and DHCP relay equipment
CN101820368A (en)*2010-04-082010-09-01华为技术有限公司Ethernet link failure detection method and device

Also Published As

Publication numberPublication date
WO2012079405A2 (en)2012-06-21
WO2012079405A3 (en)2012-11-01
CN102571464A (en)2012-07-11

Similar Documents

PublicationPublication DateTitle
US8085670B2 (en)Method and system for originating connectivity fault management (CFM) frames on non-CFM aware switches
CN103401726B (en)Network path detection method and device, system
CN103580894B (en)Method, equipment and the system of Operations, Administration and Maintenance OAM configurations
CN104301141B (en)A kind of method, apparatus and system for preserving configuration information
CN106789625B (en)Loop detection method and device
JP7430224B2 (en) Packet processing methods and gateway devices
CN102647312B (en)A kind of detection method of whole net multicast topology and device
US11139995B2 (en)Methods and router devices for verifying a multicast datapath
CN103004141B (en)Network loop detection method, equipment and system
CN103078791B (en)OAM message processing method, equipment and system
WO2007073649A1 (en)A method and system for obtaining path maximum transfer unit in network
CN106487572A (en)The processing method and processing device of message
WO2015143810A1 (en)Node fault detection method and apparatus
CN102571464B (en)Link tracking processing method and system
CN110166311B (en) Method, apparatus and network system for measuring network performance
WO2022257854A1 (en)Message publishing method and apparatus, and forwarding path processing method and apparatus
WO2016062165A1 (en)Method and apparatus for implementing operations, administration and maintenance function
CN111510331B (en)Network fault analysis method, device, server and storage medium
CN109412851B (en)Link layer path detection method, device and system
WO2013075476A1 (en)Ethernet link detection method and device
CN103457794B (en)Method and system for confirming faults of IP bearer network
CN108259442B (en)Slow protocol message processing method and related device
CN111431652B (en)Self-adaptive main clock competition method and system for multi-stage clock synchronization network
CN105450432A (en)Method for positioning port connection error and associated equipment
CN112350844B (en) Methods and devices for data transmission

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant
CF01Termination of patent right due to non-payment of annual fee
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20150603

Termination date:20191216


[8]ページ先頭

©2009-2025 Movatter.jp