WO2020052687A1 - Network element anti-looping method and apparatus, device, and readable storage medium - Google Patents

Network element anti-looping method and apparatus, device, and readable storage medium Download PDF

Info

Publication number
WO2020052687A1
WO2020052687A1 PCT/CN2019/105948 CN2019105948W WO2020052687A1 WO 2020052687 A1 WO2020052687 A1 WO 2020052687A1 CN 2019105948 W CN2019105948 W CN 2019105948W WO 2020052687 A1 WO2020052687 A1 WO 2020052687A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
port
master
state
network element
Prior art date
Application number
PCT/CN2019/105948
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 WO2020052687A1 publication Critical patent/WO2020052687A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/18Loop-free operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • H04L12/437Ring fault isolation or reconfiguration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0073Provisions for forwarding or routing, e.g. lookup tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects
    • H04Q2011/0081Fault tolerance; Redundancy; Recovery; Reconfigurability

Definitions

  • This article relates to the field of communication technology.
  • a single OTN network element includes a master subrack and multiple transmission slave subracks.
  • Various data packets of the network element are transmitted on the master subrack and each slave subrack to complete the monitoring and management functions of the network element.
  • the cascading method may be ring networking, chain networking, or star networking. Therefore, loops need to be prevented to avoid broadcast storms caused by cyclic transmission of unknown unicast and broadcast on the loop.
  • the method for preventing loop formation of a network element includes: setting a master node on a network element of an optical transmission network, and setting a master port on the master node; The port sends a loop detection message according to a preset period; when the slave port corresponding to the master port receives the loop detection message, the state of the slave port is set to a blocked state; when the When the slave port does not receive the loop detection message, the state of the slave port is set according to whether the network transmitting the loop detection message is interrupted.
  • the network element anti-looping device includes: a setting module, configured to set a master node on an optical transport network element, and set the master node on the master node A master port; a sending module for sending a loop detection message to the master port at a preset period; an anti-looping module for receiving the loop detection message when a slave port corresponding to the master port receives the loop detection message Set the state of the slave port to a blocking state during the text; and set when the slave port does not receive the loop detection message, according to whether the network transmitting the loop detection message is interrupted The state of the slave port.
  • the electronic device includes a memory and a processor.
  • the memory stores an application program executable by the processor.
  • the application program is stored in the processor.
  • the processor executes the network element loop prevention method as described above.
  • a readable storage medium provided in still another aspect of the present disclosure stores a computer program thereon.
  • the processor executes the network element loop prevention method as described above.
  • FIG. 1 is a flowchart of a network element loop prevention method according to an embodiment of the present disclosure
  • FIG. 2 is a cascade diagram of a Layer 2 switching board of a master-slave subrack of an OTN device according to an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram of a broken node of a slave node of an OTN device according to an embodiment of the present disclosure
  • step S40 of a network element loop prevention method is a flowchart of step S40 of a network element loop prevention method according to an embodiment of the present disclosure
  • FIG. 5 is a schematic diagram of a transmission node initiating a link_down message according to an embodiment of the present disclosure
  • FIG. 6 is a schematic diagram of a slave port state transition according to an embodiment of the present disclosure.
  • step S40 of a network element loop prevention method is a flowchart of step S40 of a network element loop prevention method according to another embodiment of the present disclosure.
  • FIG. 8 is a schematic diagram of a node initiating a link_up message according to an embodiment of the present disclosure
  • FIG. 9 is a schematic diagram of a slave port state transition according to an embodiment of the present disclosure.
  • FIG. 10 is a cascade diagram of a Layer 2 switching board of a master-slave subrack of an OTN device according to another embodiment of the present disclosure
  • FIG. 11 is an exemplary structural block diagram of a network element loop prevention device according to an embodiment of the present disclosure.
  • FIG. 1 is a flowchart of a network element loop prevention method according to an embodiment of the present disclosure.
  • the network element loop prevention method includes steps S10 to S40.
  • a master node is set on an optical transport network (OTN) network element, and a master port is set on the master node.
  • OTN optical transport network
  • step S20 the master port sends a loop detection message according to a preset period.
  • step S30 when the slave port corresponding to the master port receives the loop detection message, the state of the slave port is set to a blocked state.
  • step S40 when the slave port does not receive the loop detection message, the state of the slave port is set according to whether the network transmitting the loop detection message is interrupted.
  • the state of the slave port when it is determined that the network transmitting the loop detection message is interrupted, the state of the slave port is set to an unblocked state; when it is determined that the network transmitting the loop detection message is not interrupted, The state of the slave port is maintained as a blocked state.
  • the state of the slave port is set to a blocked state.
  • the master node when the master node receives a message for indicating the network interruption, it determines that the network interruption. When the master node does not receive a message indicating that the network is interrupted, it is determined that the network is not interrupted.
  • the master node after determining that the network is interrupted, when the master node receives a message for instructing the network to recover from the interruption, it is determined that the network recovers from the interrupted state to normal.
  • the nodes on both sides of the failure point of the network interruption send the message for indicating the network interruption to the master node, and when the network slave When the interrupted state returns to normal, the nodes on both sides of the failure point of the network interruption send the message for instructing the network to recover from the interrupted state to the master node.
  • the state of the port will be set to the blocked state for ring break processing, avoiding broadcast storms caused by loops, and has the characteristics of fast convergence, high stability, and strong maintainability.
  • the OTN network element is composed of one or more sub shelves. Each sub shelf is distinguished by a sub shelf ID value.
  • the ID value of the master sub shelf is 1.
  • the ID value of the slave sub shelf is 2-127.
  • the primary Layer 2 switching board on the master node is the master node, and the backup Layer 2 switching board on the master subrack is the slave node. If there is only one Layer 2 switching board in the main subrack, there are no slave nodes. All Layer 2 switching boards on the slave shelf are collectively referred to as transit nodes.
  • MSTP Multi-Service Transfer Platform
  • This protocol is more stable in the use of complex Layer 2 networking scenarios, and various types of networking prevent loops.
  • Ability is strong, but there are some technical disadvantages, such as the slow convergence speed of the protocol, the calculation of the protocol algorithm is complicated, the troubleshooting is difficult, and the after-sales maintenance is difficult.
  • the current WDM equipment networking is relatively single. For a network element, there is usually only one or more master-slave sub-cascades. In this case, the maintenance cost of using the MSTP protocol is undoubtedly enlarged.
  • the embodiments of the present disclosure are mainly directed to a single ring scenario in an OTN device.
  • the master-slave sub-racks include two-layer switching boards, and the master-slave sub-racks are cascaded through the two-layer boards. In this case, it is necessary to avoid the problem of broadcast storm caused by loops when these two layer boards are cascaded.
  • the network element includes one master subrack and several slave subracks.
  • FIG. 2 is a cascade diagram of a Layer 2 switching board of a master-slave subrack of an OTN device according to an embodiment of the present disclosure.
  • the active Layer 2 switching board (board 1 shown in FIG. 2) is used as the master node, and the standby Layer 2 switching is performed.
  • a single board (single board 8 shown in FIG. 2) is used as a slave node; a port (for example, a panel network port or a panel optical port) on the master node is set as a master port, and a port on the slave node is set (For example, the panel network port or the panel optical port) is set as the slave port.
  • FIG. 2 shows that the main subrack includes the active and standby Layer 2 switching boards
  • the main subrack may include only a single Layer 2 switching board, that is, it does not include the standby Layer 2 switching board.
  • set a single Layer 2 switching board on the master subrack as the master node, set one port on the master node as the master port, and set another port on the master node that is different from the master port as the slave port.
  • a small-numbered panel network port or panel optical port on the master node can be set as the master port
  • a large-numbered panel network port or panel optical port on the master node can be set as the slave port.
  • the method further includes: constructing a first virtual local area network and a second virtual local area network on all subracks, where the first virtual local area network is used to transmit and exchange service data. Processing; the second virtual local area network is used to monitor and manage data transmission and exchange processing.
  • the first virtual local area network enables a ring network blocking mechanism; the second virtual local area network does not enable a ring network blocking mechanism.
  • the second virtual local area network is a network that transmits the loop detection message.
  • the slave port corresponding to the master port when the slave port corresponding to the master port receives the loop detection packet, it indicates that a loop exists in the current networking environment. You need to perform a loop-break process. For example, as shown in FIG. 3, the state of the slave port is set to a block state. If the loop detection packet is not sent from the master port after being sent out from the master port of the master node, it means that there is no loop in the current networking environment, and the slave port state needs to be adjusted to the forword state. .
  • the process includes steps S41 and S42.
  • step S41 when a failure point occurs in the second virtual local area network, the transmission nodes on both sides of the failure point initiate a link_down message through the second virtual local area network.
  • the link_down message is a message for indicating a network interruption.
  • FIG. 5 is a schematic diagram of a transmission node initiating a link_down message according to an embodiment of the present disclosure. As shown in FIG. 5, the transmission link is faulty. The transmission nodes on both sides of the failure point are nodes 4 and 5, and the two nodes actively send link_down packets to the opposite directions. In step S42, when the master node receives the link_down message, the state of the slave port is set to the forword state.
  • FIG. 6 is a schematic diagram of a state transition of a slave port according to an embodiment of the present disclosure. As shown in FIG. 6, when the master node receives the lind_down message, the state of the slave port of the slave node changes, that is, the slave port of the slave node The state is changed from the block state shown in FIG. 5 to the forword state.
  • the transmission link of the network element is a chain network.
  • the chain network is interrupted.
  • the state of the slave port Changing from a blocked state to an unblocked state allows the chain network to unblock in the other direction.
  • the process includes steps S43 and S44 subsequent to step S42 in addition to steps S41 and S42 shown in FIG. 4.
  • step S43 when the failure point returns to normal, the transmission nodes on both sides of the failure point initiate a link_up message through the second virtual local area network.
  • the link_up message is a message for instructing the network to recover from the interrupted state.
  • FIG. 8 is a schematic diagram of a transmission node initiating a link_up message according to an embodiment of the present disclosure. As shown in FIG. 8, when the fault point recovers, nodes 4 and 5 actively send link_up messages to opposite directions, respectively.
  • step S44 when the master node receives the link_up message, the state of the slave port is set to the block state.
  • FIG. 9 is a schematic diagram of a state transition of a slave port according to an embodiment of the present disclosure. As shown in FIG. 9, when the master node receives the link_up packet, the state of the slave port transitions, that is, the state of the slave port is as shown in FIG. The unblocked state shown in 8 is changed to the block state.
  • the transmission link when the point of failure returns to normal, if the state of the slave port remains unblocked, the transmission link will change from a chain network to a ring network, making it easy to cause a broadcast storm in the ring network. To avoid this risk, the state of the slave port is changed to the block state, so that the transmission link can be maintained as a chain network.
  • the preset period in step S20 of the network element loop prevention method according to the embodiment of the present disclosure is any time period within 10 ms to 50 ms, for example, 30 ms.
  • a technology of determining whether a loop exists in a network by using a looped loop detection packet detection mechanism, and by using a link_down packet to determine whether a fault occurs in the network realizes dual ring network detection.
  • both the loop detection message and the link_down message can be sent and transmitted at the millisecond level. This enables fast link switching and ensures that service data is switched at the millisecond level.
  • FIG. 10 is a cascade diagram of a Layer 2 switching board of a master-slave subrack according to another embodiment of the present disclosure.
  • the OTN network element consists of a master subrack and three slave subracks.
  • the master subrack uses a single Layer 2 switching board, and the slave subrack uses the active and standby Layer 2 switching boards.
  • Each layer 2 The board has two panel cascade optical ports and one active-standby communication port (the active-standby communication interface is not shown in Figure 10).
  • the layer 2 switching board on the main subrack on the OTN network element is designated as the master node. Because there is no standby Layer 2 switching board in this master subrack, no slave node is set, and optical port 1 on the master node is set as the master port, and optical port 2 is set as the slave port.
  • a first virtual local area network and a second virtual local area network are constructed on all sub shelves.
  • the first virtual local area network is used to transmit and exchange business data.
  • the local area network enables a ring network blocking mechanism.
  • the second virtual local area network is used for data
  • the transmission and exchange processing are monitored and managed.
  • the LAN does not use the ring network blocking mechanism.
  • the master port on the master node sends a loop detection message to the outside, and the message interval is sent every 30ms, and the message is transmitted in the second virtual local area network.
  • failure state 2 in the middle of FIG. 10, if the transmission node has an abnormal link disconnection in the link at time T0, the transmission link is interrupted.
  • the transmission nodes on both sides of the failure point detect a change in the state of the communication link port, they actively initiate a link_down message in the second virtual local area network.
  • the master node receives a link_down message from any node, it will change the state of the slave port from the block Switch to the forword state to form a new message sending path.
  • FIG. 11 is an exemplary structural block diagram of a network element loop prevention device according to an embodiment of the present disclosure.
  • the network element loop prevention device includes a setting module 10, a sending module 20, and a loop prevention module 30.
  • a setting module 10 is configured to set a master node on an OTN network element, and set a master port on the master node.
  • the sending module 20 is configured to cause the master port to send a loop detection message according to a preset period.
  • the anti-loop formation module 30 is configured to set the state of the slave port to the block state when the slave port corresponding to the master port receives the loop detection packet; When the loop detection message is not received, the state of the slave port is set according to whether the network transmitting the loop detection message is interrupted.
  • the state of the slave port when the loop prevention module 30 determines that the network transmitting the loop detection packet is interrupted, the state of the slave port is set to an unblocked state; when the loop prevention module 30 determines to transmit the loop When the network of the road detection message is not interrupted, the state of the slave port is maintained in a bit-blocking state.
  • the state of the slave port is set to a blocked state.
  • the loop prevention module 30 determines the network interruption.
  • the loop prevention module 30 determines that the network is not interrupted.
  • the master node after determining that the network is interrupted, when the master node receives a message for instructing the network to recover from the interruption, it determines that the network recovers from the interrupted state to normal.
  • the nodes on both sides of the failure point of the network interruption send the message for indicating the network interruption to the master node, and when the network slave When the interrupted state returns to normal, the nodes on both sides of the failure point of the network interruption send the message for instructing the network to recover from the interrupted state to the master node.
  • the broadcast storm has the characteristics of fast convergence, high stability, and strong maintainability.
  • the OTN network element is composed of one or more sub shelves. Each sub shelf is distinguished by a sub shelf ID value.
  • the ID value of the master sub shelf is 1.
  • the ID value of the slave sub shelf is 2-127.
  • the primary Layer 2 switching board on the master is the primary node, and the secondary Layer 2 switching board on the primary subrack is the slave node. If the primary subrack has only a single Layer 2 switching board, there is no secondary node; all Layer 2 on the secondary subrack. Switching boards are collectively called transmission nodes.
  • an electronic device including a memory and a processor.
  • the memory stores an application program executable by the processor, and when the application program is executed by the processor, A method for preventing loop prevention of a network element according to an embodiment of the present disclosure is implemented, for example, with reference to the method for loop prevention of a network element described with reference to FIGS. 1 to 10.
  • An embodiment according to the present disclosure provides a readable storage medium having stored thereon a computer program that, when executed by a processor, implements a network element anti-looping method according to an embodiment of the present disclosure, for example, see FIGS. 1 to The network element anti-looping method described in FIG. 10.
  • the network element anti-looping method, device, device and readable storage medium it is possible to determine whether a loop exists in the network by sending loop detection packets cyclically, and perform loop-break processing if it exists to avoid The broadcast storm caused by the loop has the characteristics of fast convergence, high stability and strong maintainability.
  • the link_down message is used to determine whether a fault occurs in the network, and double-ring network detection is implemented.
  • a physical component may have multiple functions, or a function or step may be performed in cooperation by several physical components.
  • Some or all physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit .
  • Such software may be distributed on computer-readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media).
  • computer storage medium includes volatile and non-volatile implemented in any method or technology used to store information such as computer-readable instructions, data structures, program modules or other data.
  • Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or may Any other medium used to store desired information and which can be accessed by a computer.
  • a communication medium typically contains computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and may include any information delivery medium .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

