[go: up one dir, main page]

WO2010031295A1 - Control method for ethernet failure recovery - Google Patents

Control method for ethernet failure recovery Download PDF

Info

Publication number
WO2010031295A1
WO2010031295A1 PCT/CN2009/073452 CN2009073452W WO2010031295A1 WO 2010031295 A1 WO2010031295 A1 WO 2010031295A1 CN 2009073452 W CN2009073452 W CN 2009073452W WO 2010031295 A1 WO2010031295 A1 WO 2010031295A1
Authority
WO
WIPO (PCT)
Prior art keywords
packet
node
link
port
vlan
Prior art date
Application number
PCT/CN2009/073452
Other languages
French (fr)
Chinese (zh)
Inventor
宋晓丽
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2010031295A1 publication Critical patent/WO2010031295A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/2002Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where interconnections or communication control functionality are redundant
    • G06F11/2007Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where interconnections or communication control functionality are redundant using redundant communication media

Definitions

  • the present invention relates to an Ethernet fault recovery technology, and more particularly to a control method for Ethernet ring network fault recovery.
  • Ethernet loop structure is widely used in both the metropolitan area network and the enterprise network to improve the reliability of the network.
  • One ring physically corresponds to a ring-connected Ethernet topology, which is a set of Ethernet connected to each other. Switch collection.
  • the Ethernet loop protection protocol defines the roles of each node on the loop.
  • the master node is the main decision and control node on the ring.
  • Each ring must have one and only one master node.
  • the ring has other than the master node.
  • Nodes are all transit nodes.
  • Each node uses a virtual local area network (VLAN) to transmit protocol packets and cooperate with each other to protect the loops.
  • the protected packets are transmitted through the protected VLANs.
  • the data packets and control packets are isolated from each other through different VLANs. When a link is disconnected, the loop protection mechanism is enabled to resume communication between nodes on the ring network.
  • VLAN virtual local area network
  • Each of the transit nodes on the loop monitors the link status of the port in real time.
  • the nodes at both ends of the link detect the port DOWN.
  • the corresponding control protocol packet should be sent from another faultless port.
  • the master node is notified of the change.
  • the master node opens the slave port data forwarding function, and notifies each of the transit nodes on the ring to refresh their respective media access control (MAC, Media Access Control) addresses.
  • MAC Media Access Control
  • the master node has an alternate detection mechanism. If the HELLO packet is not received within the specified time, the link network is considered to have a link fault.
  • the HELLO packet is A health test is a slogan.
  • the technical problem to be solved by the present invention is to provide a control method for the recovery of the fault of the Ethernet ring network, which solves the problem that the slave port of the master node and the port after the fault link is restored are connected to each other to form a data packet after the fault recovery of a link of the ring network is completed.
  • the problem with the broadcast loop is to provide a control method for the recovery of the fault of the Ethernet ring network, which solves the problem that the slave port of the master node and the port after the fault link is restored are connected to each other to form a data packet after the fault recovery of a link of the ring network is completed.
  • the present invention provides a control method for Ethernet ring network failure recovery, the method comprising:
  • the method further includes:
  • the transmitting node receives the packet, and determines that the received packet is prohibited from being forwarded when the VLAN TAG of the received packet is inconsistent with the control protocol VLAN identifier preset by the loop protection protocol in the pre-forwarding state.
  • the method further includes:
  • the transmitting node receives the packet, and when the received packet is determined to be a packet that does not identify the U TAG, the forwarded message is prohibited from being forwarded.
  • the method further includes:
  • the receiving node receives the packet, and determines that the VLAN TAG of the received packet is consistent with the preset control protocol VLAN identifier in the pre-forwarding state, and forwards the packet according to the destination address of the received packet. Or send the message to the CPU for processing.
  • the packet received by the transit node is sent by the primary node in the ring network on the primary port; and after the step B, the method further includes the step C:
  • the master node After the master node receives the packet forwarded by the transport node from its own slave port, Determining the link failure recovery, blocking the data packet forwarding function of the slave port protection VLAN that is opened when the link is faulty, and sending a control protocol packet from the master port to notify all the transmission node links on the Ethernet ring to recover. And notify all the transmitting nodes on the Ethernet ring to refresh their respective media access control MAC address tables.
  • the method further comprises:
  • the transit node migrates the port corresponding to the forwarding node to the forwarding state.
  • the application of the present invention enables the node to set the port corresponding to the faulty link to the pre-forward state when detecting the link failure recovery, that is, blocking the protection of the VLAN data packet, but the control protocol packet can be Therefore, the HELLO packet used for ring health detection can be returned to the slave port of the master node through the port in the pre-forward state.
  • the master node re-blocks the slave port after receiving the HELLO packet from the slave port, and uses the corresponding control protocol.
  • the transmitting node on the ring informs the ring node to refresh the MAC address.
  • the neighboring link of the faulty link ends the pre-forwarding state, migrates to the forwarding state, and updates its own MAC address. It can be seen that the method can reasonably complete the faulty link recovery switching and avoid the instantaneous loop caused by the link recovery.
  • Figure 1 is a schematic diagram of the fault-free state of the Ethernet ring network
  • Figure 2 is a schematic diagram of the fault condition of the Ethernet ring link
  • Figure 3a and Figure 3b are schematic diagrams of two phases of fault recovery of the ring network link
  • FIG. 4 is a flow chart of a control method for Ethernet ring network failure recovery in the present invention.
  • FIG. 1 is a schematic diagram of the fault-free state of the Ethernet ring network, where S2 is configured as the primary node of the Ethernet loop, and the remaining nodes are all transit nodes.
  • the master node should block its data packet forwarding function from the protected VLAN of port 22, so that the data in the protected VLAN cannot pass through the port.
  • the primary node will cycle from it
  • the master port 21 sends a HELLO message, passes through each transport node in turn, and finally returns from the slave port of the master node to the master node.
  • the primary node S2 sends a HELLO packet periodically. Because the loop is faultless, the HELLO packet passes through the loop to the slave port of the master node and returns to the master node.
  • FIG 2 is a schematic diagram of the link failure of the Ethernet ring link.
  • the transit nodes on the Ethernet ring monitor the link status of the port in real time.
  • the nodes at both ends of the link detect the port DOWN.
  • the corresponding control protocol message should be sent from another faultless port immediately to notify the master node of this change.
  • the link between the nodes S5 and S6 is faulty.
  • the nodes S5 and S6 block the corresponding port of the faulty link and send corresponding protocol packets from the other port to notify the master node.
  • the master node considers that the loop is faulty, and then opens the data packet forwarding function of the protected VLAN of the slave port of the master node, and notifies each transit node on the ring to refresh its MAC address table.
  • Figure 3 is a schematic diagram of the recovery of the Ethernet ring link failure, where
  • Figure 3a shows that when a neighboring node detects a link failure recovery, it immediately blocks the data packet forwarding function of the protected VLAN of the slave port of the restored master node and enters the pre-forward state.
  • the pre-forwarding state is a state in which the control protocol packet can be forwarded and the data packet of the protected VLAN cannot be forwarded, so that the HELLO packet sent by the master node can be returned to the slave port of the master node through the loop; The status of a data packet that can forward control protocol packets and forward protected VLANs.
  • Figure 3b shows the master node receiving the HELLO packet sent by the slave port.
  • the link is recovered, the data packet forwarding function of the protection VLAN of the slave port of the master node is re-blocked, and the control protocol packet is sent from the master port.
  • the transit node on the notification ring recovers and refreshes its respective MAC address.
  • the port in the pre-forward state receives the packet and sets its pre-forward state to the forwarding state.
  • the method of the present invention can set the adjacent port of the faulty link to the pre-forward state when the corresponding link of the faulty port is detected on the transit node, and the faulty link is obtained after receiving the control protocol packet sent by the master node.
  • the state of the adjacent port moves to the forwarding state.
  • the control protocol message sent by the master node is used to notify the transit node of the address ring to refresh and the corresponding port state switch.
  • the main idea of the present invention is: when the transit node detects the fault recovery of the adjacent link, the corresponding packet detection mechanism is started, and the VLAN TAG is detected for all the received packets, for example, the VLAN TAG and the loop of the packet are determined.
  • the control protocol VLAN ID set by the protection protocol is inconsistent or the report If the packet is a U TAG (unidentified) packet, the packet is forbidden to be forwarded. If the VLAN TAG of the packet is consistent with the VLAN ID of the control protocol, the packet is forwarded according to the destination address of the packet. Or send the message to the CPU for processing.
  • an Ethernet ring network fault recovery control method includes the following steps: Step 41: The process starts, the Ethernet ring network transmission node detects the adjacent link fault recovery; Step 42: The transit node starts packet detection. The mechanism is: detecting the received packet, determining whether the received packet is a TAG packet, if yes, executing step 43, otherwise, performing step 44;
  • Step 43 Detecting the VLAN TAG of the received packet, determining whether the VLAN identifier is the same as the control protocol VLAN identifier preset by the ring network protection protocol, and if yes, executing step 45, otherwise performing step 44;
  • Step 44 Disabling the forwarding of the packet on the corresponding port, ending the detection process of the packet, and performing the detection of the next new text;
  • the packet detection function is that the packet is a U TAG packet or the packet VLAN ID is different from the preset control protocol VLAN ID, the packet is forbidden to be forwarded on the corresponding port.
  • Step 45 Forward the packet according to the destination address of the packet or send the packet to the CPU for processing; at this time, the VLAN identifier of the received packet is consistent with the preset control protocol VLAN identifier, according to the packet
  • the destination address forwards the packet or sends the packet to the CPU for processing (the destination address is local).
  • Step 46 The master node sends a HELLO protocol packet on the primary port. If the HELLO protocol packet passes the faulty link neighboring node to the master node at the slave port, the master node determines that the link fault is recovered, and re-blocks the slave port. Protect the data forwarding function of the VLAN, and send the control protocol packet from the primary port to notify the transit node of the ring to recover and refresh the media access control MAC address table of each transport node;
  • the HELLO packet belongs to one type of protocol control packet, so its VLAN TAG must also be the same as the set control VLAN flag.
  • Step 47 The transit node receives the control protocol packet sent by the master node, and learns that the master node is blocked.
  • the data packet forwarding function of the slave port disables the packet detection mechanism that implements the pre-forward state, ends the pre-forwarding state, and the port of the transit node enters the forwarding state, and the process ends.
  • the invention can enable the node to set the port corresponding to the faulty link to the pre-forward state when detecting the link failure recovery, that is, blocking the protection of the VLAN data packet, but the control protocol packet can pass, so that the ring network health detection is used.
  • the HELLO packet can be returned to the slave port of the master node through the port in the pre-forward state.
  • the master node After receiving the HELLO packet from the slave port, the master node re-blocks the slave port and uses the corresponding control protocol packet to notify the ring node of the ring to refresh the MAC address. Address, the adjacent link of the faulty link receives the packet, ends the pre-forwarding state, migrates to the forwarding state, and updates its own MAC address. It can be seen that the method can reasonably complete the faulty link recovery switching and avoid the instantaneous loop caused by the link recovery, so it has strong industrial applicability.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Small-Scale Networks (AREA)

