CN102215130A - CFD (connectivity fault detection) protocol configuration method and device thereof - Google Patents

CFD (connectivity fault detection) protocol configuration method and device thereof Download PDF

Info

Publication number
CN102215130A
CN102215130A CN 201110162245 CN201110162245A CN102215130A CN 102215130 A CN102215130 A CN 102215130A CN 201110162245 CN201110162245 CN 201110162245 CN 201110162245 A CN201110162245 A CN 201110162245A CN 102215130 A CN102215130 A CN 102215130A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
device
configuration
port
maintenance
cfd
Prior art date
Application number
CN 201110162245
Other languages
Chinese (zh)
Other versions
CN102215130B (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

Links

Abstract

The invention discloses a CFD (connectivity fault detection) protocol configuration method and a device thereof. The method comprises the followings steps: when maintenance domains with the same maintenance domain levels are configured for devices in a VLAN (virtual local area network), a primary device and each slave device respectively receive configuration orders of maintenance domain level, and the maintenance domain level of the device is configured according to the orders; the primary device in the VLAN transmits CC (continuity check) massages with the maintenance domain level, each slave device returns to the LT (link trace) massage after receiving the CC massages, wherein an intermediate device which receives the LT massage returns an LTR (link trace reply) massage to a transmitting party device of the LT massage; the primary device configures an outbound maintenance end point on a port which transmits CC massages, ports of slave devices which receive maintenance intermediate points and reply LTR massage exist, the maintenance intermediate point is configured on the port, and maintenance intermediate points are configured on other ports which have the same maintenance domain levels with the maintenance intermediate points; and other slave devices configure outbound maintenance end points on ports which receive CC massages and do not reply the LTR massages. By adopting the method and device provided by the invention, the auto configuration of CFD protocol can be realized.

Description

一种CFD协议配置方法及其装置 One kind of protocol configuration method and apparatus CFD

技术领域 FIELD

[0001] 本发明涉及通信技术领域,尤其涉及一种CFD协议配置方法及其装置。 [0001] The present invention relates to communication technologies, and particularly to a method and apparatus CFD protocol configuration. 背景技术 Background technique

[0002] CFD 是Connectivity Fault Detection(连通错误检测)的简称,遵循IEEE802. lag 的CFM(Connectivity Fault Management,连通错误管理)协议和ITU-T 的Y. 1731协议。 [0002] CFD is Connectivity Fault Detection (CFD) referred to follow IEEE802. Lag of CFM (Connectivity Fault Management, error management communication) protocol of ITU-T, and Y. 1731 protocol. 它是一种二层链路上基于VLAN(Virtual Local Area Network,虚拟局域网) 的端到端0AM(Operations,Administration and Maintenance,操作、管理和维护)机制, 主要用于在二层网络中检测链路连通性、确认故障并确定故障发生的位置。 It is based on a Layer link VLAN (Virtual Local Area Network, a virtual local area network) end to end 0AM (Operations, Administration and Maintenance, Operations, Administration and Maintenance) mechanisms, mainly used in Layer 2 network detection chain connectivity path, and determine the location of the fault to confirm failure.

[0003] 下面对CFD协议涉及到的概念进行简单介绍。 [0003] The following relates to the concept of CFD to be briefly described.

[0004] 维护域(Maintenance Domain, MD):主要是用来限定执行连通错误检测工作的网络范围,维护域使用“维护端点”来限定维护域的范围,维护域之间用“维护域名”来相互区别。 [0004] Maintenance Domain (Maintenance Domain, MD): mainly used to define the scope of performing network communication error detecting operation, the MD using "MEP" to limit the scope of the MD, between domains with maintenance "Maintenance Domain" to distinguished from each other. 为了准确定位故障网络的位置,维护域引入了维护域级别(Level)的概念,维护域级别数值越大,该维护域的范围也越大,较小级别的维护域可以被嵌套在较大级别的维护域中, 但是两者的范围不能是交叉的。 In order to accurately locate the position of the fault in the network, it introduced the concept of MD MD level (Level), the greater the maintenance domain level value, the greater the range of the maintenance domain level of maintenance domain of the smaller can be nested in the larger level MDs, but the scope of the two can not be crossed.

[0005] 维护集(Maintenance Association, ΜΑ):在一个维护域中,用户可以根据需要设置一个或者多个维护集,一般来说维护集服务于一个VLAN,包含维护域中的复数个“维护点”,维护集用“维护域名,,+ “维护集名,,来相互区别。 [0005] MA (Maintenance Association, ΜΑ): a maintenance domain, or the user can set a plurality of sets necessary to maintain, in general MA serve each VLAN, comprising a plurality of "Maintenance MDs "maintenance set with the" MD name + ,, ",, MA name to distinguish from each other.

[0006] 服务实例(Service Instance, Si):服务实例是服务接入点的集合,它属于某个维护域中的某个维护集。 [0006] Examples of services (Service Instance, Si): a service access point service instance is set, it belongs to a certain set of maintenance MDs. 服务实例的名称用一个整数标识,代表了以指定的一个维护集为对象的连通检测工作实体。 Name of the service instance identified by an integer, representing the communication detection operation of a maintenance entity to specify a set of objects. 服务实例所在的维护域和维护集,确定了服务实例要处理的CFD 协议报文级别和所属VLAN。 Maintenance and MA, CFD protocol packets to determine the level and the VLAN service instance to process service instance.

[0007] 维护点(Maintenance Point, MP):维护点被配置在维护域中的设备端口上,隶属于维护集,分为“维护端点” (Maintenance association End Point, MEP)和“维护中间点,,(Maintenance association Intermediate Point, MIP)。其中: [0007] Maintenance (Maintenance Point, MP): Maintenance and device ports are arranged on the maintenance domain, belonging MA, into "MEP" (Maintenance association End Point, MEP) and "MIPs, ., (Maintenance association Intermediate Point, MIP) which:

[0008] 维护端点:使用MEP ID(ID必须是整数)进行标识,被配置在指定的服务实例中, 用来标识维护对象网络的边界。 [0008] MEP: using MEP ID (ID must be an integer) identified, is arranged in the designated service instance, the boundary of the object is used to identify the network maintenance. 维护端点所在服务实例,确定了维护端点处理和转发报文的级别。 MEPs where the service instance to determine the end-point processing and packet forwarding level maintenance. 维护端点只接受维护域级别小于等于自身级别的报文。 MEPs will only accept an MD level less than or equal their level of messages. 维护端点又分为内向(Inbound)和外向(Outbound)端点。 MEPs divided into inward (Inbound) and outgoing (Outbound) endpoints. 两者区别是,内向端点是通过本设备上的其他端口向外部发送报文,而外向端点则是通过本身端口发送报文。 Is the difference between the two, it is within the endpoint by sending a packet to other ports on the device, while the outgoing end is sending the packets by itself.

[0009] 维护中间点:维护中间点位于维护域内部,不能主动发出CFD协议报文,也没有特别的标识来相互区别,但可以处理和响应CFD协议报文。 [0009] MIPs: MIPs located within the maintenance unit, CFD can not actively send packets, it is not particularly distinguished from each other identifier, but may process and respond to protocol packets CFD. 维护中间点所属的服务实例确定了该维护中间点所接收报文的VLAN属性和级别。 MIPs service instance belongs to VLAN attribute and determines the level of the MIPs of the received packets.

[0010] 维护端点列表(MEP list):维护端点列表是限定维护服务实例中所有可能出现的维护端点集合,它包含了服务实例中所有维护端点的命名范围,同一服务实例中的任何不同设备上的所有维护端点,都必须包含在这个列表中,且相互之间的MEP ID不能重复。 [0010] MEP list (MEP list): MEP list is defined maintaining all endpoints collections maintain possible service instance, which contains the service instance named in All MEP, any of various devices in the same service instance on All MEPs, must be included in this list, and mutual MEP ID can not be repeated. 如果MEP根据接收到的CFD报文发现源MEP不在该端点的MEP列表中,该报文将被丢弃。 If MEP CFD based on the received packet is not found in the source MEP endpoint MEP list, the packet is discarded.

[0011] CFD功能主要包括: [0011] CFD features include:

[0012] 连续性检测功能:周期性的向同一服务实例内的维护端点发送报文。 [0012] continuity check function: periodically sends a packet to MEPs in the same service instance. 在初次收到远端MEP的CC报文(Continuity Check Message,连续性检测报文)时,本地MEP会认为两者建立邻居,将该远端MEP加入到自己的Remote MEP列表(即远端MEP列表)中。 At first received remote MEP CC message (Continuity Check Message, continuity check messages), the local MEP would think that the two neighbors established, the remote MEP added to their Remote MEP list (ie remote MEP List. 如果以后有连续3. 5个报文发送周期未收到远端报文,则认为连接中断,并且输出日志报告。 If later there is 3.5 consecutive packet sending period does not receive the distal end of the packet, then that connection is interrupted, and the output log reports.

[0013] 环回检测功能:该功能类似Ping命令。 [0013] The loop detection function: This function is similar to the Ping command. 从本地MEP发送LB报文(Loophck Message,环回报文)向指定远端,远端MEP收到以后返回一个LBR(Loopl3ack R印ly,环回应答)报文到该本地MEP。 LB transmission packets (Loophck Message, loopback packets) from a local to a specified remote MEP, returns after a remote MEP receives LBR (Loopl3ack R LY printing, ring back a reply) packet to the local MEP.

[0014] 链路跟踪功能:从本地MEP发送LT (Link Trace,链路跟踪)报文,方向为一个远端MEP。 [0014] Tracking link: sending LT (Link Trace, LT) message from the local MEP, the direction of the distal end of a MEP. 每当该报文经过MIP时,都命令MIP向发送LT报文的源MEP回复一个包含MIP桥MAC (Medium Access Control,媒体接入控制)地址的LTR(Link Trace R印ly,链路跟踪应答)报文。 Whenever a message passes MIP, MIP commands are sent to the LT as the source MEP a reply containing MIP bridge MAC LTR (Medium Access Control, media access control) address (Link Trace R printed ly, the response track link ) packets. 这样就可以确定这条链路的路径。 This will determine the path of this link.

[0015] 警告抑制功能:为了减少发现网络故障以后出现的上报警报数量,在3. 5个CC 报文发送周期内未收到远端维护端点发来的CC报文,便开始周期性地发送AIS(Alarm Indication Signal,告警指示信号)报文,发送方向与CC报文相反。 [0015] Warning suppression function: In order to reduce the number of alarms reported by network failure occurring later discovered, within 3.5 CC packet sending period is not received from the remote MEP sent CC packets transmitted periodically starts AIS (alarm indication signal, alarm indication signal) message and sends CC messages opposite direction. 维护端点在收到AIS 报文后,会抑制本端的故障告警,并继续发送AIS报文。 MEP after receiving AIS messages, fault alarm will inhibit this end, and continues to send AIS messages. 各维护端点如果在3. 5个CC报文发送周期内重新收到了CC报文,便停止发送AIS报文。 Each MEP if re-received CC messages within 3.5 CC packet sending period, it stops sending AIS messages.

[0016] 图1示出了一种组网架构,其中的4个被测设备(Device Under Test, DUT)分别为DUTl〜DUT4,维护域级别MD3所对应的维护域范围小于维护域级别MD5的维护范围。 [0016] FIG 1 illustrates a network architecture in which four test devices (Device Under Test, DUT) are DUTl~DUT4, MD level corresponding to MD3 MD MD level range is less than the MD5 scope of maintenance. 对图1中的4个DUT进行CFD协议配置后,当任意一条DUT间的链路断开时,该链路两端的直连DUT就会发生告警,这样就能判断出故障链路位置,从而方便了二层网络的维护管理。 After four in FIG. 1 the DUT CFD protocol configuration, when link disconnection between any one DUT, the DUT direct alarm will occur at both ends of the link, so that we can determine the fault location link so facilitate the maintenance and management of layer 2 network.

[0017] 目前所使用的CFD技术,在整个网络中的CFD部署和维护,全部依赖手动配置,即需要采用手工方式进行维护域名称、维护域级别、所属VLAN、维护端点列表、CFD使能、告警抑制使能、以太网使能等配置下发到全局,然后还要在设备的端口上配置维护端点名称、所属维护域、内/外向属性、连续性使能、维护端点使能等,以上配置需要在所有维护域设备上进行配置。 [0017] CFD techniques currently used, CFD deployment and maintenance of the entire network, all rely on manual configuration, which requires the use of manual methods to maintain the domain name maintenance domain level, belongs to VLAN, MEP list, CFD enabled, alarm suppression enabled, Ethernet configuration to enable the like issued to the global, then also arranged MEP name on the port device, those MD, inner / outgoing properties, enabling continuity, MEP enable the like, more configuration needs to be configured on all MD devices. 以下列出了一些常用的CFD协议配置命令,如图2所示,可在主机(Host)上输入这些CFD协议配置命令,并由Host发送给相应的DUT : The following lists some common CFD configuration commands, shown in Figure 2, of CFD to be input on the host (Host) configuration command sent by the Host to the corresponding DUT:

[0018] [DUTl]cfd enable [0018] [DUTl] cfd enable

[0019] 该命令是CFD使能命令,用于使能DUTl上的CFD功能; [0019] This command is a command to enable CFD, CFD for function can DUTl;

[0020] [DUTl]cfd ais enable [0020] [DUTl] cfd ais enable

[0021] 该命令是AIS使能命令,用于使能DUTl上的AIS功能; [0021] This command is a command to enable the AIS, AIS function for energy DUTl;

[0022] [DUTl]cfd md MD_A level 5 [0022] [DUTl] cfd md MD_A level 5

[0023] 该命令是维护域(MD)配置命令,用于配置DUTl的MD名为MD_A,维护域级别为5 ; [0023] This command is Maintenance Domain (MD) configuration commands to configure the MD DUTl MD_A named, as maintenance domain level 5;

[0024] [DUTl]cfd ma MA_Amd MD_A vlan 100 [0024] [DUTl] cfd ma MA_Amd MD_A vlan 100

[0025] 该命令是维护集(MA)配置命令,用于配置DUTl的MA名为MA_A,该MA属于维护域MD_A,服务于虚拟局域网vlan 100 ; [0025] This command is MA (MA) configuration commands to configure DUTl called MA MA_A, belonging to the maintenance domain MD_A MA, virtual local area network services in vlan 100;

[0026] [DUTl]cfd service-instance 1 md MD_Ama MA_A [0026] [DUTl] cfd service-instance 1 md MD_Ama MA_A

[0027] 该命令是服务实例配置命令,用于配置DUTl的服务实例id为1,属于维护域MD_A以及维护集MA_A; [0027] This command is a configuration command service instance for the service instance id for the configuration DUTl 1, belonging to the MD and MA MD_A MA_A;

[0028] [DUT1]cfd meplist 1 to 8000 service-instance 1 [0028] [DUT1] cfd meplist 1 to 8000 service-instance 1

[0029] 该命令是维护端点列表配置命令,用于配置DUTl的维护端点列表为腕plist 1, 其维护端点的命名范围为1 to 8000,属于服务实例service-instance 1 ; [0029] This command is a configuration command MEP list, for maintaining a list of the endpoint is configured DUTl wrist plist 1, named ranges which MEP is 1 to 8000, belonging to the service instance service-instance 1;

[0030] [DUT1-Pl]cfd mep 1001 service-instance 1 inbound [0030] [DUT1-Pl] cfd mep 1001 service-instance 1 inbound

[0031] 该命令是服务端点内向属性配置命令,用于将DUTl的Pl端口上属于服务实例service-instance 1的服务端点1001配置为内向服务端点; [0031] This command is arranged within the service endpoint attribute command, for instance belonging to a service on a service-instance service endpoint DUTl port Pl 1 1001 configured within the service endpoints;

[0032] [DUT1-P1]cfd mep service-instance 1 mep 1001 enable [0032] [DUT1-P1] cfd mep service-instance 1 mep 1001 enable

[0033] 该命令是服务端点使能命令,用于使能DUT1的P1端口上属于服务实例service-instance 1 的月艮务端点1001 ; [0033] This command is a command service endpoint enabled for service-instance service instance belongs to enable the port P1 of DUT1 that works to 1 January 1001 endpoint;

[0034] [DUT1-Pl]cfd ais-track link-status level 7 [0034] [DUT1-Pl] cfd ais-track link-status level 7

[0035] 该命令是EAIS链路级别配置命令,用于配置DUTl的Pl端口的AIS跟踪链路状态级别为7 ; [0035] This command is arranged EAIS link level commands for tracking link configuration DUTl the AIS state of the port Pl level 7;

[0036] [DUT1-Pl]cfd ais-track link-status period 60 [0036] [DUT1-Pl] cfd ais-track link-status period 60

[0037] 该命令是EAIS跟踪周期配置命令,用于配置DUTl的Pl端口的AIS跟踪链路状态的周期为60秒; [0037] This command is a configuration command cycle EAIS track for tracking link status AIS cycle configuration DUTl port Pl of 60 seconds;

[0038] [DUTl-PlJcfd ais-track link-status vlan 100 [0038] [DUTl-PlJcfd ais-track link-status vlan 100

[0039] 该命令是EAIS所属的VLAN配置命令,用于配置DUTl的Pl端口的EAIS跟踪链路状态所属的虚拟局域网为vlan 100。 [0039] This command is a configuration command EAIS belongs to VLAN, VLAN EAIS configured for tracking link status Pl DUTl port belongs vlan 100.

[0040] 对于规模庞大的网络,在应用CFD协议时,一般会将所有设备分成若干的维护域, 然后针对这些维护域的隶属关系配置维护域级别以及其他配置信息,该配置过程烦琐,如果在配置过程中出现配置错误就会造成CFD邻居无法建立。 [0040] For large-scale network, in the application of CFD protocol, all equipment will be divided into several general maintenance of the domain, and then configure domain-level maintenance, and other configuration information for the affiliation of these MDs, the configuration process is cumbersome, if configuration error occurred during configuration will result in CFD neighbor can not be established. 在网络规模较大、设备较多的情况下,很难排查出错误原因。 In a large network with many devices, it is difficult to troubleshoot the cause of the error. 并且当待检测网络拓扑发生变动时,维护域级别划分需要人工重新规划和分配,相应的配置也需要进行大量更改。 And when the network topology changes to be detected, MD level need to manually re-division of planning and allocation, the corresponding configuration also requires a lot of changes.

[0041] 可见,目前亟需一种实现方式简单易行的CFD协议配置机制。 [0041] visible, currently a need for an easy way of CFD configuration mechanism is implemented.

发明内容 SUMMARY

[0042] 本发明提供了一种CFD协议配置方法及其装置,用以一定程度上实现CFD协议的 [0042] The present invention provides a method and apparatus CFD protocol configuration for a certain degree of CFD to achieve

自配置。 Self-configuring.

[0043] 本发明提供的CFD协议配置方法,应用于为指定VLAN中设定数量的设备配置具有相同维护域级别的维护域的过程,所述设定数量的设备中包括一个位于维护域边界且被选择为主设备的设备,其余为从设备,该方法包括: [0043] CFD method of the present invention provides protocol configuration, the same process is applied to a maintenance domain level of maintenance domain specified VLAN configuration set number of devices, said set comprising a number of devices in the domain boundary and is in the maintenance device selected master device, a slave device comprising the remainder of the method:

[0044] 主设备和各从设备分别接收维护域级别配置命令,并根据该命令配置本设备的维护域级别; [0044] The master and each device receives the command MD level configuration, and configuration maintenance domain level of the equipment according to the command from;

[0045] 主设备在所述VLAN中发送具有所述维护域级别的CC报文,各从设备接收到CC报文后返回LT报文,其中,接收到LT报文的中间设备向该LT报文的发送方设备返回LTR报文; [0045] In the master device transmits the maintenance domain level VLAN having a CC message received from the device to return each of LT CC packet from the packet, wherein the received packets LT LT message to the intermediate apparatus the sending side apparatus returns the LTR;

[0046] 主设备在发送CC报文的端口上配置外向维护端点,存在收到过LT报文且回复过LTR报文的端口的从设备,在该端口上配置维护中间点,并在与该维护中间点具有相同维护域级别的其它端口上配置维护中间点;其它从设备在收到过CC报文且未回复过LTR报文的端口上配置外向维护端点。 [0046] disposed on the master CC port sends packets of outward-presence LT packets received from the apparatus and returned through the packet port LTR, MIPs are configured on the port, and the MIPs MIPs are configured with other ports to maintain the same domain level; from other devices in the received CC message and not replied to configure outgoing packets on port LTR MEP.

[0047] 本发明提供的通信设备,应用于为指定VLAN中设定数量的设备配置具有相同维护域级别的维护域的过程,该通信设备包括: [0047] The present invention provides a communication device, the same process is applied to a maintenance domain level of maintenance domain specified VLAN configuration set number of devices, the communication device comprising:

[0048] 第一配置模块,用于接收维护域级别配置命令,并根据该命令配置本设备的维护域级别; [0048] a first configuration module, configured to receive MD level commands and configuration maintenance domain level of the equipment according to the command;

[0049] 报文处理模块,用于在本设备位于维护域边界且被选择为主设备的情况下,在所述VLAN中发送具有所述维护域级别的CC报文;在本设备作为从设备的情况下,在接收到主设备发送的CC报文后返回LT报文,并在接收到其它从设备返回的LT报文时向该LT报文的发送方从设备返回LTR报文; [0049] The message processing module, configured to present the case of the device gamut boundary and is in the maintenance device is selected based, in transmitting the VLAN with the maintenance domain level CC message; in the present apparatus as a slave device in the case where, after receiving the CC message from the master device transmitting return packets LT, and LT to the sender of the message returned from the LTR of other apparatus when receiving the return message from the device LT;

[0050] 第二配置模块,用于在本设备作为从设备的情况下,若存在收到过LT报文且回复过LTR报文的端口,则在其上配置维护中间点,并在与该维护中间点具有相同维护域级别的其它端口上配置维护中间点;否则,在收到过CC报文且未回复过LTR报文的端口上配置外向维护端点;在本设备作为主设备的情况下,在发送CC报文的端口上配置外向维护端 [0050] Second configuration module in this device as a device from the case, if there is received packets and returned LT LTR packets through the port, the MIPs are configured thereon, and the MIPs MIPs are configured with other ports to maintain the same domain level; otherwise, the received CC message and does not respond to packets through the LTR of outward-port configuration; in this case the device as a master device , configured on a port to send outgoing messages to maintain end CC

点ο Point ο

[0051 ] 本发明的有益技术效果包括: [0051] Advantageous effects of the invention comprises:

[0052] 本发明将待进行CFD协议配置的设备分为主设备和从设备,通过维护域级别配置命令配置各设备的维护域级别,各设备端口上的维护端点和维护中间点配置,则通过主设备发送CC报文以及各从设备响应LT报文和LTR报文的情况进行自配置,从而与现有技术中,所有CFD协议配置操作都需手工完成的技术方案相比,一定程度上实现了CFD协议的自 [0052] The apparatus of the present invention will be subjected to partial CFD protocol configured master device and the slave device, the configuration command level configuration MD MD level of each device, MEPs and MIPs device arranged on each port, by the master sends CC messages and in each case realized from the device in response to LT packets and packets LTR self-configuration, and thus, compared with the prior art, all of CFD operations required to manually configure the technical solution, to a certain extent since the CFD protocol

动配置。 Dynamic configuration.

附图说明 BRIEF DESCRIPTION

[0053] 图1为现有技术中应用了CFD协议的组网示意图; [0053] FIG. 1 is a prior art application of a networking diagram of CFD;

[0054] 图2为现有技术中CFD协议配置的实现方式示意图; [0054] FIG. 2 is a prior art implementation of CFD schematic configuration;

[0055] 图3为本发明实施例提供的CFD协议配置流程示意图; [0055] FIG. 3 CFD protocol provides a flow diagram showing the configuration of the present embodiment of the invention;

[0056] 图4为本发明实施例提供的状态机状态迁移示意图; [0056] FIG 4 provides a state machine migration schematic embodiment of the invention;

[0057] 图5A〜图5E分别为本发明实施中的CFD协议自配置过程示意图; [0057] FIG 5A~ FIG 5E are examples of the embodiment of the self-configuration process schematic of CFD to the invention;

[0058] 图6为本发明实施例提供的配置结束报文的示意图; [0058] FIG. 6 is a schematic configuration provided by the end of packet embodiment of the invention;

[0059] 图7为本发明实施例提供的通信设备的结构示意图。 [0059] FIG. 7 is a schematic structure of a communication apparatus according to an embodiment of the present invention.

具体实施方式 detailed description

[0060] 本发明实施例基于CFD协议,取代完全手工方式的CFD协议配置机制,一定程度上实现了CFD协议的自动配置,解决了网络规模庞大时,CFD协议配置烦琐的问题。 Based on CFD CFD protocol configuration protocol mechanism, substituted entirely by hand according to embodiment [0060] of the present invention, to achieve automatic configuration of CFD to a certain extent, when to solve the large-scale network, protocol configuration CFD cumbersome problem.

[0061] 由于CFD协议本身只是用来解决链路的连通性检测问题,在有环路的情况下,一般会同STPGhortest Path Tree,最短路径树)协议配合使用,而CFD报文本身能够被STP 阻塞。 [0061] Because of CFD itself is only used to solve the problem of communication link detection, in the case where there is a loop, together with the general STPGhortest Path Tree, shortest path tree) protocol with the use of the CFD STP packets themselves can be blocked . 因此,由于被部署网络环路造成的CFD协议报文泛洪问题,不属于本发明实施例解决方案的范畴。 Accordingly, since the deployment of CFD packet network loops caused by flooding problem, embodiments address does not belong to the scope of the invention.

[0062] 本发明实施例的实现目标是:在构成维护域的设备上,通过输入少量(如1到2条)配置命令,为待进行CFD协议配置的组网设置维护域级别和绑定VLAN,然后,以其中一个设备作为主设备,由主设备发起CFD协议自配置过程。 [0062] The goal of the embodiment of the present invention is: MD on the device configuration, configuration commands enter a few (e.g. 1-2), the networking protocol configuration settings CFD maintenance domain level and to be bound to a VLAN and then to one of the devices as a master device, the master device initiates the self-configuration process of CFD. 通过一次配置过程完成整个维护域的相关配置。 Complete the relevant configuration of the entire MD through a configuration process. 其中,主设备可由管理员指定,可选择维护域边界设备作为主设备。 Wherein the main device designated by the administrator, the device gamut boundary can choose to maintain the primary unit.

[0063] 为实现上述目标,本发明实施例提供的CFD协议配置的总体流程可如图3所示,当需要在特定VLAN(WTWVLAN 100为例)中配置某一维护域级别(以下以level 5为例) 的维护域时,该流程可包括: Overall Flow [0063] To achieve the above objectives, CFD protocol according to an embodiment of the present invention may be arranged as shown in FIG. 3, when it is necessary (WTWVLAN 100 for example) in a particular VLAN configuration maintenance domain level (level 5 in the following when, for example) MDs, the process may include:

[0064] 步骤301,向这些需要配置为level 5的设备分别发送配置命令,以使这些设备可以根据该命令配置维护域级别,并可进一步绑定VLAN 100。 [0064] Step 301, the device transmits to the need to configure these commands are arranged in level 5, so that these devices may be configured to maintain the domain level according to the command, and further bind VLAN 100.

[0065] 在具体实施时,可由Host (即配置客户端)向这些设备发送维护域级别配置命令, 以使这些设备配置维护域级别为level 5。 [0065] In a specific embodiment, by Host (i.e., configure the client) sends the maintenance domain level configuration command to configure the devices so that maintenance domain level is level 5. 还可以进一步通过配置命令,使这些设备的端口与VLAN 100绑定(在这些设备的端口之前已与VLAN 100绑定的情况下,该步骤可省略)。 Command may be further configured by the VLAN-bind these devices 100 (before the port in the case of these devices is associated with VLAN 100, this step may be omitted).

[0066] 步骤302,从这些设备中选定主设备,其它设备即为从设备,并指示主设备在VLAN 100中发送维护域级别为level 5的CC报文,此后进入CFD协议自配置过程。 [0066] Step 302, from the selected master device, the other device is the slave, and the master device transmits an indication of the maintenance domain level CC level 5 of the VLAN packets 100, thereafter to enter the self-configuration process of CFD.

[0067] 在具体实施时,可由系统管理员选定维护域边界设备作为主设备,并下发配置开始命令给主设备。 [0067] In a specific embodiment, the system administrator can maintain the selected device gamut boundary as a master device, and to deliver the configuration start command to the master device. 主设备在接收到配置开始命令后,在VLAN 100中发送维护域级别为level 5的CC报文。 Master device after receiving the configuration start command CC transmitted to the maintenance domain level packets 100 in level 5 of the VLAN.

[0068] 步骤303,CFD协议自配置过程。 [0068] Step 303, CFD protocol self-configuration process. 该过程中: The process:

[0069] 各从设备接收到CC报文后返回LT报文,其中,接收到LT报文的中间设备向该LT 报文的发送方设备返回LTR报文。 [0069] Each slave device receives the return packet LT CC packet, wherein the received packets LT LT to the intermediate device message sender device returns the LTR. 从设备首先判断是否存在收到过LT报文且回复过LTR 报文的端口,若存在则在该端口上配置维护中间点,并在与该维护中间点具有相同维护域级别的其它端口上配置维护中间点;若从设备上不存在收到过LT报文且回复过LTR报文的端口,则在收到过CC报文且未回复过LTR报文的端口上配置外向维护端点;主设备在发送CC报文的端口上配置外向维护端点。 First, the slave device determines whether there is received packets and returned LT LTR packets through the port, if present, the MIPs are configured on the port and other ports having the same level with the MD MIPs configuration MIPs; if the received packets and returned through the LT LTR packets from the port does not exist on the device, then the received CC message and does not respond to packets through the LTR of outward-port configuration; master configure outgoing MEPs port sends CC messages.

[0070] 此后,主设备和各从设备可使能其上的CFD配置,从而完成CFD协议配置。 [0070] Thereafter, each of the master and slave configuration enables the CFD thereon, thereby completing the configuration of CFD. 可以看出,通过以上流程实现了通过一次配置过程完成整个维护域的相关配置过程。 As can be seen, to achieve complete the configuration process by one configuration of the MD through the above flow process.

[0071] 进一步的,为了提高配置的准确性和可靠性,主设备还可以对从设备进行链路跟踪,并在确认从设备链路正确的情况下,才最终完成CFD协议配置。 [0071] Further, in order to improve the accuracy and reliability, the master device can also be configured to follow the link from the device, and an acknowledgment from the device link is correct, the configuration of CFD finally completed. 具体的,可对上述流程进行如下改进: Specifically, the following modifications may be made to the above process:

[0072] 主设备根据接收到的LT报文生成维护点列表,维护点列表中记录有返回LT报文的从设备的桥MAC地址和到达该从设备所需的二层转发次数。 [0072] The master device generates LT packets received maintenance point list, the list of service points is recorded LT return packets from the bridge and MAC address of the device reaches the desired device from the repeater floor number. 主设备根据维护点列表对该列表中的各从设备进行链路跟踪,并将跟踪结果与维护点列表中各从设备的桥MAC地址和到达该从设备所需的二层转发次数进行比较,如果一致,则使能本设备端口上的CFD配置, 从而完成主设备上的CFD协议配置,并发送配置结束报文;否则,清除本设备端口上本次CFD协议配置过程中已完成的配置,结束本次CFD协议配置过程,并发送配置取消报文。 The master device maintains the list of the point list for each link from the tracking device and the tracking results from the point of maintaining a list of each device and a MAC address of the bridge reaches the desired device from the repeater compares the number of Layer 2, if yes, enable CFD arranged on the device port, thereby completing the CFD protocol on the master device configuration, and transmits that configuration is completed packet; otherwise, clear this CFD protocol configuration on the device port during the completed configuration, CFD protocol configuration the end of this process, and to cancel sending configuration messages. 若各从设备接收到配置结束报文,则使能各自设备端口上的CFD配置,从而完成从设备上的CFD协议配置;若各从设备接收到配置取消报文,则清除本设备端口上本次CFD协议配置过程中已完成的配置,并结束本次CFD协议配置过程。 When each received from a device arranged end packet, it enables CFD arranged on the device ports each, to complete configuration from CFD protocol device; when each slave device receives the configuration cancel message, the clear on the device port to the present time CFD protocol configuration process has been completed configuration, and ends the CFD protocol configuration process.

[0073] 进一步的,为了提高配置的可靠性,在上述流程基础上,还可以进行如下改进: [0073] Further, in order to improve reliability of the process on the basis of the above, further improvements may be made as follows:

[0074] 主设备可在设定时长tl内周期发送维护域级别为level 5的CC报文,以保证各从设备能够收到该CC报文。 [0074] The host device may send a long period tl when setting maintenance domain level is level 5 CC messages to ensure that each can receive the CC packet from the device. 在该设定时长tl之后的一段时间t2(t2可小于tl)后,主设备才开始根据维护点列表对该列表中的各从设备进行链路跟踪,这样,一方面可以一定程度上保证各设备均能收到CC报文并进行相应处理(如透传CC报文以及回复LT报文),另一方面,将t2设置为小于tl可节省CFD配置流程的时间。 When the set period of time t2 (t2 may be less than TL) long after tl, the master device started according to the maintenance point list in the list for each link from the tracking device, so that each one can guarantee a certain extent equipment can receive the CC packet and a corresponding processing (e.g., through a CC messages and reply packets LT), on the other hand, tl t2 is set smaller than the configuration process can save time CFD. 从设备从接收到第一个CC报文开始在达到设定时长t3时,按照前述规则在相应端口上配置MIP或MEP,具体的,若从设备存在收到过LT报文且回复过LTR报文的端口,则在该端口上配置MIP,并在与该MIP具有相同维护域级别的其它端口上配置MIP ;其它从设备在收到过CC报文且未回复过LTR报文的端口上配置外向MEP。 CC packet from the device begins to grow from the received first t3 reaches the set, according to the rules configured on a MIP or MEP corresponding port, particularly, if the received packet and LT from the device replied to the presence of the LTR text port, MIP disposed on the port and other ports having the same configuration MIP MD level with the MIP; from other devices in the received CC message and does not return through the port configuration of the LTR outgoing MEP. 其中,t3不小于tl。 Wherein, t3 is not smaller than tl.

[0075] 进一步的,为了提高配置流程的合理性和灵活性,可以在配置过程出现异常时中断配置过程,也可以根据需要通过下发命令方式中断配置过程。 [0075] Further, in order to improve the rationality and flexibility of the configuration process, the configuration process can be interrupted when an exception occurs configuration process, the configuration process can be interrupted according to the command issued by way required.

[0076] 具体的,配置过程出现异常时中断配置过程的具体实现可以是:若主设备从未接收到从设备返回的LT报文,则清除本设备端口上本次CFD协议配置过程中已完成的配置, 结束本次CFD协议配置过程,并发送配置取消报文。 [0076] Specifically, the interrupt configuration process configuration occurs when abnormal specific implementation may be: If the master device never receives a packet from the device returns the LT, the present apparatus is cleared on this port configuration of CFD has been completed configuration, the end of this CFD protocol configuration process, and sends the configuration to cancel the message. 此后,从设备接收到配置取消报文后, 清除本设备端口上本次CFD协议配置过程中已完成的配置,并结束本次CFD协议配置过程。 Thereafter, the configuration is removed from the device receiving the message, clearing this CFD protocol configuration port on the device configuration process has been completed, and ends the configuration of CFD.

[0077] 通过下发命令方式中断配置过程的具体实现可以是:通过Host向主设备和各从设备发送配置取消命令,主设备和各从设备接收到配置取消报文后,清除本设备端口上本次CFD协议配置过程中已完成的配置,并结束本次CFD协议配置过程。 [0077] By issued command mode interrupt configuration process specific implementation may be: and each cancellation command sent configuration from, the master and each slave device after receiving the configuration cancellation packet, remove the equipment port through the Host to the master the CFD protocol configuration process has been completed configuration, and ends the CFD protocol configuration process.

[0078] 在上述的具体实施方式中,需要通过CFD协议本身的报文交互来探测组网拓扑结构。 [0078] In the above embodiment, it is necessary to detect the networking topology of CFD packet exchange protocol itself. 但由于一般状态下,组网中的设备不会监听CFD协议报文,针对这种情况,本发明实施例中引入了状态机机制,通过不同状态来区分设备的“自动配置前”、“自动配置中”和“自动配置后”等各阶段的状态,并且针对各个状态引入一系列报文处理机制,来实现CFD协议自配置过程。 However, due to the general state, the network device does not listen CFD protocol packets, for this situation, the introduction mechanism for the state machine embodiment of the present invention, are distinguished by different states of "front Autoconfiguration" devices, "Automatic configuration state of each stage "and" after the auto-configuration "and the like, and introduced a series of packet processing mechanism for each state, of CFD to achieve self-configuration process.

[0079] 在这个状态机机制中,组网中的设备可能处于hactive (非活动)、Main_ Trial (主设备尝试)、Main_Gather (主设备收集)、Slave_Feedback (从设备反馈)、 Finish (完成)等几个状态。 [0079] In this state machine mechanism, networking equipment may be in Hactive (inactive), Main_ Trial (master attempts), Main_Gather (master collection), Slave_Feedback (feedback from the device), Finish (completed), etc. several states. 其中:Main_Trial和Mair^Gather为主设备所特有,这里主设备是指整个自配置行为的发起者。 Wherein: Main_Trial and Mair ^ Gather unique to the master device, the master device here refers to the entire configuration behavior from the initiator. 一次自配置行为中,整个组网只有一个主设备,其他设备均为从设备。 A self-configuring behavior, the entire network is only one master device, other devices are slaves. 从设备主要是根据主设备发送的报文来获得自己在组网中的位置信息,以便后续进行CFD协议配置。 Equipment is mainly to obtain information on their location in the network based on the packet transmitted from the master device, for subsequent protocol configuration for CFD.

[0080] 参见图4,为本发明实施例提供的状态机状态迁移示意图,其中: [0080] Referring to Figure 4, the present embodiment provides state machine migration schematic embodiment of the invention, wherein:

[0081] 组网中的设备(主设备和各从设备)平常时处于Finsh状态,当需要对某维护域内的设备进行CFD协议配置时,通过Host向这些设备发送配置命令,这些设备接收到该命令后从Finsh状态转入hactive状态(如Al所示); [0081] The networking device (the master and each slave) when in the normal state Finsh, CFD protocol is required when the device configuration of a maintenance domain, which device receives the configuration commands sent to the device through the Host command into hactive state (as shown in Al) from Finsh state;

[0082] 主设备进入hactive状态后,等待配置开始命令,并在接收到配置开始命令后, 进入Main_Trial状态(如A2所示); After [0082] The master device goes into hactive state, waiting for configuration start command, and after receiving a configuration start command, enter Main_Trial state (as shown in A2);

[0083] 主设备进入MairuTrial状态后发送CC报文,并开启定时器Timerl (定时时长可设为60秒)。 After [0083] the master device enters the transmitting state CC MairuTrial packets, and starts a timer Timerl (timing length may be 60 seconds). 在定时器Timerl计时期间内周期发送CC报文,并持续监听从设备回复的LT 报文,在收到第一个LT报文以后进入Mair^Gather状态(如A3所示); CC packet transmission cycle during the timer counting Timerl, and continuously monitoring responses from the device LT packets entering Mair ^ Gather state (as shown at A3) after receiving the first packet LT;

[0084] 主设备在Mair^Gather状态下,建立维护点核查表,将接收到的LT报文的源地址收集到维护点核查表中。 [0084] In the master Mair ^ Gather state, the establishment, maintenance checklist point, the received packet's source address LT collected verification service points in the table. 当主设备收到最后一个LT报文后(即Timerl超时的时候)或当收到最后一个LT报文的一段时间(如10秒)后,向维护点核查表中记录的所有从设备进行链路追踪,如果追踪结果与维护点核查表匹配,则使能本设备端口上的CFD配置,向所有从设备发送配置结束报文,并进入Finish状态(如A4所示);否则,清除本设备端口上本次CFD协议配置过程中已完成的配置,发送配置取消报文,并转入hactive状态(如A5所示); When the master device receives the packets after the last LT (i.e. Timerl times out) or when the last received packet LT period of time (e.g., 10 seconds), point to the maintenance records all checklist device link from Tracking, if the result matches the tracking point maintenance checklist, it enables CFD port disposed on the device, sent from the device to configure all packets end, and enters the Finish state (as shown in A4); otherwise, remove the equipment port the configuration of CFD in the completed configuration, sending a configuration message cancellation, and transferred hactive state (as shown in A5);

[0085] 从设备在接收到指定VLAN中下发的CC报文后从hactive状态进入Slave_ Feedback状态(如A6所示); [0085] Slave_ Feedback into the state (as shown A6) from hactive state from the CC packet from the reception device issued to a VLAN;

[0086] 从设备在SlaVe_FeedbaCk状态下,对于接收到的每个CC报文后分别回复LT报文,并且在接收到第一个CC报文时开启定时器Timer2 (定时时长可设为60秒),并在定时器Timer2超时后开始进行CFD协议自配置(如配置维护中间点、维护端点等); [0086] In SlaVe_FeedbaCk state from the device, for each of the CC message received after the reply LT packets, respectively, and start a timer Timer2 upon receiving the first packet CC (timing length may be 60 seconds) and after the start of CFD timeout from the timer Timer2 configuration (such as MIPs are configured MEP, etc.);

[0087] 从设备在接收到配置结束报文后使能各自设备端口上的CFD配置,并进入Finish 状态(如A7所示); [0087] CFD slave enables the device ports are each arranged on the end after receiving the configuration message, and enters the Finish state (as shown A7);

[0088] 从设备在接收到配置取消报文后,清除本设备端口上本次CFD协议配置过程中已完成的配置,并进入hactive状态(如A5所示)。 [0088] After receiving apparatus configured to cancel the message, clearing this configuration of CFD port on the machine configuration has been completed, and enters hactive state (as shown in A5) from.

[0089] 进一步的,如果在CFD协议自配置过程中,主设备或从设备收到配置取消命令(该配置取消命令可以通过Host下发到主设备或从设备上),则从当前状态转入hactive状态(如A5所示)。 [0089] Further, if the self-configuration process, the master device or the slave device receives the configuration of CFD cancel command (cancel command can send the configuration to the master device via the Host or from the device), the state is changed from the current hactive state (as shown in A5). 主设备也可以在定时器Timerl超时时还未收到从设备返回的LT报文的情况下,从当前状态转入hactive状态(如A5所示);或者在对从设备进行链路跟踪后发现跟踪结果与维护点核查表不匹配,从当前状态转入hactive状态(如A5所示)。 The master device may be a case where the device has not received from the LT return packets into hactive state (as shown in A5) from a current state when the timer times out Timerl; on or after the link from the tracking device discovery the tracking result does not match the verification table maintenance point, into hactive state (as shown in A5) from the current state.

[0090] 为了进一步描述本发明实施例的实现过程,下面以图5A所示的组网架构为例对CFD协议自配置过程进行描述。 [0090] To further describe the implementation process of embodiments of the present invention, the following networking architecture shown in FIG. 5A as an example of CFD protocol described self-configuration process. 如图5A所示,DUTl〜5的所有端口均属于VLAN 100,当需要将DUTl〜5配置为相同维护域级别时,其CFD自配置流程包括: 5A, all ports belong DUTl~5 VLAN 100, when configured with the same needed DUTl~5 MD level, CFD self configuration process which comprises:

[0091] 首先,通过Host (即CFD配置客户端)向DUTl〜5分别下发CFD协议配置命令, 通过该命令在DUTl〜5上配置CFD所属的VLAN 100和维护域等级5,维护域名称、维护集名称和服务实例名称可由系统在预留的几个名称中选择(即通过配置命令的方式配置到DUTl〜5上),或者由各设备自动生成(可预先在各设备上定义维护域名称、维护集名称和服务实例名称的命名规则,如可根据维护域等级进行命名,如维护域名称可定义为MD_n,其中η为维护域等级数值)。 [0091] First of all, are issued by the Host (i.e., client configuration CFD) to DUTl~5 CFD protocol configuration command, this command belongs CFD disposed on DUTl~5 the level of VLAN 100 and MD 5, MD name, MA instance name and service name may be reserved for system selection in several names (i.e., are arranged on DUTl~5 manner through commands), or generated automatically by the device (MD name may be pre-defined on each device maintenance named ruleset name and the name of the service instance, such as maintenance can be carried out according to rank domain names, such as maintenance of the domain name can be defined as MD_n, where η is the MD level value). DUTl〜5在接收到CFD协议配置命令后从当前的Finish状态进入hactive状态,并且在VLAN 100下所有状态为Up的端口上监听CC报文。 CFD DUTl~5 After receiving configuration commands entered from the current state hactive Finish state, and all the state CC 100 VLAN packets to listen on the Up interface.

[0092] 此后,进入自动配置阶段: [0092] Thereafter, into the automatic configuration phase:

[0093] Phase 1 [0093] Phase 1

[0094] 网络管理员在DUTl,也就是这个维护域的某个边界设备上,下发自配置开始命令。 [0094] network administrator DUTl, that is, on a domain boundary maintenance of this equipment, configured to start from the bottom of the next command. 此时,DUTl作为主设备进入Main_Trial状态,并开启定时器Timerl,DUTl在VLAN 100下的所有端口,每隔一段时间(如1秒)发送一个维护域级别为5的CC报文。 In this case, DUTl Main_Trial as a master device enters the state and a timer is started Timerl, DUTl all ports of the VLAN 100, intervals (e.g., one second) transmits a maintenance domain level of 5 CC message. 如图5B所示。 Shown in Figure 5B. 定时器Timerl的定时时长可根据组网架构中DUT的数量进行设置,DUT数量越多定时时长越长,定时时长的具体设置应该能够保证在该段时间内主设备能得到整条链路上各设备的桥MAC地址和到达DUTl所需要的二层转发次数,如Timerl的定时时长可设为60秒。 Long available when the timing of the timer Timerl according to the number of the networking architecture of the DUT is provided, the more DUT when the timing length of the longer the timing length of the specific settings should ensure that within the period of time the master device can be obtained over the entire link each Layer number forwarding bridge MAC address and the device reaches DUTl required, such as the long timer can be set to 60 seconds of Timerl.

[0095] Phase 2 [0095] Phase 2

[0096] 对于DUT2〜DUT5中的每个设备,作为从设备在监听端口第一次收到CC报文时,开启定时器(定时时长不少于Timerl的时长,可与Timerl的定时时长相等,如可设为60 秒,DUT2〜DUT5对应的定时器为Timer2〜5),从Inactive状态进入Slave_Feedback状态,并且在VLAN 100内透传该CC报文,然后向CC报文的源地址回复一个LT报文。 [0096] For DUT2~DUT5 each device, as the listening port from the device first received the CC packet, starts a timer (timing length less than the length Timerl can Timerl looks like when the timing, as can be 60 seconds, DUT2~DUT5 corresponding timer), the state enters the Inactive state Slave_Feedback Timer2~5, and transparently transmits the CC packet within VLAN 100, and then returned to the source address of a LT packets CC message. 以后每收到一个CC报文,就向源地址回复一个LT报文,如图5C所示。 After each CC receives a packet, sending back a packet to the source address of LT, shown in Figure 5C. 其间,收到LT报文的中间设备会回复一个LTR报文,如图5D所示。 Meanwhile, LT received packets LTR intermediate apparatus will return a packet, shown in Figure 5D.

[0097] Phase 3 [0097] Phase 3

[0098] DUTl在定时器Timerl计时期间内在VLAN 100上持续监听LT报文。 [0098] DUTl continuously monitoring LT packets over VLAN internal timer counting during Timerl 100. 当定时器Timerl超时后,DUTl就能得到整条链路上各设备的桥MAC地址和到达DUTl所需要的二层转发次数,从而生成维护点核查表。 When the timer times out Timerl, DUTl Layer MAC address can be obtained for each device on the whole link and landing DUTl required transfer times, thereby generating the service points checklist. 如果DUTl在定时器Timerl计时期间未收到任何LT报文,则向Host返回CFD自配置失败的信息,并且重新恢复为hactive状态。 If LT DUTl not receive any messages during timer Timerl time, then return to the Host Information CFD self-configuration fails, and restored to hactive state.

[0099] Phase 4 [0099] Phase 4

[0100] 对于DUT2〜DUT5中的每个设备,在对应定时器(Timer2〜5)计时期间内在VLAN 100中监听LT报文,并在监听到LT报文时返回LTR报文。 [0100] For each device DUT2~DUT5 inherent timing period VLAN packet 100 listens LT corresponding timer (Timer2~5), and returns the LTR upon LT monitored packets. 当对应定时器(Timer2〜5)超时后,相应设备首先将在这期间内所有收到过LT报文的端口和回复过LTR报文的端口,都自动配置为维护中间点(MIP),并在该设备上与该MIP具有相同维护域级别的其它端口上配置MIP,然后其它从设备在收到CC报文,并且未回复过LTR报文的端口上配置外向维护端点(MEP)。 When the corresponding timer (Timer2~5) timeout of the first device is received within this period all LT packets through the port and the return port through the LTR, are automatically configured to maintain the intermediate point (the MIP), and in the apparatus having the same configuration MIP other ports to maintain the MIP domain level, and then from the other device receiving the CC message, and no reply packets over the LTR of outward-port configuration (MEP). 例如,DUT3_Ethl/l、DUT3_Ethl/2 和DUT4_Ethl/l 收到过LT 报文且回复过LTR 报文,因此将其配置为MIP,并将DUT3_Ethl/0和DUT4_Ethl/0配置为MIP ;由于DUT5上不存在收到过LT报文且回复过LTR报文的端口,而仅存在接收过CC报文但未回复过LTR报文的端口DUT5_Ethl/0,则将DUT5_Ethl/0 配置为MEP。 For example, DUT3_Ethl / l, DUT3_Ethl / 2 and DUT4_Ethl / l LT packets received and replied to the LTR, so as to configure the MIP, and DUT3_Ethl / 0 and DUT4_Ethl / 0 configuration to the MIP; due to the DUT5 the presence of LT received the message and replied to the LTR of the port, but there are only receiving a CC message but had replied to the LTR port DUT5_Ethl / 0, then DUT5_Ethl / 0 configured as MEP.

[0101] 所有外向MEP都根据自动生成或者自动选择的MD、MA和SI进行配置,并且停止对CC报文回复LT报文。 [0101] All outgoing MEP performs automatic configuration automatically selected or generated MD, MA, SI, and stops the CC message reply packet LT.

[0102] Phase 5 [0102] Phase 5

[0103] 在DUTl上,从收到第一个LT报文并回复LTR报文后启动计时器TimerlO,每次收到LT报文后重置计时器TimerlO,当计时器TimerlO的计时时长达到设定时长(如10秒) 后,对维护点核查表的所有LT报文源MAC地址(即设备的桥MAC地址)发起链路追踪,并将链路追踪结果与维护点核查表比对(核查表中包含了从设备的桥MAC以及该节点到达主设备DUTl的跳数。在DUTl发起链路追踪后,会收到携带剩余TTL值的LTR报文,然后在核查表中查找LTR报文的源MAC,找到后,看该LTR报文中的TTL值是否与核查表中的该从设备到达主设备DUTl的跳数对应),如果一致,则向其它设备发送配置完成报文,然后自身转入Finish状态。 [0103] On DUTl, from the first received packet and reply LT TimerlO starts a timer after the LTR, each time it receives the timer reset TimerlO LT packet, when the time length of the timer reaches the set TimerlO after the timing length (e.g., 10 seconds), for all the LT packet source MAC address of the maintenance point of the checklist (i.e., the bridge MAC address of the device) to initiate a link track, the tracking result and the link point with the maintenance checklist comparison (verification the table contains the number of hops to reach the master DUTl from the bridge device's MAC and node. DUTl after initiating link tracking, TTL will receive the remaining carrying value of the LTR, and then look for the LTR in the verification table source of the MAC, after finding, see the TTL value of the LTR packets corresponds to the number of hops to the main apparatus DUTl from the device verification table), if yes, sending the configuration message to other devices, then their turn Finish the state. 所有其它设备收到CFD配置完成报文后使能CFD,开始与其他MEP建立邻居。 All other devices after receiving the CFD configuration messages enable CFD, and other neighbors began to establish MEP. 如果比对结果不一致,则发送配置取消报文,重新开始配置。 If the comparison results are inconsistent, then send the message to cancel the configuration, restart the configuration. 开启计时器TimerlO的目的是保证DUTl在Temerl的定时期间发送CC报文的过程,能够收到所有其它DUT (这里是DUT2〜DUI^)返回的LT报文。 The timer was started TimerlO object is to ensure DUTl transmitted CC message during timing process Temerl, and to receive all other DUT (here DUT2~DUI ^) LT packets returned. 如,DUTl在60秒内每秒发送一个CC报文的情况下,在70 秒后应该能够收到DUT2〜DUT5返回的LT报文,因而可将计时器TimerlO的计时时长设置为10秒。 Such as, DUTl transmitted 60 times per second in the case of a CC message, and after 70 seconds should be able to receive packets DUT2~DUT5 LT returned, which can be set to 10 seconds long-time measurement of the timer TimerlO.

[0104]如图 5E 所示,DUTl_Ethl/0、DUT2_Ethl/0 和DUT5_Ethl/0 最终生成外向MEP,三者之间互相持续发送CC报文建立邻居,到此为止CFD协议配置全部完成。 [0104] FIG. 5E, DUTl_Ethl / 0, DUT2_Ethl / 0 and DUT5_Ethl / 0 ultimately generate a MEP outward, each CC continues to send packets between the three established neighbor CFD protocol configuration so far completed. 任意链路的中断, 都会令一对邻居发生报警,以警告邻居。 Interruption of any link, will make one pair of neighbors alarm to warn neighbors. [0105] 进一步的,在自配置过程中,如果通过Host在DUTl上下发配置取消命令,则主设备DUTl立即下发一个用于指示取消配置的LT报文。 [0105] Further, in the self-configuration process, if the cancel command issued by the Host DUTl disposed vertically, the master DUTl immediately issued a message indicating cancellation for LT configuration. 其它设备在收到源MAC为主设备桥MAC的LT报文后,直接结束自配置过程,并且清除所有与自动配置有关的信息,完成后发送一个回应的LTR报文,各设备状态回到inactive状态。 Other device receives the source MAC-based device's MAC bridge LT packets directly from the end of the configuration process and clears all the automatic configuration information, send a response after the completion of the LTR with each device back to inactive status status.

[0106] 以上流程以选择处于维护域边界设备作为主设备为例描述的,在这种情况下,主设备发送CC报文的端口可直接被作为外向MEP。 [0106] In the above scheme selected gamut boundary is maintained as a master device described as an example, in this case, the master device transmits the CC message as the outgoing port may be directly MEP. 当然也可以选择其它位置的设备作为主设备,此种情况下,在主设备上也需要根据接收LT报文和返回LTR报文的情况来设置MIP (具体设置方式同上),如可在计时器TimerlO的计时时长达到设定时长后、链路追踪前进行MIP配置。 Of course, other devices may be selected as the location of the master device, in this case, on the master device needs to be set according to the reception packet and LT LTR return the MIP packets (the specific arrangement supra), as may be the timer after a long long time to reach the set when TimerlO the timing of the forward link monitoring the progress of MIP configuration.

[0107] 本发明实施例中所涉及到的自配置结束报文,可通过对普通的CFD报文进行一定修改得到,用来作为自配置完成时的结束报文。 Example involved in self-configuration packet ends embodiment [0107] of the present invention, it may be obtained by conventional CFD packets to obtain certain modifications, when used as an end packet of self-configuration is completed.

[0108] 如图6所示,现有CFD报文格式如下: [0108] shown in Figure 6, the existing CFD packet format is as follows:

[0109] Destination MAC address (目标MAC 地址):组播地址0XM、 LTM)0180-c200-0035 ; [0109] Destination MAC address (the destination MAC address): a multicast address 0XM, LTM) 0180-c200-0035;

[0110] Source MAC address (源MAC 地址):本机桥MAC 地址; [0110] Source MAC address (source MAC address): The machine MAC address of the bridge;

[0111] CFM EtherType (CFM 以太网类型):8902(0ΑΜ 帧); [0111] CFM EtherType (CFM Ethernet Type): 8902 (0ΑΜ frame);

[0112] MALevel (MA级别):与本机所在维护域一致,范围为0〜7。 [0112] MALevel (MA level): consistent with the local domain where the maintenance, in the range of 0 to 7.

[0113] 本发明实施例中的自配置结束报文中的Source MAC address取值为0000-0000-0000,其他字段内容可与现有CC报文一致。 [0113] Source MAC address value of the self-configurable embodiment of the end of the packet is 0000-0000-0000 embodiment of the present invention, the contents of other fields may be consistent with the existing CC message.

[0114] 通过以上描述可以看出,本发明实施例一定程度上实现了CFD协议的自配置,只要对每台设备进行1到2条配置就能完成一个比较完整的维护域的配置过程。 [0114] As can be seen from the above description, embodiments of the present invention to achieve a self-configurable embodiment of CFD to some extent, as long as 1-2 each device can be configured to complete the configuration process of a more complete maintenance domain. 在该自配置过程中,所有具体配置基本由设备自动完成,维护人员只需要指定设备的维护域级别,以及下发自配置开始命令,这样就能比较好的解决配置下发命令烦琐,容易出现配置错误的问题。 In the self-configuration process, all the specific configuration basically completed automatically by the device, maintenance personnel only need to specify the domain-level maintenance equipment, as well as from the bottom of the configuration at the beginning of the command, so that we can better solve the issue command configuration cumbersome, prone Configuring the wrong question. 本发明实施例的CFD协议自配置方式对CFD配置的维护功能没有影响,具备自动配置的设备可加入到手动方式配置的维护域中。 Of CFD embodiment of the present invention has no effect on self-configuration arranged CFD maintenance functions, with automatic configuration apparatus may be added to maintain the domain configuration manually. 从整个网络看,自动生成的维护域完整并且合理,并且能根据需要自由对维护域进行划分。 From the entire network, auto-generated MDs complete and reasonable, and the freedom of MDs are divided according to need.

[0115] 基于相同的技术构思,本发明实施例还提供了一种可应用于上述流程的通信设备。 [0115] Based on the same technical concept, embodiments of the present invention further provides a communication apparatus may be applied to the above-described process.

[0116] 参见图7,为本发明实施例提供的通信设备的结构示意图。 [0116] Referring to Figure 7, a schematic view of the structure of a communication device according to an embodiment of the present invention. 如图所示,该通信设备可包括: As shown, the communication device may comprise:

[0117] 第一配置模块701,用于接收维护域级别配置命令,并根据该命令配置本设备的维护域级别; [0117] a first configuration module 701 receives the maintenance domain level for configuration commands, and configuration maintenance domain level of the equipment according to the command;

[0118] 报文处理模块702,用于在本设备位于维护域边界且被选择为主设备的情况下,在所述VLAN中发送具有所述维护域级别的CC报文;在本设备作为从设备的情况下,在接收到主设备发送的CC报文后返回LT报文,并向该LT报文的发送方从设备返回LTR报文; [0118] message processing module 702 configured in this case is in the maintenance device gamut boundary and the selected master device, and having a transmission in the VLAN of the maintenance domain level CC message; device as a slave in the present in the case of the device, after receiving the CC message from the master device transmitting return packets LT, LT and the packets return to the sender apparatus from the LTR;

[0119] 第二配置模块703,用于在本设备作为从设备的情况下,若存在收到过LT报文且回复过LTR报文的端口,则在其上配置维护中间点,并在与该维护中间点具有相同维护域级别的其它端口上配置维护中间点;否则,在收到过CC报文且未回复过LTR报文的端口上配置外向维护端点;在本设备作为主设备的情况下,在发送CC报文的端口上配置外向维护端点。 [0119] The second configuration module 703, as used in the present apparatus from the device in the case, if there is received packets and returned LT LTR packets through the port, the MIPs are configured thereon, and with the MIPs MIPs are configured with other ports to maintain the same domain level; otherwise, the received CC message and does not return through the port configuration of the LTR outward MEPs; in the present device as the primary device under configure outgoing MEPs port sends CC messages.

[0120] 上述通信设备还可包括: [0120] The communication device further comprising:

[0121] 维护点列表模块704,用于在本设备作为主设备的情况下,根据报文处理模块702 接收到的LT报文生成维护点列表,所述维护点列表中记录有返回LT报文的从设备的桥MAC 地址和到达该从设备所需的二层转发次数; [0121] point list maintenance module 704, in a case where the present apparatus is used as a main device, according to the received message processing module 702 maintains LT message generation point list, the list of service points is recorded packets returned LT the number of transfer times from equipment needed Layer MAC address of the device from the bridge and landing;

[0122] 链路检测模块705,用于在本设备作为主设备的情况下,根据所述维护点列表对该列表中的各从设备进行链路跟踪,并将跟踪结果与所述维护点列表中各从设备的桥MAC地址和到达该从设备所需的二层转发次数进行比较; [0122] the link detection module 705, in a case where the present apparatus is used as a main device, according to the list of the list of service points for each link from the tracking device and the tracking result and the maintenance point list each compares the MAC address of the bridge device and the repeater device from the desired floor arrival times;

[0123] 第三配置模块706,用于在本设备作为主设备的情况下,在链路检测模块705的比较结果一致时,使能本设备端口上的CFD配置,并发送配置结束报文;在本设备作为从设备的情况下,在接收到配置结束报文后使能各自设备端口上的CFD配置。 [0123] The third configuration module 706, in a case where the present apparatus is used as a master device, when the comparison result is consistent link detection module 705 of the present apparatus can be on the CFD port configuration, that configuration is completed and transmits the message; this device as a device from the case, upon receiving the configuration packet to enable each end of the CFD port disposed on the device.

[0124] 上述通信设备还可包括:配置清除模块707,用于在本设备作为主设备的情况下, 若链路检测模块705的比较如果不一致,则清除本设备端口上本次CFD协议配置过程中已完成的配置,并发送配置取消报文;在本设备作为从设备的情况下,在接收到配置取消报文后清除本设备端口上本次CFD协议配置过程中已完成的配置。 [0124] The communication device further comprising: a module 707 configured to clear, in the case where the present apparatus is used as a master device, when the link detection module 705. If not the comparison, the present apparatus is cleared on this port configuration of CFD in the completed configuration, the configuration is removed and sends packets; arranged as in the present device, remove the device from the case after receiving the configuration message to cancel the current of CFD port disposed on the device in the process has been completed.

[0125] 上述通信设备中,配置清除模块707还可用于:在本设备作为主设备的情况下,若未接收到从设备返回的LT报文,则清除本设备端口上本次CFD协议配置过程中已完成的配置,并发送配置取消报文;在本设备作为从设备的情况下,在接收到配置取消报文后清除本设备端口上本次CFD协议配置过程中已完成的配置;或者,在本设备作为主设备或从设备的情况下,若接收到配置客户端发送的配置取消报文,则清除本设备端口上本次CFD协议配置过程中已完成的配置。 [0125] The communication device is configured to delete module 707 may also be used: in the case where the present apparatus as a main device, if no packet is received from the LT return device, of CFD clears this port on the device configuration procedure in the completed configuration, and sending configurations cancellation message; in the present apparatus as the case of the device, cancel receiving the configuration to clear the current of CFD on the device port after packet configuration process has been completed configuration; or in the present apparatus as a master or a slave device in the case, if the cancellation is received configuration packet sent by the client configuration, it clears the current configuration of CFD port on the machine completed configuration.

[0126] 上述通信设备中,报文处理模块702可具体用于,在本设备作为主设备的情况下, 在第一时长内周期发送所述维护域级别的CC报文;链路检测模块705可具体用于:在第二时长后根据所述维护点列表对该列表中的各从设备进行链路跟踪;第二配置模块703可具体用于:在本设备作为从设备的情况下,在接收到第一个CC报文开始到达第三时长时,若本设备存在收到过LT报文且回复过LTR报文的端口,则在该端口上配置维护中间点,并在与该维护中间点具有相同维护域级别的其它端口上配置维护中间点;否则,在收到过所述CC报文且未回复过LTR报文的端口上配置外向维护端点。 [0126] The communication device, the message processing module 702 may be specifically configured, in a case where the present apparatus as the master device, at a first transmission period within the duration of the maintenance domain level packet CC; link detection module 705 may be specifically configured to: after the second time according to the maintenance point list lists each of the track from the device to perform link; a second configuration module 703 may be specifically configured to: in a case where the present apparatus from the device in upon receiving the first start of message CC reaches the third duration, if the present devices exist LT received packet and reply packets through port LTR, the MIPs are configured on the port, and in the middle of the maintenance MIPs are configured having a point other ports to maintain the same domain level; otherwise, the received CC message and does not respond to packets through the LTR of outward-port configuration.

[0127] 综上所述,本发明实施例对一个维护域中所有设备,只需要少量配置命令就可以完成预智能组网预配置,然后再经过在一个主设备发起智能自适应组网连通性检测,最后完成整个组网环境的搭建。 [0127] In summary, embodiments of the present invention for a domain maintains all devices, only a small amount to complete a pre-arranged command intelligent network pre-configured, and then through the network connectivity of intelligent adaptive initiate a master device in testing, set up to finalize the entire network environment. 并且,本发明实施例一定程度上避免了手动配置所导致的相关属性配置错误的问题,并可进一步通过连通性检测来保证配置的有效性。 Further, the embodiment of the present invention avoids the problems caused by manual configuration related attributes according to configuration errors to some extent, and may be further configured to ensure the validity of the communication by detection. 另外,当网络环境变化时,只需要重新执行方案,就能自动适应当前网络环境。 In addition, when the network environment changes, you only need to re-implementation of the program, you will be able to automatically adapt to the current network environment.

[0128] 通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。 [0128] By the above described embodiments, those skilled in the art may clearly understand that the present invention may be implemented by software plus a necessary universal hardware platform, also be implemented by hardware, but the former is in many cases more good embodiments. 基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台终端设备(可以是手机,个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。 Based on such understanding, the technical solutions of the present invention in essence or the part contributing to the prior art may be embodied in a software product, which computer software product is stored in a storage medium and includes several instructions to enable a terminal devices (which may be a mobile phone, a personal computer, a server, or network device) to execute the methods according to embodiments of the present invention. [0129] 以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视本发明的保护范围。 [0129] The above are only preferred embodiments of the present invention, it should be noted that those of ordinary skill in the art, in the present invention without departing from the principles of the premise, can make various improvements and modifications, such modifications and modifications should also depend on the scope of the present invention.

Claims (10)

  1. 1. 一种连通错误检测CFD协议配置方法,其特征在于,应用于为指定虚拟局域网VLAN 中设定数量的设备配置具有相同维护域级别的维护域的过程,所述设定数量的设备中包括一个位于维护域边界且被选择为主设备的设备,其余为从设备,该方法包括:主设备和各从设备分别接收维护域级别配置命令,并根据该命令配置本设备的维护域级别;主设备在所述VLAN中发送具有所述维护域级别的连续性检测CC报文,各从设备接收到CC报文后返回链路跟踪LT报文,其中,接收到LT报文的中间设备向该LT报文的发送方设备返回链路跟踪应答LTR报文;主设备在发送CC报文的端口上配置外向维护端点,存在收到过LT报文且回复过LTR 报文的端口的从设备,在该端口上配置维护中间点,并在与该维护中间点具有相同维护域级别的其它端口上配置维护中间点;其它从设备在收到过C A communication protocol configuration CFD error detection method, comprising the same process applied to a maintenance domain level of maintenance domain is designated a VLAN number set in the device configuration, the apparatus comprises a set number of a domain boundary is in the maintenance device and the master device is selected, the rest from the device, the method comprising: a master device and each device receives the command MD level configuration, and configuration maintenance domain level of the equipment according to the command from; main continuity detection device sends a CC packet of the maintenance domain level in the the VLAN, each of the receiving device to the return link from the CC packet trace LT packets, wherein the intermediate device receiving packets to LT LT message sender device tracking return link response message LTR; master device disposed on the outgoing port sends CC messages MEP, the presence of LT packets received and replied to the LTR of the port from the device, MIPs are configured on the port, and MIPs are configured in the same port on the other MD level having the MIPs; other device received from a C C报文且未回复过LTR报文的端口上配置外向维护端点。 C packets and not replied to configure outgoing MEPs on the LTR port.
  2. 2.如权利要求1所述的方法,其特征在于,还包括:主设备根据接收到的LT报文生成维护点列表,所述维护点列表中记录有返回LT报文的从设备的桥MAC地址和到达该从设备所需的二层转发次数;主设备根据所述维护点列表对该列表中的各从设备进行链路跟踪,并将跟踪结果与所述维护点列表中各从设备的桥MAC地址和到达该从设备所需的二层转发次数进行比较,如果一致,则使能本设备端口上的CFD配置,并发送配置结束报文;各从设备接收到配置结束报文后,使能各自设备端口上的CFD配置。 2. The method according to claim 1, characterized in that, further comprising: a master device generates a list of service points in accordance with LT packets received, the list of service points is recorded LT return packets from a MAC bridge device and a forwarding address from reaching the required number of Layer 2 device; according to the master device maintains a list of points for each of the track link from the device list, and the tracking result and the maintenance list of each point from the device bridge MAC address and the forwarding frequency and reach the desired device compares the floor, if yes, enable CFD arranged on the device port, and sending the configuration message ends; each of the slave device receives the configuration after the end of the packet, CFD enabled device arranged on each port.
  3. 3.如权利要求2所述的方法,其特征在于,还包括:主设备将跟踪结果与所述维护点列表中各从设备的桥MAC地址和到达该从设备所需的二层转发次数进行比较时,若如果不一致,则清除本设备端口上本次CFD协议配置过程中已完成的配置,并发送配置取消报文;各从设备接收到配置取消报文后,清除本设备端口上本次CFD协议配置过程中已完成的配置。 3. The method according to claim 2, characterized in that, further comprising: a main device with the tracing result of the maintenance of each point from the list forwarded from the equipment required number of Layer 2 MAC address of the device and the bridge reaches comparison, if if not, remove the current CFD protocol configuration procedure on the local device port completed configuration, and sending configurations cancellation message; each slave device receives the configuration is removed packet, remove the current on the device port CFD protocol configuration process is complete configuration.
  4. 4.如权利要求1所述的方法,其特征在于,还包括:若主设备未接收到从设备返回的LT报文,则清除本设备端口上本次CFD协议配置过程中已完成的配置,并发送配置取消报文;从设备接收到配置取消报文后,清除本设备端口上本次CFD协议配置过程中已完成的配置;或者若主设备和从设备接收到配置客户端发送的配置取消报文,则清除本设备端口上本次CFD协议配置过程中已完成的配置。 4. The method according to claim 1, characterized in that, further comprising: if the master device does not receive the LT return packets from the device, the present device clears this port configuration of CFD configuration process has been completed, and sending configurations cancellation message; after receiving from the device the configuration cancel message, clearing this CFD protocol configuration procedure on the local device port completed configuration; or if the master device and the slave device receiving the configuration client configuration sends the cancel message, clear this port on this device CFD protocol configuration process is complete configuration.
  5. 5.如权利要求2-4之一所述的方法,其特征在于,主设备在第一时长内周期发送所述维护域级别的CC报文,并在第二时长后根据所述维护点列表对该列表中的各从设备进行链路跟踪;从设备从接收到第一个CC报文开始到达第三时长时,若本设备存在收到过LT报文且回复过LTR报文的端口,则在该端口上配置维护中间点,并在与该维护中间点具有相同维护域级别的其它端口上配置维护中间点;否则,在收到过所述CC报文且未回复过LTR报文的端口上配置外向维护端点;其中,第二时长大于第一时长,第三时长不小于第一时长。 5. The method according to one of claims 2-4, wherein the master device transmits a first cycle duration of the maintenance domain level CC packet, and the second time according to the maintenance point list the list for each link from the tracking device; CC when from the first device to the third packet starts from the received long, if present devices exist LT packets received and replied to the LTR port, port is disposed on the MIPs, and having the MIPs MIPs are configured on the other port of the same maintenance domain level; otherwise, the received CC message and does not respond to packets through LTR MEPs port disposed outward; wherein, when the second duration longer than the first, the third time not shorter than the first duration.
  6. 6. 一种通信设备,其特征在于,应用于为指定虚拟局域网VLAN中设定数量的设备配置具有相同维护域级别的维护域的过程,该通信设备包括:第一配置模块,用于接收维护域级别配置命令,并根据该命令配置本设备的维护域级别;报文处理模块,用于在本设备位于维护域边界且被选择为主设备的情况下,在所述VLAN中发送具有所述维护域级别的连续性检测CC报文;在本设备作为从设备的情况下,在接收到主设备发送的CC报文后返回链路跟踪LT报文,并在接收到其它从设备返回的LT报文时向该LT报文的发送方从设备返回链路跟踪应答LTR报文;第二配置模块,用于在本设备作为从设备的情况下,若存在收到过LT报文且回复过LTR报文的端口,则在其上配置维护中间点,并在与该维护中间点具有相同维护域级别的其它端口上配置维护中间点;否则,在收到过CC报文 A communication apparatus, characterized in that, the same procedure is applied to a maintenance domain level of maintenance domain is designated a VLAN number set in the device configuration, the communication device comprising: a first module configured to receive the maintenance domain level configuration commands and configuration maintenance domain level of the equipment according to the command; message processing module, configured to present the case of the device gamut boundary and is in the maintenance device is selected based, in the transmission having the VLAN MD level of continuity check CC packet; in the case of the present device as a slave device, after receiving the return link CC message sent by the master tracking LT packets, and received back from the other device LT LT to the sender of the message packet returns a response from the tracking device link packet LTR; a second module configured for this device as a device from the case, if there is packet received and replied to LT LTR packet port, on which the MIPs are configured, and having the MIPs MIPs are configured on the other port of the same maintenance domain level; otherwise, the received CC message 且未回复过LTR报文的端口上配置外向维护端点;在本设备作为主设备的情况下,在发送CC报文的端口上配置外向维护端点。 And not replied to the configuration of outward-port on the LTR; in the case of this device as a primary device disposed MEPs outgoing port sends CC messages.
  7. 7.如权利要求6所述的通信设备,其特征在于,还包括:维护点列表模块,用于在本设备作为主设备的情况下,根据所述报文处理模块接收到的LT报文生成维护点列表,所述维护点列表中记录有返回LT报文的从设备的桥MAC地址和到达该从设备所需的二层转发次数;链路检测模块,用于在本设备作为主设备的情况下,根据所述维护点列表对该列表中的各从设备进行链路跟踪,并将跟踪结果与所述维护点列表中各从设备的桥MAC地址和到达该从设备所需的二层转发次数进行比较;第三配置模块,用于在本设备作为主设备的情况下,在所述链路检测模块的比较结果一致时,使能本设备端口上的CFD配置,并发送配置结束报文;在本设备作为从设备的情况下,在接收到配置结束报文后使能各自设备端口上的CFD配置。 7. The communication apparatus according to claim 6, characterized in that, further comprising: maintaining a list module point, in the case where the present apparatus is used as a main device, according to the packet processing module receives the message generation LT maintenance point list, the list of service points is recorded LT return packets from the bridge and a MAC address of the device reaches the desired transfer times from Layer device; link detection module configured in this device as the primary device case, according to the maintenance point from the list of the equipment needed for each floor for a link from the tracking device, and the result of the tracking point list of the maintenance bridge MAC address of each device and the arrival from the list comparing the number of forwarding; a third configuration module, in the case where the present apparatus is used as a master device, when the comparison result of the link detection module, configured to enable CFD port on the device, and transmits the configuration packet ends text; the case of the present device as a slave device, upon receiving the configuration packet to enable each end of the CFD port disposed on the device.
  8. 8.如权利要求7所述的通信设备,其特征在于,还包括:配置清除模块,用于在本设备作为主设备的情况下,若所述链路检测模块的比较如果不一致,则清除本设备端口上本次CFD协议配置过程中已完成的配置,并发送配置取消报文;在本设备作为从设备的情况下,在接收到配置取消报文后清除本设备端口上本次CFD 协议配置过程中已完成的配置。 8. The communication apparatus according to claim 7, characterized in that, further comprising: a module configured to clear, in the case of the present apparatus is used as a main device, if the comparison of the link detection module and if not, this is cleared ports on the device the CFD protocol configuration process has been completed configuration, and sending configurations cancellation message; this device as a clear this CFD protocol of the present device port upon receiving the configuration cancel message from the case where the device is disposed configuration process has been completed.
  9. 9.如权利要求6所述的通信设备,其特征在于,所述配置清除模块还用于,在本设备作为主设备的情况下,若未接收到从设备返回的LT报文,则清除本设备端口上本次CFD协议配置过程中已完成的配置,并发送配置取消报文;在本设备作为从设备的情况下,在接收到配置取消报文后清除本设备端口上本次CFD协议配置过程中已完成的配置;或者,在本设备作为主设备或从设备的情况下,若接收到配置客户端发送的配置取消报文,则清除本设备端口上本次CFD协议配置过程中已完成的配置。 9. The communication apparatus according to claim 6, wherein the configuration module is further configured to remove, in a case where the present apparatus as a main device, if not receiving the LT return packets from the device, this is cleared ports on the device the CFD protocol configuration process has been completed configuration, and sending configurations cancellation message; this device as a clear this CFD protocol of the present device port upon receiving the configuration cancel message from the case where the device is disposed process completed configuration; or, in the present apparatus as a master or slave when the device is disposed when receiving the configuration sent by the client to cancel message, clears the current CFD protocol configuration on the device port process has completed Configuration.
  10. 10.如权利要求6-9之一所述的通信设备,其特征在于,所述报文处理模块具体用于, 在本设备作为主设备的情况下,在第一时长内周期发送所述维护域级别的CC报文;所述链路检测模块具体用于,在第二时长后根据所述维护点列表对该列表中的各从设备进行链路跟踪;第二配置模块具体用于,在本设备作为从设备的情况下,在接收到第一个CC报文开始到达第三时长时,若本设备存在收到过LT报文且回复过LTR报文的端口,则在该端口上配置维护中间点,并在与该维护中间点具有相同维护域级别的其它端口上配置维护中间点; 否则,在收到过所述CC报文且未回复过LTR报文的端口上配置外向维护端点; 其中,第二时长大于第一时长,第三时长不小于第一时长。 10. The communication apparatus according to one of claims 6-9, wherein said message processing module is configured, in a case where the present apparatus as a main device, a first transmission duration of the maintenance period within CC packet domain level; the link detection module is used, after the second time according to the maintenance point list lists each of the track from the device to perform link; a second module is configured to, in the this device as a device from the case, upon receiving the first start of message CC reaches a third duration, if the present devices exist LT packets received and replied to the LTR port is disposed on the port MIPs, and having the MIPs MIPs are configured on the other port of the same maintenance domain level; otherwise, the received CC message and not replied to configure outgoing packets on port LTR MEP ; wherein, when the second duration longer than the first, the third time not shorter than the first duration.
CN 201110162245 2011-06-16 2011-06-16 CFD (connectivity fault detection) protocol configuration method and device thereof CN102215130B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110162245 CN102215130B (en) 2011-06-16 2011-06-16 CFD (connectivity fault detection) protocol configuration method and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110162245 CN102215130B (en) 2011-06-16 2011-06-16 CFD (connectivity fault detection) protocol configuration method and device thereof

Publications (2)

Publication Number Publication Date
CN102215130A true true CN102215130A (en) 2011-10-12
CN102215130B CN102215130B (en) 2013-12-11

Family

ID=44746269

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110162245 CN102215130B (en) 2011-06-16 2011-06-16 CFD (connectivity fault detection) protocol configuration method and device thereof

Country Status (1)

Country Link
CN (1) CN102215130B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103036793A (en) * 2012-12-17 2013-04-10 杭州华三通信技术有限公司 Delivery method of connectivity fault detection protocol messages and forwarding equipment
CN103152202A (en) * 2013-03-13 2013-06-12 华为技术有限公司 Parameter deployment method, communication node and communication network
CN103354549A (en) * 2013-07-01 2013-10-16 杭州华三通信技术有限公司 Method and device for realizing CFD based on dynamic VLAN registration protocol
WO2014201613A1 (en) * 2013-06-17 2014-12-24 华为技术有限公司 Mep configuration method and network device
CN104660469A (en) * 2015-02-15 2015-05-27 华为技术有限公司 Layer-2 network connectivity detecting method and associated equipment
US9197524B2 (en) 2012-12-10 2015-11-24 Accton Technology Corporation Network device and network device recognition method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101056233A (en) * 2006-04-13 2007-10-17 华为技术有限公司 A multi-host network architecture and gateway device
US20080151780A1 (en) * 2006-12-20 2008-06-26 Alcatel Lucent Bridge and Method for Optimization of Memory for Ethernet OAM Multicast Frames
US20080218173A1 (en) * 2007-03-09 2008-09-11 De La Puente Edmundo Methods and apparatus for testing a circuit
CN101656650A (en) * 2009-09-17 2010-02-24 杭州华三通信技术有限公司 Method and main link device for realizing automatic configuration of Ethernet ring
CN101834687A (en) * 2009-03-11 2010-09-15 华为技术有限公司 Method, system and device for switching main and spare light access networks
CN101849390A (en) * 2007-11-01 2010-09-29 爱立信电话股份有限公司 Connectivity fault management in a provider backbone bridge traffic engineering (PBB-TE) domain

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101056233A (en) * 2006-04-13 2007-10-17 华为技术有限公司 A multi-host network architecture and gateway device
US20080151780A1 (en) * 2006-12-20 2008-06-26 Alcatel Lucent Bridge and Method for Optimization of Memory for Ethernet OAM Multicast Frames
US20080218173A1 (en) * 2007-03-09 2008-09-11 De La Puente Edmundo Methods and apparatus for testing a circuit
CN101849390A (en) * 2007-11-01 2010-09-29 爱立信电话股份有限公司 Connectivity fault management in a provider backbone bridge traffic engineering (PBB-TE) domain
CN101834687A (en) * 2009-03-11 2010-09-15 华为技术有限公司 Method, system and device for switching main and spare light access networks
CN101656650A (en) * 2009-09-17 2010-02-24 杭州华三通信技术有限公司 Method and main link device for realizing automatic configuration of Ethernet ring

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9197524B2 (en) 2012-12-10 2015-11-24 Accton Technology Corporation Network device and network device recognition method
CN103036793A (en) * 2012-12-17 2013-04-10 杭州华三通信技术有限公司 Delivery method of connectivity fault detection protocol messages and forwarding equipment
CN103036793B (en) * 2012-12-17 2015-09-16 杭州华三通信技术有限公司 The method of transmitting communication protocol error detection and packet forwarding device
CN103152202B (en) * 2013-03-13 2016-03-30 华为技术有限公司 The method of deployment parameters, the communication node and the communication network
CN103152202A (en) * 2013-03-13 2013-06-12 华为技术有限公司 Parameter deployment method, communication node and communication network
WO2014201613A1 (en) * 2013-06-17 2014-12-24 华为技术有限公司 Mep configuration method and network device
CN104471897A (en) * 2013-06-17 2015-03-25 华为技术有限公司 Mep configuration method and network device
US9985862B2 (en) 2013-06-17 2018-05-29 Huawei Technologies Co., Ltd. MEP configuration method and network device
CN104471897B (en) * 2013-06-17 2018-02-06 华为技术有限公司 One kind of a network configuration method and apparatus mep
CN103354549A (en) * 2013-07-01 2013-10-16 杭州华三通信技术有限公司 Method and device for realizing CFD based on dynamic VLAN registration protocol
CN103354549B (en) * 2013-07-01 2016-05-04 杭州华三通信技术有限公司 Method and apparatus for implementing dynamic cfd based registration protocol vlan
CN104660469A (en) * 2015-02-15 2015-05-27 华为技术有限公司 Layer-2 network connectivity detecting method and associated equipment

Also Published As

Publication number Publication date Type
CN102215130B (en) 2013-12-11 grant

Similar Documents

Publication Publication Date Title
US20050249123A1 (en) System and method for detecting link failures
US20090207726A1 (en) System and method for network recovery from multiple link failures
US20080112333A1 (en) Communicating an operational state of a transport service
US7027406B1 (en) Distributed port-blocking method
US20060031482A1 (en) Connectivity fault notification
US20090116497A1 (en) Ethernet Performance Monitoring
US20050099952A1 (en) Ethernet OAM performance management
US20050099949A1 (en) Ethernet OAM domains and ethernet OAM frame format
US20050099951A1 (en) Ethernet OAM fault detection and verification
US20050099954A1 (en) Ethernet OAM network topography discovery
US20060039366A1 (en) Port aggregation for fibre channel interfaces
US20050099955A1 (en) Ethernet OAM fault isolation
US20070183313A1 (en) System and method for detecting and recovering from virtual switch link failures
US7995483B1 (en) Simultaneously testing connectivity to multiple remote maintenance endpoints of the same maintenance association
US20040165595A1 (en) Discovery and integrity testing method in an ethernet domain
US20070140126A1 (en) Method and system for originating connectivity fault management (CFM) frames on non-CFM aware switches
CN101094157A (en) Method for implementing network interconnection by using link aggregation
CN101022390A (en) Method, system and equipment for protecting double-return switch-in RRPP loop network
US20120281524A1 (en) Technique for Controlling Data Forwarding in Computer Networks
CN1645834A (en) Method and device for loop discovery, space reuse and protection conversion in MAC bridge connecting network
US20150249572A1 (en) Software-Defined Network Control Using Functional Objects
CN101051951A (en) Method and device for securing server connection reliability
CN101714932A (en) MAD testing method and device for IRF stacker
CN101459534A (en) Network topology collecting method for tree shaped network and network equipment
CN101610193A (en) Method for automatically discovering Ethernet ring and generating ring

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model
CP03