WO2012171380A1 - Far-end failure processing method and device for ethernet - Google Patents
Far-end failure processing method and device for ethernet Download PDFInfo
- Publication number
- WO2012171380A1 WO2012171380A1 PCT/CN2012/072829 CN2012072829W WO2012171380A1 WO 2012171380 A1 WO2012171380 A1 WO 2012171380A1 CN 2012072829 W CN2012072829 W CN 2012072829W WO 2012171380 A1 WO2012171380 A1 WO 2012171380A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- edge device
- associated port
- port
- message
- fault
- 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.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
Definitions
- the present invention relates to the field of communications, and in particular to a method and apparatus for processing an Ethernet remote fault.
- Ethernet technology has been widely used in local area networks, metropolitan area networks, and wide area networks due to its advantages of simplicity, ease of use, and low cost.
- OAM operation, management, and maintenance
- the Ethernet OAM mechanism mainly includes a link layer OAM mechanism and a service layer OAM mechanism (CFM, connectivity fault management).
- the ETH-OAM is an OAM mechanism for the direct link. It is mainly configured to manage and maintain the local link. It can provide functions such as remote discovery, remote loopback, remote fault indication, and link monitoring.
- Connection Fault Management (CFM) is mainly for carrier networks and uses a multi-domain network model. CFM enables end-to-end fault management.
- the network administrator divides the network into several nestable maintenance domains based on management and maintenance purposes.
- the network is defined by defining a series of maintenance points (MPs) on the maintenance domain. Management and maintenance. Through CFM, network administrators can effectively check, isolate, and report connectivity faults on virtual bridge LANs.
- the main functions of CFM are: connectivity check, loopback detection, link tracking, and alarms.
- a single CFM maintenance domain is shown in Figure 1.
- the maintenance domain in the figure defines a series of maintenance points on the edge device and internal devices.
- the W point indicates the maintenance end point (Maintenance End Point, ⁇ for short). Indicates the Maintenance Intermediate Point (MIP).
- MIP Maintenance Intermediate Point
- the service-based Ethernet OAM implements the management and maintenance functions through MEP and MIP.
- the Ethernet OAM mechanism can diagnose faults in the management domain and use corresponding mechanisms (such as Spanning-Tree Protocol (ST:P), EAPS, etc.) to take corresponding switching measures.
- ST:P Spanning-Tree Protocol
- EAPS etc.
- the fault detection and linkage mechanism for the uplink and downlink access links is lacking. For example, in some special application scenarios in the carrier network, when the uplink fails, the downlink becomes unavailable.
- the uplink and downlink do not belong to the same network administrator, the uplink cannot be used.
- the failure of the link is notified to the downlink, causing the downlink to fail to respond to the failure in a timely manner.
- the network between E and F (including E and F) is the carrier network
- A is the server
- B is the user who uses the service of A. If the link between A and E fails, AEFB This link can't communicate normally, and B can't continue to use A. Service, but since B cannot sense the link failure between A and E, even user B uses high availability (High
- a method for processing an Ethernet remote fault including: receiving, by a second edge device at one end of the access link, a first message sent by a first edge device at another end of the access link, The first message is sent by the first edge device when it detects that the associated first associated port is faulty, and the first message carries the fault information of the first associated port.
- the second edge device is configured according to the first associated port.
- the fault information and the physical state of the second associated port associated with the second edge device close the second associated port.
- the method before the second edge device receives the message sent by the first edge device, the method further includes: the first edge device detecting that the first associated port associated with it fails, and sending the first message to the second edge device.
- the method further comprises: the second edge device updating the physical state of the second associated port to a closed state.
- the method includes: the second edge device generates fault alarm information.
- the method further includes: the second edge device receiving the second message sent by the first edge device, where the second message is that the first edge device detects the first And the second message carries the fault recovery information of the first associated port; the second edge device opens according to the fault recovery information of the first associated port and the current physical state of the second associated port.
- the second associated port Preferably, after the second edge device opens the second associated port, the method further comprises: the second edge device updating the physical state of the second associated port to an open state.
- the method further includes: the second edge device generating fault recovery alarm information.
- a device for processing an Ethernet remote fault including: a receiving module, configured to receive a first message sent by a first edge device at another end of the access link, where The message is sent by the first edge device when detecting that the associated first associated port is faulty, and is carried in the first message.
- the fault information of the first associated port is configured to: close the second associated port according to the fault information of the first associated port and the physical state of the second associated port associated with the second edge device.
- the receiving module is further configured to receive the second message sent by the first edge device, where the second message is sent by the first edge device when detecting the failure recovery of the first associated port, and the second message is carried in the second message.
- the execution module is further configured to open the second associated port according to the fault recovery information of the first associated port and the physical state of the second associated port associated with the second edge device.
- the foregoing apparatus further includes: an updating module, configured to update a physical state of the second associated port according to an operation performed by the execution module on the second associated port.
- the foregoing apparatus further includes: an alarm module, configured to generate corresponding alarm information according to information carried in the message received by the receiving module.
- FIG. 1 is a schematic diagram of a single CFM maintenance domain according to the related art
- FIG. 2 is a schematic diagram of an application example when a link fails according to the related art
- FIG. 3 is an Ethernet remote according to an embodiment of the present invention.
- Figure 4 is a schematic illustration of a one-to-many designation in accordance with a preferred embodiment of the present invention
- Figure 5 is a schematic illustration of a ring network designation in accordance with a preferred embodiment of the present invention
- Figure 6 is a preferred embodiment in accordance with the present invention.
- FIG. 10 Schematic diagram of the format of the Interface Status TLV field of the connectivity check message (CCM frame);
- Figure 2 is a diagram showing the value of the Interface Status TLV field of a connectivity check message (CCM frame) in accordance with a preferred embodiment of the present invention;
- Figure 8 is a process flow diagram of a port state change message in accordance with a preferred embodiment of the present invention;
- Is a process flow diagram of a connectivity check message (CCM frame) in accordance with a preferred embodiment of the present invention;
- FIG. 10 is a port state transition diagram in accordance with a preferred embodiment of the present invention;
- FIG. 11 is an Ethernet remote fault in accordance with an embodiment of the present invention.
- FIG. 12 is a schematic structural diagram of an apparatus for processing an Ethernet remote fault according to a preferred embodiment of the present invention
- FIG. 13 is a schematic structural view of a preferred apparatus according to a preferred embodiment of the present invention.
- the method mainly includes the following steps (step S302-step S304): Step S302, accessing one end of the link
- the second edge device receives the first message sent by the first edge device at the other end of the access link, where the first message is sent by the first edge device when detecting that the associated first associated port is faulty, and A message carries the fault information of the first associated port.
- the first edge device and the second edge device may be pre-arranged (where the first edge device is remote from the second edge device)
- the second edge device is configured with a fault detection and isolation function relative to the first edge device. For example, in FIG.
- the fault detection function can be configured on the edge device E, and the configured fault detection function is configured.
- Associate with port 1 (port l) configure isolation on edge device F, and associate fault isolation with port 2 (port 2).
- edge device E detects the associated port (that is, portl) associated with it.
- a message is sent to the edge device F (the message carries the fault information of port1).
- the second edge device may further generate fault alarm information. For example, in FIG.
- the physical states of the associated ports port1 and port3 can be separately monitored on the edge device E (ie, the first edge device) and the F (ie, the second edge device) at both ends.
- the network can be The end where the access link fails is called the designated end (that is, the edge device E of Figure 2), and the end (the opposite end) that needs to be fault-isolated is called the designated end (the edge device F of Figure 2).
- the specified method is not limited. It can be specified for one-way or two-way. Of course, if the condition allows, it can also be specified in multiple directions. In the embodiment of the present invention, the specified manner includes but is not limited to the following forms:
- FIG. 5 is a schematic diagram of a ring network application according to a preferred embodiment of the preferred embodiment of the present invention.
- port1 is down
- port 2 port 3
- port4 are closed.
- the specified end and the designated end are relative, and the specified role and the designated role are determined after the fault occurs.
- the peer the first edge device
- the peer end of the peer can be regarded as the designated end (the second edge device).
- the message carrying the fault information is sent to the peer end (the designated end) (for example, in the embodiment of the present invention, the message is a protocol frame), so as to reach the port.
- the failure notification of 1 is given to the designated end.
- the designated end may also generate fault alarm information.
- the second edge device closes the second associated port according to the fault information of the first associated port and the physical state of the second associated port associated with the second edge device.
- the second edge device receives the message carrying the fault information from the first edge device (the designated end), according to the first associated port (for example, the port port1 associated with the designated end)
- the fault information and the physical state of the second associated port close the second associated port (eg, port 2) for fault isolation purposes.
- the second edge device may also update the physical state of the second associated port to a closed state. For example, in FIG. 2, the port may be updated (also referred to as migration). 2 (port 2)
- the physical state is off.
- the second edge device closes the second associated port, if the first edge device detects failure recovery of its associated first associated port, the first edge device And sending, by the second edge device, a second message that carries the fault recovery information of the first associated port, the second edge device receives the second message sent by the first edge device, and then the second edge device recovers the information according to the failure of the first associated port. And opening a second associated port with the current physical state of the second associated port. After the second edge device receives the second message (carrying the fault recovery information) sent by the first edge device, the second edge device may further generate the fault recovery alarm information.
- the second edge device may also be the second
- the physical status of the associated port is updated to the open state.
- the physical state of port 2 can be updated (also referred to as migration).
- Step 1 on the edge devices E and F in FIG.
- the connectivity periodically sends a connectivity check message (CCM frame to the peer end, where the CCM frame includes
- Interface Status TLV field The format of the TLV field is shown in Figure 6.
- the Interface Status TLV field in the CCM frame carries the status of the associated port.
- Step 2 for two-way The physical status of the associated port is monitored at the two ends.
- the end is the designated end.
- Corresponding values where the value of the Interface Status TLV field is as shown in Figure 7) are advertised to the designated end; for unidirectional designation, only the state of the associated port needs to be monitored at the designated end, in a preferred implementation of the present invention.
- the Interface Status TIN field uses the values of isUp, isDown, and isDormant, which represent the three port states: the physical state of the port is up, the physical state of the port is down, and the port is artificial because it needs to isolate the remote fault. Close, where the local MEP processes the port status change message. The process is shown in Figure 8, which includes the following steps:
- 5802 Determine the type of the message. If it is the shutdown command, go to S803. If it is physical up, go to S804. If it is physical down, go to S805.
- the local port status is migrated to isDown, and the process ends.
- Step 3 After receiving the CCM frame, the edge device of the designated end may first check the Interface Status TLV field information carried by the edge device, and close or open the associated port according to the value of the Interface Status TLV field and the physical state of the associated port of the local end. The action of the fault isolation or fault recovery, and the corresponding alarms are generated, and the state of the associated port of the local end can be migrated (updated).
- the processing flow of the CCM frame is as shown in FIG. 9, and the process includes the following steps: S901. Receive, by the designated end, a CCM message.
- FIG. 10 is a port state transition diagram according to a preferred embodiment of the present invention.
- the event causing port state transition and its meaning are as follows: el: Receives a CCM frame carrying port status is isDown. E2: Received a CCM frame carrying the port status as isUp, or the CFM function fails for some reason, or the CCM continuity is lost. E3: Configure the shutdown command for the associated port. E4: Physical down of the associated port (including the shutdown command). E5: Associated port physical up (including the result of the no shutdown command).
- the response when the port state is migrated is as follows: rl : Set the associated port state to isDormant to physically drop the associated port.
- R2 Set the associated port status to isUp to physically raise the associated port.
- R3 Set the port status to isDown.
- R4 Set the associated port status to isUp.
- events other than el-e5 do not respond.
- the method for processing the remote fault of the Ethernet provided by the foregoing embodiment can detect the remote fault and isolate the fault at the local end. After the remote fault is eliminated, the local end can perform the recovery operation on the fault. You can notify the administrator to take appropriate action in time. In particular, if there is a backup link on the local end, you can quickly perform the switchover process to minimize data loss caused by remote faults.
- FIG. 11 is a schematic structural diagram of a device for processing an Ethernet remote fault according to an embodiment of the present invention.
- the device is located at a first edge device.
- the device includes: a receiving module 10 and an executing module 20.
- the receiving module 10 is configured to receive a first message sent by the first edge device at the other end of the access link, where the first message is sent by the first edge device when detecting that the associated first associated port is faulty. And the first message carries the fault information of the first associated port;
- the executing module 20 is connected to the receiving module 10, and is configured to be configured according to the fault information of the first associated port and the second associated port associated with the second edge device. Physical state, close the second associated port.
- the receiving module 10 is further configured to receive the second message sent by the first edge device, where the second message is sent by the first edge device when detecting the failure recovery of the first associated port, and the second message is carried in the second message.
- FIG. 12 is a schematic structural diagram of a device for processing an Ethernet remote fault according to a preferred embodiment of the present invention.
- the device is configured to implement the method for processing an Ethernet remote fault provided by the foregoing embodiment. As shown in FIG. 12, the device is further configured.
- the method may include: an alarm module 30 and an update module 40.
- FIG. 13 is a schematic structural diagram of a preferred apparatus according to a preferred embodiment of the present invention. As shown in FIG. 13, the preferred apparatus includes: a CFM unit 131, a driving unit 132, a transceiver unit 133, an interface management unit 134, an alarm unit 135, and Operation and maintenance unit 136.
- the CFM unit 131 is configured to operate the protocol and maintain a port state state machine, and can notify the local end fault, and can also detect the remote fault, and notify the driving unit 132 to perform fault isolation and fault recovery operations;
- the unit 132 is configured to close or open the port to implement fault isolation and fault recovery;
- the transceiver packet unit 133 is configured to send and receive a fault notification message;
- the interface management unit 134 is configured to periodically poll the associated port state, and The change information of the status of the associated port is notified to the CFM unit 131;
- the alarm unit 135 is configured to generate an alarm when detecting the remote fault or the remote fault recovery, and notify the network administrator;
- the operation and maintenance unit 136 is configured to receive the configuration command of the user. And issued to the relevant unit.
- the remote end fault processing device provided by the foregoing embodiment can detect the remote fault and isolate the fault at the local end. After the remote fault is eliminated, the local end can perform the recovery operation on the fault. You can notify the administrator to take appropriate action in time. In particular, if there is a backup link on the local end, you can quickly perform the switchover process to minimize data loss caused by remote faults. From the above description, it can be seen that the present invention achieves the following technical effects:
- the method and device for processing an Ethernet remote fault are used to solve the uplink or downlink failure in the prior art due to uplink
- the edge device in the network can detect the link fault periodically, and notify the edge device of the peer end after detecting the fault, so that the edge device of the peer end closes the port associated with it according to the fault information, and opens the link after the link fault is recovered.
- the port thus retransmits the data.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
Description
以太网远端故障的处理方法及装置 技术领域 本发明涉及通信领域, 具体而言, 涉及一种以太网远端故障的处理方法及装置。 背景技术 以太网技术由于具有简单易用、 价格低廉的优点, 其在局域网、 城域网、 广域网 范围内都已经得到大规模的应用。 但是由于以太网最初为局域网设计, 并未建立管理 维护的机制, 随着以太网应用范围的逐渐扩大, 在以太网上实现操作、 管理和维护 (Operation, Administration, Maintenance, 简称为 OAM)机制成为必然的发展趋势, 由此, ETH-OAM (以太网 OAM) 协议应运而生, 它可以有效提高对以太网的管理和 维护能力, 保障网络的稳定运行。 以太网 OAM机制主要包括链路层 OAM机制和服 务层 OAM机制(CFM, 连通性故障管理)。 ETH-OAM是针对直连链路的 OAM机制, 主要设置为本地链路的管理和维护, 可以提供远端发现、 远端环回、 远端故障指示及 链路监控等功能。 连接故障管理(Connectivity Fault Management, 简称为 CFM)主要 是针对运营商网络, 采用多域的网络模型。 CFM能够实现端到端的故障管理, 网络管 理者基于管理和维护的目的, 将网络划分为若干个可嵌套的维护域, 通过在维护域上 定义一系列的维护点 (MP) 来实现网络的管理和维护。 通过 CFM, 网络管理者可以 有效地对虚拟桥局域网进行检查、 隔离及连通性故障报告, CFM的主要功能有: 连通 性检查, 环回检测、 链路跟踪及告警等。 单个 CFM维护域如图 1所示, 图中的维护 域在边缘设备和内部设备上定义了一系列的维护点, 其中, W 点表示维护域端点 ( Maintenance End Point , 简称为 ΜΕΡ ), Ν 点表示维护域中间点 (Maintenance Intermediate Point, 简称为 MIP), 基于服务的以太网 OAM就是通过 MEP和 MIP来 实现管理维护功能的。 目前, 以太网 OAM机制可以对管理域范围内的故障做出诊断, 并借助其他机制 (如生成树协议 (Spanning- Tree Protocol, 筒称为 ST:P), EAPS等), 采取相应的倒换 措施, 保障网络的可靠性, 但是缺少对上、 下行接入链路的故障检测和联动机制。 比 如, 在运营商网络中的一些特殊的应用场景下, 当上行链路出现故障后, 下行链路也 变得不可用, 但是由于上、 下行链路不属于同一个网络管理者, 无法将上行链路的故 障通知到下行链路, 导致下行链路无法及时地对故障做出反应。 如图 2所示, E, F之 间的网络(包括 E、 F)为运营商网络, A为服务器, B为使用 A的服务的用户, 如果 A、 E之间的链路出现故障, A-E-F-B这条链路则不能正常通信, B也无法继续使用 A 的服务,但是由于 B无法感知 A、E之间的链路故障,即使用户 B使用了高可用性 (HighThe present invention relates to the field of communications, and in particular to a method and apparatus for processing an Ethernet remote fault. BACKGROUND OF THE INVENTION Ethernet technology has been widely used in local area networks, metropolitan area networks, and wide area networks due to its advantages of simplicity, ease of use, and low cost. However, since Ethernet was originally designed for LAN, there is no mechanism for management and maintenance. With the gradual expansion of Ethernet applications, the operation, management, and maintenance (OAM) mechanism on Ethernet becomes inevitable. The development trend, the ETH-OAM (Ethernet OAM) protocol came into being, it can effectively improve the management and maintenance of Ethernet, and ensure the stable operation of the network. The Ethernet OAM mechanism mainly includes a link layer OAM mechanism and a service layer OAM mechanism (CFM, connectivity fault management). The ETH-OAM is an OAM mechanism for the direct link. It is mainly configured to manage and maintain the local link. It can provide functions such as remote discovery, remote loopback, remote fault indication, and link monitoring. Connection Fault Management (CFM) is mainly for carrier networks and uses a multi-domain network model. CFM enables end-to-end fault management. The network administrator divides the network into several nestable maintenance domains based on management and maintenance purposes. The network is defined by defining a series of maintenance points (MPs) on the maintenance domain. Management and maintenance. Through CFM, network administrators can effectively check, isolate, and report connectivity faults on virtual bridge LANs. The main functions of CFM are: connectivity check, loopback detection, link tracking, and alarms. A single CFM maintenance domain is shown in Figure 1. The maintenance domain in the figure defines a series of maintenance points on the edge device and internal devices. The W point indicates the maintenance end point (Maintenance End Point, 简称 for short). Indicates the Maintenance Intermediate Point (MIP). The service-based Ethernet OAM implements the management and maintenance functions through MEP and MIP. Currently, the Ethernet OAM mechanism can diagnose faults in the management domain and use corresponding mechanisms (such as Spanning-Tree Protocol (ST:P), EAPS, etc.) to take corresponding switching measures. To ensure the reliability of the network, but the fault detection and linkage mechanism for the uplink and downlink access links is lacking. For example, in some special application scenarios in the carrier network, when the uplink fails, the downlink becomes unavailable. However, since the uplink and downlink do not belong to the same network administrator, the uplink cannot be used. The failure of the link is notified to the downlink, causing the downlink to fail to respond to the failure in a timely manner. As shown in Figure 2, the network between E and F (including E and F) is the carrier network, A is the server, and B is the user who uses the service of A. If the link between A and E fails, AEFB This link can't communicate normally, and B can't continue to use A. Service, but since B cannot sense the link failure between A and E, even user B uses high availability (High
Availability, 简称为 HA)机制, 也无法切换到备用链路, 导致大量的数据丢失, 网络 管理员也不能及时发现故障并采取相应的处理措施。 发明内容 本发明提供了一种以太网远端故障的处理方法及装置, 以至少解决上述问题。 根据本发明的一个方面, 提供了一种以太网远端故障的处理方法, 包括: 接入链 路一端的第二边缘设备接收接入链路另一端的第一边缘设备发送的第一消息, 其中, 第一消息是第一边缘设备在检测到其关联的第一关联端口发生故障时发送的, 且第一 消息中携带有第一关联端口的故障信息; 第二边缘设备根据第一关联端口的故障信息 及与第二边缘设备关联的第二关联端口的物理状态, 关闭第二关联端口。 优选地, 在第二边缘设备接收第一边缘设备发送的消息之前, 该方法还包括: 第 一边缘设备检测到与其关联的第一关联端口发生故障,向第二边缘设备发送第一消息。 优选地, 在第二边缘设备关闭第二关联端口之后, 该方法还包括: 第二边缘设备 将第二关联端口的物理状态更新为关闭状态。 优选地, 在第二边缘设备接收第一边缘设备发送的第一消息之后, 包括: 第二边 缘设备产生故障告警信息。 优选地, 在第二边缘设备关闭第二关联端口之后, 该方法还包括: 第二边缘设备 接收第一边缘设备发送的第二消息, 其中, 第二消息是第一边缘设备在检测到第一关 联端口的故障恢复时发送的, 且第二消息中携带有第一关联端口的故障恢复信息; 第 二边缘设备根据第一关联端口的故障恢复信息及与第二关联端口的当前物理状态, 打 开第二关联端口。 优选地, 在第二边缘设备打开第二关联端口之后, 该方法还包括: 第二边缘设备 将第二关联端口的物理状态更新为打开状态。 优选地,在第二边缘设备接收第一边缘设备发送的第二消息之后, 该方法还包括: 第二边缘设备产生故障恢复告警信息。 根据本发明的另一方面, 提供了一种以太网远端故障的处理装置, 包括: 接收模 块, 设置为接收接入链路另一端的第一边缘设备发送的第一消息, 其中, 第一消息是 第一边缘设备在检测到其关联的第一关联端口发生故障时发送的, 且第一消息中携带 有第一关联端口的故障信息; 执行模块, 设置为根据第一关联端口的故障信息及与第 二边缘设备关联的第二关联端口的物理状态, 关闭第二关联端口。 优选地, 上述接收模块还设置为接收第一边缘设备发送的第二消息, 其中, 第二 消息是第一边缘设备在检测到第一关联端口的故障恢复时发送的, 且第二消息中携带 有第一关联端口的故障恢复信息; 执行模块还设置为根据第一关联端口的故障恢复信 息及与第二边缘设备关联的第二关联端口的物理状态, 打开第二关联端口。 优选地, 上述装置还包括: 更新模块, 设置为根据执行模块对第二关联端口执行 的操作, 更新第二关联端口的物理状态。 优选地, 上述装置还包括: 告警模块, 设置为根据接收模块接收到的消息中携带 的信息, 产生相应的告警信息。 通过本发明, 采用以太网远端故障的处理方法及装置, 解决了现有技术中上行链 路或下行链路发生故障后, 由于上行链路和下行链路不属于同一个网络管理者而导致 通信中断的问题, 进而达到了能够及时发现故障并采取相应的隔离或者恢复机制, 避 免了大量的数据丢失的效果。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中: 图 1是根据相关技术的单个 CFM维护域的示意图; 图 2是根据相关技术的链路发生故障时的应用实例的示意图; 图 3是根据本发明实施例的以太网远端故障的处理方法的流程图; 图 4是根据本发明优选实施例的一对多指定的示意图; 图 5是根据本发明优选实施例的环网指定的示意图; 图 6是根据本发明优选实施例的连通性检测消息(CCM帧)的 Interface Status TLV 字段的格式的示意图; 图 Ί是根据本发明优选实施例的连通性检测消息(CCM帧)的 Interface Status TLV 字段的取值的示意图; 图 8是根据本发明优选实施例的端口状态变化消息的处理流程图; 图 9是根据本发明优选实施例的连通性检测消息 (CCM帧) 的处理流程图; 图 10是根据本发明优选实施例的端口状态迁移图; 图 11是根据本发明实施例的以太网远端故障的处理装置的结构示意图; 图 12是根据本发明优选实施例的以太网远端故障的处理装置的结构示意图; 图 13是根据本发明优选实施例的一个优选装置的结构示意图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 图 3是根据本发明实施例的以太网远端故障的处理方法的流程图, 如图 3所示, 该方法主要包括以下步骤 (步骤 S302-步骤 S304): 步骤 S302,接入链路一端的第二边缘设备接收接入链路另一端的第一边缘设备发 送的第一消息, 其中, 第一消息是第一边缘设备在检测到其关联的第一关联端口发生 故障时发送的, 且第一消息中携带有第一关联端口的故障信息。 在本发明实施例中, 在第二边缘设备接收第一边缘设备发送的消息之前, 可以预 先在第一边缘设备和第二边缘设备(其中,第一边缘设备相对于第二边缘设备是远端, 同样, 第二边缘设备相对于第一边缘设备是远端)上配置故障检测和隔离功能, 例如, 在图 2中, 可以在边缘设备 E上配置故障检测功能, 将配置后的故障检测功能与端口 1 (port l )进行关联,在边缘设备 F上配置隔离功能,并将故障隔离功能与端口 2 (port 2) 进行关联, 当边缘设备 E检测到与其关联的关联端口 (即 portl ) 发生故障时, 则 向边缘设备 F发送消息 (该消息中携带有 portl的故障信息)。 优选地, 在本发明优选实施例中, 当第二边缘设备接收第一边缘设备发送的故障 信息之后, 第二边缘设备还可以产生故障告警信息。 例如, 在图 2中, 可以在两端的边缘设备 E (即上述第一边缘设备)、 F (即上述 第二边缘设备) 上分别监控关联端口 portl和 port3的物理状态, 为了方便, 可以将网 络中接入链路发生故障的一端称为指定端(即图 2的边缘设备 E), 需要做故障隔离的 一端 (对端)称为被指定端 (图 2的边缘设备 F)。 指定的方法不受限制, 可以为单向 指定, 也可以为双向指定, 当然条件允许的条件下, 也可以为多向指定。 在本发明实施例中, 指定方式包括但不限于以下几种形式: The availability, referred to as HA) mechanism, cannot be switched to the standby link, resulting in a large amount of data loss. The network administrator cannot find the fault in time and take corresponding measures. SUMMARY OF THE INVENTION The present invention provides a method and apparatus for processing an Ethernet remote fault to at least solve the above problems. According to an aspect of the present invention, a method for processing an Ethernet remote fault is provided, including: receiving, by a second edge device at one end of the access link, a first message sent by a first edge device at another end of the access link, The first message is sent by the first edge device when it detects that the associated first associated port is faulty, and the first message carries the fault information of the first associated port. The second edge device is configured according to the first associated port. The fault information and the physical state of the second associated port associated with the second edge device close the second associated port. Preferably, before the second edge device receives the message sent by the first edge device, the method further includes: the first edge device detecting that the first associated port associated with it fails, and sending the first message to the second edge device. Preferably, after the second edge device closes the second associated port, the method further comprises: the second edge device updating the physical state of the second associated port to a closed state. Preferably, after the second edge device receives the first message sent by the first edge device, the method includes: the second edge device generates fault alarm information. Preferably, after the second edge device closes the second associated port, the method further includes: the second edge device receiving the second message sent by the first edge device, where the second message is that the first edge device detects the first And the second message carries the fault recovery information of the first associated port; the second edge device opens according to the fault recovery information of the first associated port and the current physical state of the second associated port. The second associated port. Preferably, after the second edge device opens the second associated port, the method further comprises: the second edge device updating the physical state of the second associated port to an open state. Preferably, after the second edge device receives the second message sent by the first edge device, the method further includes: the second edge device generating fault recovery alarm information. According to another aspect of the present invention, a device for processing an Ethernet remote fault is provided, including: a receiving module, configured to receive a first message sent by a first edge device at another end of the access link, where The message is sent by the first edge device when detecting that the associated first associated port is faulty, and is carried in the first message. The fault information of the first associated port is configured to: close the second associated port according to the fault information of the first associated port and the physical state of the second associated port associated with the second edge device. Preferably, the receiving module is further configured to receive the second message sent by the first edge device, where the second message is sent by the first edge device when detecting the failure recovery of the first associated port, and the second message is carried in the second message. There is fault recovery information of the first associated port; the execution module is further configured to open the second associated port according to the fault recovery information of the first associated port and the physical state of the second associated port associated with the second edge device. Preferably, the foregoing apparatus further includes: an updating module, configured to update a physical state of the second associated port according to an operation performed by the execution module on the second associated port. Preferably, the foregoing apparatus further includes: an alarm module, configured to generate corresponding alarm information according to information carried in the message received by the receiving module. The invention solves the problem that the uplink or downlink fails in the prior art after the uplink or downlink fails in the prior art, and the uplink and downlink do not belong to the same network administrator. The problem of communication interruption, and thus the ability to detect faults in time and adopt corresponding isolation or recovery mechanism to avoid a large amount of data loss. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, In the drawings: FIG. 1 is a schematic diagram of a single CFM maintenance domain according to the related art; FIG. 2 is a schematic diagram of an application example when a link fails according to the related art; FIG. 3 is an Ethernet remote according to an embodiment of the present invention. Figure 4 is a schematic illustration of a one-to-many designation in accordance with a preferred embodiment of the present invention; Figure 5 is a schematic illustration of a ring network designation in accordance with a preferred embodiment of the present invention; Figure 6 is a preferred embodiment in accordance with the present invention. Schematic diagram of the format of the Interface Status TLV field of the connectivity check message (CCM frame); Figure 2 is a diagram showing the value of the Interface Status TLV field of a connectivity check message (CCM frame) in accordance with a preferred embodiment of the present invention; Figure 8 is a process flow diagram of a port state change message in accordance with a preferred embodiment of the present invention; Is a process flow diagram of a connectivity check message (CCM frame) in accordance with a preferred embodiment of the present invention; FIG. 10 is a port state transition diagram in accordance with a preferred embodiment of the present invention; FIG. 11 is an Ethernet remote fault in accordance with an embodiment of the present invention. FIG. 12 is a schematic structural diagram of an apparatus for processing an Ethernet remote fault according to a preferred embodiment of the present invention; and FIG. 13 is a schematic structural view of a preferred apparatus according to a preferred embodiment of the present invention. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. FIG. 3 is a flowchart of a method for processing an Ethernet remote fault according to an embodiment of the present invention. As shown in FIG. 3, the method mainly includes the following steps (step S302-step S304): Step S302, accessing one end of the link The second edge device receives the first message sent by the first edge device at the other end of the access link, where the first message is sent by the first edge device when detecting that the associated first associated port is faulty, and A message carries the fault information of the first associated port. In the embodiment of the present invention, before the second edge device receives the message sent by the first edge device, the first edge device and the second edge device may be pre-arranged (where the first edge device is remote from the second edge device) Similarly, the second edge device is configured with a fault detection and isolation function relative to the first edge device. For example, in FIG. 2, the fault detection function can be configured on the edge device E, and the configured fault detection function is configured. Associate with port 1 (port l), configure isolation on edge device F, and associate fault isolation with port 2 (port 2). When edge device E detects the associated port (that is, portl) associated with it. In the event of a failure, a message is sent to the edge device F (the message carries the fault information of port1). Preferably, in a preferred embodiment of the present invention, after the second edge device receives the fault information sent by the first edge device, the second edge device may further generate fault alarm information. For example, in FIG. 2, the physical states of the associated ports port1 and port3 can be separately monitored on the edge device E (ie, the first edge device) and the F (ie, the second edge device) at both ends. For convenience, the network can be The end where the access link fails is called the designated end (that is, the edge device E of Figure 2), and the end (the opposite end) that needs to be fault-isolated is called the designated end (the edge device F of Figure 2). The specified method is not limited. It can be specified for one-way or two-way. Of course, if the condition allows, it can also be specified in multiple directions. In the embodiment of the present invention, the specified manner includes but is not limited to the following forms:
( 1 ) 单向指定 在图 2中, 如果只要求 portl down后, 要将 port3关闭, 反之 port3 down后不需 要将 portl 关闭, 这种情况就属于单向指定, 对于单向指定, 指定端和被指定端是固 定的不变的, 所以, 故障检测只能在指定端进行, 故障隔离和恢复只能在被指定端进 行。 (1) One-way designation is shown in Figure 2. If only portl is required to be closed, port3 should be closed. Otherwise, portl does not need to be closed after port3 down. This case is a one-way designation. The designated end is fixed and unchanged. Therefore, fault detection can only be performed on the specified end. Fault isolation and recovery can only be performed on the designated end.
(2) 双向指定 在图 2中,如果要求 portl down后,要将 port3关闭, port3 down后也需要将 portl 关闭, 这种情况就属于双向指定, 对于双向指定, 两端都可以同时作为指定端和被指 定端, 只要有一端检测到故障, 都需要在另一端做隔离操作。 (2) Two-way designation In Figure 2, if portl is required to be closed, port3 should be closed, and portl should be closed after port3 down. This case is a two-way designation. For bidirectional designation, both ends can be used as designated ends. And the designated end, as long as one end detects a fault, it needs to be isolated at the other end.
(3 ) 一对多指定 如图 4所示,在图 4所示的实施例中,如果要求 portl down后,要将 port2、 port3、 port4同时关闭, 这种情况就属于一对多指定。 (3) One-to-many designation As shown in Fig. 4, in the embodiment shown in Fig. 4, if port1 is required to be closed, port2, port3, and port4 are simultaneously closed, which is a one-to-many designation.
(4) 联动指定 如图 4所示, 在图 4所示的实施例中, 如果要求 port2 down后, 要将 portl关闭, 继而由于 portl down, 要将 port3、 port4同时关闭, 这种情况就属于联动指定。 (4) The linkage designation is as shown in FIG. 4. In the embodiment shown in FIG. 4, if port2 is required to be down, portl is to be closed, and then port1 and port4 are simultaneously closed due to portl down. Linkage designation.
( 5 ) 在环网上的指定 图 5是根据本发明优选实施例的一个优选实施方式的环网应用示意图, 在图 5所 示的环网实例中, 当 portl down后, 可以将 port2、 port3、 port4中的一个或多个关闭。 在此, 需要说明的是, 上述五种实施例可以组合使用。 其中, 对于双向指定 (即, 两端都需要对对端的故障做出反应) 而言, 指定端和 被指定端是相对的, 发生故障之后才会确定指定的角色和被指定的角色。 当某一关联端口物理状态发生改变时, 可以将该端(第一边缘设备)视为指定端, 而该端的对端可以视为被指定端(第二边缘设备), 当指定端监控到与其关联的端口 1 (port 1 )状态发生变化后, 则向对端(被指定端)发送携带有故障信息的消息(例如, 在本发明实施例中,该消息为协议帧), 以达到将端口 1的故障通知给被指定端。并且, 被指定端在接收到指定端发送的携带有故障信息的消息后,还可以产生故障告警信息。 步骤 S304,第二边缘设备根据第一关联端口的故障信息及与第二边缘设备关联的 第二关联端口的物理状态, 关闭第二关联端口。 在本发明实施中, 当第二边缘设备(被指定端)收到来自第一边缘设备(指定端) 的携带有故障信息的消息后, 根据第一关联端口 (例如, 指定端关联的端口 portl ) 的 故障信息和第二关联端口 (例如, 被指定端关联的端口 port 2) 的物理状态关闭第二 关联端口 (例如, port 2) 以达到故障隔离的目的。 并且, 在第二边缘设备关闭第二关 联端口之后,第二边缘设备还可以将第二关联端口的物理状态更新为关闭状态,例如, 在图 2中, 可以更新 (也可以称为迁移) 端口 2 (port 2) 的物理状态为关闭状态。 优选地, 在本发明实施例的一个优选实施方式中, 在第二边缘设备关闭第二关联 端口之后, 如果第一边缘设备检测到其关联的第一关联端口的故障恢复, 则第一边缘 设备可以向第二边缘设备发送携带第一关联端口的故障恢复信息的第二消息, 第二边 缘设备接收第一边缘设备发送的第二消息, 然后第二边缘设备根据第一关联端口的故 障恢复信息及与第二关联端口的当前物理状态, 打开第二关联端口。 其中, 在第二边缘设备接收第一边缘设备发送的第二消息 (携带有故障恢复信息) 之后, 第二边缘设备还可以产生故障恢复告警信息, 优选地, 第二边缘设备还可以将 第二关联端口的物理状态更新为打开状态。 例如, 在图 2中, 可以更新 (也可以称为迁移) 端口 2 (port 2) 的物理状态为关 闭状态。 下面以图 2中的链路发生故障时的应用实例的为例, 对本发明实施的一个优选实 施进行具体描述: 主要包括以下三个步骤: 步骤 1, 在图 2中的边缘设备 E、 F上配置基本的 CFM功能, 并分别配置一个 UP 型 MEP, 将它们与需要检测的边缘端口 portl和 port3关联, 此时为了检查 E、 F之间 的连通性, 会周期性的往对端发送连通性检查消息 (CCM帧, 其中, CCM帧包括有(5) Designation on the ring network FIG. 5 is a schematic diagram of a ring network application according to a preferred embodiment of the preferred embodiment of the present invention. In the ring network example shown in FIG. 5, after port1 is down, port 2, port 3, One or more of port4 are closed. Here, it should be noted that the above five embodiments can be used in combination. For the two-way designation (that is, both ends need to react to the fault of the peer end), the specified end and the designated end are relative, and the specified role and the designated role are determined after the fault occurs. When the physical state of an associated port changes, the peer (the first edge device) can be regarded as the designated end, and the peer end of the peer can be regarded as the designated end (the second edge device). After the state of the associated port 1 (port 1 ) is changed, the message carrying the fault information is sent to the peer end (the designated end) (for example, in the embodiment of the present invention, the message is a protocol frame), so as to reach the port. The failure notification of 1 is given to the designated end. Moreover, after receiving the message carrying the fault information sent by the designated end, the designated end may also generate fault alarm information. Step S304, the second edge device closes the second associated port according to the fault information of the first associated port and the physical state of the second associated port associated with the second edge device. In the implementation of the present invention, after the second edge device (the designated end) receives the message carrying the fault information from the first edge device (the designated end), according to the first associated port (for example, the port port1 associated with the designated end) The fault information and the physical state of the second associated port (eg, port port 2 associated with the designated end) close the second associated port (eg, port 2) for fault isolation purposes. Moreover, after the second edge device closes the second associated port, the second edge device may also update the physical state of the second associated port to a closed state. For example, in FIG. 2, the port may be updated (also referred to as migration). 2 (port 2) The physical state is off. Preferably, in a preferred embodiment of the present invention, after the second edge device closes the second associated port, if the first edge device detects failure recovery of its associated first associated port, the first edge device And sending, by the second edge device, a second message that carries the fault recovery information of the first associated port, the second edge device receives the second message sent by the first edge device, and then the second edge device recovers the information according to the failure of the first associated port. And opening a second associated port with the current physical state of the second associated port. After the second edge device receives the second message (carrying the fault recovery information) sent by the first edge device, the second edge device may further generate the fault recovery alarm information. Preferably, the second edge device may also be the second The physical status of the associated port is updated to the open state. For example, in Figure 2, the physical state of port 2 (port 2) can be updated (also referred to as migration). A preferred implementation of the implementation of the present invention will be specifically described below by taking an application example in the case where the link in FIG. 2 fails. The following three steps are mainly included: Step 1, on the edge devices E and F in FIG. Configure the basic CFM function and configure an UP type MEP to associate them with the edge ports port1 and port3 to be detected. In this case, check the relationship between E and F. The connectivity periodically sends a connectivity check message (CCM frame to the peer end, where the CCM frame includes
Interface Status TLV字段, Interface Status TLV字段的格式如图 6所示), 当对远端配 置故障检测和隔离功能后, CCM帧中的 Interface Status TLV字段会携带关联端口的状 态; 步骤 2, 对于双向指定, 两端分别监控关联端口的物理状态, 当某一端的端口物 理状态发生改变时, 这一端即为指定端, 本端的 MEP监控到端口状态的变化后, 设置 CCM帧的 Interface Status TLV字段为相应的值 (其中, Interface Status TLV字段的取 值如图 7所示), 通告给被指定端; 对于单向指定, 只需要在指定端监控关联端口的状 态即可, 在本发明的优选实施方式中, Interface Status TIN字段使用了其中的 isUp、 isDown和 isDormant三个取值, 分别代表三种端口状态: 端口物理状态为 up、 端口物 理状态为 down和端口因为需要隔离远端故障而被人为关闭, 其中, 本端的 MEP对端 口状态变化消息的处理流程如图 8所示, 该流程包括以下步骤: Interface Status TLV field, Interface Status The format of the TLV field is shown in Figure 6. When the fault detection and isolation function is configured for the remote end, the Interface Status TLV field in the CCM frame carries the status of the associated port. Step 2, for two-way The physical status of the associated port is monitored at the two ends. When the physical status of the port is changed, the end is the designated end. After the MEP of the local end monitors the change of the port status, set the Interface Status TLV field of the CCM frame to Corresponding values (where the value of the Interface Status TLV field is as shown in Figure 7) are advertised to the designated end; for unidirectional designation, only the state of the associated port needs to be monitored at the designated end, in a preferred implementation of the present invention. In the mode, the Interface Status TIN field uses the values of isUp, isDown, and isDormant, which represent the three port states: the physical state of the port is up, the physical state of the port is down, and the port is artificial because it needs to isolate the remote fault. Close, where the local MEP processes the port status change message. The process is shown in Figure 8, which includes the following steps:
5801 , 收到接口管理模块的消息。 5801. Receive a message from the interface management module.
5802, 判断消息的类型, 如果是 shutdown命令, 则转至 S803 , 如果是物理 up, 则转至 S804, 如果是物理 down, 则转至 S805。 5802: Determine the type of the message. If it is the shutdown command, go to S803. If it is physical up, go to S804. If it is physical down, go to S805.
5803 , 判断本地端口状态是否为 isDormant, 如果是, 则转至 S806, 否则, 结束 流程。 5803. Determine whether the local port status is isDormant. If yes, go to S806. Otherwise, end the process.
5804, 判断本地端口状态是否为 isUp, 如果是, 则转至 S807, 否则, 结束流程。 5804. Determine whether the status of the local port is isUp. If yes, go to S807. Otherwise, the process ends.
5805, 判断本地端口状态是否为 isDown, 如果是, 则转至 S808, 否则, 结束流 程。 5805. Determine whether the local port status is isDown. If yes, go to S808. Otherwise, end the process.
5806, 本地端口状态迁移至 isDown, 结束流程。 5806. The local port status is migrated to isDown, and the process ends.
5807, 本地端口状态迁移至 isUp, 结束流程。 5807, The local port status is migrated to isUp, and the process ends.
5808, 本地端口状态迁移至 isDown, 结束流程。 步骤 3, 被指定端的边缘设备在收到 CCM帧后, 可以首先检查其携带的 Interface Status TLV字段信息,并根据 Interface Status TLV字段的值和本端的关联端口的物理状 态做出关闭或打开关联端口的动作以实现故障隔离或故障恢复, 并产生相应的告警, 还可以迁移 (更新)本端关联端口的状态, 其中, 对 CCM帧的处理流程如图 9所示, 该流程包括以下步骤: S901, 被指定端接收 CCM报文。 5808. The local port status is migrated to isDown, and the process ends. Step 3: After receiving the CCM frame, the edge device of the designated end may first check the Interface Status TLV field information carried by the edge device, and close or open the associated port according to the value of the Interface Status TLV field and the physical state of the associated port of the local end. The action of the fault isolation or fault recovery, and the corresponding alarms are generated, and the state of the associated port of the local end can be migrated (updated). The processing flow of the CCM frame is as shown in FIG. 9, and the process includes the following steps: S901. Receive, by the designated end, a CCM message.
5902, 判断接收到的 CCM报文是否携带 Interface Status TIN字段, 如果是, 则 转至 S903 , 否则, 转至 S904。 5902. Determine whether the received CCM message carries the Interface Status TIN field. If yes, go to S903. Otherwise, go to S904.
5903 , 判断 CCM报文携带 Interface Status TIN字段的状态, 如果为 isUp, 则转 至 S904, 如果为 isDown, 则转至 S905, 如果是 isDormant, 则结束流程。 5903. Determine the state of the Interface Status TIN field in the CCM message. If it is isUp, go to S904. If it is isDown, go to S905. If it is isDormant, the process ends.
5904, 判断本地端口状态是否为 isDormant, 如果是, 则转至 S906, 否则, 结束 流程。 5904. Determine whether the local port status is isDormant. If yes, go to S906. Otherwise, end the process.
5905, 判断本地端口状态是否为 isUp, 如果是, 则转至 S907, 否则, 结束流程。 5905. Determine whether the status of the local port is isUp. If yes, go to S907. Otherwise, the process ends.
5906, 将本地端口状态迁移至 isUp, 并从物理上使端口 up起来。 S907, 将本地端口状态迁移至 isDormant, 并从物理上 down掉端口。 如图 10所示, 图 10是根据本发明优选实施例的端口状态迁移图, 其中, 导致端 口状态迁移的事件及其含义如下: el : 接收到携带端口状态为 isDown的 CCM帧。 e2: 接收到携带端口状态为 isUp的 CCM帧, 或者由于某种原因导致 CFM功能 失效, 或者 CCM连续性丢失。 e3: 为关联端口配置 shutdown命令。 e4: 关联端口物理 down (包括 shutdown命令导致的)。 e5: 关联端口物理 up (包括 no shutdown命令导致的)。 端口状态迁移时的响应如下: rl : 设置关联端口状态为 isDormant, 从物理上 down掉关联端口。 r2: 设置关联端口状态为 isUp, 从物理上使关联端口 up起来。 r3 : 设置端口状态为 isDown。 r4: 设置关联端口状态为 isUp。 其中, 除 el-e5之外的事件不做出任何响应。 使用上述实施例提供的以太网远端故障的处理方法, 可以对远端故障做出检测, 并在本端对故障做出隔离操作, 在远端故障消除后, 本端可以对故障执行恢复操作, 可以及时通知管理员采取相应的处理措施, 特别是在本端有备份链路的情况下, 可以 快速地做倒换处理, 尽量减少由于远端故障导致的数据丢失。 图 11是根据本发明实施例的以太网远端故障的处理装置的结构示意图,该装置位 于第一边缘设备, 如图 11所示, 该装置包括: 接收模块 10和执行模块 20。 其中, 接 收模块 10, 设置为接收接入链路另一端的第一边缘设备发送的第一消息, 其中, 第一 消息是第一边缘设备在检测到其关联的第一关联端口发生故障时发送的, 且第一消息 中携带有第一关联端口的故障信息; 执行模块 20, 连接至接收模块 10, 设置为根据第 一关联端口的故障信息及与第二边缘设备关联的第二关联端口的物理状态, 关闭第二 关联端口。 其中, 接收模块 10还可以设置为接收第一边缘设备发送的第二消息, 其中, 第二 消息是第一边缘设备在检测到第一关联端口的故障恢复时发送的, 且第二消息中携带 有第一关联端口的故障恢复信息;执行模块 20还可以设置为根据第一关联端口的故障 恢复信息及与第二边缘设备关联的第二关联端口的物理状态, 打开第二关联端口。 图 12是根据本发明优选实施例的以太网远端故障的处理装置的结构示意图,该装 置设置为实现上述实施例提供的以太网远端故障的处理方法, 如图 12所示, 该装置还 可以包括: 告警模块 30和更新模块 40。 其中, 告警模块 30, 设置为根据接收模块接 收到的消息中携带的信息, 产生相应的告警信息; 更新模块 40, 设置为根据执行模块 对第二关联端口执行的操作, 更新第二关联端口的物理状态。 图 13是根据本发明优选实施例的一个优选装置的结构示意图, 如图 13所示, 该 优选装置包括: CFM单元 131、 驱动单元 132、 收发包单元 133、 接口管理单元 134、 告警单元 135以及操作维护单元 136。 其中, CFM单元 131, 设置为协议的运行、 维 护一个端口状态状态机, 能够通告本端故障, 也可以对远端故障做出检测, 并通知驱 动单元 132做出故障隔离和故障恢复操作; 驱动单元 132, 设置为关闭或者打开端口, 以实现故障隔离和故障恢复; 收发包单元 133, 设置为故障通告报文的发送和接收; 接口管理单元 134, 设置为定时轮询关联端口状态, 并将关联端口状态的变化信息通 知给 CFM单元 131 ; 告警单元 135, 设置为检测到远端故障或者远端故障恢复时产生 告警, 并通知网络管理员; 操作维护单元 136, 设置为接收用户的配置命令并下发给 相关单元。 使用上述实施例提供的以太网远端故障的处理装置, 可以对远端故障做出检测, 并在本端对故障做出隔离操作, 在远端故障消除后, 本端可以对故障执行恢复操作, 可以及时通知管理员采取相应的处理措施, 特别是在本端有备份链路的情况下, 可以 快速地做倒换处理, 尽量减少由于远端故障导致的数据丢失。 从以上的描述中, 可以看出, 本发明实现了如下技术效果: 采用以太网远端故障 的处理方法及装置, 解决了现有技术中上行链路或下行链路发生故障后, 由于上行链 路和下行链路不属于同一个网络管理者而导致通信中断的问题, 避免了大量的数据丢 失的效果。 网络中的边缘设备能够定时检测链路故障, 并在检测到故障之后及时通知 对端的边缘设备, 从而使对端的边缘设备根据故障信息关闭与其关联的端口, 并在链 路故障恢复之后, 打开其端口从而重新传输数据。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以 将它们存储在存储装置中由计算装置来执行, 并且在某些情况下, 可以以不同于此处 的顺序执行所示出或描述的步骤, 或者将它们分别制作成各个集成电路模块, 或者将 它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限制于任 何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。 5906, migrates the local port state to isUp, and physically raises the port up. S907, the local port state is migrated to isDormant, and the port is physically down. As shown in FIG. 10, FIG. 10 is a port state transition diagram according to a preferred embodiment of the present invention. The event causing port state transition and its meaning are as follows: el: Receives a CCM frame carrying port status is isDown. E2: Received a CCM frame carrying the port status as isUp, or the CFM function fails for some reason, or the CCM continuity is lost. E3: Configure the shutdown command for the associated port. E4: Physical down of the associated port (including the shutdown command). E5: Associated port physical up (including the result of the no shutdown command). The response when the port state is migrated is as follows: rl : Set the associated port state to isDormant to physically drop the associated port. R2: Set the associated port status to isUp to physically raise the associated port. R3 : Set the port status to isDown. R4: Set the associated port status to isUp. Among them, events other than el-e5 do not respond. The method for processing the remote fault of the Ethernet provided by the foregoing embodiment can detect the remote fault and isolate the fault at the local end. After the remote fault is eliminated, the local end can perform the recovery operation on the fault. You can notify the administrator to take appropriate action in time. In particular, if there is a backup link on the local end, you can quickly perform the switchover process to minimize data loss caused by remote faults. FIG. 11 is a schematic structural diagram of a device for processing an Ethernet remote fault according to an embodiment of the present invention. The device is located at a first edge device. As shown in FIG. 11, the device includes: a receiving module 10 and an executing module 20. The receiving module 10 is configured to receive a first message sent by the first edge device at the other end of the access link, where the first message is sent by the first edge device when detecting that the associated first associated port is faulty. And the first message carries the fault information of the first associated port; the executing module 20 is connected to the receiving module 10, and is configured to be configured according to the fault information of the first associated port and the second associated port associated with the second edge device. Physical state, close the second associated port. The receiving module 10 is further configured to receive the second message sent by the first edge device, where the second message is sent by the first edge device when detecting the failure recovery of the first associated port, and the second message is carried in the second message. There is fault recovery information of the first associated port; the executing module 20 may be further configured to open the second associated port according to the fault recovery information of the first associated port and the physical state of the second associated port associated with the second edge device. FIG. 12 is a schematic structural diagram of a device for processing an Ethernet remote fault according to a preferred embodiment of the present invention. The device is configured to implement the method for processing an Ethernet remote fault provided by the foregoing embodiment. As shown in FIG. 12, the device is further configured. The method may include: an alarm module 30 and an update module 40. The alarm module 30 is configured to generate corresponding alarm information according to the information carried in the message received by the receiving module. The updating module 40 is configured to update the second associated port according to the operation performed by the execution module on the second associated port. Physical state. FIG. 13 is a schematic structural diagram of a preferred apparatus according to a preferred embodiment of the present invention. As shown in FIG. 13, the preferred apparatus includes: a CFM unit 131, a driving unit 132, a transceiver unit 133, an interface management unit 134, an alarm unit 135, and Operation and maintenance unit 136. The CFM unit 131 is configured to operate the protocol and maintain a port state state machine, and can notify the local end fault, and can also detect the remote fault, and notify the driving unit 132 to perform fault isolation and fault recovery operations; The unit 132 is configured to close or open the port to implement fault isolation and fault recovery; the transceiver packet unit 133 is configured to send and receive a fault notification message; the interface management unit 134 is configured to periodically poll the associated port state, and The change information of the status of the associated port is notified to the CFM unit 131; the alarm unit 135 is configured to generate an alarm when detecting the remote fault or the remote fault recovery, and notify the network administrator; the operation and maintenance unit 136 is configured to receive the configuration command of the user. And issued to the relevant unit. The remote end fault processing device provided by the foregoing embodiment can detect the remote fault and isolate the fault at the local end. After the remote fault is eliminated, the local end can perform the recovery operation on the fault. You can notify the administrator to take appropriate action in time. In particular, if there is a backup link on the local end, you can quickly perform the switchover process to minimize data loss caused by remote faults. From the above description, it can be seen that the present invention achieves the following technical effects: The method and device for processing an Ethernet remote fault are used to solve the uplink or downlink failure in the prior art due to uplink The problem that the road and the downlink do not belong to the same network manager and the communication is interrupted, avoids the effect of a large amount of data loss. The edge device in the network can detect the link fault periodically, and notify the edge device of the peer end after detecting the fault, so that the edge device of the peer end closes the port associated with it according to the fault information, and opens the link after the link fault is recovered. The port thus retransmits the data. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
Claims
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201110163802.0 | 2011-06-17 | ||
| CN2011101638020A CN102231674A (en) | 2011-06-17 | 2011-06-17 | Processing method and apparatus of far-end fault of Ethernet |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2012171380A1 true WO2012171380A1 (en) | 2012-12-20 |
Family
ID=44844214
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2012/072829 Ceased WO2012171380A1 (en) | 2011-06-17 | 2012-03-22 | Far-end failure processing method and device for ethernet |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN102231674A (en) |
| WO (1) | WO2012171380A1 (en) |
Families Citing this family (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102231674A (en) * | 2011-06-17 | 2011-11-02 | 中兴通讯股份有限公司 | Processing method and apparatus of far-end fault of Ethernet |
| CN102404143B (en) * | 2011-11-17 | 2014-04-02 | 华为技术有限公司 | Method for processing port failures based on LACP and LACP terminal |
| CN105591775B (en) | 2014-10-23 | 2019-10-25 | 华为技术有限公司 | A kind of network operation management maintenance OAM method, device and system |
| CN105703936B (en) * | 2014-11-28 | 2020-06-09 | 中兴通讯股份有限公司 | A control method, device and main control board |
| CN106302146A (en) * | 2016-10-17 | 2017-01-04 | 杭州迪普科技有限公司 | The convergence method of link aggregation and device |
| US10193746B2 (en) * | 2016-12-21 | 2019-01-29 | Juniper Networks, Inc. | Deadlock avoidance using modified ethernet connectivity fault management signaling |
| CN109547229A (en) * | 2017-09-21 | 2019-03-29 | 中兴通讯股份有限公司 | A kind of Ethernet fault handling method and device |
| CN109981450B (en) * | 2017-12-28 | 2021-06-15 | 中国电信股份有限公司 | Path connectivity maintenance method, device and system |
| CN119232544A (en) * | 2024-09-30 | 2024-12-31 | 湖北安心智能科技有限公司 | Alarm linkage method of 1+1 redundancy protection network and related equipment |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1968159A (en) * | 2006-11-16 | 2007-05-23 | 杭州华为三康技术有限公司 | Network failure detection interlock method and network operator edge device |
| CN101212366A (en) * | 2007-12-21 | 2008-07-02 | 杭州华三通信技术有限公司 | Failure detection method, system, and main node in Ethernet loop network |
| CN101247306A (en) * | 2008-03-13 | 2008-08-20 | 华为技术有限公司 | Edge port blocking method in Ethernet ring network, Ethernet ring network system and equipment |
| CN102231674A (en) * | 2011-06-17 | 2011-11-02 | 中兴通讯股份有限公司 | Processing method and apparatus of far-end fault of Ethernet |
-
2011
- 2011-06-17 CN CN2011101638020A patent/CN102231674A/en active Pending
-
2012
- 2012-03-22 WO PCT/CN2012/072829 patent/WO2012171380A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1968159A (en) * | 2006-11-16 | 2007-05-23 | 杭州华为三康技术有限公司 | Network failure detection interlock method and network operator edge device |
| CN101212366A (en) * | 2007-12-21 | 2008-07-02 | 杭州华三通信技术有限公司 | Failure detection method, system, and main node in Ethernet loop network |
| CN101247306A (en) * | 2008-03-13 | 2008-08-20 | 华为技术有限公司 | Edge port blocking method in Ethernet ring network, Ethernet ring network system and equipment |
| CN102231674A (en) * | 2011-06-17 | 2011-11-02 | 中兴通讯股份有限公司 | Processing method and apparatus of far-end fault of Ethernet |
Also Published As
| Publication number | Publication date |
|---|---|
| CN102231674A (en) | 2011-11-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2012171380A1 (en) | Far-end failure processing method and device for ethernet | |
| JP5508289B2 (en) | Network recovery system and method from multilink failure | |
| US9509591B2 (en) | Technique for dual homing interconnection between communication networks | |
| CN102394787B (en) | Based on the Dual-link redundancy control method of EPA switch | |
| CN103843286B (en) | For the method and apparatus based on the triggering router state change of exchanger connectivity | |
| US9385944B2 (en) | Communication system, path switching method and communication device | |
| JP2009206891A (en) | Layer 2 ring network system and management method therefor | |
| CN101399737A (en) | Protection method and apparatus used for link convergence group of loop Ethernet | |
| JP2005130049A (en) | Node | |
| WO2008046358A1 (en) | A method and device to realize punch-through of point-to-multipoint network link status | |
| CN101436975B (en) | Method, apparatus and system for implementing rapid convergence in looped network | |
| WO2010031295A1 (en) | Control method for ethernet failure recovery | |
| CN101127653B (en) | The Ethernet ring network device with backup and the realization method of its master device backup | |
| JP2009303092A (en) | Network equipment and line switching method | |
| WO2012171378A1 (en) | Method and router for preventing flow interruption caused by failover from vpls to l3 | |
| CN101626335B (en) | Data protection method of dual-connection network | |
| CN108668308A (en) | A kind of LTE PTN transmission network and its static routing protection method | |
| CN102857316B (en) | A kind of method and system realizing source looped network protection | |
| JP2012231223A (en) | Access system and redundancy switching method | |
| CN102238067B (en) | Switching method and device on Rapid Ring Protection Protocol (RRPP) ring | |
| JP2003258822A (en) | Packet ring network and inter-packet ring network connection method used in the same | |
| CN102487348B (en) | Method and system for realizing looped network uplink protection | |
| CN102025561B (en) | Method and system for refreshing MAC (Medium Access Controller) in Ethernet ring | |
| CN101641915A (en) | Method for reconfiguring a communication network | |
| WO2007057884A2 (en) | Vpls remote failure indication |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 12799970 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 12799970 Country of ref document: EP Kind code of ref document: A1 |