Disclosed are a network element anti-looping method and apparatus, a device, and a readable storage medium. The network element anti-looping method comprises: arranging a master node on an optical transport network network element, and arranging a master port on the master node; using the master port to send a loop detection packet according to a preset cycle; when a slave port corresponding to the master port receives the loop detection packet, setting the state of the slave port to a blocking state; when the slave port does not receive the loop detection packet, setting the state of the slave port according to whether the network transmitting the loop detection packet is interrupted.

Description

一种网元防成环方法、装置、设备及可读存储介质Network element anti-looping method, device, equipment and readable storage medium 技术领域Technical field
本文涉及通信技术领域。This article relates to the field of communication technology.
背景技术Background technique
随着业务处理能力、不同业务类型需求的不断增加,在OTN(Optical Transport Network,光传送网)网元的应用中,主从子架的级联越来越多,越来越复杂。在单个OTN网元中,包括一个主子架和多个传输从子架,在主子架与各个从子架上,传输着网元的各种数据报文,完成对该网元的监控、管理功能。另外,由于主从子架之间是通过各自的二层交换板进行级联,该级联的方式可能是环形组网、链式组网、星型组网等类型。因此需要防止产生环路,来避免未知单播和广播在环路上循环传输所导致的广播风暴。With the continuous increase of service processing capabilities and different service types, in the application of OTN (Optical, Transport, Network) optical network elements, the cascading of master and slave subracks is more and more complicated. A single OTN network element includes a master subrack and multiple transmission slave subracks. Various data packets of the network element are transmitted on the master subrack and each slave subrack to complete the monitoring and management functions of the network element. . In addition, since the master and slave subracks are cascaded through their respective Layer 2 switching boards, the cascading method may be ring networking, chain networking, or star networking. Therefore, loops need to be prevented to avoid broadcast storms caused by cyclic transmission of unknown unicast and broadcast on the loop.
发明内容Summary of the Invention
本公开的一个方面提供的一种网元防成环方法,所述网元防成环方法包括:在光传送网网元上设置主节点,在所述主节点上设置主端口;所述主端口按照预设的周期发送环路探测报文;当与所述主端口相对应的从端口接收到所述环路探测报文时,将所述从端口的状态设置为阻塞状态;当所述从端口未接收到所述环路探测报文时,根据传输所述环路探测报文的网络是否中断来设置所述从端口的状态。A method for preventing loop formation of a network element according to an aspect of the present disclosure, the method for preventing loop formation of a network element includes: setting a master node on a network element of an optical transmission network, and setting a master port on the master node; The port sends a loop detection message according to a preset period; when the slave port corresponding to the master port receives the loop detection message, the state of the slave port is set to a blocked state; when the When the slave port does not receive the loop detection message, the state of the slave port is set according to whether the network transmitting the loop detection message is interrupted.
本公开的另一个方面提供的一种网元防成环装置,所述网元防成环装置包括:设置模块,用于在光传送网网元上设置主节点,在所述主节点上设置主端口;发送模块,用于所述主端口按照预设的周期发送环路探测报文;防成环模块,用于当与所述主端口相对应的从端口接收到所述环路探测报文时,将所述从端口的状态设置为阻塞状态;以及用于当所述从端口未接收到所述环路探测报文时,根据传输所述环路探测报文的网络是否中断来设置所述从端口的状态。A network element anti-looping device provided by another aspect of the present disclosure, the network element anti-looping device includes: a setting module, configured to set a master node on an optical transport network element, and set the master node on the master node A master port; a sending module for sending a loop detection message to the master port at a preset period; an anti-looping module for receiving the loop detection message when a slave port corresponding to the master port receives the loop detection message Set the state of the slave port to a blocking state during the text; and set when the slave port does not receive the loop detection message, according to whether the network transmitting the loop detection message is interrupted The state of the slave port.
本公开的再一个方面提供的一种电子设备,所述电子设备包括 存储器和处理器,所述存储器上存储有能够由所述处理器执行的应用程序,所述应用程序在由所述处理器执行时,所述处理器执行如上所述的网元防成环方法。An electronic device is provided in another aspect of the present disclosure. The electronic device includes a memory and a processor. The memory stores an application program executable by the processor. The application program is stored in the processor. When executed, the processor executes the network element loop prevention method as described above.
本公开的再一个方面提供的一种可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时,所述处理器执行如上所述的网元防成环方法。A readable storage medium provided in still another aspect of the present disclosure stores a computer program thereon. When the computer program is executed by a processor, the processor executes the network element loop prevention method as described above.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为根据本公开的实施例的网元防成环方法的流程图;1 is a flowchart of a network element loop prevention method according to an embodiment of the present disclosure;
图2为根据本公开的实施例的OTN设备的主从子架的二层交换单板级联图;2 is a cascade diagram of a Layer 2 switching board of a master-slave subrack of an OTN device according to an embodiment of the present disclosure;
图3为根据本公开的实施例的OTN设备的从节点断环示意图;3 is a schematic diagram of a broken node of a slave node of an OTN device according to an embodiment of the present disclosure;
图4为根据本公开的实施例的网元防成环方法的步骤S40的流程图;4 is a flowchart of step S40 of a network element loop prevention method according to an embodiment of the present disclosure;
图5为根据本公开的实施例的传输节点发起link_down报文的示意图;5 is a schematic diagram of a transmission node initiating a link_down message according to an embodiment of the present disclosure;
图6为根据本公开的实施例的从端口状态转换的示意图;6 is a schematic diagram of a slave port state transition according to an embodiment of the present disclosure;
图7为根据本公开的另一实施例的网元防成环方法的步骤S40的流程图;7 is a flowchart of step S40 of a network element loop prevention method according to another embodiment of the present disclosure;
图8为根据本公开的实施例的节点发起link_up报文的示意图;8 is a schematic diagram of a node initiating a link_up message according to an embodiment of the present disclosure;
图9为根据本公开的实施例的从端口状态转换的示意图;FIG. 9 is a schematic diagram of a slave port state transition according to an embodiment of the present disclosure;
图10为根据本公开的另一实施例的OTN设备的主从子架的二层交换单板级联图;10 is a cascade diagram of a Layer 2 switching board of a master-slave subrack of an OTN device according to another embodiment of the present disclosure;
图11为根据本公开的实施例的网元防成环装置的示范性结构框图。11 is an exemplary structural block diagram of a network element loop prevention device according to an embodiment of the present disclosure.
本文目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics and advantages of the purpose of this article will be further described in conjunction with the embodiments and with reference to the drawings.
具体实施方式detailed description
为了使本文所要解决的技术问题、技术方案及有益效果更加清 楚、明白,以下结合附图和实施例,对本文进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本文,并不用于限定本文。In order to make the technical problems, technical solutions, and beneficial effects to be clearer and more clear in this article, the following further describes this article in detail with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this document and are not intended to limit this document.
图1为根据本公开的实施例的网元防成环方法的流程图。FIG. 1 is a flowchart of a network element loop prevention method according to an embodiment of the present disclosure.
如图1所示,根据本公开的实施例的网元防成环方法包括步骤S10至S40。As shown in FIG. 1, the network element loop prevention method according to an embodiment of the present disclosure includes steps S10 to S40.
在步骤S10,在光传送网(OTN)网元上设置主节点,在所述主节点上设置主端口。In step S10, a master node is set on an optical transport network (OTN) network element, and a master port is set on the master node.
在步骤S20,所述主端口按照预设的周期发送环路探测报文。In step S20, the master port sends a loop detection message according to a preset period.
在步骤S30,当与所述主端口相对应的从端口接收到所述环路探测报文时,将所述从端口的状态设置为阻塞状态。In step S30, when the slave port corresponding to the master port receives the loop detection message, the state of the slave port is set to a blocked state.
在步骤S40,当所述从端口未接收到所述环路探测报文时,根据传输所述环路探测报文的网络是否中断来设置所述从端口的状态。In step S40, when the slave port does not receive the loop detection message, the state of the slave port is set according to whether the network transmitting the loop detection message is interrupted.
根据本公开的实施例,当确定传输所述环路探测报文的网络中断时,将所述从端口的状态设置为畅通状态;当确定传输所述环路探测报文的网络未中断时,将所述从端口的状态保持为阻塞状态。According to the embodiment of the present disclosure, when it is determined that the network transmitting the loop detection message is interrupted, the state of the slave port is set to an unblocked state; when it is determined that the network transmitting the loop detection message is not interrupted, The state of the slave port is maintained as a blocked state.
根据本公开的实施例,当确定传输所述环路探测报文的网络从中断状态恢复正常时,将所述从端口的状态设置为阻塞状态。According to an embodiment of the present disclosure, when it is determined that the network transmitting the loop detection message returns to normal from an interrupted state, the state of the slave port is set to a blocked state.
根据本公开的实施例,当所述主节点接收到用于指示所述网络中断的报文时,确定所述网络中断。当所述主节点没有接收到用于指示所述网络中断的报文时,确定所述网络未中断。According to an embodiment of the present disclosure, when the master node receives a message for indicating the network interruption, it determines that the network interruption. When the master node does not receive a message indicating that the network is interrupted, it is determined that the network is not interrupted.
根据本公开的实施例,在确定所述网络中断后,当主节点接收到用于指示网络从中断恢复正常的报文时,确定所述网络从中断状态恢复正常。According to the embodiment of the present disclosure, after determining that the network is interrupted, when the master node receives a message for instructing the network to recover from the interruption, it is determined that the network recovers from the interrupted state to normal.
根据本公开的实施例,当所述网络中断时,由所述网络中断的故障点两侧的节点向所述主节点发送所述用于指示所述网络中断的报文,当所述网络从中断状态恢复正常时,由网络中断的故障点两侧的节点向所述主节点发送所述用于指示所述网络从中断状态恢复正常的报文。According to an embodiment of the present disclosure, when the network is interrupted, the nodes on both sides of the failure point of the network interruption send the message for indicating the network interruption to the master node, and when the network slave When the interrupted state returns to normal, the nodes on both sides of the failure point of the network interruption send the message for instructing the network to recover from the interrupted state to the master node.
根据本公开的实施例,通过循环发送环路探测报文来判断组网 中是否存在环路,若存在环路(即,与主端口对应的从端口能够接收到主端口发送的环路探测报文),则将从端口的状态设置为阻塞状态进行断环处理,避免了环路引起的广播风暴,具有收敛快、稳定性高及可维护性强的特点。According to the embodiment of the present disclosure, it is determined whether a loop exists in the network by sending a loop detection packet cyclically. If there is a loop (that is, the slave port corresponding to the master port can receive the loop detection report sent by the master port). (Text), the state of the port will be set to the blocked state for ring break processing, avoiding broadcast storms caused by loops, and has the characteristics of fast convergence, high stability, and strong maintainability.
根据本公开的实施例,OTN网元由一个或者多个子架组成,各个子架以子架ID值进行区分,主子架的ID值为1,从子架的ID值为2-127;主子架上的主用二层交换单板为主节点,主子架上的备用二层交换单板为从节点。若主子架只有一个二层交换单板,则无从节点。从子架上的所有二层交换单板统称为传输节点。According to the embodiment of the present disclosure, the OTN network element is composed of one or more sub shelves. Each sub shelf is distinguished by a sub shelf ID value. The ID value of the master sub shelf is 1. The ID value of the slave sub shelf is 2-127. The primary Layer 2 switching board on the master node is the master node, and the backup Layer 2 switching board on the master subrack is the slave node. If there is only one Layer 2 switching board in the main subrack, there are no slave nodes. All Layer 2 switching boards on the slave shelf are collectively referred to as transit nodes.
在目前的OTN设备中。普遍存在且使用的是业界公有的MSTP(Multi-Service Transfer Platform,多业务传送平台)协议,该协议在复杂的二层组网场景使用中稳定性较强,各种类型的组网防止环路能力较强,但也存在一些技术上的缺点,比如协议的收敛速度慢、协议算法计算复杂、排错困难、售后维护难度大等缺点。然而目前的波分设备组网比较单一,对一个网元而言,一般仅存在一个或者多个主从子架的级联场景,此时对于使用MSTP协议对于维护成本无疑放大了。In current OTN equipment. The ubiquitous and common industry-used MSTP (Multi-Service Transfer Platform) protocol is used. This protocol is more stable in the use of complex Layer 2 networking scenarios, and various types of networking prevent loops. Ability is strong, but there are some technical disadvantages, such as the slow convergence speed of the protocol, the calculation of the protocol algorithm is complicated, the troubleshooting is difficult, and the after-sales maintenance is difficult. However, the current WDM equipment networking is relatively single. For a network element, there is usually only one or more master-slave sub-cascades. In this case, the maintenance cost of using the MSTP protocol is undoubtedly enlarged.
本公开的实施例主要针对OTN设备中单环场景。在本实施例中,主从子架都包括二层交换单板,这些主从子架之间是通过二层单板级联起来的。如此则需要避免这些二层单板级联时出现环路而引起广播风暴的问题。The embodiments of the present disclosure are mainly directed to a single ring scenario in an OTN device. In this embodiment, the master-slave sub-racks include two-layer switching boards, and the master-slave sub-racks are cascaded through the two-layer boards. In this case, it is necessary to avoid the problem of broadcast storm caused by loops when these two layer boards are cascaded.
根据本公开的实施例,所述网元包括一个主子架和若干个从子架。According to an embodiment of the present disclosure, the network element includes one master subrack and several slave subracks.
下面将参照图2详细描述根据本公开的实施例的网元防成环方法的步骤10。图2为根据本公开的实施例的OTN设备的主从子架二层交换单板级联图。 Step 10 of the network element loop prevention method according to an embodiment of the present disclosure will be described in detail below with reference to FIG. 2. FIG. 2 is a cascade diagram of a Layer 2 switching board of a master-slave subrack of an OTN device according to an embodiment of the present disclosure.
如图2所示,当所述主子架包括主用和备用二层交换单板时,将主用二层交换单板(图2中所示单板1)作为主节点,将备用二层交换单板(图2中所示单板8)作为从节点;将所述主节点上的一个端口(例如,面板网口或面板光口)设置为主端口,将所述从节点上 的一个端口(例如,面板网口或面板光口)设置为从端口。As shown in FIG. 2, when the main subrack includes the active and standby Layer 2 switching boards, the active Layer 2 switching board (board 1 shown in FIG. 2) is used as the master node, and the standby Layer 2 switching is performed. A single board (single board 8 shown in FIG. 2) is used as a slave node; a port (for example, a panel network port or a panel optical port) on the master node is set as a master port, and a port on the slave node is set (For example, the panel network port or the panel optical port) is set as the slave port.
虽然图2示出了主子架包括主用和备用二层交换单板,但主子架也可以仅包括单个二层交换单板,即,不包括备用二层交换单板。在这种情况下,将主子架的单个二层交换单板设置为主节点,将主节点上的一个端口设置为主端口,将主节点上的与主端口不同的另一端口设置为从端口。例如,可以将主节点上的小编号的面板网口或面板光口设置为主端口,将主节点上的大编号的面板网口或面板光口设置为从端口。Although FIG. 2 shows that the main subrack includes the active and standby Layer 2 switching boards, the main subrack may include only a single Layer 2 switching board, that is, it does not include the standby Layer 2 switching board. In this case, set a single Layer 2 switching board on the master subrack as the master node, set one port on the master node as the master port, and set another port on the master node that is different from the master port as the slave port. . For example, a small-numbered panel network port or panel optical port on the master node can be set as the master port, and a large-numbered panel network port or panel optical port on the master node can be set as the slave port.
根据本公开的实施例,所述步骤S10之后和步骤S20之前还包括:在所有子架上构建第一虚拟局域网和第二虚拟局域网,所述第一虚拟局域网用于进行业务数据的传输、交换处理;所述第二虚拟局域网用于对数据的传输、交换处理进行监控管理。According to the embodiment of the present disclosure, after step S10 and before step S20, the method further includes: constructing a first virtual local area network and a second virtual local area network on all subracks, where the first virtual local area network is used to transmit and exchange service data. Processing; the second virtual local area network is used to monitor and manage data transmission and exchange processing.
根据本公开的实施例,所述第一虚拟局域网启用环网闭塞机制;所述第二虚拟局域网不启用环网闭塞机制。According to an embodiment of the present disclosure, the first virtual local area network enables a ring network blocking mechanism; the second virtual local area network does not enable a ring network blocking mechanism.
根据本公开的实施例,所述第二虚拟局域网即为传输所述环路探测报文的网络。According to an embodiment of the present disclosure, the second virtual local area network is a network that transmits the loop detection message.
根据本公开的实施例,以图2所示的组网为例,当与所述主端口相对应的从端口接收到所述环路探测报文时,说明当前组网环境中存在环路,则需要进行断环处理。例如,如图3所示,将所述从端口的状态设置为阻塞(block)状态。若该环路探测报文从主节点的主端口发送出去后,并未再被从端口收到,则说明当前组网环境不存在环路,则需要将从端口状态调整为畅通(forword)状态。According to the embodiment of the present disclosure, taking the networking shown in FIG. 2 as an example, when the slave port corresponding to the master port receives the loop detection packet, it indicates that a loop exists in the current networking environment. You need to perform a loop-break process. For example, as shown in FIG. 3, the state of the slave port is set to a block state. If the loop detection packet is not sent from the master port after being sent out from the master port of the master node, it means that there is no loop in the current networking environment, and the slave port state needs to be adjusted to the forword state. .
下面将参照图4详细描述在传输所述环路探测报文的网络中断时设置从端口的状态的处理。The process of setting the status of the slave port when the network transmitting the loop detection message is interrupted will be described in detail below with reference to FIG. 4.
如图4所示,在本实施例中,所述处理包括步骤S41和S42。As shown in FIG. 4, in this embodiment, the process includes steps S41 and S42.
在步骤S41,当所述第二虚拟局域网出现故障点时,所述故障点两侧的传输节点通过所述第二虚拟局域网发起link_down报文。In step S41, when a failure point occurs in the second virtual local area network, the transmission nodes on both sides of the failure point initiate a link_down message through the second virtual local area network.
根据本公开的实施例,所述link_down报文是用于指示网络中断的报文。According to an embodiment of the present disclosure, the link_down message is a message for indicating a network interruption.
图5为根据本公开的实施例的传输节点发起link_down报文的 示意图。如图5所示,传输链路出现故障,故障点两侧的传输节点为节点4和5,两个节点分别向相反方向主动发送link_down报文。在步骤S42,当所述主节点接收到所述link_down报文时,将所述从端口的状态设置为forword状态。FIG. 5 is a schematic diagram of a transmission node initiating a link_down message according to an embodiment of the present disclosure. As shown in FIG. 5, the transmission link is faulty. The transmission nodes on both sides of the failure point are nodes 4 and 5, and the two nodes actively send link_down packets to the opposite directions. In step S42, when the master node receives the link_down message, the state of the slave port is set to the forword state.
图6为根据本公开的实施例的从端口状态转换的示意图,如图6所示,当主节点接收到所述lind_down报文时,从节点的从端口状态发生转换,即,从节点的从端口的状态从如图5所示的block状态被转换为forword状态。6 is a schematic diagram of a state transition of a slave port according to an embodiment of the present disclosure. As shown in FIG. 6, when the master node receives the lind_down message, the state of the slave port of the slave node changes, that is, the slave port of the slave node The state is changed from the block state shown in FIG. 5 to the forword state.
根据本公开的实施例,所述网元的传输链路为链式网络,当传输链路出现故障时,导致链式网络中断,为了避免链式网络所承载的业务中断,将从端口的状态从阻塞状态改变为畅通状态,使得链式网络可以在另一方向上畅通。According to the embodiment of the present disclosure, the transmission link of the network element is a chain network. When a transmission link fails, the chain network is interrupted. In order to avoid interruption of the services carried by the chain network, the state of the slave port Changing from a blocked state to an unblocked state allows the chain network to unblock in the other direction.
下面将参照图7详细描述传输所述环路探测报文的网络从中断状态恢复正常时设置从端口的状态的处理。The process of setting the state of the slave port when the network transmitting the loop detection message returns to the normal state from the interrupted state will be described in detail below with reference to FIG. 7.
如图7所示,所述处理除了包括图4所示的步骤S41和S42之外,还包括步骤S42之后的步骤S43和S44。As shown in FIG. 7, the process includes steps S43 and S44 subsequent to step S42 in addition to steps S41 and S42 shown in FIG. 4.
在步骤S43,当所述故障点恢复正常时,所述故障点两侧的传输节点通过所述第二虚拟局域网发起link_up报文。In step S43, when the failure point returns to normal, the transmission nodes on both sides of the failure point initiate a link_up message through the second virtual local area network.
根据本公开的实施例,link_up报文是用于指示网络从中断状态恢复正常的报文。According to the embodiment of the present disclosure, the link_up message is a message for instructing the network to recover from the interrupted state.
图8为根据本公开的实施例的传输节点发起link_up报文的示意图,如图8所示,在故障点恢复正常时,节点4和5分别向相反方向主动发送link_up报文。FIG. 8 is a schematic diagram of a transmission node initiating a link_up message according to an embodiment of the present disclosure. As shown in FIG. 8, when the fault point recovers, nodes 4 and 5 actively send link_up messages to opposite directions, respectively.
在步骤S44,当所述主节点接收到所述link_up报文时,将所述从端口的状态设置为block状态。In step S44, when the master node receives the link_up message, the state of the slave port is set to the block state.
图9为根据本公开的实施例的从端口状态转换的示意图,如图9所示,在主节点接收到所述link_up报文时,从端口状态发生转换,即,从端口的状态从如图8所示的畅通状态被转换为block状态。FIG. 9 is a schematic diagram of a state transition of a slave port according to an embodiment of the present disclosure. As shown in FIG. 9, when the master node receives the link_up packet, the state of the slave port transitions, that is, the state of the slave port is as shown in FIG. The unblocked state shown in 8 is changed to the block state.
根据本公开的实施例,当故障点恢复正常时,如果从端口的状态仍保持畅通状态,则传输链路将从链式网络变为环形网络,使得容 易在环形网络中引起广播风暴。为了避免这种风险,将从端口的状态转换为block状态,使得传输链路可以保持为链式网络。According to the embodiments of the present disclosure, when the point of failure returns to normal, if the state of the slave port remains unblocked, the transmission link will change from a chain network to a ring network, making it easy to cause a broadcast storm in the ring network. To avoid this risk, the state of the slave port is changed to the block state, so that the transmission link can be maintained as a chain network.
根据本公开的实施例的网元防成环方法的步骤S20中的所述预设的周期为10ms至50ms内的任一时间段,例如,30ms。根据本公开的实施例的采用循环的环路探测报文检测机制来判定组网中是否存在环路,同时通过link_down报文来判定组网中是否出现故障点的技术,实现双重环网检测。且环路探测报文和link_down报文的发送传输都可以在毫秒级完成,这样可以实现链路的快速切换,可以确保业务数据在毫秒级进行链路切换。The preset period in step S20 of the network element loop prevention method according to the embodiment of the present disclosure is any time period within 10 ms to 50 ms, for example, 30 ms. According to the embodiment of the present disclosure, a technology of determining whether a loop exists in a network by using a looped loop detection packet detection mechanism, and by using a link_down packet to determine whether a fault occurs in the network, realizes dual ring network detection. In addition, both the loop detection message and the link_down message can be sent and transmitted at the millisecond level. This enables fast link switching and ensures that service data is switched at the millisecond level.
图10为根据本公开的另一实施例的主从子架的二层交换单板级联图。FIG. 10 is a cascade diagram of a Layer 2 switching board of a master-slave subrack according to another embodiment of the present disclosure.
如图10所示,OTN网元由一个主子架和三个从子架组成,主子架使用单个二层交换单板,从子架上使用主用和备用二层交换单板,每个二层单板存在两个面板级联光口和一个主备通讯口(主备通讯接口在图10中未示出)。As shown in Figure 10, the OTN network element consists of a master subrack and three slave subracks. The master subrack uses a single Layer 2 switching board, and the slave subrack uses the active and standby Layer 2 switching boards. Each layer 2 The board has two panel cascade optical ports and one active-standby communication port (the active-standby communication interface is not shown in Figure 10).
根据本公开的实施例,指定该OTN网元上主子架上二层交换单板为主节点。因该主子架不存在备用二层交换单板,所以未设置从节点,并将主节点上的光口1设置为主端口,将光口2设置为从端口。According to the embodiment of the present disclosure, the layer 2 switching board on the main subrack on the OTN network element is designated as the master node. Because there is no standby Layer 2 switching board in this master subrack, no slave node is set, and optical port 1 on the master node is set as the master port, and optical port 2 is set as the slave port.
所有子架上构建第一虚拟局域网及第二虚拟局域网,所述第一虚拟局域网用于进行业务数据的传输、交换处理,该局域网启用环网闭塞机制;所述第二虚拟局域网用于对数据的传输、交换处理进行监控管理,该局域网不启用环网闭塞机制。A first virtual local area network and a second virtual local area network are constructed on all sub shelves. The first virtual local area network is used to transmit and exchange business data. The local area network enables a ring network blocking mechanism. The second virtual local area network is used for data The transmission and exchange processing are monitored and managed. The LAN does not use the ring network blocking mechanism.
主节点上主端口对外发送环路探测报文,报文间隔时间每30ms发送一次,该报文在第二虚拟局域网中进行传输。The master port on the master node sends a loop detection message to the outside, and the message interval is sent every 30ms, and the message is transmitted in the second virtual local area network.
参见图10左侧的“稳定状态1”,在组网稳定状态时,主端口发送的环路探测报文在组网环中传输,经各个传输节点转发后,最后主节点会通过从端口接收到该报文。在这种情况下,主节点认为当前组网存在环路。此时会将从端口状态设置为block状态,使得环形网络变更为链式组网,以此达到防止成环的目的。Refer to "Stable state 1" on the left side of Figure 10. When the network is stable, the loop detection packet sent by the master port is transmitted in the network ring. After being forwarded by each transmission node, the master node will finally receive it through the slave port. To the message. In this case, the master node considers that there is a loop in the current network. At this time, the state of the slave port is set to the block state, so that the ring network is changed to a chained network to prevent loops.
参见图10中间的“故障状态2”,若传输节点在T0时刻链路中 存在异常断链时,使得传输链路中断。故障点两侧的传输节点检测到通讯链路端口状态发生变化时,在第二虚拟局域网中主动发起link_down报文,当主节点收到任何节点发送的link_down报文时,将从端口状态由block状态切换为forword状态,从而形成新的报文发送路径。Referring to "failure state 2" in the middle of FIG. 10, if the transmission node has an abnormal link disconnection in the link at time T0, the transmission link is interrupted. When the transmission nodes on both sides of the failure point detect a change in the state of the communication link port, they actively initiate a link_down message in the second virtual local area network. When the master node receives a link_down message from any node, it will change the state of the slave port from the block Switch to the forword state to form a new message sending path.
参见图10中右侧的“恢复稳定状态3”,当故障节点在T1时刻恢复正常,链路恢复正常时,故障点两侧的传输节点检测到通讯链路端口状态发生变化时,在第二虚拟局域网中主动发起link_up报文,当主节点收到任何节点发送的link_up报文时,将从端口状态由forword状态切换为block状态,将由于从端口的状态被切换为block状态而形成的环形网络切换为链式组网,来防止已恢复的环网形成广播风暴。此时设备就恢复到故障前的稳定状态。Referring to "Restoring Stable State 3" on the right in Figure 10, when the faulty node returns to normal at time T1 and the link returns to normal, the transmission nodes on both sides of the fault point detect a change in the state of the communication link port, and then in the second In the virtual local area network, a link_up message is actively initiated. When the master node receives a link_up message from any node, it will switch the state of the slave port from the forword state to the block state. The ring network formed by the state of the slave port will be switched to the block state. Switch to a chained network to prevent broadcast storms on the recovered ring network. At this point, the device returns to the stable state before the failure.
图11为根据本公开的实施例的网元防成环的装置的示范性结构框图。FIG. 11 is an exemplary structural block diagram of a network element loop prevention device according to an embodiment of the present disclosure.
如图11所示,网元防成环装置包括设置模块10、发送模块20和防成环模块30。As shown in FIG. 11, the network element loop prevention device includes a setting module 10, a sending module 20, and a loop prevention module 30.
设置模块10,用于在OTN网元上设置主节点,在所述主节点上设置主端口。A setting module 10 is configured to set a master node on an OTN network element, and set a master port on the master node.
发送模块20,用于使所述主端口按照预设的周期发送环路探测报文。The sending module 20 is configured to cause the master port to send a loop detection message according to a preset period.
防成环模块30,用于当与所述主端口相对应的从端口接收到所述环路探测报文时,将所述从端口的状态设置为block状态;还用于当所述从端口未接收到所述环路探测报文时,根据传输所述环路探测报文的网络是否中断来设置所述从端口的状态。The anti-loop formation module 30 is configured to set the state of the slave port to the block state when the slave port corresponding to the master port receives the loop detection packet; When the loop detection message is not received, the state of the slave port is set according to whether the network transmitting the loop detection message is interrupted.
根据本公开的实施例,当防成环模块30确定传输所述环路探测报文的网络中断时,将所述从端口的状态设置为畅通状态;当防成环模块30确定传输所述环路探测报文的网络未中断时,将所述从端口的状态保持位阻塞状态。According to an embodiment of the present disclosure, when the loop prevention module 30 determines that the network transmitting the loop detection packet is interrupted, the state of the slave port is set to an unblocked state; when the loop prevention module 30 determines to transmit the loop When the network of the road detection message is not interrupted, the state of the slave port is maintained in a bit-blocking state.
根据本公开的实施例,当防成环模块30确定传输所述环路探测报文的网络从中断状态恢复正常时,将所述从端口的状态设置为阻塞 状态。According to an embodiment of the present disclosure, when the loop prevention module 30 determines that the network transmitting the loop detection message returns to normal from an interrupted state, the state of the slave port is set to a blocked state.
根据本公开的实施例,当所述主节点接收到用于指示所述网络中断的报文时,防成环模块30确定所述网络中断。当所述主节点没有接收到用于指示所述网络中断的报文时,防成环模块30确定所述网络未中断。According to an embodiment of the present disclosure, when the master node receives a message for indicating the network interruption, the loop prevention module 30 determines the network interruption. When the master node does not receive a message indicating that the network is interrupted, the loop prevention module 30 determines that the network is not interrupted.
根据本公开的实施例,防成环模块30在确定所述网络中断后,当主节点接收到用于指示网络从中断恢复正常的报文时,确定所述网络从中断状态恢复正常。According to the embodiment of the present disclosure, after determining that the network is interrupted, when the master node receives a message for instructing the network to recover from the interruption, it determines that the network recovers from the interrupted state to normal.
根据本公开的实施例,当所述网络中断时,由所述网络中断的故障点两侧的节点向所述主节点发送所述用于指示所述网络中断的报文,当所述网络从中断状态恢复正常时,由网络中断的故障点两侧的节点向所述主节点发送所述用于指示所述网络从中断状态恢复正常的报文。According to an embodiment of the present disclosure, when the network is interrupted, the nodes on both sides of the failure point of the network interruption send the message for indicating the network interruption to the master node, and when the network slave When the interrupted state returns to normal, the nodes on both sides of the failure point of the network interruption send the message for instructing the network to recover from the interrupted state to the master node.
根据本公开的实施例,通过循环发送环路探测报文来判断组网中是否存在环路,若存在环路,则将从端口的状态设置为阻塞状态进行断环处理,避免了环路引起的广播风暴,具有收敛快、稳定性高及可维护性强的特点。According to the embodiment of the present disclosure, it is determined whether a loop exists in the network by sending loop detection packets cyclically. If there is a loop, the state of the port is set to a blocked state for loop breaking processing, which avoids loops. The broadcast storm has the characteristics of fast convergence, high stability, and strong maintainability.
根据本公开的实施例,OTN网元由一个或者多个子架组成,各个子架以子架ID值进行区分,主子架的ID值为1,从子架的ID值为2-127;主子架上的主用二层交换单板为主节点,主子架上的备用二层交换单板为从节点,若主子架只有一个二层交换单板,则无从节点;从子架上的所有二层交换单板统称为传输节点。According to the embodiment of the present disclosure, the OTN network element is composed of one or more sub shelves. Each sub shelf is distinguished by a sub shelf ID value. The ID value of the master sub shelf is 1. The ID value of the slave sub shelf is 2-127. The primary Layer 2 switching board on the master is the primary node, and the secondary Layer 2 switching board on the primary subrack is the slave node. If the primary subrack has only a single Layer 2 switching board, there is no secondary node; all Layer 2 on the secondary subrack. Switching boards are collectively called transmission nodes.
根据本公开的实施例提供一种电子设备,其包括存储器、处理器,所述存储器上存储有可由所述处理器执行的应用程序,当所述应用程序被所述处理器执行时,用于实现根据本公开的实施例的网元防成环方法,例如,参见图1至图10所描述的网元防成环方法。According to an embodiment of the present disclosure, there is provided an electronic device including a memory and a processor. The memory stores an application program executable by the processor, and when the application program is executed by the processor, A method for preventing loop prevention of a network element according to an embodiment of the present disclosure is implemented, for example, with reference to the method for loop prevention of a network element described with reference to FIGS. 1 to 10.
根据本公开的实施例提供一种可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现根据本公开的实施例的网元防成环方法,例如,参见图1至图10所描述的网元防成环方法。An embodiment according to the present disclosure provides a readable storage medium having stored thereon a computer program that, when executed by a processor, implements a network element anti-looping method according to an embodiment of the present disclosure, for example, see FIGS. 1 to The network element anti-looping method described in FIG. 10.
需要说明的是,上述装置、设备和可读存储介质实施例与方法 实施例属于同一构思,其具体实现过程详见方法实施例,且方法实施例中的技术特征在装置实施例中均对应适用,这里不再赘述。It should be noted that the above device, device, and readable storage medium embodiment and method embodiment belong to the same concept. For the detailed implementation process, see the method embodiment, and the technical features in the method embodiment are correspondingly applicable in the device embodiment. I wo n’t repeat them here.
根据本公开的实施例的网元防成环方法、装置、设备及可读存储介质可以通过循环发送环路探测报文来判断组网中是否存在环路,若存在则进行断环处理,避免了环路引起的广播风暴,具有收敛快、稳定性高及可维护性强的特点。同时通过link_down报文来判定组网中是否出现故障点的技术,实现双重环网检测。According to the network element anti-looping method, device, device and readable storage medium according to the embodiments of the present disclosure, it is possible to determine whether a loop exists in the network by sending loop detection packets cyclically, and perform loop-break processing if it exists to avoid The broadcast storm caused by the loop has the characteristics of fast convergence, high stability and strong maintainability. At the same time, the link_down message is used to determine whether a fault occurs in the network, and double-ring network detection is implemented.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。Those of ordinary skill in the art can understand that all or some of the steps, systems, and functional modules / units in the devices disclosed in the methods above can be implemented as software, firmware, hardware, and appropriate combinations thereof.
在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分。例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。In a hardware implementation, the division between functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components. For example, a physical component may have multiple functions, or a function or step may be performed in cooperation by several physical components. Some or all physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit . Such software may be distributed on computer-readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As is known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile implemented in any method or technology used to store information such as computer-readable instructions, data structures, program modules or other data. Removable, removable and non-removable media. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or may Any other medium used to store desired information and which can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that a communication medium typically contains computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and may include any information delivery medium .
以上参照附图说明了本公开的实施例,并非因此局限本公开的权利范围。本领域技术人员不脱离本公开的范围和实质内所作的任何修改、等同替换和改进,均应在本公开的权利范围之内。The embodiments of the present disclosure have been described above with reference to the accompanying drawings, and thus do not limit the scope of rights of the present disclosure. Any modification, equivalent replacement, and improvement made by those skilled in the art without departing from the scope and substance of the present disclosure shall fall within the scope of rights of the present disclosure.