Abstract

A control method for Ethernet ring failure recovery is provided. The method comprises that: when the adjacent transmission nodes of the failed link detect that the failed link recovers to be normal, they migrate the ports corresponding to themselves to a pre-forwarding state in order to make themselves allow to forward the control protocol messages of the Ethernet ring and forbid to forward the data messages of the protection virtual local area network VLAN. The failed link recovery switching could be completed in reason by using the invention and the instant loop which is made at the time of the link recovery could be avoided.

Description

一种以太网故障恢复的控制方法  Control method for Ethernet fault recovery
技术领域 Technical field
本发明涉及以太网故障恢复技术, 尤其是指一种以太环网故障恢复的控 制方法。  The present invention relates to an Ethernet fault recovery technology, and more particularly to a control method for Ethernet ring network fault recovery.
背景技术 Background technique
目前无论在城域网还是企业网中都广泛釆用以太网环路结构来提高网络 的可靠性, 一个环物理上对应一个环形连接的以太网拓朴, 是一组相互连接 成环的以太网交换机集合。 以太网环路保护协议分别对环路上的各节点角色 进行定义, 主节点是环上的主要决策和控制节点, 每个环上必须有且只有一 个主节点, 环上除主节点之外的其它节点都为传输节点。 各节点利用控制虚 拟局域网 (VLAN, Virtual Local Area Network )传输协议报文, 相互协同保 护环路, 利用保护 VLAN传输数据报文,使得数据报文与控制报文通过不同 VLAN相互隔离, 当环上一条链路断开时, 启用环路保护机制恢复环网上各 个节点之间的通信。  At present, the Ethernet loop structure is widely used in both the metropolitan area network and the enterprise network to improve the reliability of the network. One ring physically corresponds to a ring-connected Ethernet topology, which is a set of Ethernet connected to each other. Switch collection. The Ethernet loop protection protocol defines the roles of each node on the loop. The master node is the main decision and control node on the ring. Each ring must have one and only one master node. The ring has other than the master node. Nodes are all transit nodes. Each node uses a virtual local area network (VLAN) to transmit protocol packets and cooperate with each other to protect the loops. The protected packets are transmitted through the protected VLANs. The data packets and control packets are isolated from each other through different VLANs. When a link is disconnected, the loop protection mechanism is enabled to resume communication between nodes on the ring network.
环路上各传输节点实时监测自己的端口链路状态, 当环网中的某条链路 发生故障, 链路两端的节点检测出端口 DOWN, 应即刻从另外一个无故障端 口发送相应控制协议报文把这种变化通知主节点, 主节点收到该报文后, 打 开从端口数据转发功能, 并通知环上各传输节点刷新各自介质访问控制 ( MAC, Media Access Control )地址。 为了防止故障节点向主节点发送的故 障通知报文丟失, 主节点还有备用检测机制, 如果在规定时间内收不到 HELLO报文, 也认为环网发生链路故障, 其中, HELLO报文是一种健康检 测才艮文。  Each of the transit nodes on the loop monitors the link status of the port in real time. When a link in the ring network fails, the nodes at both ends of the link detect the port DOWN. The corresponding control protocol packet should be sent from another faultless port. The master node is notified of the change. After receiving the packet, the master node opens the slave port data forwarding function, and notifies each of the transit nodes on the ring to refresh their respective media access control (MAC, Media Access Control) addresses. In order to prevent the failure notification packet from the faulty node from being sent to the master node, the master node has an alternate detection mechanism. If the HELLO packet is not received within the specified time, the link network is considered to have a link fault. The HELLO packet is A health test is a slogan.
在这种机制下, 当环网某链路出现故障, 主节点的从端口会被打开, 而 故障恢复以后, 若没有相应的保护机制, 将使得主节点的从端口与故障链路 恢复以后的端口同时连通, 形成数据报文的广播环路。 发明内容 Under this mechanism, when a link on the ring network fails, the slave port of the master node is opened, and after the fault is recovered, if there is no corresponding protection mechanism, the slave port of the master node and the faulty link are restored. The ports are connected at the same time to form a broadcast loop for data packets. Summary of the invention
本发明所要解决的技术问题是提供一种以太环网故障恢复的控制方法, 解决了环网某链路故障恢复后主节点的从端口与故障链路恢复以后的端口同 时连通形成数据报文的广播环路的问题。  The technical problem to be solved by the present invention is to provide a control method for the recovery of the fault of the Ethernet ring network, which solves the problem that the slave port of the master node and the port after the fault link is restored are connected to each other to form a data packet after the fault recovery of a link of the ring network is completed. The problem with the broadcast loop.
为了解决上述问题, 本发明提供了一种以太环网故障恢复的控制方法, 该方法包括:  In order to solve the above problem, the present invention provides a control method for Ethernet ring network failure recovery, the method comprising:
A、 故障链路的相邻的传输节点检测到所述故障链路恢复正常时, 将自 身所对应的端口迁移到预转发状态, 以使得自身允许转发以太环网控制协议 报文, 禁止转发保护虚拟局域网 VLAN的数据报文。  A. When the adjacent transit node of the faulty link detects that the faulty link is normal, the port corresponding to the faulty link is migrated to the pre-forward state, so that the switch can forward the Ethernet ring control protocol packet and prohibit the forwarding protection. Data packet of the virtual LAN VLAN.
进一步地, 所述传输节点将自身迁移到预转发状态的所述步骤之后, 该 方法进一步包括:  Further, after the step of the transit node migrating itself to the pre-forward state, the method further includes:
所述传输节点接收报文, 在所述预转发状态下确定所接收的报文的 VLAN TAG与环路保护协议预先设定的控制协议 VLAN标识不一致时,禁止 转发所接收到的报文。  The transmitting node receives the packet, and determines that the received packet is prohibited from being forwarded when the VLAN TAG of the received packet is inconsistent with the control protocol VLAN identifier preset by the loop protection protocol in the pre-forwarding state.
进一步地, 所述传输节点将自身迁移到预转发状态的所述步骤之后, 该 方法进一步包括:  Further, after the step of the transit node migrating itself to the pre-forward state, the method further includes:
所述传输节点接收报文, 在所述预转发状态下确定所接收的报文是未标 识 U TAG的报文时, 禁止转发所接收到的报文。  The transmitting node receives the packet, and when the received packet is determined to be a packet that does not identify the U TAG, the forwarded message is prohibited from being forwarded.
较佳地, 所述传输节点将自身迁移到预转发状态的所述步骤之后, 该方 法进一步包括:  Preferably, after the step of the transport node migrating itself to the pre-forward state, the method further includes:
B、 所述传输节点接收报文, 在所述预转发状态下确定所接收的报文的 VLAN TAG与预先设定的控制协议 VLAN标识一致时,根据所接收的报文的 目的地址转发该报文或将该报文上送 CPU处理。  The receiving node receives the packet, and determines that the VLAN TAG of the received packet is consistent with the preset control protocol VLAN identifier in the pre-forwarding state, and forwards the packet according to the destination address of the received packet. Or send the message to the CPU for processing.
进一步地,  further,
所述传输节点接收的所述报文是以太环网中的主节点在主端口发送的; 且, 所述步骤 B之后, 该方法进一步包括步骤 C:  The packet received by the transit node is sent by the primary node in the ring network on the primary port; and after the step B, the method further includes the step C:
C、 所述主节点在自身的从端口接收到所述传输节点转发的所述报文后 , 确定链路故障恢复, 阻塞链路故障时所打开的所述从端口保护 VLAN的数据 报文转发功能, 并从所述主端口发送控制协议报文通知以太网环上的所有传 输节点链路恢复并通知以太网环上的所有传输节点刷新各自的介质访问控制 MAC地址表。 C. After the master node receives the packet forwarded by the transport node from its own slave port, Determining the link failure recovery, blocking the data packet forwarding function of the slave port protection VLAN that is opened when the link is faulty, and sending a control protocol packet from the master port to notify all the transmission node links on the Ethernet ring to recover. And notify all the transmitting nodes on the Ethernet ring to refresh their respective media access control MAC address tables.
较佳地, 该方法进一步包括:  Preferably, the method further comprises:
所述传输节点收到所述主节点发送的所述控制协议报文后, 将自身所对 应的端口迁移至转发状态。  After receiving the control protocol packet sent by the master node, the transit node migrates the port corresponding to the forwarding node to the forwarding state.
与现有技术相比, 应用本发明, 能够使节点在检测到链路故障恢复时, 将故障链路所对应端口置为预转发状态, 即阻塞保护 VLAN数据报文, 但控 制协议报文可以通过,这样用于环网健康检测的 HELLO报文即可通过预转发 状态的端口回到主节点的从端口,主节点在从端口收到 HELLO报文后重新阻 塞从端口, 并利用相应控制协议 文通知环上传输节点刷新 MAC地址, 故 障链路相邻接点收到该报文后结束预转发状态, 迁移至转发状态, 并更新自 身 MAC地址。 由此可见, 本方法能够合理地完成故障链路恢复倒换, 避免 链路恢复时造成的瞬间环路。 附图概述  Compared with the prior art, the application of the present invention enables the node to set the port corresponding to the faulty link to the pre-forward state when detecting the link failure recovery, that is, blocking the protection of the VLAN data packet, but the control protocol packet can be Therefore, the HELLO packet used for ring health detection can be returned to the slave port of the master node through the port in the pre-forward state. The master node re-blocks the slave port after receiving the HELLO packet from the slave port, and uses the corresponding control protocol. The transmitting node on the ring informs the ring node to refresh the MAC address. After receiving the packet, the neighboring link of the faulty link ends the pre-forwarding state, migrates to the forwarding state, and updates its own MAC address. It can be seen that the method can reasonably complete the faulty link recovery switching and avoid the instantaneous loop caused by the link recovery. BRIEF abstract
图 1是以太环网无故障状态示意图;  Figure 1 is a schematic diagram of the fault-free state of the Ethernet ring network;
图 2是以太环网链路故障情况示意图;  Figure 2 is a schematic diagram of the fault condition of the Ethernet ring link;
图 3a和图 3b是以太环网链路故障恢复两个阶段的示意图;  Figure 3a and Figure 3b are schematic diagrams of two phases of fault recovery of the ring network link;
图 4是本发明中以太环网故障恢复的控制方法的流程图。  4 is a flow chart of a control method for Ethernet ring network failure recovery in the present invention.
本发明的较佳实施方式 Preferred embodiment of the invention
下面结合附图对本发明的具体实施作进一步详细的说明。  The specific implementation of the present invention will be further described in detail below with reference to the accompanying drawings.
图 1是以太环网无故障状态示意图,其中 S2被配置为以太网环路主节点, 其余节点均为传输节点。 正常情况下, 为了防止数据报文形成广播环路, 主 节点应阻塞其从端口 22的保护 VLAN的数据报文转发功能,使得保护 VLAN 中的数据不能通过该端口。 为定期进行网络健康性检查, 主节点会周期从其 主端口 21发送 HELLO报文, 依次经过各传输节点 , 最后从主节点的从端口 回到主节点。 图 1中, 主节点 S2周期的发送 HELLO报文, 因为环路无故障, HELLO报文经过环路到达主节点的从端口回到主节点。 Figure 1 is a schematic diagram of the fault-free state of the Ethernet ring network, where S2 is configured as the primary node of the Ethernet loop, and the remaining nodes are all transit nodes. Under normal circumstances, in order to prevent data packets from forming a broadcast loop, the master node should block its data packet forwarding function from the protected VLAN of port 22, so that the data in the protected VLAN cannot pass through the port. For regular network health checks, the primary node will cycle from it The master port 21 sends a HELLO message, passes through each transport node in turn, and finally returns from the slave port of the master node to the master node. In Figure 1, the primary node S2 sends a HELLO packet periodically. Because the loop is faultless, the HELLO packet passes through the loop to the slave port of the master node and returns to the master node.
图 2是以太环网链路故障情况示意图, 以太网环路上各传输节点实时监 测自己的端口链路状态, 当环网中的某条链路发生故障, 链路两端的节点检 测出端口 DOWN,应即刻从另外一个无故障端口发送相应控制协议报文把这 种变化通知主节点。 图 2中, 节点 S5和 S6之间的链路发生故障, 节点 S5 和 S6检测到端口对应链路发生故障后, 阻塞故障链路对应端口, 分别从另一 端口发送相应协议报文通知主节点链路发生故障, 主节点收到该报文后, 认 为环路发生故障, 打开主节点的从端口的保护 VLAN的数据报文转发功能, 并通知环上各传输节点刷新各自的 MAC地址表。  Figure 2 is a schematic diagram of the link failure of the Ethernet ring link. The transit nodes on the Ethernet ring monitor the link status of the port in real time. When a link in the ring network fails, the nodes at both ends of the link detect the port DOWN. The corresponding control protocol message should be sent from another faultless port immediately to notify the master node of this change. In Figure 2, the link between the nodes S5 and S6 is faulty. After detecting that the corresponding link of the port is faulty, the nodes S5 and S6 block the corresponding port of the faulty link and send corresponding protocol packets from the other port to notify the master node. After the link is faulty, the master node considers that the loop is faulty, and then opens the data packet forwarding function of the protected VLAN of the slave port of the master node, and notifies each transit node on the ring to refresh its MAC address table.
图 3 是以太环网链路故障恢复示意图, 其中,  Figure 3 is a schematic diagram of the recovery of the Ethernet ring link failure, where
图 3a描述的是当链路故障相邻的节点检测到链路故障恢复,会立即阻塞 所恢复的主节点的从端口的保护 VLAN的数据报文转发功能, 进入预转发状 态。 这里, 预转发状态是指可以转发控制协议报文, 不能转发保护 VLAN的 数据报文的状态,这样主节点周期发送的 HELLO报文即可通过环路回到主节 点的从端口; 而转发状态是指既能转发控制协议报文, 又能转发保护 VLAN 的数据报文的状态。  Figure 3a shows that when a neighboring node detects a link failure recovery, it immediately blocks the data packet forwarding function of the protected VLAN of the slave port of the restored master node and enters the pre-forward state. Here, the pre-forwarding state is a state in which the control protocol packet can be forwarded and the data packet of the protected VLAN cannot be forwarded, so that the HELLO packet sent by the master node can be returned to the slave port of the master node through the loop; The status of a data packet that can forward control protocol packets and forward protected VLANs.
图 3b描述的是主节点在从端口收到自己发出的 HELLO报文, 认为链路 恢复, 重新阻塞主节点的从端口的保护 VLAN的数据报文转发功能, 并从主 端口发送控制协议报文通知环上的传输节点链路恢复并刷新各自 MAC地址, 处于预转发状态的端口收到该报文, 将自身预转发状态置为转发状态。  Figure 3b shows the master node receiving the HELLO packet sent by the slave port. The link is recovered, the data packet forwarding function of the protection VLAN of the slave port of the master node is re-blocked, and the control protocol packet is sent from the master port. The transit node on the notification ring recovers and refreshes its respective MAC address. The port in the pre-forward state receives the packet and sets its pre-forward state to the forwarding state.
本发明的方法可以当传输节点上检测到故障端口对应链路恢复时, 将故 障链路的相邻端口置为预转发状态,直到收到主节点发出的控制协议报文后, 将故障链路的相邻端口的状态迁至转发状态。 主节点发出的控制协议报文用 于通知环上传输节点地址刷新和相应端口状态切换。  The method of the present invention can set the adjacent port of the faulty link to the pre-forward state when the corresponding link of the faulty port is detected on the transit node, and the faulty link is obtained after receiving the control protocol packet sent by the master node. The state of the adjacent port moves to the forwarding state. The control protocol message sent by the master node is used to notify the transit node of the address ring to refresh and the corresponding port state switch.
本发明的主要构思是: 传输节点检测到相邻链路故障恢复, 则启动相应 的报文检测机制, 对于接收到的所有报文检测其 VLAN TAG, 如判断该报文 的 VLAN TAG与环路保护协议设定的控制协议 VLAN标识不一致或者该报 文是 U TAG (未标识)的报文, 则禁止转发该报文, 如判断该报文的 VLAN TAG与预先设定的控制协议 VLAN标识一致,则根据该报文的目的地址转发 该报文或将该报文上送 CPU处理。 The main idea of the present invention is: when the transit node detects the fault recovery of the adjacent link, the corresponding packet detection mechanism is started, and the VLAN TAG is detected for all the received packets, for example, the VLAN TAG and the loop of the packet are determined. The control protocol VLAN ID set by the protection protocol is inconsistent or the report If the packet is a U TAG (unidentified) packet, the packet is forbidden to be forwarded. If the VLAN TAG of the packet is consistent with the VLAN ID of the control protocol, the packet is forwarded according to the destination address of the packet. Or send the message to the CPU for processing.
如图 4所示, 一种以太环网故障恢复的控制方法, 包括以下步骤, 步骤 41 : 流程开始, 以太环网传输节点检测到相邻链路故障恢复; 步骤 42: 传输节点启动报文检测机制; 对接收到的报文进行检测, 判断 接收到的报文是否是 TAG的报文, 如果是, 则执行步骤 43 , 否则执行步骤 44;  As shown in FIG. 4, an Ethernet ring network fault recovery control method includes the following steps: Step 41: The process starts, the Ethernet ring network transmission node detects the adjacent link fault recovery; Step 42: The transit node starts packet detection. The mechanism is: detecting the received packet, determining whether the received packet is a TAG packet, if yes, executing step 43, otherwise, performing step 44;
步骤 43: 对接收报文的 VLAN TAG进行检测, 判断该 VLAN标识是否 与环网保护协议预先设定的控制协议 VLAN标识相同, 如果是, 则执行步骤 45, 否则执行步骤 44;  Step 43: Detecting the VLAN TAG of the received packet, determining whether the VLAN identifier is the same as the control protocol VLAN identifier preset by the ring network protection protocol, and if yes, executing step 45, otherwise performing step 44;
步骤 44: 禁止报文在相应端口的转发, 结束该报文的检测流程, 进行下 一新的 文的检测;  Step 44: Disabling the forwarding of the packet on the corresponding port, ending the detection process of the packet, and performing the detection of the next new text;
釆用实现预转发状态的报文检测机制, 若检测结果为报文是 U TAG的 报文或者报文 VLAN标识与预先设置的控制协议 VLAN标识不同,则禁止报 文在相应端口的转发。  If the packet detection function is that the packet is a U TAG packet or the packet VLAN ID is different from the preset control protocol VLAN ID, the packet is forbidden to be forwarded on the corresponding port.
步骤 45: 根据该报文的目的地址转发该报文或将该报文上送 CPU处理; 此时, 收到报文的 VLAN标识与预先设定的控制协议 VLAN标识一致, 根据该报文的目的地址转发该报文或将该报文上送 CPU处理(目的地址为本 机情况) 。  Step 45: Forward the packet according to the destination address of the packet or send the packet to the CPU for processing; at this time, the VLAN identifier of the received packet is consistent with the preset control protocol VLAN identifier, according to the packet The destination address forwards the packet or sends the packet to the CPU for processing (the destination address is local).
步骤 46: 主节点在主端口发送 HELLO协议报文,如该 HELLO协议报文 通过故障链路相邻节点在从端口回到主节点, 则所述主节点判断链路故障恢 复, 重新阻塞从端口保护 VLAN的数据转发功能, 并从主端口发送控制协议 报文通知环上传输节点链路恢复并刷新各传输节点的介质访问控制 MAC地 址表;  Step 46: The master node sends a HELLO protocol packet on the primary port. If the HELLO protocol packet passes the faulty link neighboring node to the master node at the slave port, the master node determines that the link fault is recovered, and re-blocks the slave port. Protect the data forwarding function of the VLAN, and send the control protocol packet from the primary port to notify the transit node of the ring to recover and refresh the media access control MAC address table of each transport node;
HELLO报文属于协议控制报文的一种,所以其 VLAN TAG也必须与设定 的控制 VLAN标志一致,走控制 VLAN通道。  The HELLO packet belongs to one type of protocol control packet, so its VLAN TAG must also be the same as the set control VLAN flag.
步骤 47: 传输节点收到主节点发送的控制协议报文, 得知主节点已阻塞 从端口的数据报文转发功能, 关闭实现预转发状态的报文检测机制, 结束预 转发状态, 传输节点的端口进入转发状态, 流程结束。 Step 47: The transit node receives the control protocol packet sent by the master node, and learns that the master node is blocked. The data packet forwarding function of the slave port disables the packet detection mechanism that implements the pre-forward state, ends the pre-forwarding state, and the port of the transit node enters the forwarding state, and the process ends.
以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围并不 局限于此, 任何熟悉该技术的人在本发明所公开的技术范围内, 可轻易想到 的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范 围应该以权利要求的保护范围为准。  The above is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical scope of the present invention. All should be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
工业实用性 Industrial applicability
本发明能够使节点在检测到链路故障恢复时, 将故障链路所对应端口置 为预转发状态, 即阻塞保护 VLAN数据报文, 但控制协议报文可以通过, 这 样用于环网健康检测的 HELLO报文即可通过预转发状态的端口回到主节点 的从端口 ,主节点在从端口收到 HELLO报文后重新阻塞从端口 ,并利用相应 控制协议报文通知环上传输节点刷新 MAC地址, 故障链路相邻接点收到该 报文后结束预转发状态, 迁移至转发状态, 并更新自身 MAC地址。 由此可 见, 本方法能够合理地完成故障链路恢复倒换, 避免链路恢复时造成的瞬间 环路, 因此具有很强的工业实用性。  The invention can enable the node to set the port corresponding to the faulty link to the pre-forward state when detecting the link failure recovery, that is, blocking the protection of the VLAN data packet, but the control protocol packet can pass, so that the ring network health detection is used. The HELLO packet can be returned to the slave port of the master node through the port in the pre-forward state. After receiving the HELLO packet from the slave port, the master node re-blocks the slave port and uses the corresponding control protocol packet to notify the ring node of the ring to refresh the MAC address. Address, the adjacent link of the faulty link receives the packet, ends the pre-forwarding state, migrates to the forwarding state, and updates its own MAC address. It can be seen that the method can reasonably complete the faulty link recovery switching and avoid the instantaneous loop caused by the link recovery, so it has strong industrial applicability.

