WO2008031347A1 - Method and apparatus for realizing protection switching in the ring ethernet - Google Patents
Method and apparatus for realizing protection switching in the ring ethernet Download PDFInfo
- Publication number
- WO2008031347A1 WO2008031347A1 PCT/CN2007/070512 CN2007070512W WO2008031347A1 WO 2008031347 A1 WO2008031347 A1 WO 2008031347A1 CN 2007070512 W CN2007070512 W CN 2007070512W WO 2008031347 A1 WO2008031347 A1 WO 2008031347A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- ring network
- ring
- fault
- protection switching
- timer
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/42—Loop networks
- H04L12/437—Ring fault isolation or reconfiguration
Definitions
- the present invention relates to Ethernet technology, and more particularly to a method and apparatus for implementing protection switching in a ring Ethernet. Background of the invention
- Multipoint connections can effectively support a wide range of communication services.
- a ring with protection switching mechanism can be used. Ethernet structure.
- FIG. 1 is a schematic diagram of a conventional ring Ethernet structure.
- the ring Ethernet structure is simply referred to as a ring network.
- S1 will block its secondary port for user data packets when the ring network is in normal communication to avoid broadcast storms caused by data loops.
- transit nodes other non-primary nodes in the ring network other than the primary node S1 are referred to as transit nodes.
- FIG. 2 shows the schematic diagram of the existing ring Ethernet protection switching.
- S1 when a fault occurs in the ring network, S1 immediately enters the ring fault state, and opens its own secondary port for the user data message to allow the user data to pass; and, in S1 and the ring network The other nodes respectively refresh their forwarding tables to re-top the learning; in addition, S1 continuously sends polling messages in the ring network by its primary port. Once the ring network fault is removed, S1 can pass its secondary port. Receive the polling message sent by itself. In this case, S1 is restored to the normal state by the ring fault state, and its secondary port is blocked for user data packets to prohibit user data packets from passing.
- the ring networks shown in Figure 1 and Figure 2 are hierarchical network structures, and each layer in the ring network.
- the network structure has a corresponding protection switching capability.
- the protection switching operation shown in Figure 2 is a protection switching operation at the data link layer.
- the data link layer performs frequent protection switching operations. .
- the data link layer is used as an example.
- the network structure of each layer in the ring network has the problem of performing unnecessary or frequent protection switching operations, and unnecessary or frequent protection switching operations are performed. A lot of waste of network resources and a significant reduction in network performance. Summary of the invention
- Embodiments of the present invention provide a method for implementing protection switching in a ring Ethernet to effectively avoid unnecessary protection switching operations.
- Embodiments of the present invention provide a device for implementing protection switching in a ring Ethernet to effectively avoid unnecessary protection switching operations.
- a method for implementing protection switching in a ring Ethernet comprising:
- a preset delay timer is started; when the delay timer expires and the ring network fault is detected again, the normal work is performed.
- a protection switching operation in which the state switches to a ring fault state.
- a method for implementing protection switching in a ring Ethernet comprising:
- a preset recovery wait timer is started; after the recovery wait timer expires, an operation for restoring to a normal working state is performed.
- a device for implementing protection switching in a ring Ethernet comprising: a ring network fault determination unit, a delay timer, and a protection switching unit;
- the ring network fault determining unit is configured to control the delay timer to start when a ring network fault is detected in a normal working state, and perform loop network fault detection again when receiving the notification of the delay timer timeout.
- the protection switching unit is controlled to perform a protection switching operation from a normal working state to a ring fault state;
- the delay timer is configured to start according to the control of the ring network fault determining unit, and notify the ring network fault determining unit when timeout occurs;
- the protection switching unit is configured to perform a protection switching operation of switching from a normal working state to a ring fault state according to the control of the ring network fault determining unit.
- a device for implementing protection switching in a ring-shaped Ethernet comprising: a recovery waiting timer, a ring network failure determining unit, and a protection switching unit;
- the ring network failure determining unit is configured to control the recovery waiting timer to start when detecting that the ring network fault has been eliminated in the ring fault state, and continue to detect the link fault and control the recovery when the link fault is detected. Waiting for the timer to restart;
- the recovery waiting timer is configured to start according to the control of the ring network failure determining unit, and notify the protection switching unit when timeout occurs;
- the protection switching unit is configured to perform an operation for restoring to a normal working state according to the notification of the recovery waiting timer.
- the preset recovery wait timer is started, and after the recovery wait timer expires, the operation for restoring to the normal working state is performed. In this way, by setting the recovery wait timer, it is ensured that the protection switching operation in the ring network is not frequently performed due to link instability or intermittent defects in the link, thereby avoiding unnecessary protection switching operations.
- FIG. 1 is a schematic diagram of a conventional ring Ethernet structure
- FIG. 2 is a schematic diagram of a conventional ring Ethernet protection switching
- FIG. 3 is a flow chart of a preferred embodiment of the method of the present invention.
- FIG. 5 is a schematic structural diagram of a device according to an embodiment of the present invention.
- Figure 6 is a schematic view showing the structure of another embodiment of the device of the present invention.
- Figure 7 is a schematic view showing the structure of a device according to a preferred embodiment of the present invention. Mode for carrying out the invention
- a preset delay timer is started, the delay timer expires, and the ring network fault is detected again.
- the preset recovery waiting timer is started; after the recovery waiting timer expires, the execution is resumed to the normal working state. operating.
- FIG. 3 is a flow chart of a preferred embodiment of the method of the present invention. As shown in Figure 3, the following steps are included:
- Step 310 When in a normal working state, the master node applies the prior art to detect a ring network fault in the ring network; when detecting the ring network fault, the process proceeds to step 320, and when no ring network fault is detected, the process returns to step 310.
- the ring network fault is a link fault and/or a node fault; specifically, the master node can detect the ring network fault through a link state alarm mechanism or a polling mechanism.
- the link state alarm mechanism the transit node in the ring network can detect the ring network fault and send an alarm message to the master node by using the prior art; when receiving the alarm message from the transport node, the master node determines that the ring is detected. Network failure.
- the master node continuously sends polling messages in its ring network by its primary port.
- the master node can receive the rounds sent by its own master port through its own secondary port.
- the master node cannot receive the polling message when the set failure period timer expires. In this case, the master node determines that the ring network fault is detected.
- Step 320 The master node starts a preset delay timer.
- Step 330 The master node determines whether the delay timer expires. If it times out, it proceeds to step 340; otherwise, returns to step 330.
- Step 340 The master node detects a ring network fault in the ring network and determines whether a ring network fault is detected. If the ring network fault is detected, the process proceeds to step 350, and when no ring network fault is detected, the process returns to step 310.
- Step 350 The primary node performs protection from the normal working state to the ring fault state. Change operation.
- the protection switching operation in this step includes: the primary node refreshes its own forwarding table, and opens its own secondary port for the user data packet to allow the user data packet to pass; and simultaneously sends a refresh to the transmission node in the ring network.
- the control message is advertised to notify the transmitting node to refresh the forwarding table.
- the master node usually also continuously sends polling messages in the ring network by its primary port.
- the operation time setting required for the lower layer protection switching is to ensure the protection of the lower layer network structure as much as possible.
- the delay timer expires after the switching operation result. In this way, if the protection switching operation of the lower layer network structure is successfully completed, and the ring network failure is not detected again, there is no need to perform the protection switching operation of the current layer network structure; if the protection switching operation of the lower layer network structure fails to be successfully completed, Or the ring network fault is detected currently, and the protection switching operation of the current layer network structure is required.
- the lower layer network structure obtains the time for performing the protection switching operation, so that the upper layer network structure does not perform unnecessary protection switching operations due to the fault that the lower layer network structure can solve, thereby making the current ring Unnecessary protection switching operations performed in the network are effectively avoided.
- the nodes in the ring network can perform the operations shown in FIG.
- the flow in Figure 4 is not necessarily related to the flow in Figure 3. In practical applications, the flow in Figure 3 can be performed separately, or the flow in Figure 4 can be performed separately.
- FIG. 4 is a flow chart of another preferred embodiment of the method of the present invention. As shown in FIG. 4, the following steps are included:
- Step 410 The master node applies the existing technology to detect whether the ring network fault in the ring network has been eliminated. When it is determined that the ring network fault has been eliminated, the process proceeds to step 420, and when it is determined that the ring network fault has not been eliminated, the process returns to step 410.
- the master node may detect the ring network fault by using a link state alarm mechanism or a polling mechanism, and determine that the ring network fault has not been eliminated when the ring network fault is detected; and determine that the ring network fault has been detected when the ring network fault is not detected. eliminate.
- Step 420 The master node starts a preset recovery wait timer.
- Step 430 The primary node applies the prior art to detect the ring network fault in the ring network; when no ring network fault is detected, the process proceeds to step 440, and when the ring network fault is detected, the process returns to step 420.
- Step 440 The master node determines whether the recovery wait timer expires. If it times out, it proceeds to step 450; otherwise, returns to step 430.
- Step 450 The master node performs an operation for restoring to a normal working state.
- the operations performed by the master node include: refreshing the forwarding table of the user and re-blocking the secondary port of the user data packet to prohibit the user data packet from passing; sending a refresh notification control message to the transit node in the ring network, The forwarding node is notified to refresh the forwarding table; in addition, the primary node usually also continuously sends polling messages in the ring network by its primary port.
- the master node After this, the master node enters the normal working state.
- the timing of the recovery wait timer may be set according to the actual application scenario, such as: according to the length of time required for link recovery to be stable and/or the possible duration of the link intermittent defect, to ensure that the link is stable or in the link. When the intermittent defect has not existed, the recovery wait timer expires.
- FIG. 5 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
- the device includes: a ring network failure determining unit 501, a delay timer 502, and a protection switching unit 503.
- the ring network fault determining unit 501 is configured to detect a ring network fault when the normal working state is detected.
- the delay timer 502 is started; and when the notification of the delay timer 502 is received, the ring network fault detection is performed again, and when the ring network fault is detected, the protection protection switching unit 503 performs the protection switching from the normal working state to the ring fault state. operating;
- the delay timer 502 is configured to be started according to the control of the ring fault determining unit 501, and notify the ring fault determining unit 501 when timeout occurs;
- the protection switching unit 503 is configured to perform a protection switching operation from the normal working state to the ring failure state according to the control of the ring network failure determining unit 501.
- Figure 6 is a schematic view showing the structure of another embodiment of the apparatus of the present invention.
- the device includes: a ring network failure decision unit 601, a recovery wait timer 602, and a protection switching unit 603;
- the ring network fault determining unit 601 is configured to start the control recovery wait timer 602 when the ring network fault is detected in the ring fault state, and continue to detect the link fault and control the recovery wait timing when the link fault is detected. 602 restarts;
- the recovery wait timer 602 is configured to start according to the control of the ring failure decision unit 601, and notify the protection switching unit 603 when the timeout occurs;
- the protection switching unit 603 is configured to perform an operation for restoring to a normal working state according to the notification of the recovery waiting timer 602.
- FIG. 7 is a schematic view showing the structure of a device according to a preferred embodiment of the present invention.
- the ring network failure determining unit 710, the timing unit 720, and the protection switching unit 730 are respectively two or two.
- a delay timer 721 and a resume wait timer 722 are provided in the timing unit 720.
- the ring network fault determining unit 710 is connected to the delay timer 721 and the protection switching unit 730, respectively
- the recovery waiting timer 722 is connected to the ring network fault determining unit 710 and the protection switching unit 730, respectively.
- the ring network fault determining unit 710 when a ring network fault is detected in a normal working state, the ring network fault determining unit 710 starts the delay timer 721 by using a transmission level signal or the like; the delay timer 721 sends a level signal when the timeout expires.
- the ring fault determining unit 710 is configured to perform the ring network fault detection again, and notify the protection switching unit 730 by sending a signal or the like when the ring network fault is detected, and the protection switching unit 730 performs normal operation. The protection switching operation of the state switching to the ring fault state.
- the ring network failure decision unit 710 may continue to detect the ring network fault later, and restart the delay by sending a level signal or the like when detecting the ring network fault. Timer 721.
- the ring network failure decision unit 710 When it is detected that the ring network failure has been eliminated in the ring failure state, the ring network failure decision unit 710 starts the recovery wait timer 722 in a manner of transmitting a level signal or the like, and performs ring network failure detection when the recovery wait timer 722 has not timed out. If the ring network failure is detected, the recovery wait timer 722 is restarted; otherwise, it returns to the state where the ring network failure detection is performed when the recovery wait timer 722 has not timed out.
- the recovery wait timer 722 notifies the protection switching unit 730 by a transmission signal or the like at the time of timeout, and the protection switching unit 730 performs an operation for returning to the normal operation state.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
A method for realizing protection switching in the ring Ethernet is provided, including: when the failure of the ring Ethernet have been detected in the ring Ethernet, initiating the delay timer which has been set predetermined, when the delay timer expired and the failure of the ring Ethernet have been detected for the second time, then switching the normal state to the failure state of the ring Ethernet. When the failure of the ring Ethernet have been eliminated, initiating the restoration waiting timer. When the restoration waiting timer expired, then performing the restoration of the normal state. An apparatus for realizing protection switching in the ring Ethernet is also provided.
Description
在环状以太网中实现保护倒换的方法和装置 Method and device for implementing protection switching in ring Ethernet
技术领域 Technical field
本发明涉及以太网技术, 尤其涉及在环状以太网中实现保护倒换的 方法和装置。 发明背景 The present invention relates to Ethernet technology, and more particularly to a method and apparatus for implementing protection switching in a ring Ethernet. Background of the invention
支持多点连接是以太网的一个独有特性, 多点连接可以有效地支持 大范围、 数目众多的通讯业务, 并且, 为了提供多点连接中通讯的可靠 性, 可以使用具有保护倒换机制的环状以太网结构。 Supporting multipoint connections is a unique feature of Ethernet. Multipoint connections can effectively support a wide range of communication services. In addition, in order to provide reliable communication in multipoint connections, a ring with protection switching mechanism can be used. Ethernet structure.
图 1为现有环状以太网结构示意图。 为描述方便, 以下将环状以太 网结构简称为环网。 如图 1所示, 作为环网中唯一的一个主节点, S1会 在环网正常通信时针对用户数据报文阻塞自身的副端口, 以避免因产生 数据环路而引起广播风暴。 通常, 环网中除主节点 S1 以外的其它非主 节点均被称为传输节点。 FIG. 1 is a schematic diagram of a conventional ring Ethernet structure. For convenience of description, the ring Ethernet structure is simply referred to as a ring network. As shown in Figure 1, as the only primary node in the ring network, S1 will block its secondary port for user data packets when the ring network is in normal communication to avoid broadcast storms caused by data loops. Generally, other non-primary nodes in the ring network other than the primary node S1 are referred to as transit nodes.
当环网中出现故障时, S1会立即触发相应的保护倒换操作, 如图 2 所示, 图 2为现有环状以太网保护倒换原理图。 图 2中, 当检测到环网 中出现故障时, S1会立即进入环故障状态, 并针对用户数据报文打开自 身的副端口以允许用户数据 ^艮文通过; 并且, S1和环网中的其它节点分 别刷新自身的转发表以重新进行拓朴学习; 再有, S1会持续性地由其主 端口在环网内发送轮询报文, 一旦环网故障消除, S1则可以通过其副端 口接收自身所发送的轮询报文。在这种情况下, S1由环故障状态恢复到 正常状态, 并重新针对用户数据报文阻塞其副端口以禁止用户数据报文 通过。 When a fault occurs in the ring network, S1 immediately triggers the corresponding protection switching operation. As shown in Figure 2, Figure 2 shows the schematic diagram of the existing ring Ethernet protection switching. In Figure 2, when a fault occurs in the ring network, S1 immediately enters the ring fault state, and opens its own secondary port for the user data message to allow the user data to pass; and, in S1 and the ring network The other nodes respectively refresh their forwarding tables to re-top the learning; in addition, S1 continuously sends polling messages in the ring network by its primary port. Once the ring network fault is removed, S1 can pass its secondary port. Receive the polling message sent by itself. In this case, S1 is restored to the normal state by the ring fault state, and its secondary port is blocked for user data packets to prohibit user data packets from passing.
实际上, 图 1、 图 2所示的环网都是分层网络结构, 环网中各层网
络结构都具有相应的保护倒换能力。 当环网中的底层网络结构出现故障 且没能及时修复时, 就会影响到上层的正常工作并引起上层的保护倒换 操作。 图 2所示的保护倒换操作是处于数据链路层的保护倒换操作。 In fact, the ring networks shown in Figure 1 and Figure 2 are hierarchical network structures, and each layer in the ring network. The network structure has a corresponding protection switching capability. When the underlying network structure in the ring network fails and fails to be repaired in time, it will affect the normal operation of the upper layer and cause the upper layer protection switching operation. The protection switching operation shown in Figure 2 is a protection switching operation at the data link layer.
显然 , 由于目前是在环网中出现环网故障时立即进行数据链路层的 保护倒换操作, 因此, 即使相对数据链路层而言的下层网络能够通过自 身的保护倒换操作消除故障, 该下层网络结构也无法在数据链路层进行 保护倒换操作之前, 得到足够的时间来进行相应的保护倒换操作。 这将 有可能导致下层网络结构和数据链路层都进行了保护倒换操作。 Obviously, since the data link layer protection switching operation is performed immediately when a ring network failure occurs in the ring network, even if the lower layer network relative to the data link layer can eliminate the fault by its own protection switching operation, the lower layer The network structure also cannot obtain sufficient time to perform the corresponding protection switching operation before the protection switching operation at the data link layer. This will likely result in protection switching operations for both the underlying network fabric and the data link layer.
这时数据链路层所进行的保护倒换操作就是不必要的。 At this time, the protection switching operation performed by the data link layer is unnecessary.
另外, 由于在环网中环网故障消失后立即进行故障状态到正常工作 状态的恢复操作, 因此如果链路不稳定或者有间歇性的缺陷发生, 那么 数据链路层就会进行频繁的保护倒换操作。 In addition, since the fault state to the normal working state is resumed immediately after the ring network fault disappears in the ring network, if the link is unstable or intermittent defects occur, the data link layer performs frequent protection switching operations. .
以上所述只是以数据链路层为例, 实际上, 环网中的各层网络结构 都存在着进行不必要或频繁的保护倒换操作的问题, 而不必要或频繁的 进行保护倒换操作 , 会大量浪费网络资源并导致网络性能的明显降低。 发明内容 The data link layer is used as an example. In fact, the network structure of each layer in the ring network has the problem of performing unnecessary or frequent protection switching operations, and unnecessary or frequent protection switching operations are performed. A lot of waste of network resources and a significant reduction in network performance. Summary of the invention
本发明实施例提供在环状以太网中实现保护倒换的方法, 以有效避 免不必要的保护倒换操作。 Embodiments of the present invention provide a method for implementing protection switching in a ring Ethernet to effectively avoid unnecessary protection switching operations.
本发明实施例提供在环状以太网中实现保护倒换的装置, 以有效避 免不必要的保护倒换操作。 Embodiments of the present invention provide a device for implementing protection switching in a ring Ethernet to effectively avoid unnecessary protection switching operations.
本发明实施例的技术方案是这样实现的: The technical solution of the embodiment of the present invention is implemented as follows:
一种在环状以太网中实现保护倒换的方法, 该方法包括: A method for implementing protection switching in a ring Ethernet, the method comprising:
当在环状以太网中检测到环网故障时, 启动预先设置的延迟定时 器; 在所述延迟定时器超时并且再次检测到环网故障时, 进行由正常工
作状态向环故障状态切换的保护倒换操作。 When a ring network fault is detected in the ring Ethernet, a preset delay timer is started; when the delay timer expires and the ring network fault is detected again, the normal work is performed. A protection switching operation in which the state switches to a ring fault state.
一种在环状以太网中实现保护倒换的方法, 该方法包括: A method for implementing protection switching in a ring Ethernet, the method comprising:
当环网故障消除时, 启动预先设置的恢复等待定时器; 在所述恢复 等待定时器超时后, 执行用于恢复到正常工作状态的操作。 When the ring network fault is eliminated, a preset recovery wait timer is started; after the recovery wait timer expires, an operation for restoring to a normal working state is performed.
一种在环状以太网中实现保护倒换的装置, 该装置包括: 环网故障 判决单元、 延迟定时器以及保护倒换单元; A device for implementing protection switching in a ring Ethernet, the device comprising: a ring network fault determination unit, a delay timer, and a protection switching unit;
所述环网故障判决单元 , 用于在正常工作状态下检测到环网故障时 控制所述延迟定时器启动, 并在接收到所述延迟定时器超时的通知时再 次进行环网故障检测 , 在检测到环网故障时控制所述保护倒换单元进行 由正常工作状态向环故障状态切换的保护倒换操作; The ring network fault determining unit is configured to control the delay timer to start when a ring network fault is detected in a normal working state, and perform loop network fault detection again when receiving the notification of the delay timer timeout. When the ring network fault is detected, the protection switching unit is controlled to perform a protection switching operation from a normal working state to a ring fault state;
所述延迟定时器, 用于^ ^据所述环网故障判决单元的控制启动, 并 在超时时通知所述环网故障判决单元; The delay timer is configured to start according to the control of the ring network fault determining unit, and notify the ring network fault determining unit when timeout occurs;
所述保护倒换单元, 用于根据所述环网故障判决单元的控制, 进行 由正常工作状态向环故障状态切换的保护倒换操作。 The protection switching unit is configured to perform a protection switching operation of switching from a normal working state to a ring fault state according to the control of the ring network fault determining unit.
一种在环状以太网中实现保护倒换的装置, 该装置包括: 恢复等待 定时器、 环网故障判决单元以及保护倒换单元; A device for implementing protection switching in a ring-shaped Ethernet, the device comprising: a recovery waiting timer, a ring network failure determining unit, and a protection switching unit;
所述环网故障判决单元, 用于在环故障状态下检测到环网故障已消 除时控制所述恢复等待定时器启动, 且继续检测链路故障并在检测到链 路故障时控制所述恢复等待定时器重新启动; The ring network failure determining unit is configured to control the recovery waiting timer to start when detecting that the ring network fault has been eliminated in the ring fault state, and continue to detect the link fault and control the recovery when the link fault is detected. Waiting for the timer to restart;
所述恢复等待定时器,用于根据所述环网故障判决单元的控制启动 , 并在超时时通知所述保护倒换单元; The recovery waiting timer is configured to start according to the control of the ring network failure determining unit, and notify the protection switching unit when timeout occurs;
所述保护倒换单元, 用于根据所述恢复等待定时器的通知, 执行用 于恢复到正常工作状态的操作。 The protection switching unit is configured to perform an operation for restoring to a normal working state according to the notification of the recovery waiting timer.
可见, 采用本发明实施例所述的方法和装置, 当在环状以太网中检 测到环网故障时, 启动预先设置的延迟定时器, 并在定时期满且再次检
测到环网故障时, 进行由正常工作状态向环故障状态切换的保护倒换操 作。 这样, 通过设置延时定时器, 下层网络得到了用于进行保护倒换操 作的时间 , 使得上层网络不会因下层网络自身能够解决的故障而进行不 必要的保护倒换操作。 It can be seen that, by using the method and apparatus according to the embodiment of the present invention, when a ring network fault is detected in the ring Ethernet, a preset delay timer is started, and the timer is expired and checked again. When the ring network fault is detected, the protection switching operation is performed from the normal working state to the ring fault state. In this way, by setting the delay timer, the lower layer network obtains the time for performing the protection switching operation, so that the upper layer network does not perform unnecessary protection switching operations due to the fault that the lower layer network itself can solve.
当环网故障消除时, 启动预先设置的恢复等待定时器, 在恢复等待 定时器超时后, 执行用于恢复到正常工作状态的操作。 这样, 通过设置 恢复等待定时器, 保证了环网中的保护倒换操作不会因为链路不稳或链 路中的间歇性缺陷而频繁进行, 从而避免了不必要的保护倒换操作。 附图简要说明 When the ring network fault is eliminated, the preset recovery wait timer is started, and after the recovery wait timer expires, the operation for restoring to the normal working state is performed. In this way, by setting the recovery wait timer, it is ensured that the protection switching operation in the ring network is not frequently performed due to link instability or intermittent defects in the link, thereby avoiding unnecessary protection switching operations. BRIEF DESCRIPTION OF THE DRAWINGS
下面将通过参照附图详细描述本发明的示例性实施例 , 使本领域的 普通技术人员更清楚本发明的上述及其它特征和优点 , 附图中: The above and other features and advantages of the present invention will become more apparent to those skilled in the <
图 1为现有环状以太网结构示意图; 1 is a schematic diagram of a conventional ring Ethernet structure;
图 2为现有环状以太网保护倒换原理图; 2 is a schematic diagram of a conventional ring Ethernet protection switching;
图 3为本发明方法一较佳实施例的流程图; 3 is a flow chart of a preferred embodiment of the method of the present invention;
图 4为本发明方法另一较佳实施例的流程图; 4 is a flow chart of another preferred embodiment of the method of the present invention;
图 5为本发明装置一实施例的组成结构示意图; FIG. 5 is a schematic structural diagram of a device according to an embodiment of the present invention; FIG.
图 6为本发明装置另一实施例的组成结构示意图; Figure 6 is a schematic view showing the structure of another embodiment of the device of the present invention;
图 7为本发明装置一较佳实施例的组成结构示意图。 实施本发明的方式 Figure 7 is a schematic view showing the structure of a device according to a preferred embodiment of the present invention. Mode for carrying out the invention
为使本发明的目的、 技术方案及优点更加清楚明白, 以下参照附图 并举实施例, 对本发明作进一步地详细说明。 The present invention will be further described in detail below with reference to the accompanying drawings.
本发明的实施方式中, 当在环状以太网中检测到环网故障时, 启动 预先设置的延迟定时器, 在延迟定时器超时并且再次检测到环网故障
时, 进行由正常工作状态向环故障状态切换的保护倒换操作; 当环网故 障消除时,启动预先设置的恢复等待定时器;在恢复等待定时器超时后, 执行用于恢复到正常工作状态的操作。 In an embodiment of the present invention, when a ring network fault is detected in the ring Ethernet, a preset delay timer is started, the delay timer expires, and the ring network fault is detected again. When performing the protection switching operation from the normal working state to the ring failure state; when the ring network failure is eliminated, the preset recovery waiting timer is started; after the recovery waiting timer expires, the execution is resumed to the normal working state. operating.
图 3为本发明方法一较佳实施例的流程图。 如图 3所示, 包括以下 步骤: 3 is a flow chart of a preferred embodiment of the method of the present invention. As shown in Figure 3, the following steps are included:
步骤 310: 当处于正常工作状态时, 主节点应用现有技术检测环网 中的环网故障; 在检测到环网故障时进入步骤 320, 在没有检测到环网 故障时返回步骤 310。 Step 310: When in a normal working state, the master node applies the prior art to detect a ring network fault in the ring network; when detecting the ring network fault, the process proceeds to step 320, and when no ring network fault is detected, the process returns to step 310.
所述环网故障是链路故障和 /或节点故障; 具体而言, 主节点可以通 过链路状态告警机制或轮询机制检测环网故障。 在链路状态告警机制 中, 环网中的传输节点可以应用现有技术检测到环网故障并向主节点发 送告警报文; 收到来自传输节点的告警报文时, 主节点确定检测到了环 网故障。 The ring network fault is a link fault and/or a node fault; specifically, the master node can detect the ring network fault through a link state alarm mechanism or a polling mechanism. In the link state alarm mechanism, the transit node in the ring network can detect the ring network fault and send an alarm message to the master node by using the prior art; when receiving the alarm message from the transport node, the master node determines that the ring is detected. Network failure.
在轮询机制中 ,主节点持续性地由其主端口在环网内发送轮询报文, 当环网工作正常时, 主节点能够通过自身的副端口收到由自身主端口所 发出的轮询报文; 而当链路出现故障时, 主节点在设置的失败周期定时 器超时时仍无法收到所述轮询报文, 主节点在这种情况下则确定检测到 了环网故障。 In the polling mechanism, the master node continuously sends polling messages in its ring network by its primary port. When the ring network works normally, the master node can receive the rounds sent by its own master port through its own secondary port. When the link is faulty, the master node cannot receive the polling message when the set failure period timer expires. In this case, the master node determines that the ring network fault is detected.
步骤 320: 主节点启动预先设置的延迟定时器。 Step 320: The master node starts a preset delay timer.
步骤 330: 主节点判断延迟定时器是否超时, 如果超时, 则进入步 骤 340; 否则, 返回步骤 330。 Step 330: The master node determines whether the delay timer expires. If it times out, it proceeds to step 340; otherwise, returns to step 330.
步骤 340: 主节点检测环网中的环网故障, 并判断是否检测到环网 故障; 在检测到环网故障时进入步骤 350, 在没有检测到环网故障时返 回步骤 310。 Step 340: The master node detects a ring network fault in the ring network and determines whether a ring network fault is detected. If the ring network fault is detected, the process proceeds to step 350, and when no ring network fault is detected, the process returns to step 310.
步骤 350: 主节点进行由正常工作状态向环故障状态切换的保护倒
换操作。 Step 350: The primary node performs protection from the normal working state to the ring fault state. Change operation.
具体而言, 本步骤中的保护倒换操作包括: 主节点刷新自身的转发 表, 并针对用户数据报文打开自身的副端口以允许用户数据报文通过; 同时向环网中的传输节点发出刷新通告控制报文 , 以通知传输节点刷新 转发表; 再有, 主节点通常还会持续性地由其主端口在环网内发送轮询 报文。 Specifically, the protection switching operation in this step includes: the primary node refreshes its own forwarding table, and opens its own secondary port for the user data packet to allow the user data packet to pass; and simultaneously sends a refresh to the transmission node in the ring network. The control message is advertised to notify the transmitting node to refresh the forwarding table. Further, the master node usually also continuously sends polling messages in the ring network by its primary port.
在此之后, 主节点进入环故障状态。 下层保护倒换所需操作时长设置 , 以尽量保证得到下层网络结构的保护 倒换操作结果之后延迟定时器才超时。 这样, 如果下层网络结构的保护 倒换操作顺利完成, 并且当前没有再检测出环网故障, 就无须再进行当 前层网络结构的保护倒换操作了; 如果下层网络结构的保护倒换操作没 能顺利完成, 或者当前检测出了环网故障, 那就需要进行当前层网络结 构的保护倒换操作。 After this, the master node enters the ring failure state. The operation time setting required for the lower layer protection switching is to ensure the protection of the lower layer network structure as much as possible. The delay timer expires after the switching operation result. In this way, if the protection switching operation of the lower layer network structure is successfully completed, and the ring network failure is not detected again, there is no need to perform the protection switching operation of the current layer network structure; if the protection switching operation of the lower layer network structure fails to be successfully completed, Or the ring network fault is detected currently, and the protection switching operation of the current layer network structure is required.
可见, 通过设置延迟定时器, 下层网络结构得到了用于进行保护倒 换操作的时间 , 使得上层网络结构不会因下层网络结构自身能解决的故 障而进行不必要的保护倒换操作, 从而使目前环网中所进行的不必要的 保护倒换操作得到了有效避免。 It can be seen that, by setting the delay timer, the lower layer network structure obtains the time for performing the protection switching operation, so that the upper layer network structure does not perform unnecessary protection switching operations due to the fault that the lower layer network structure can solve, thereby making the current ring Unnecessary protection switching operations performed in the network are effectively avoided.
在后续通信过程中, 如果环网中的环网故障已消除, 那么环网中的 节点可执行图 4中所示的操作。 实际上, 图 4中的流程与图 3中的流程 并没有必然的联系, 在实际应用中, 可以单独执行图 3中的流程, 也可 以单独执行图 4中的流程。 In the subsequent communication process, if the ring network failure in the ring network has been eliminated, the nodes in the ring network can perform the operations shown in FIG. In fact, the flow in Figure 4 is not necessarily related to the flow in Figure 3. In practical applications, the flow in Figure 3 can be performed separately, or the flow in Figure 4 can be performed separately.
图 4为本发明方法另一较佳实施例的流程图, 如图 4所示, 包括以 下步骤: 4 is a flow chart of another preferred embodiment of the method of the present invention. As shown in FIG. 4, the following steps are included:
步骤 410: 主节点应用现有技术检测环网中的环网故障是否已消除,
在确定环网故障已消除时进入步骤 420, 在确定环网故障尚未消除时返 回步骤 410。 Step 410: The master node applies the existing technology to detect whether the ring network fault in the ring network has been eliminated. When it is determined that the ring network fault has been eliminated, the process proceeds to step 420, and when it is determined that the ring network fault has not been eliminated, the process returns to step 410.
具体而言, 主节点可以通过链路状态告警机制或轮询机制检测环网 故障, 并在检测到环网故障时确定环网故障尚未消除; 在没有检测到环 网故障时确定环网故障已消除。 Specifically, the master node may detect the ring network fault by using a link state alarm mechanism or a polling mechanism, and determine that the ring network fault has not been eliminated when the ring network fault is detected; and determine that the ring network fault has been detected when the ring network fault is not detected. eliminate.
步骤 420: 主节点启动预先设置的恢复等待定时器。 Step 420: The master node starts a preset recovery wait timer.
步骤 430: 主节点应用现有技术检测环网中的环网故障; 在没有检 测到环网故障时进入步骤 440, 在检测到环网故障时返回步骤 420。 Step 430: The primary node applies the prior art to detect the ring network fault in the ring network; when no ring network fault is detected, the process proceeds to step 440, and when the ring network fault is detected, the process returns to step 420.
步骤 440: 主节点判断恢复等待定时器是否超时, 如果超时, 则进 入步骤 450; 否则, 返回步骤 430。 Step 440: The master node determines whether the recovery wait timer expires. If it times out, it proceeds to step 450; otherwise, returns to step 430.
步骤 450: 主节点执行用于恢复到正常工作状态的操作。 Step 450: The master node performs an operation for restoring to a normal working state.
具体而言, 主节点执行的操作包括: 刷新自身的转发表并且重新针 对用户数据报文阻塞自身的副端口以禁止用户数据报文通过; 向环网中 的传输节点发出刷新通告控制报文,以通知传输节点刷新转发表;再有, 主节点通常还会持续性地由其主端口在环网内发送轮询报文。 Specifically, the operations performed by the master node include: refreshing the forwarding table of the user and re-blocking the secondary port of the user data packet to prohibit the user data packet from passing; sending a refresh notification control message to the transit node in the ring network, The forwarding node is notified to refresh the forwarding table; in addition, the primary node usually also continuously sends polling messages in the ring network by its primary port.
在此之后, 主节点进入正常工作状态。 After this, the master node enters the normal working state.
所述恢复等待定时器的定时时长可以根据实际应用场景设置, 如: 根据链路恢复稳定所需时长和 /或链路间歇性缺陷的可能持续时长设置 , 尽量保证链路恢复稳定或者链路中的间歇性缺陷已不存在时恢复等待 定时器才超时。 The timing of the recovery wait timer may be set according to the actual application scenario, such as: according to the length of time required for link recovery to be stable and/or the possible duration of the link intermittent defect, to ensure that the link is stable or in the link. When the intermittent defect has not existed, the recovery wait timer expires.
可见, 通过设置恢复等待定时器, 可保证环网中的保护倒换操作不 会因链路不稳定或者链路中的间歇性缺陷而频繁进行, 进而避免目前在 环网中进行的不必要的保护倒换操作。 It can be seen that by setting the recovery waiting timer, it can be ensured that the protection switching operation in the ring network is not frequently performed due to link instability or intermittent defects in the link, thereby avoiding unnecessary protection currently performed in the ring network. Switching operation.
基于上述方法, 本发明实施例中提供了两种在环状以太网中实现保 护倒换的装置:
图 5为本发明装置一实施例的组成结构示意图。 如图 5所示, 该装 置包括: 环网故障判决单元 501、 延迟定时器 502和保护倒换单元 503; 其中, 环网故障判决单元 501 , 用于在正常工作状态下检测到环网 故障时控制延迟定时器 502启动; 并在收到延迟定时器 502超时的通知 时再次进行环网故障检测, 在检测到环网故障时控制保护倒换单元 503 进行由正常工作状态向环故障状态切换的保护倒换操作; Based on the foregoing method, in the embodiment of the present invention, two devices for implementing protection switching in a ring Ethernet are provided: FIG. 5 is a schematic structural diagram of an apparatus according to an embodiment of the present invention. As shown in FIG. 5, the device includes: a ring network failure determining unit 501, a delay timer 502, and a protection switching unit 503. The ring network fault determining unit 501 is configured to detect a ring network fault when the normal working state is detected. The delay timer 502 is started; and when the notification of the delay timer 502 is received, the ring network fault detection is performed again, and when the ring network fault is detected, the protection protection switching unit 503 performs the protection switching from the normal working state to the ring fault state. operating;
延迟定时器 502, 用于 据环网故障判决单元 501的控制启动, 并 在超时时通知环网故障判决单元 501; The delay timer 502 is configured to be started according to the control of the ring fault determining unit 501, and notify the ring fault determining unit 501 when timeout occurs;
保护倒换单元 503 , 用于根据环网故障判决单元 501的控制, 进行 由正常工作状态向环故障状态切换的保护倒换操作。 The protection switching unit 503 is configured to perform a protection switching operation from the normal working state to the ring failure state according to the control of the ring network failure determining unit 501.
图 6为本发明装置另一实施例的组成结构示意图。 如图 6所示, 该 装置包括: 环网故障判决单元 601、 恢复等待定时器 602以及保护倒换 单元 603; Figure 6 is a schematic view showing the structure of another embodiment of the apparatus of the present invention. As shown in FIG. 6, the device includes: a ring network failure decision unit 601, a recovery wait timer 602, and a protection switching unit 603;
其中, 环网故障判决单元 601 , 用于在环故障状态下检测到环网故 障已消除时控制恢复等待定时器 602启动, 而且继续检测链路故障并在 检测到链路故障时控制恢复等待定时器 602重新启动; The ring network fault determining unit 601 is configured to start the control recovery wait timer 602 when the ring network fault is detected in the ring fault state, and continue to detect the link fault and control the recovery wait timing when the link fault is detected. 602 restarts;
恢复等待定时器 602,用于根据环网故障判决单元 601的控制启动, 并在超时时通知保护倒换单元 603; The recovery wait timer 602 is configured to start according to the control of the ring failure decision unit 601, and notify the protection switching unit 603 when the timeout occurs;
保护倒换单元 603 , 用于根据恢复等待定时器 602的通知, 执行用 于恢复到正常工作状态的操作。 The protection switching unit 603 is configured to perform an operation for restoring to a normal working state according to the notification of the recovery waiting timer 602.
在实际应用中, 图 5和图 6所示功能可以集中在同一装置中完成, 比如图 3和图 4的流程中所提到的主节点, 下面通过一较佳实施例进行 说明: In practical applications, the functions shown in Figures 5 and 6 can be centralized in the same device, such as the master nodes mentioned in the processes of Figures 3 and 4, which are described below by way of a preferred embodiment:
图 7为本发明装置一较佳实施例的组成结构示意图。 如图 7所示, 其中的环网故障判决单元 710、 定时单元 720和保护倒换单元 730两两
相连, 定时单元 720中设置有延迟定时器 721和恢复等待定时器 722。 具体而言, 环网故障判决单元 710分别与延迟定时器 721、 保护倒换单 元 730相连, 恢复等待定时器 722分别与环网故障判决单元 710、 保护 倒换单元 730相连。 Figure 7 is a schematic view showing the structure of a device according to a preferred embodiment of the present invention. As shown in FIG. 7, the ring network failure determining unit 710, the timing unit 720, and the protection switching unit 730 are respectively two or two. Connected, a delay timer 721 and a resume wait timer 722 are provided in the timing unit 720. Specifically, the ring network fault determining unit 710 is connected to the delay timer 721 and the protection switching unit 730, respectively, and the recovery waiting timer 722 is connected to the ring network fault determining unit 710 and the protection switching unit 730, respectively.
在实际应用中, 在正常工作状态下检测到环网故障时, 环网故障判 决单元 710以发送电平信号等方式启动延迟定时器 721;延迟定时器 721 在超时时以发送电平信号等方式通知环网故障判决单元 710; 环网故障 判决单元 710则再次进行环网故障检测, 并在检测到环网故障时以发送 信号等方式通知保护倒换单元 730, 由保护倒换单元 730进行由正常工 作状态向环故障状态切换的保护倒换操作。 In a practical application, when a ring network fault is detected in a normal working state, the ring network fault determining unit 710 starts the delay timer 721 by using a transmission level signal or the like; the delay timer 721 sends a level signal when the timeout expires. The ring fault determining unit 710 is configured to perform the ring network fault detection again, and notify the protection switching unit 730 by sending a signal or the like when the ring network fault is detected, and the protection switching unit 730 performs normal operation. The protection switching operation of the state switching to the ring fault state.
当然, 如果在延迟定时器 721超时时没有检测到环网故障, 环网故 障判决单元 710可以在后续继续检测环网故障, 并在检测到环网故障时 以发送电平信号等方式重新启动延迟定时器 721。 Of course, if the ring network failure is not detected when the delay timer 721 times out, the ring network failure decision unit 710 may continue to detect the ring network fault later, and restart the delay by sending a level signal or the like when detecting the ring network fault. Timer 721.
在环故障状态下检测到环网故障已消除时, 环网故障判决单元 710 以发送电平信号等方式启动恢复等待定时器 722, 并且在恢复等待定时 器 722未超时时进行环网故障检测, 如果检测到环网故障则重新启动恢 复等待定时器 722; 否则退回到在恢复等待定时器 722未超时时进行环 网故障检测的状态。 When it is detected that the ring network failure has been eliminated in the ring failure state, the ring network failure decision unit 710 starts the recovery wait timer 722 in a manner of transmitting a level signal or the like, and performs ring network failure detection when the recovery wait timer 722 has not timed out. If the ring network failure is detected, the recovery wait timer 722 is restarted; otherwise, it returns to the state where the ring network failure detection is performed when the recovery wait timer 722 has not timed out.
恢复等待定时器 722在超时时以发送信号等方式通知保护倒换单元 730, 由保护倒换单元 730执行用于恢复到正常工作状态的操作。 The recovery wait timer 722 notifies the protection switching unit 730 by a transmission signal or the like at the time of timeout, and the protection switching unit 730 performs an operation for returning to the normal operation state.
由以上所述可以看出, 本发明实施例所提供的方法和装置, 均可有 效避免不必要的保护倒换操作, 进而可节省网络资源并可提高网络性 能。 It can be seen from the above that the method and apparatus provided by the embodiments of the present invention can effectively avoid unnecessary protection switching operations, thereby saving network resources and improving network performance.
以上所述仅为本发明的较佳实施例而已, 并不用以限制本发明, 凡 在本发明的精神和原则之内, 所做的任何修改、 等同替换、 改进等, 均
应包含在本发明的保护范围之内。
The above are only the preferred embodiments of the present invention, and are not intended to limit the present invention, and any modifications, equivalents, improvements, etc., made within the spirit and principles of the present invention are It should be included in the scope of protection of the present invention.
Claims
1、 一种在环状以太网中实现保护倒换的方法, 其特征在于, 该方 法包括: A method for implementing protection switching in a ring Ethernet, characterized in that the method comprises:
当在环状以太网中检测到环网故障时, 启动预先设置的延迟定时 器; 在所述延迟定时器超时并且再次检测到环网故障时, 进行由正常工 作状态向环故障状态切换的保护倒换操作。 When a ring network fault is detected in the ring Ethernet, a preset delay timer is started; when the delay timer expires and the ring network fault is detected again, protection from the normal working state to the ring fault state is performed. Switching operation.
2、根据权利要求 1所述的方法, 其特征在于, 所述预先设置的延迟 定时器的定时时长, 是根据当前层网络结构对保护倒换速度的要求和下 层网络结构进行保护倒换需要的操作时长设置的。 The method according to claim 1, wherein the timing duration of the preset delay timer is an operation duration required for protection switching according to a current layer network structure requirement for protection switching speed and a lower layer network structure. Set.
3、 根据权利要求 1所述的方法, 其特征在于, 该方法进一步包括: 在所述延迟定时器超时但没有检测到环网故障时, 进一步检测环网 故障 , 并在检测到环网故障时重新启动所述延迟定时器。 3. The method according to claim 1, wherein the method further comprises: further detecting a ring network fault when the delay timer expires but not detecting a ring network fault, and detecting a ring network fault Restart the delay timer.
4、根据权利要求 1所述的方法, 其特征在于, 所述保护倒换操作包 括: The method according to claim 1, wherein the protection switching operation comprises:
所述环状以太网中的主节点刷新自身的转发表并针对用户数据报文 打开自身的副端口, 并向环网中的传输节点发出刷新通告控制报文。 The primary node in the ring Ethernet refreshes its own forwarding table and opens its own secondary port for the user data packet, and sends a refresh notification control message to the transit node in the ring network.
5、 根据权利要求 1所述的方法, 其特征在于, 该方法进一步包括: 当环网故障消除时, 启动预先设置的恢复等待定时器; 在所述恢复 等待定时器超时后, 执行用于恢复到正常工作状态的操作。 The method according to claim 1, wherein the method further comprises: starting a recovery wait timer set in advance when the ring network fault is eliminated; performing recovery for recovery after the recovery wait timer expires Operation to normal working condition.
6、 根据权利要求 5所述的方法, 其特征在于, 该方法进一步包括: 在所述恢复等待定时器启动后且超时前检测到环网故障时, 重新启 动所述恢复等待定时器。 6. The method according to claim 5, wherein the method further comprises: restarting the recovery wait timer after detecting the ring network failure after the recovery wait timer is started.
7、根据权利要求 5所述的方法, 其特征在于, 所述预先设置的恢复 等待定时器的定时时长, 是根据所述环状以太网中的链路恢复稳定所需
时长和 /或链路间歇性缺陷的持续时长设置的。 The method according to claim 5, wherein the timing of the preset recovery wait timer is required to restore stability according to the link in the ring Ethernet network. Duration and/or duration of intermittent defects in the link are set.
8、根据权利要求 5所述的方法, 其特征在于, 所述执行用于恢复到 正常工作状态的操作包括: The method according to claim 5, wherein the performing the operation for restoring to the normal working state comprises:
所述主节点刷新自身的转发表并重新针对用户数据报文阻塞自身的 副端口, 并向环网中的传输节点发出刷新通告控制报文。 The master node refreshes its own forwarding table and re-blocks its own secondary port for user data packets, and sends a refresh notification control message to the transit node in the ring network.
9、 根据权利要求 1 ~ 8中任一项所述的方法, 其特征在于, 所述检 测环网故障的方法包括: The method according to any one of claims 1 to 8, wherein the method for detecting a ring network fault comprises:
所述主节点通过链路状态告警机制或轮询机制检测环网故障。 The master node detects a ring network fault through a link state alarm mechanism or a polling mechanism.
10、 根据权利要求 9所述的方法, 其特征在于, 所述通过链路状态 告警机制检测环网故障的方法包括: The method according to claim 9, wherein the method for detecting a ring network fault by using a link state alarm mechanism comprises:
所述主节点在接收到来自所述传输节点的告警报文时, 确定检测到 了环网故障。 The master node determines that a ring network fault is detected when receiving an alarm message from the transport node.
11、 根据权利要求 9所述的方法, 其特征在于, 所述通过轮询机制 检测环网故障的方法包括: The method according to claim 9, wherein the method for detecting a ring network fault by using a polling mechanism comprises:
在预先设置的失败周期定时器超时的情况下, 若所述主节点仍未接 收到自身曾发送的轮询报文, 则所述主节点确定检测到了环网故障。 In the case that the preset failure period timer expires, if the master node still does not receive the polling message that it has sent, the master node determines that the ring network fault is detected.
12、 一种在环状以太网中实现保护倒换的方法, 其特征在于, 该方 法包括: 12. A method for implementing protection switching in a ring Ethernet, characterized in that the method comprises:
当环网故障消除时, 启动预先设置的恢复等待定时器; 在所述恢复 等待定时器超时后, 执行用于恢复到正常工作状态的操作。 When the ring network fault is eliminated, a preset recovery wait timer is started; after the recovery wait timer expires, an operation for restoring to a normal working state is performed.
13、根据权利要求 12所述的方法,其特征在于,该方法进一步包括: 在所述恢复等待定时器启动后且超时前检测到环网故障时, 重新启 动所述恢复等待定时器。 The method according to claim 12, wherein the method further comprises: restarting the recovery wait timer after detecting the ring network failure after the recovery wait timer is started.
14、根据权利要求 12所述的方法, 其特征在于, 所述预先设置的恢 复等待定时器的定时时长, 是根据所述环状以太网中的链路恢复稳定所
需时长和 /或链路间歇性缺陷的持续时长设置的。 The method according to claim 12, wherein the timing of the preset recovery wait timer is based on the link recovery stability in the ring Ethernet network. The length of time and/or the duration of the intermittent defect of the link is set.
15、根据权利要求 12所述的方法, 其特征在于, 所述执行用于恢复 到正常工作状态的操作包括: The method according to claim 12, wherein the performing the operation for restoring to a normal working state comprises:
所述主节点刷新自身的转发表并重新针对用户数据报文阻塞自身的 副端口, 并向环网中的传输节点发出刷新通告控制报文。 The master node refreshes its own forwarding table and re-blocks its own secondary port for user data packets, and sends a refresh notification control message to the transit node in the ring network.
16、 一种在环状以太网中实现保护倒换的装置, 其特征在于, 该装 置包括: 环网故障判决单元、 延迟定时器以及保护倒换单元; 其中, 所述环网故障判决单元 , 用于在正常工作状态下检测到环网故障时 控制所述延迟定时器启动, 并在接收到所述延迟定时器超时的通知时再 次进行环网故障检测 , 在检测到环网故障时控制所述保护倒换单元进行 由正常工作状态向环故障状态切换的保护倒换操作; A device for implementing protection switching in a ring-shaped Ethernet, the device comprising: a ring network failure determining unit, a delay timer, and a protection switching unit; wherein, the ring network failure determining unit is configured to: Controlling the delay timer to start when a ring network fault is detected in a normal working state, and performing loop network fault detection again when receiving the notification of the delay timer timeout, and controlling the protection when a ring network fault is detected The switching unit performs a protection switching operation of switching from a normal working state to a ring fault state;
所述延迟定时器, 用于^ ^据所述环网故障判决单元的控制启动, 并 在超时时通知所述环网故障判决单元; The delay timer is configured to start according to the control of the ring network fault determining unit, and notify the ring network fault determining unit when timeout occurs;
所述保护倒换单元, 用于根据所述环网故障判决单元的控制, 进行 由正常工作状态向环故障状态切换的保护倒换操作。 The protection switching unit is configured to perform a protection switching operation of switching from a normal working state to a ring fault state according to the control of the ring network fault determining unit.
17、根据权利要求 16所述的装置, 其特征在于, 该装置中进一步包 括恢复等待定时器, 所述恢复等待定时器分别与所述环网故障判断单元 和所述保护倒换单元相连; The device according to claim 16, wherein the device further includes a recovery waiting timer, wherein the recovery waiting timer is respectively connected to the ring network failure determining unit and the protection switching unit;
所述环网故障判决单元, 进一步用于在环故障状态下检测到环网故 障已消除时控制所述恢复等待定时器启动 , 且继续检测链路故障并在检 测到链路故障时控制所述恢复等待定时器重新启动; The ring network failure determining unit is further configured to control the recovery waiting timer to start when detecting that the ring network fault has been eliminated in the ring fault state, and continue to detect the link fault and control the link when the link fault is detected. Resume waiting for the timer to restart;
所述恢复等待定时器,用于根据所述环网故障判决单元的控制启动 , 并在超时时通知所述保护倒换单元; The recovery waiting timer is configured to start according to the control of the ring network failure determining unit, and notify the protection switching unit when timeout occurs;
所述保护倒换单元, 进一步用于根据所述恢复等待定时器的通知, 执行用于恢复到正常工作状态的操作。
The protection switching unit is further configured to perform an operation for restoring to a normal working state according to the notification of the recovery waiting timer.
18、 一种在环状以太网中实现保护倒换的装置, 其特征在于, 该装 置包括: 恢复等待定时器、 环网故障判决单元以及保护倒换单元; 18. A device for implementing protection switching in a ring-shaped Ethernet, the device comprising: a recovery waiting timer, a ring network failure determining unit, and a protection switching unit;
所述环网故障判决单元, 用于在环故障状态下检测到环网故障已消 除时控制所述恢复等待定时器启动, 且继续检测链路故障并在检测到链 路故障时控制所述恢复等待定时器重新启动; The ring network failure determining unit is configured to control the recovery waiting timer to start when detecting that the ring network fault has been eliminated in the ring fault state, and continue to detect the link fault and control the recovery when the link fault is detected. Waiting for the timer to restart;
所述恢复等待定时器,用于根据所述环网故障判决单元的控制启动 , 并在超时时通知所述保护倒换单元; The recovery waiting timer is configured to start according to the control of the ring network failure determining unit, and notify the protection switching unit when timeout occurs;
所述保护倒换单元, 用于根据所述恢复等待定时器的通知, 执行用 于恢复到正常工作状态的操作。
The protection switching unit is configured to perform an operation for restoring to a normal working state according to the notification of the recovery waiting timer.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2006101268605A CN101141364A (en) | 2006-09-07 | 2006-09-07 | Method and device for implementing protection rearrangement in ring ethernet |
CN200610126860.5 | 2006-09-07 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2008031347A1 true WO2008031347A1 (en) | 2008-03-20 |
Family
ID=39183390
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2007/070512 WO2008031347A1 (en) | 2006-09-07 | 2007-08-17 | Method and apparatus for realizing protection switching in the ring ethernet |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN101141364A (en) |
WO (1) | WO2008031347A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2477359B1 (en) * | 2009-09-07 | 2019-09-04 | ZTE Corporation | Ethernet switch ring (esr) protection method and transit node |
CN113645312A (en) * | 2021-08-25 | 2021-11-12 | 烽火通信科技股份有限公司 | Method and device for protecting sub-ring network link based on ERPS protocol |
CN115189986A (en) * | 2022-05-31 | 2022-10-14 | 武汉迈威通信股份有限公司 | Ring network redundancy backup method and system |
Families Citing this family (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101662329B (en) * | 2008-08-29 | 2013-08-28 | 华为技术有限公司 | Switching method, network nodes and network system |
CN101877646B (en) * | 2009-04-28 | 2013-03-20 | 华为技术有限公司 | Protection switching method and node equipment |
CN101640941B (en) | 2009-08-06 | 2012-03-21 | 华为技术有限公司 | Connection resource release processing method and device |
CN101998186A (en) * | 2009-08-13 | 2011-03-30 | 中兴通讯股份有限公司 | Network protection method and device |
CN102035710B (en) * | 2009-09-24 | 2014-04-09 | 中兴通讯股份有限公司 | Method and system for updating blocked port information |
CN101997723A (en) * | 2010-11-18 | 2011-03-30 | 中兴通讯股份有限公司 | Service switching method and device |
CN102281168A (en) * | 2011-05-10 | 2011-12-14 | 中兴通讯股份有限公司 | Link fault processing method and device based on OAM (Operation Administration and Maintenance) alarm detection |
CN102355408A (en) * | 2011-08-16 | 2012-02-15 | 杭州华三通信技术有限公司 | Method and device for controlling linkage state change of communication device |
CN103684648B (en) * | 2012-09-21 | 2018-02-16 | 中兴通讯股份有限公司 | A kind of ring network node clock effectiveness judgment method and device |
CN104426700B (en) * | 2013-09-06 | 2018-05-18 | 华为技术有限公司 | The method of network element and looped network protection |
EP3139527B1 (en) * | 2014-05-08 | 2018-08-15 | Huawei Technologies Co., Ltd. | Protection switching method, node and control device |
CN106357832B (en) * | 2016-08-24 | 2019-10-18 | 浙江宇视科技有限公司 | Looped network address list item update mechanism method and device |
CN107800601B (en) * | 2016-09-06 | 2021-10-29 | 中兴通讯股份有限公司 | Ring network switching protection method, device and system |
CN108965060B (en) * | 2018-07-27 | 2021-01-26 | 新华三技术有限公司合肥分公司 | Protection switching method and device |
CN111918316B (en) * | 2019-05-10 | 2022-05-03 | 大唐移动通信设备有限公司 | Base station maintenance method and base station maintenance device |
CN115550106A (en) * | 2021-06-30 | 2022-12-30 | 中兴通讯股份有限公司 | Control method of ring network node, network device and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6018576A (en) * | 1996-12-31 | 2000-01-25 | Mci Communications Corporation | Method and apparatus for automated node-based normalization after network restoration |
JP2000307605A (en) * | 1999-04-26 | 2000-11-02 | Nec Corp | System and method for network management |
CN1499780A (en) * | 2002-10-31 | 2004-05-26 | ���ֿ˰뵼��V.N.����˾ | Ethernet backing plate structure having high practicability |
CN1527547A (en) * | 2002-12-20 | 2004-09-08 | ���ֿ˰뵼��V.N.����˾ | Arrangement for detecting chain circuit fault on Ethernet back plate with high feasibility |
CN1791049A (en) * | 2005-12-16 | 2006-06-21 | 杭州华为三康技术有限公司 | Looped network and its protecting method |
-
2006
- 2006-09-07 CN CNA2006101268605A patent/CN101141364A/en active Pending
-
2007
- 2007-08-17 WO PCT/CN2007/070512 patent/WO2008031347A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6018576A (en) * | 1996-12-31 | 2000-01-25 | Mci Communications Corporation | Method and apparatus for automated node-based normalization after network restoration |
JP2000307605A (en) * | 1999-04-26 | 2000-11-02 | Nec Corp | System and method for network management |
CN1499780A (en) * | 2002-10-31 | 2004-05-26 | ���ֿ˰뵼��V.N.����˾ | Ethernet backing plate structure having high practicability |
CN1527547A (en) * | 2002-12-20 | 2004-09-08 | ���ֿ˰뵼��V.N.����˾ | Arrangement for detecting chain circuit fault on Ethernet back plate with high feasibility |
CN1791049A (en) * | 2005-12-16 | 2006-06-21 | 杭州华为三康技术有限公司 | Looped network and its protecting method |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2477359B1 (en) * | 2009-09-07 | 2019-09-04 | ZTE Corporation | Ethernet switch ring (esr) protection method and transit node |
CN113645312A (en) * | 2021-08-25 | 2021-11-12 | 烽火通信科技股份有限公司 | Method and device for protecting sub-ring network link based on ERPS protocol |
CN113645312B (en) * | 2021-08-25 | 2023-07-18 | 烽火通信科技股份有限公司 | Sub-ring network link protection method and device based on ERPS protocol |
CN115189986A (en) * | 2022-05-31 | 2022-10-14 | 武汉迈威通信股份有限公司 | Ring network redundancy backup method and system |
CN115189986B (en) * | 2022-05-31 | 2024-02-27 | 武汉迈威通信股份有限公司 | Ring network redundancy backup method and system |
Also Published As
Publication number | Publication date |
---|---|
CN101141364A (en) | 2008-03-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2008031347A1 (en) | Method and apparatus for realizing protection switching in the ring ethernet | |
CN100409634C (en) | Fast ring network protecting method and system | |
WO2008089614A1 (en) | A method, system and device for ring link protection | |
WO2009023996A1 (en) | Method for implementing network interconnect via link aggregation | |
WO2008055436A1 (en) | Method of controlling the status of graceful restart and router | |
EP2477359B1 (en) | Ethernet switch ring (esr) protection method and transit node | |
WO2007140689A1 (en) | A failure processing method and a system and a device thereof | |
WO2009082923A1 (en) | Link fault processing method and data forwarding device | |
WO2009030170A1 (en) | System for link fault handling, method and device for link fault detecting, handling | |
CN101984600B (en) | Graceful restart method, equipment and system of routing protocol | |
CN100579076C (en) | Neighbourhood establishing method and router | |
WO2013017011A1 (en) | Method and apparatus for controlling switching of active/standby pseudo wires | |
WO2011015068A1 (en) | Failure detection method and system | |
CN101626314A (en) | Backup method and backup system of central node of star topology network | |
CN103685166A (en) | Method and device for switching between main server and standby server for session initiation protocol terminal | |
CN101039172B (en) | Ethernet ring network system and its protection method and standby host node | |
WO2020238848A1 (en) | Method and device for managing port configuration mode | |
CN111314098A (en) | Method and device for realizing VIP address drift in HA system | |
WO2011063725A1 (en) | Method and system for active-standby synchronization | |
CN102238067B (en) | Switching method and device on Rapid Ring Protection Protocol (RRPP) ring | |
WO2010139173A1 (en) | Address refresh method and system | |
JP4620414B2 (en) | Wireless communication terminal device and program | |
WO2012068866A1 (en) | Method and system for refreshing media access control in ethernet ring network | |
WO2010099685A1 (en) | Method for controlling the times of refreshing the ethernet forwarding database | |
CN101938395B (en) | Method and system for refreshing single ring address of Ethernet ring network |
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: 07800988 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: 07800988 Country of ref document: EP Kind code of ref document: A1 |