Claims (14)

  1. 一种网元防成环方法,包括:A network element anti-looping method includes:
    在光传送网网元上设置主节点,并在所述主节点上设置主端口;Setting a master node on the optical transport network element, and setting a master port on the master node;
    使所述主端口按照预设的周期发送环路探测报文;Enabling the master port to send a loop detection message according to a preset period;
    当与所述主端口相对应的从端口接收到所述环路探测报文时,将所述从端口的状态设置为阻塞状态;When the slave port corresponding to the master port receives the loop detection message, the state of the slave port is set to a blocked state;
    当所述从端口未接收到所述环路探测报文时,根据传输所述环路探测报文的网络是否中断来设置所述从端口的状态。When the slave port does not receive the loop detection message, the state of the slave port is set according to whether the network transmitting the loop detection message is interrupted.
  2. 根据权利要求1所述的网元防成环方法,其中,所述光传送网网元包括一个主子架和至少一个从子架,所述在光传送网网元上设置主节点,并在所述主节点上设置主端口包括:The method for preventing loop formation of a network element according to claim 1, wherein the optical transmission network element includes a master sub-frame and at least one slave sub-frame, and the master node is set on the optical transmission network element, and The master port setting on the master node includes:
    当所述主子架包括主用二层交换单板和备用二层交换单板时,将主用二层交换单板设置为所述主节点,将备用二层交换单板设置为从节点;将所述主节点上的一个端口设置为所述主端口,将所述从节点上的一个端口设置为所述从端口;When the main subrack includes a main Layer 2 switching board and a standby Layer 2 switching board, set the main Layer 2 switching board as the master node, and set the standby Layer 2 switching board as the slave node; One port on the master node is set as the master port, and one port on the slave node is set as the slave port;
    当所述主子架包括单个二层交换单板时,将所述单个二层交换单板设置为所述主节点;将所述主节点上的一个端口设置为所述主端口,将所述主节点上的另一端口设置为所述从端口。When the main subrack includes a single Layer 2 switching board, set the single Layer 2 switching board as the master node; set a port on the master node as the master port, and set the master The other port on the node is set as the slave port.
  3. 根据权利要求2所述的网元防成环方法,在光传送网网元上设置主节点,并在所述主节点上设置主端口之后,以及在所述主端口按照预设的周期发送环路探测报文之前,包括:The method for preventing loop formation of a network element according to claim 2, after setting a master node on the optical transmission network element, setting a master port on the master node, and sending a ring on the master port according to a preset period Before the road detection message, it includes:
    在所述光传送网网元上构建第一虚拟局域网和第二虚拟局域网,所述第一虚拟局域网用于进行业务数据的传输、交换处理;所述第二虚拟局域网用于对数据的传输、交换处理进行监控管理。Constructing a first virtual local area network and a second virtual local area network on the optical transport network element, the first virtual local area network is used for transmission and exchange processing of service data, and the second virtual local area network is used for data transmission, Exchange processing for monitoring management.
  4. 根据权利要求3所述的网元防成环方法,其中,所述第二虚拟局域网是传输所述环路探测报文的所述网络。The method for preventing loop formation of a network element according to claim 3, wherein the second virtual local area network is the network transmitting the loop detection message.
  5. 根据权利要求1所述的网元防成环方法,其中,根据传输所述环路探测报文的网络是否中断来设置所述从端口的状态包括:The method for preventing loop formation of a network element according to claim 1, wherein setting the status of the slave port according to whether a network transmitting the loop detection message is interrupted comprises:
    当确定所述网络中断时,将所述从端口的状态设置为畅通状态;When it is determined that the network is interrupted, setting the state of the slave port to an unblocked state;
    当确定所述网络未中断时,将所述从端口的状态保持为阻塞状态。When it is determined that the network is not interrupted, the state of the slave port is maintained as a blocked state.
  6. 根据权利要求5所述的网元防成环方法,其中,The network element loop prevention method according to claim 5, wherein:
    当所述主节点接收到用于指示所述网络中断的报文时,确定所述网络中断,When the master node receives a message for indicating the network interruption, determining that the network interruption,
    当所述主节点未接收到用于指示所述网络中断的报文时,确定所述网络未中断。When the master node does not receive a message indicating that the network is interrupted, it is determined that the network is not interrupted.
  7. 根据权利要求5所述的网元防成环方法,其中,当确定所述网络从中断状态恢复正常时,将所述从端口的状态设置为阻塞状态。The method for preventing loop formation of a network element according to claim 5, wherein when it is determined that the network recovers from an interrupted state, the state of the slave port is set to a blocked state.
  8. 根据权利要求7所述的网元防成环方法,其中,当所述主节点接收到用于指示所述网络从中断状态恢复正常的报文时,确定所述网络从中断状态恢复正常。The method for preventing loop formation of a network element according to claim 7, wherein when the master node receives a message for instructing the network to recover from the interrupted state, it is determined that the network recovers from the interrupted state to normal.
  9. 根据权利要求6所述的网元防成环方法,其中,当所述网络中断时,由所述网络中断的故障点两侧的节点向所述主节点发送所述用于指示所述网络中断的报文。The method for preventing loop formation of a network element according to claim 6, wherein when the network is interrupted, the nodes on both sides of the failure point of the network interrupt send the master node to indicate the network interruption Message.
  10. [根据细则91更正 29.11.2019] 
    根据权利要求8所述的网元防成环方法,其中,当所述网络从中断状态恢复正常时,由网络中断的故障点两侧的节点向所述主节点发送所述用于指示所述网络从中断状态恢复正常的报文。
    [Corrected under Rule 91. 29.11.2019]
    The method for preventing loop formation of a network element according to claim 8, wherein when the network recovers from an interrupted state, the nodes on both sides of the point of failure of the network interruption send the instruction to the master node for the The network resumes normal messages from the interrupted state.
  11. [根据细则91更正 29.11.2019] 
    根据权利要求1所述的网元防成环方法,其中,所述预设的周期为10ms至50ms内的任一时间段。
    [Corrected under Rule 91. 29.11.2019]
    The method for preventing loop formation of a network element according to claim 1, wherein the preset period is any time period within 10ms to 50ms.
  12. [根据细则91更正 29.11.2019] 
    一种网元防成环装置,包括:
    [Corrected under Rule 91. 29.11.2019]
    A network element anti-looping device includes:
    设置模块,用于在光传送网网元上设置主节点,在所述主节点上设置主端口;A setting module, configured to set a master node on a network element of the optical transmission network, and set a master port on the master node;
    发送模块,用于使所述主端口按照预设的周期发送环路探测报文;A sending module, configured to enable the master port to send a loop detection message according to a preset period;
    防成环模块,用于当与所述主端口相对应的从端口接收到所述环路探测报文时,将所述从端口的状态设置为阻塞状态;以及用于当所述从端口未接收到所述环路探测报文时,根据传输所述环路探测报文的网络是否中断来设置所述从端口的状态。An anti-looping module, configured to set the state of the slave port to a blocked state when the slave port corresponding to the master port receives the loop detection message; and When the loop detection message is received, the state of the slave port is set according to whether the network transmitting the loop detection message is interrupted.
  13. [根据细则91更正 29.11.2019] 
    一种电子设备,包括存储器和处理器,所述存储器上存储有能够由所述处理器执行的应用程序,所述应用程序在由所述处理器执行时,所述处理器执行如权利要求1-11任一项所述的网元防成环方法。
    [Corrected under Rule 91. 29.11.2019]
    An electronic device includes a memory and a processor, and the memory stores an application program that can be executed by the processor. When the application program is executed by the processor, the processor executes the method of claim 1 The network element loop prevention method according to any one of -11.
  14. [根据细则91更正 29.11.2019] 
    一种可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时,所述处理器执行如权利要求1-11任一所述的网元防成环方法。
    [Corrected under Rule 91. 29.11.2019]
    A readable storage medium stores a computer program thereon. When the computer program is executed by a processor, the processor executes the network element loop prevention method according to any one of claims 1-11.