Claims

权 利 要 求 书 Claim
1、 一种以太环网故障恢复的控制方法, 该方法包括:  1. A control method for recovering an Ethernet ring network, the method comprising:
A、 故障链路的相邻的传输节点检测到所述故障链路恢复正常时, 将自 身所对应的端口迁移到预转发状态, 以使得自身允许转发以太环网控制协议 报文, 禁止转发保护虚拟局域网 VLAN的数据报文。  A. When the adjacent transit node of the faulty link detects that the faulty link is normal, the port corresponding to the faulty link is migrated to the pre-forward state, so that the switch can forward the Ethernet ring control protocol packet and prohibit the forwarding protection. Data packet of the virtual LAN VLAN.
2、 如权利要求 1所述的控制方法, 其中, 所述传输节点将自身迁移到预 转发状态的所述步骤之后, 该方法进一步包括:  2. The control method according to claim 1, wherein after the step of the transport node migrating itself to the pre-forward state, the method further comprises:
所述传输节点接收报文, 在所述预转发状态下确定所接收的报文的 VLAN TAG与环路保护协议预先设定的控制协议 VLAN标识不一致时,禁止 转发所接收到的报文。  The transmitting node receives the packet, and determines that the received packet is prohibited from being forwarded when the VLAN TAG of the received packet is inconsistent with the control protocol VLAN identifier preset by the loop protection protocol in the pre-forwarding state.
3、 如权利要求 1所述的控制方法, 其中, 所述传输节点将自身迁移到预 转发状态的所述步骤之后, 该方法进一步包括:  3. The control method according to claim 1, wherein after the step of the transport node migrating itself to the pre-forward state, the method further comprises:
所述传输节点接收报文, 在所述预转发状态下确定所接收的报文是未标 识 U TAG的报文时, 禁止转发所接收到的报文。  The transmitting node receives the packet, and when the received packet is determined to be a packet that does not identify the U TAG, the forwarded message is prohibited from being forwarded.
4、 如权利要求 1所述的控制方法, 其中, 所述传输节点将自身迁移到预 转发状态的所述步骤之后, 该方法进一步包括:  4. The control method according to claim 1, wherein after the step of the transport node migrating itself to the pre-forward state, the method further comprises:
B、 所述传输节点接收报文, 在所述预转发状态下确定所接收的报文的 VLAN TAG与预先设定的控制协议 VLAN标识一致时,根据所接收的报文的 目的地址转发该报文或将该报文上送 CPU处理。  The receiving node receives the packet, and determines that the VLAN TAG of the received packet is consistent with the preset control protocol VLAN identifier in the pre-forwarding state, and forwards the packet according to the destination address of the received packet. Or send the message to the CPU for processing.
5、 如权利要求 4所述的控制方法, 其中,  5. The control method according to claim 4, wherein
所述传输节点接收的所述报文是以太环网中的主节点在主端口发送的; 且, 所述步骤 B之后, 该方法进一步包括步骤 C:  The packet received by the transit node is sent by the primary node in the ring network on the primary port; and after the step B, the method further includes the step C:
C、 所述主节点在自身的从端口接收到所述传输节点转发的所述报文后, 确定链路故障恢复, 阻塞链路故障时所打开的所述从端口保护 VLAN的数据 报文转发功能, 并从所述主端口发送控制协议报文通知以太网环上的所有传 输节点链路恢复并通知以太网环上的所有传输节点刷新各自的介质访问控制 MAC地址表。 After the receiving, by the master node, the packet forwarded by the transit node, the master node determines that the link fault is recovered, and the data packet of the slave port protection VLAN that is opened when the link fault is blocked is forwarded. And transmitting a control protocol message from the primary port to notify all transport node links on the Ethernet ring to recover and notify all transport nodes on the Ethernet ring to refresh their respective media access control MAC address tables.
6、 如权利要求 5所述的控制方法, 其中, 所述步骤 C之后, 该方法进一 步包括: 6. The control method according to claim 5, wherein after the step C, the method further comprises:
所述传输节点收到所述主节点发送的所述控制协议报文后, 将自身所对 应的端口迁移至转发状态。  After receiving the control protocol packet sent by the master node, the transit node migrates the port corresponding to the forwarding node to the forwarding state.
PCT/CN2009/073452 2008-09-22 2009-08-24 Control method for ethernet failure recovery WO2010031295A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200810149688.4 2008-09-22
CN200810149688 2008-09-22