PCT/CN2019/105948 2018-09-14 2019-09-16 Network element anti-looping method and apparatus, device, and readable storage medium WO2020052687A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811071987.0 2018-09-14
CN201811071987.0A CN110912815B (en) 2018-09-14 2018-09-14 Network element ring formation preventing method, device, equipment and readable storage medium

Publications (1)

Publication Number Publication Date
WO2020052687A1 true WO2020052687A1 (en) 2020-03-19

Family

ID=69776937

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/105948 WO2020052687A1 (en) 2018-09-14 2019-09-16 Network element anti-looping method and apparatus, device, and readable storage medium

Country Status (2)

Country Link
CN (1) CN110912815B (en)
WO (1) WO2020052687A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113709068A (en) * 2021-08-26 2021-11-26 北京东土科技股份有限公司 Switch system and execution processing method of switch
CN114760207A (en) * 2022-05-05 2022-07-15 烽火通信科技股份有限公司 Ring network damage method and system of Ethernet

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112737981B (en) * 2020-12-23 2022-04-08 迈普通信技术股份有限公司 Broadcast path determining method and device, distributed equipment and readable storage medium
CN113949649B (en) * 2021-10-14 2023-05-23 迈普通信技术股份有限公司 Fault detection protocol deployment method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101184013A (en) * 2007-12-13 2008-05-21 杭州华三通信技术有限公司 Method for preventing generation of loop, host node and system
CN101809942A (en) * 2007-08-07 2010-08-18 诺基亚西门子通信公司 Avoid having method, device and the communication system of the loop in the Ethernet ring system of basic 802.3ad network
US20110099414A1 (en) * 2007-08-06 2011-04-28 Nokia Siemens Networks Oy Method and Device for Operating a Network and Communication System Comprising Such Device
US20150124586A1 (en) * 2013-11-05 2015-05-07 Cisco Technology, Inc. N-way virtual port channels using dynamic addressing and modified routing
US20160134361A1 (en) * 2012-03-30 2016-05-12 Ciena Corporation Generalized service protection systems and methods
US20160373272A1 (en) * 2015-06-19 2016-12-22 Honeywell International, Inc. Method, device and system for communicating in a ring network
JP2018117195A (en) * 2017-01-16 2018-07-26 富士通株式会社 Communication device and communication method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2002211560A1 (en) * 2000-10-12 2002-04-22 Signafor, Inc. Advanced switching mechanism for providing high-speed communications with high quality of service
CN101001192B (en) * 2007-01-17 2010-04-21 华为技术有限公司 Method, system and equipment for protecting ring network link
CN101222402B (en) * 2008-01-22 2011-05-18 杭州华三通信技术有限公司 Ethernet ring protection method, system and device
CN102957588A (en) * 2012-11-05 2013-03-06 盛科网络(苏州)有限公司 Method and system for protecting looped network from broadcast storm

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110099414A1 (en) * 2007-08-06 2011-04-28 Nokia Siemens Networks Oy Method and Device for Operating a Network and Communication System Comprising Such Device
CN101809942A (en) * 2007-08-07 2010-08-18 诺基亚西门子通信公司 Avoid having method, device and the communication system of the loop in the Ethernet ring system of basic 802.3ad network
CN101184013A (en) * 2007-12-13 2008-05-21 杭州华三通信技术有限公司 Method for preventing generation of loop, host node and system
US20160134361A1 (en) * 2012-03-30 2016-05-12 Ciena Corporation Generalized service protection systems and methods
US20150124586A1 (en) * 2013-11-05 2015-05-07 Cisco Technology, Inc. N-way virtual port channels using dynamic addressing and modified routing
US20160373272A1 (en) * 2015-06-19 2016-12-22 Honeywell International, Inc. Method, device and system for communicating in a ring network
JP2018117195A (en) * 2017-01-16 2018-07-26 富士通株式会社 Communication device and communication method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113709068A (en) * 2021-08-26 2021-11-26 北京东土科技股份有限公司 Switch system and execution processing method of switch
CN113709068B (en) * 2021-08-26 2023-08-15 北京东土科技股份有限公司 Switch system and execution processing method of switch
CN114760207A (en) * 2022-05-05 2022-07-15 烽火通信科技股份有限公司 Ring network damage method and system of Ethernet

Also Published As

Publication number Publication date
CN110912815A (en) 2020-03-24
CN110912815B (en) 2022-07-05

Similar Documents

Publication Publication Date Title
WO2020052687A1 (en) Network element anti-looping method and apparatus, device, and readable storage medium
US10623293B2 (en) Systems and methods for dynamic operations, administration, and management
EP1994694B1 (en) System and method for preventing loops in the presence of control plane failures
EP2352253B1 (en) Method and apparatus for protecting link aggregation group of ethernet ring
EP3097659B1 (en) G.8032 ethernet multiple fault recovery mechanisms
US10708081B2 (en) Failure protection method based on ring protection link, device, and system
US9385944B2 (en) Communication system, path switching method and communication device
US9602304B2 (en) Data transfer device system, network system, and method of changing configuration of network system
US10091023B2 (en) Systems and methods to detect and recover from a loop in an Ethernet ring protected network
US8320281B2 (en) Methods, systems and computer readable media for utilizing a standard spanning tree protocol to indicate an active switching fabric in a network node
CN104980372A (en) Relay System And Switching Device
CN109194592B (en) Method and system for solving island problem in multi-link network
CN112995002B (en) Switch ring network design method, switch and storage medium
JP6383232B2 (en) Relay system and switch device
CN102487348B (en) Method and system for realizing looped network uplink protection
US20220141123A1 (en) Network device, network system, network connection method, and program
CN113938421B (en) Force-up function-based anti-loop mechanism implementation method, equipment and medium
EP3462681B1 (en) Apparatus and method for transmitting multicast service
CN102857423A (en) Service flow transferring method and node in distributed link polymerization system
JP2011223172A (en) Ring-type network system, communication apparatus and failure detection method
CN115567343B (en) Ethernet main/standby switching method, equipment and medium based on MLAG
CN116320840A (en) Optical service unit OSU-based tangent loop network protection method and device
WO2012129725A1 (en) Ethernet ring protection for non-erp compliant links and nodes
JP2015136079A (en) Communication node device and network system

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

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

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 06/08/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19859210

Country of ref document: EP

Kind code of ref document: A1