Publications (1)

Publication Number Publication Date
WO2010031295A1 true WO2010031295A1 (en) 2010-03-25

Family

ID=42039086

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/073452 WO2010031295A1 (en) 2008-09-22 2009-08-24 Control method for ethernet failure recovery

Country Status (2)

Country Link
CN (1) CN101686167A (en)
WO (1) WO2010031295A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113794657A (en) * 2021-09-14 2021-12-14 迈普通信技术股份有限公司 MAC address migration processing method and device and switching equipment
CN115412424A (en) * 2022-08-17 2022-11-29 浪潮思科网络科技有限公司 Method and device for detecting double main devices in MLAG environment

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102315987B (en) * 2011-09-13 2017-05-10 中兴通讯股份有限公司 Ring network protection group link switching method and device
CN103533567B (en) * 2012-09-29 2016-08-03 深圳友讯达科技股份有限公司 The determination method of secondary node and node
CN105591860B (en) * 2015-09-25 2019-03-12 新华三技术有限公司 Looped network protecting method and device based on RRPP
CN108833247B (en) * 2018-05-18 2021-02-09 新华三技术有限公司 Method and device for re-switching after link failure recovery
CN112995006B (en) * 2019-12-17 2024-10-25 南京中兴新软件有限责任公司 Message processing method and module, detection method, switching equipment and storage medium
CN113285826B (en) * 2021-05-18 2022-11-29 南京信息职业技术学院 Ring network protection switching method based on role switching
CN115865637B (en) * 2022-11-29 2024-06-25 重庆长安汽车股份有限公司 Method, device, equipment and storage medium for switching protection of vehicle-mounted Ethernet ring

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1575221A1 (en) * 2004-03-08 2005-09-14 Extreme Networks Ethernet automatic protection switching
CN1812361A (en) * 2006-01-23 2006-08-02 杭州华为三康技术有限公司 Fast ring network protecting method and system
CN101141365A (en) * 2006-09-06 2008-03-12 杭州华三通信技术有限公司 Network node and fault recovery method of Ethernet ring network therein

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1575221A1 (en) * 2004-03-08 2005-09-14 Extreme Networks Ethernet automatic protection switching
CN1812361A (en) * 2006-01-23 2006-08-02 杭州华为三康技术有限公司 Fast ring network protecting method and system
CN101141365A (en) * 2006-09-06 2008-03-12 杭州华三通信技术有限公司 Network node and fault recovery method of Ethernet ring network therein

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113794657A (en) * 2021-09-14 2021-12-14 迈普通信技术股份有限公司 MAC address migration processing method and device and switching equipment
CN113794657B (en) * 2021-09-14 2023-10-31 迈普通信技术股份有限公司 MAC address migration processing method and device and switching equipment
CN115412424A (en) * 2022-08-17 2022-11-29 浪潮思科网络科技有限公司 Method and device for detecting double main devices in MLAG environment
CN115412424B (en) * 2022-08-17 2024-03-26 浪潮思科网络科技有限公司 Double-master device detection method and device in MLAG environment

Also Published As

Publication number Publication date
CN101686167A (en) 2010-03-31

Similar Documents

Publication Publication Date Title
CN101001192B (en) A ring network link protection method, system and equipment
CN100409634C (en) Fast ring network protection method and system
CN101127653B (en) Ethernet loop device with backup and implementation method for master device backup
CN101686158B (en) Control method for Ethernet loop guard fault recovery and Ethernet loop node
CN100521638C (en) Intersecting Ethernet ring net and its automatic protecting method, node device for Ethernet ring net
EP2277290B9 (en) Redundant ethernet automatic protection switching access to virtual private LAN services
WO2010031295A1 (en) Control method for ethernet failure recovery
EP2194676B1 (en) Ethernet ring system, its main node and intialization method
CN101652963B (en) Method for reconfiguring a communications network
CN101345683B (en) Protocol packet transmission control method of Ethernet automatic protection switch system
WO2010045832A1 (en) Method and apparatus for protecting link aggregation group of ethernet ring
CN101677267B (en) Method for retransmitting protocol frames in transannular way and sharing nodes in multiple rings of Ethernet
CN104980349A (en) Relay system and switching device
WO2009039697A1 (en) Ethernet ring network systerm, transmission node of ethernet ring network and initialization method thereof
CN101094190B (en) Method for transmitting protective controlled message in Ethernet ring net
CN101247306A (en) Edge port blocking method in Ethernet ring network, Ethernet ring network system and equipment
CN110635940B (en) Main/standby switching method of EAPS Ethernet ring network
JP2003258822A (en) Packet ring network and inter-packet ring network connection method used in the same
CN101534234B (en) Interworking Ethernet ring network protection method and system
CN102238067A (en) Switching method and device on Rapid Ring Protection Protocol (RRPP) ring
CN100550812C (en) Improve method, system and the node device of dependability of fast looped network
CN102025561B (en) Method and system for refreshing MAC (Medium Access Controller) in Ethernet ring
CN101641915A (en) Method for reconfiguring a communication network
CN101557333A (en) Processing method of loop fault in dual-homing networking and node device
CN101815021B (en) Method for implementing protocol channel in Ethernet protection

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

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

Country of ref document: EP

Kind code of ref document: A1