WO2017148093A1 - Node device and ring network switching method - Google Patents

Node device and ring network switching method Download PDF

Info

Publication number
WO2017148093A1
WO2017148093A1 PCT/CN2016/092372 CN2016092372W WO2017148093A1 WO 2017148093 A1 WO2017148093 A1 WO 2017148093A1 CN 2016092372 W CN2016092372 W CN 2016092372W WO 2017148093 A1 WO2017148093 A1 WO 2017148093A1
Authority
WO
WIPO (PCT)
Prior art keywords
ring network
node
switching
unknown packet
ring
Prior art date
Application number
PCT/CN2016/092372
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 WO2017148093A1 publication Critical patent/WO2017148093A1/en

Links

Images

Classifications

    • 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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0659Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery

Definitions

  • the present application relates to, but is not limited to, the field of network communications, and in particular, to a handover scheme of a ring protection network.
  • the ring network protection protocol (the ERPS (Ethernet Ring Protection Switching) protocol described in G.8032 is used as an example.)
  • the RPL Ring Protection Link ring protection link
  • the ring network switching mainly occurs in the following scenarios (here, the ERPS ring network works in the return mode as an example): the ring network detects the link fault; the ring network link fails to recover; manually or forcibly switches the ring network node; Or force the ring node to switch.
  • the switching time of the ring network must be less than 50 milliseconds, and the switching time should be as short as possible.
  • the rate limit of unknown packets is usually enabled. This is a security measure for attack defense and a guarantee for the bandwidth of packet forwarding.
  • each network node needs to clear the Layer 2 forwarding table because of changes in the network topology. This causes the service packets originally on the ring network to become unknown packets, and the packets are unknown by the system.
  • the rate limit of the packet rate limit is severe, which causes serious packet loss. In particular, when the packet rate before the ring network is switched, the packet loss is more obvious, and the switching performance of the ring network becomes worse (the switching time becomes longer). Meet the performance requirements of 50 milliseconds.
  • the present invention provides a node device and a ring network switching method, which can solve the problem of poor handover performance caused by the unknown packet rate limiting function in the related ring network switching process.
  • the present application discloses a ring network switching method, which includes:
  • each ring network node configures the unknown packets of the system to an unlimited speed. After the ring network is switched, each ring network node recovers the unknown packet rate limit function of the system.
  • each ring network node configures the unknown packet of the system to an unlimited speed, and after the ring network is switched, each ring network node recovers the unknown packet rate limit.
  • the functional process includes:
  • the faulty node When the ring network detects a link fault, the faulty node notifies other ring network nodes that the link is faulty, and the ring network switches.
  • the faulty node and all ring network nodes that receive the link failure notification configure the unknown packet of the system to an unlimited speed
  • each ring network node recovers the unknown packet rate limit function of the system.
  • each ring network node configures the unknown packet of the system to an unlimited speed, and after the ring network is switched, each ring network node recovers the unknown packet rate limit.
  • the functional process includes:
  • the fault recovery node When the ring network recovers, the fault recovery node notifies the other ring network nodes that the link is faulty and the ring network switches.
  • the fault recovery node and all ring network nodes that receive the link failure recovery notification configure the unknown packet of the system to an unlimited speed
  • the ring network protection link (RPL) autonomous node receives the link failure recovery notification, and notifies all ring network nodes to restore the system's unknown packet rate limiting function after the timer event ends.
  • the process that the RPL autonomous node notifies all ring network nodes to recover the unknown packet rate limiting function after the timer event ends includes:
  • the RPL autonomous node first sends a ring protection switch to restore the R-APS (NR, RB) message when the timer expires, the timer event ends, and the R-APS (NR, RB) message is sent again to notify each ring.
  • the network node recovers the system's unknown packet rate limit function.
  • each ring network node configures the unknown packet of the system to an unlimited speed, and after the ring network is switched, each ring network node recovers the unknown packet rate limit.
  • the functional process includes:
  • the R-APS Ring-Automatic Protection Switching
  • MS manual switching
  • the manually switched node and all the ring network nodes that receive the R-APS message configure the unknown packet of the system to an unlimited speed;
  • each ring network node configures the unknown packet of the system to an unlimited speed, and after the ring network is switched, each ring network node recovers the unknown packet rate limit.
  • the functional process includes:
  • the node that is manually switched off sends an R-APS (NR) message to other ring network nodes, and the ring network switches.
  • R-APS NR
  • the RPL autonomous node receives the R-APS (NR) message, and sends an R-APS (NR, RB) message to all ring network nodes and blocks the PRL link when the timer expires;
  • the ring network node that receives the R-APS (NR, RB) message releases the blocking caused by the manual switching command;
  • the RPL autonomous node After the ring network node is unblocked, the RPL autonomous node notifies the node that clears the manual switch and all the ring network nodes to recover the unknown packet rate limit function of the system.
  • the process for the RPL autonomous node to notify the node that clears the manual handover and all the ring network nodes to recover the unknown packet rate limit function of the system includes:
  • the RPL autonomous node notifies the clearing of the manually switched node and all ring network nodes to recover the unknown packet rate limiting function by resending the R-APS (NR, RB) message.
  • each ring network node configures the unknown packet of the system to an unlimited speed, and after the ring network is switched, each ring network node recovers the unknown packet limit.
  • the speed function process includes:
  • the node that is forcibly switched When forcibly switching the ring network node port, the node that is forcibly switched sends an R-APS message indicating the forced switching (FS) to all ring network nodes, and the ring network switches.
  • FS forced switching
  • the node that is forcibly switched and all the ring network nodes that receive the R-APS message configure the unknown packet of the system to an unlimited speed;
  • each ring network node configures the unknown packet of the system to an unlimited speed, and after the ring network is switched, each ring network node recovers the unknown packet rate limit.
  • the functional process includes:
  • the node that is cleared forcibly switches sends an R-APS (NR) message to all ring network nodes, and the ring network switches.
  • R-APS NR
  • the ring network node that receives the R-APS (NR, RB) message releases the blocking caused by the forced switching command;
  • the RPL autonomous node After the congestion is released, the RPL autonomous node notifies the node that clears the forced handover and all the ring network nodes to recover the unknown packet rate limiting function of the system.
  • the process for the RPL autonomous node to notify the node that clears the forced handover and all the ring network nodes to recover the unknown packet rate limiting function of the system includes:
  • the RPL autonomous node notifies the node that has forcibly switched and all the ring network nodes to recover the unknown packet rate limiting function by resending the R-APS (NR, RB) message.
  • the application also discloses a node device, which includes:
  • the first unit is configured to configure the unknown packet of the system to be an unlimited speed during the switching of the ring network
  • the second unit is configured to restore the system's unknown packet rate limiting function after the ring network is switched.
  • the process of switching the ring network includes one or more of the following:
  • the present application also provides a computer readable storage medium storing computer executable instructions that, when executed, implement the ring switching method described above.
  • the system unknown packet is automatically set to an unlimited speed, and the speed limit function of the system is restored after the handover is completed.
  • the switching performance of the ring network can be improved without affecting the security of the system, and the implementation of the solution is extremely simple, and does not bring additional overhead to the system, and is easily implemented in related network devices.
  • FIG. 1 is a flowchart of a ring network switching method according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of networking in a normal working state according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of networking of a link failure in a ring network according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a format of a R-APS PDU (Protocol Data Unit) packet according to an embodiment of the present disclosure
  • FIG. 5 is a schematic diagram of a format of R-APS specific information in the R-APS PDU packet shown in FIG. 4;
  • FIG. 6 is a schematic diagram of a node device according to an embodiment of the present invention.
  • this embodiment provides a ring network switching method, including the following operations:
  • each ring network node configures the unknown packets of the system to an unlimited speed. After the ring network is switched, each ring network node recovers the unknown packet rate limit function of the system.
  • the ring network switching involved in this embodiment includes ring network switching triggered by various conditions, for example, the following types:
  • the ring network is switched when the ring network detects a link fault.
  • the faulty node When the ring network detects a link failure, the faulty node sends an R-APS (SF) message to notify other ring network nodes of the link failure (that is, the ring network switch is considered to start), the failed node and all the messages received.
  • R-APS R-APS
  • the unknown packet speed limit value of the system is restored (that is, the speed limit function of the unknown packet of the recovery system is restored, and the unknown packet speed limit value of the recovery system in the following is Restore the system's unknown packet speed limit function).
  • the fault recovery node When the ring network recovers, the fault recovery node sends an R-APS (NR) message to notify other ring network nodes of link failure recovery (ie, it can be considered to start ring network switching), the fault recovery node and all rings that receive the message.
  • NR R-APS
  • the node sets the system's unknown packet rate limit value to an unlimited speed
  • the RPL owner node receives the R-APS (NR) message and notifies all ring nodes to recover the system's unknown packet rate limit value after a timer event ends.
  • the timer of the RPL owner node is a periodic timer, for example, a WTR (Wait to Restore) timer, that is, the WTR timer expires, and the RPL owner node starts to periodically send the R-APS (NR, RB).
  • the message after receiving the R-APS (NR, RB) message, each node starts to process the forwarding table clearing.
  • the RPL owner node can periodically send an R-APS (NR, RB) message to notify.
  • Each ring network node recovers the system's unknown packet rate limit value.
  • the RPL owner node receives the R-APS again (NR, All ring nodes of the RB) message recover the unknown packet rate limit value of the system.
  • the node that is manually switched When manually switching the ring node port, the node that is manually switched will send an R-APS message indicating the manual handover (MS) (ie, it can be considered to start the ring network handover), the manually switched node and all the rings that receive the message.
  • MS manual handover
  • the node sets the system's unknown packet rate limit value to an unlimited speed;
  • the node that is manually cleared will send an R-APS (NR) message (that is, start ring network switch), and the node that is manually switched or all ring nodes that receive the message will be unknown.
  • NR R-APS
  • the packet speed limit value is set to an unlimited speed
  • the RPL owner node receives the R-APS (NR) message, and after a timer event expires, it sends an R-APS (NR, RB) message and blocks the PRL link, thus receiving the R-APS (NR, RB).
  • the ring node of the message will cancel the blocking caused by the manual switching command, and then the RPL owner node notifies all ring nodes to restore the system's unknown packet rate limit value.
  • the RPL owner node may notify each ring network node to recover the unknown packet rate limit value by sending an R-APS (NR, RB) message again, and each ring network node receives the R-APS for the second time. (NR, RB) message can restore the system's unknown packet speed limit value.
  • the node that is forcibly switched will send an R-APS message indicating forced switching (FS) (that is, it can be considered to start ring network switching), the node that is forced to switch, and all rings that receive the message.
  • FS forced switching
  • the node sets the system's unknown packet rate limit value to an unlimited speed;
  • the node that is cleared for forced handover will send an R-APS (NR) message (that is, it can be considered to start the ring network handover), and the node that is forcibly switched or all ring nodes that receive the message will be unknown.
  • the packet speed limit value is set to an unlimited speed
  • the RPL owner node receives the R-APS (NR) message, sends an R-APS (NR, RB) message and blocks the PRL link after a timer event times out; receives the R-APS (NR, RB) message.
  • the ring network node cancels the blocking caused by the forced switching command.
  • the clearing of the forced switching is completed, and the RPL owner node notifies each ring network node to restore the system's unknown packet rate limit value.
  • RPL The owner node can notify each ring node to recover the unknown packet rate limiting function of the system by sending an R-APS (NR, RB) message again.
  • each node in the ring network needs to record the current unknown rate limit value of the system. If the user changes the speed limit value, the ring network node also needs to update the rate limit value. When the ring network switch is completed, the ring network node follows the ring network node. The updated speed limit value restores the system's unknown packet speed limit function.
  • the general networking of the embodiment of the present invention is as shown in FIG. 2.
  • a plurality of devices form a ring network and run an ERPS ring network protection protocol.
  • the RPL link can be configured as a link between any two devices in the ring network.
  • the port on the RPL link is blocked during normal operation.
  • nodes 1, node 2, node 3, and node 4 form a ring network.
  • the RPL link is the link between node 3 and node 4.
  • the port on node 4 is the owner node.
  • DUT1 and DUT2 simulate two network element devices that need to communicate in the live network.
  • the ports are respectively connected to the two ports of the tester, and the tester simulates the transceiver package.
  • the system sets the speed limit of the unknown packet, and the message between the tester ports A and B is a known packet, and is not subject to the speed limit control of the unknown packet.
  • the nodes in each ring record the current unknown packet rate limit of the system.
  • the tester's ports A and B communicate through DUT1—node4—node1—node2—node3—DUT2, as shown in Figure 2; when the non-RPL link in the ring network fails, the tester's Ports A and B communicate through DUT1—node4—node3—DUT2, as shown in Figure 3.
  • node1 and node2 After detecting a link fault, node1 and node2 set the device's unknown packet rate limit to an unlimited speed; block the faulty port and clear the MAC address forwarding table; periodically send an R-APS (SF) message to notify other ring network nodes of the link fault. .
  • R-APS R-APS
  • Node3 and node4 receive the R-APS (SF) message for the first time, set the device's unknown packet rate limit to unlimited speed; clear the MAC address forwarding table; node4 is the RPL-owner node, and the node4 node port is blocked.
  • R-APS SF
  • Node3 and node4 receive the R-APS (SF) message for the second time, and trigger the logic to clear the MAC address forwarding table according to the rules defined in G.8032.
  • SF R-APS
  • Node3 and node4 receive the R-APS (SF) message for the third time, and restore the unknown packet rate limit of the device. At this point, the network is already in a stable state of protection.
  • SF R-APS
  • the RPL-owner node node4 sends a message to notify the faulty node to recover the unknown packet rate limit value of the device.
  • node1 and node2 After receiving the message, node1 and node2 restore the unknown packet rate limit of the device.
  • a new message can be designed to notify the failed node, and the unknown packet rate limit value is restored. Since some reserved fields in the specific information field in the R-APS PDU field are unused, As shown in FIG. 4, these fields can be used to represent the message. For example, the status reserved bit in the status field in the R-APS specific information format in FIG. 5 can be used, and the status reserved bit is set to 00001 to indicate recovery. Unknown packet speed limit value message.
  • node1 and node2 After detecting the link fault recovery, node1 and node2 set the device's unknown packet rate limit to an unlimited speed; periodically send an R-APS (NR) message to notify other ring network nodes of link fault recovery.
  • R-APS NR
  • Node3 and node4 receive the R-APS (NR) message, and set the device's unknown packet rate limit to an unlimited speed; the RPL-owner node node4 turns on the WTR timer.
  • R-APS NR
  • Node2 receives the R-APS (NR) message from node1 and opens the port where the link failed before (according to the G.8032 protocol, the node ID of node2 is assumed to be greater than the node ID of node1).
  • NR R-APS
  • the WTR timer of the RPL-owner node node4 expires, the RPL-owner port is closed, the R-APS (NR, RB) message is sent, and the MAC address forwarding table is cleared.
  • Each node receives an R-APS (NR, RB) message, and clears the MAC address forwarding table according to the rules defined in G.8032;
  • Node1 receives the R-APS (NR, RB) message, starts the port with the link failure before, and stops sending the R-APS (NR) message.
  • each node receives the R-APS (NR, RB) message a second time, and the second received R-APS (NR, RB) message is used to notify each ring network node to recover each node.
  • Unknown packet speed limit value Unknown packet speed limit value.
  • the embodiment provides a node device, which can implement the method in the foregoing Embodiment 1, where the node device includes at least a first unit and a second unit.
  • the first unit is configured to configure the unknown packet of the system to be an unlimited speed during the switching of the ring network
  • the second unit is configured to restore the system's unknown packet rate limiting function after the ring network is switched.
  • the node device provided in this embodiment can implement the method in the foregoing embodiment. Therefore, for the other operations of the node device, refer to the corresponding content in the first embodiment, and details are not described herein again.
  • the embodiment of the invention further provides a computer readable storage medium, which stores computer executable instructions, and when the computer executable instructions are executed, implements the ring network switching method according to the first embodiment.
  • a program to instruct related hardware such as a processor, which may be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Wait.
  • all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits.
  • the module/unit (processor) in the foregoing embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, being stored in the memory by a processor.
  • the program/instruction in it to implement its corresponding function This application is not limited to any specific combination of hardware and software.
  • the embodiment of the present application provides a ring network switching method and a node device, which can improve the switching performance of the ring network without affecting the security of the system, and the implementation of the solution is extremely simple, and does not bring additional overhead to the system. It is easy to implement in related network devices.

Abstract

A ring network switching method, comprising: during the switching process of a ring network, each ring network node configuring an unknown package of a system to have no speed limit, and until the switching of the ring network is completed, each ring network node recovering a speed limit function of the unknown package of the system. Also disclosed is a node device. In the technical solution, during the switching of a ring network, an unknown package of a system is automatically set to have no speed limit, and after the switching is completed, a speed limit function of the system is recovered. In this way, the switching performance of a ring network is improved, without affecting the security of a system.

Description

一种节点设备及环网切换方法Node device and ring network switching method 技术领域Technical field
本申请涉及但不限于网络通信领域,特别涉及一种环形保护网络的切换方案。The present application relates to, but is not limited to, the field of network communications, and in particular, to a handover scheme of a ring protection network.
背景技术Background technique
环网保护协议(以G.8032描述的ERPS(Ethernet Ring Protection Switching,以太环网保护切换)协议为例)在网络正常时阻塞RPL(Ring Protection Link环网保护链路),检测到链路故障后阻塞故障链路,打开RPL链路,以实现业务保护和快速切换的功能。环网的切换主要发生在以下场景(这里以ERPS环网工作在返回模式为例进行说明):环网检测到链路故障;环网链路故障恢复;人工或强制切换环网节点;清除人工或强制切换环网节点。环网的切换过程中,涉及到链路故障检测,环网协议状态机处理,协议报文传输、端口的关闭和打开、MAC(Media Access Control,介质访问控制)地址转发表的清理和重新学习等,因此会造成环网业务的中断,对用户而言最直观的表现就是在环网发生切换的时候,出现报文丢包。The ring network protection protocol (the ERPS (Ethernet Ring Protection Switching) protocol described in G.8032 is used as an example.) The RPL (Ring Protection Link ring protection link) is blocked when the network is normal, and the link fault is detected. After the faulty link is blocked, the RPL link is opened to implement service protection and fast switching. The ring network switching mainly occurs in the following scenarios (here, the ERPS ring network works in the return mode as an example): the ring network detects the link fault; the ring network link fails to recover; manually or forcibly switches the ring network node; Or force the ring node to switch. During the ring network switching process, link fault detection, ring network protocol state machine processing, protocol packet transmission, port shutdown and opening, and MAC (Media Access Control) address forwarding table cleaning and re-learning are involved. Etc., therefore, the ring network service is interrupted. The most intuitive performance for the user is that packet loss occurs when the ring network is switched.
根据目前G.8032的要求,环网的切换时间必须小于50毫秒,并且这个切换时间应是越短越好。但是,在使用环网保护的现实组网环境中,通常会开启未知包限速(这是防攻击的一种安全措施,也是对报文转发的带宽提供的一种保障)。在环网切换时,由于涉及到网络拓扑的变化,每个网络节点需要清除二层转发表,这使得原本在环网上的业务报文变成了未知包,报文就会被系统设置的未知包限速功能限速,导致丢包严重,特别是当环网切换前的报文速率较大时,丢包更明显,环网的切换性能就会变差(切换时间会变长)甚至无法满足50毫秒的性能要求。According to the current requirements of G.8032, the switching time of the ring network must be less than 50 milliseconds, and the switching time should be as short as possible. However, in a real-world networking environment where ring network protection is used, the rate limit of unknown packets is usually enabled. This is a security measure for attack defense and a guarantee for the bandwidth of packet forwarding. When the ring network is switched, each network node needs to clear the Layer 2 forwarding table because of changes in the network topology. This causes the service packets originally on the ring network to become unknown packets, and the packets are unknown by the system. The rate limit of the packet rate limit is severe, which causes serious packet loss. In particular, when the packet rate before the ring network is switched, the packet loss is more obvious, and the switching performance of the ring network becomes worse (the switching time becomes longer). Meet the performance requirements of 50 milliseconds.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。 The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本申请提供一种节点设备及环网切换方法,可以解决相关环网切换过程中未知包限速功能造成的切换性能差的问题。The present invention provides a node device and a ring network switching method, which can solve the problem of poor handover performance caused by the unknown packet rate limiting function in the related ring network switching process.
本申请公开一种环网切换方法,该方法包括:The present application discloses a ring network switching method, which includes:
环网发生切换的过程中,每个环网节点将系统的未知包配置为不限速,直到环网的切换完成后,每个环网节点恢复系统的未知包限速功能。During the switching of the ring network, each ring network node configures the unknown packets of the system to an unlimited speed. After the ring network is switched, each ring network node recovers the unknown packet rate limit function of the system.
可选地,上述方法中,环网发生切换的过程中,每个环网节点将系统的未知包配置为不限速,直到环网的切换完成后,每个环网节点恢复未知包限速功能的过程包括:Optionally, in the foregoing method, in the process of switching the ring network, each ring network node configures the unknown packet of the system to an unlimited speed, and after the ring network is switched, each ring network node recovers the unknown packet rate limit. The functional process includes:
环网检测到链路故障时,故障节点通知其他环网节点链路故障,环网进行切换;When the ring network detects a link fault, the faulty node notifies other ring network nodes that the link is faulty, and the ring network switches.
所述故障节点和接收到链路故障通知的所有环网节点将系统的未知包配置为不限速;The faulty node and all ring network nodes that receive the link failure notification configure the unknown packet of the system to an unlimited speed;
当环网的切换完成,环网处于稳定的故障状态时,每个环网节点恢复系统的未知包限速功能。When the ring network is switched and the ring network is in a stable fault state, each ring network node recovers the unknown packet rate limit function of the system.
可选地,上述方法中,环网发生切换的过程中,每个环网节点将系统的未知包配置为不限速,直到环网的切换完成后,每个环网节点恢复未知包限速功能的过程包括:Optionally, in the foregoing method, in the process of switching the ring network, each ring network node configures the unknown packet of the system to an unlimited speed, and after the ring network is switched, each ring network node recovers the unknown packet rate limit. The functional process includes:
环网故障恢复时,故障恢复节点通知其他环网节点链路故障恢复,环网进行切换;When the ring network recovers, the fault recovery node notifies the other ring network nodes that the link is faulty and the ring network switches.
所述故障恢复节点和接收到链路故障恢复通知的所有环网节点将系统的未知包配置为不限速;The fault recovery node and all ring network nodes that receive the link failure recovery notification configure the unknown packet of the system to an unlimited speed;
所述环网保护链路(RPL)自主节点接收到链路故障恢复通知,在定时器事件结束后通知所有环网节点恢复系统的未知包限速功能。The ring network protection link (RPL) autonomous node receives the link failure recovery notification, and notifies all ring network nodes to restore the system's unknown packet rate limiting function after the timer event ends.
可选地,上述方法中,所述RPL自主节点在定时器事件结束后通知所有环网节点恢复系统的未知包限速功能的过程包括:Optionally, in the foregoing method, the process that the RPL autonomous node notifies all ring network nodes to recover the unknown packet rate limiting function after the timer event ends includes:
所述RPL自主节点在定时器定时时间到时首次发送环网保护倒换恢复R-APS(NR,RB)消息,定时器事件结束,再次发送R-APS(NR,RB)消息,通知每个环网节点恢复系统的未知包限速功能。 The RPL autonomous node first sends a ring protection switch to restore the R-APS (NR, RB) message when the timer expires, the timer event ends, and the R-APS (NR, RB) message is sent again to notify each ring. The network node recovers the system's unknown packet rate limit function.
可选地,上述方法中,环网发生切换的过程中,每个环网节点将系统的未知包配置为不限速,直到环网的切换完成后,每个环网节点恢复未知包限速功能的过程包括:Optionally, in the foregoing method, in the process of switching the ring network, each ring network node configures the unknown packet of the system to an unlimited speed, and after the ring network is switched, each ring network node recovers the unknown packet rate limit. The functional process includes:
人工切换环网节点端口时,被人为切换的节点发送指示人工切换(MS)的R-APS(Ring-Automatic Protection Switching,环网自动保护倒换)消息给其他环网节点,环网进行切换;When manually switching the node port of the ring network, the R-APS (Ring-Automatic Protection Switching) message indicating the manual switching (MS) is sent to the other ring network node and the ring network is switched.
人工切换的节点和收到所述R-APS消息的所有环网节点将系统的未知包配置为不限速;The manually switched node and all the ring network nodes that receive the R-APS message configure the unknown packet of the system to an unlimited speed;
当环网人工切换完成后,所有环网节点恢复系统的未知包限速功能。When the ring network is manually switched, all ring nodes restore the system's unknown packet rate limit function.
可选地,上述方法中,环网发生切换的过程中,每个环网节点将系统的未知包配置为不限速,直到环网的切换完成后,每个环网节点恢复未知包限速功能的过程包括:Optionally, in the foregoing method, in the process of switching the ring network, each ring network node configures the unknown packet of the system to an unlimited speed, and after the ring network is switched, each ring network node recovers the unknown packet rate limit. The functional process includes:
清除人工切换时,被清除人工切换的节点发送R-APS(NR)消息给其他环网节点,环网进行切换;When the manual switching is cleared, the node that is manually switched off sends an R-APS (NR) message to other ring network nodes, and the ring network switches.
清除人工切换的节点和收到所述R-APS(NR)消息的所有环网节点将系统的未知包设置为不限速;Clearing the manually switched node and all ring nodes receiving the R-APS (NR) message set the unknown packet of the system to an unlimited speed;
RPL自主节点接收到所述R-APS(NR)消息,在定时器定时时间到时,发送R-APS(NR,RB)消息给所有环网节点并阻塞PRL链路;The RPL autonomous node receives the R-APS (NR) message, and sends an R-APS (NR, RB) message to all ring network nodes and blocks the PRL link when the timer expires;
接收到所述R-APS(NR,RB)消息的环网节点解除由于人工切换命令导致的阻塞;The ring network node that receives the R-APS (NR, RB) message releases the blocking caused by the manual switching command;
环网节点解除阻塞后,所述RPL自主节点通知清除人工切换的节点和所有环网节点恢复系统的未知包限速功能。After the ring network node is unblocked, the RPL autonomous node notifies the node that clears the manual switch and all the ring network nodes to recover the unknown packet rate limit function of the system.
可选地,上述方法中,所述RPL自主节点通知清除人工切换的节点和所有环网节点恢复系统的未知包限速功能的过程包括:Optionally, in the foregoing method, the process for the RPL autonomous node to notify the node that clears the manual handover and all the ring network nodes to recover the unknown packet rate limit function of the system includes:
所述RPL自主节点通过再次发送R-APS(NR,RB)消息以通知清除人工切换的节点和所有环网节点恢复系统的未知包限速功能。The RPL autonomous node notifies the clearing of the manually switched node and all ring network nodes to recover the unknown packet rate limiting function by resending the R-APS (NR, RB) message.
可选地,上述方法中,环网发生切换的过程中,每个环网节点将系统的未知包配置为不限速,直到环网的切换完成后,每个环网节点恢复未知包限 速功能的过程包括:Optionally, in the foregoing method, in the process of switching the ring network, each ring network node configures the unknown packet of the system to an unlimited speed, and after the ring network is switched, each ring network node recovers the unknown packet limit. The speed function process includes:
强制切换环网节点端口时,被强制切换的节点发送指示强制切换(FS)的R-APS消息给所有环网节点,环网进行切换;When forcibly switching the ring network node port, the node that is forcibly switched sends an R-APS message indicating the forced switching (FS) to all ring network nodes, and the ring network switches.
强制切换的节点和收到所述R-APS消息的所有环网节点将系统的未知包配置为不限速;The node that is forcibly switched and all the ring network nodes that receive the R-APS message configure the unknown packet of the system to an unlimited speed;
当环网强制切换完成后,所有环网节点恢复系统的未知包限速功能。After the ring network forced switchover is completed, all ring network nodes recover the system's unknown packet rate limit function.
可选地,上述方法中,环网发生切换的过程中,每个环网节点将系统的未知包配置为不限速,直到环网的切换完成后,每个环网节点恢复未知包限速功能的过程包括:Optionally, in the foregoing method, in the process of switching the ring network, each ring network node configures the unknown packet of the system to an unlimited speed, and after the ring network is switched, each ring network node recovers the unknown packet rate limit. The functional process includes:
清除强制切换时,被清除强制切换的节点发送R-APS(NR)消息给所有环网节点,环网进行切换;When the forced switchover is cleared, the node that is cleared forcibly switches sends an R-APS (NR) message to all ring network nodes, and the ring network switches.
清除强制切换的节点或收到所述R-APS(NR)消息的所有环网节点将系统的未知包配置为不限速;Clearing the node that is forcibly switched or all ring nodes that receive the R-APS (NR) message configure the unknown packet of the system to an unlimited speed;
RPL自主节点接收到所述R-APS(NR)消息,在定时器事件超时后,发送R-APS(NR,RB)消息并阻塞PRL链路;Receiving, by the RPL autonomous node, the R-APS (NR) message, after the timer event expires, sending an R-APS (NR, RB) message and blocking the PRL link;
接收到所述R-APS(NR,RB)消息的环网节点解除由于强制切换命令导致的阻塞;The ring network node that receives the R-APS (NR, RB) message releases the blocking caused by the forced switching command;
解除阻塞后,所述RPL自主节点通知清除强制切换的节点和所有环网节点恢复系统的未知包限速功能。After the congestion is released, the RPL autonomous node notifies the node that clears the forced handover and all the ring network nodes to recover the unknown packet rate limiting function of the system.
可选地,上述方法中,所述RPL自主节点通知清除强制切换的节点和所有环网节点恢复系统的未知包限速功能的过程包括:Optionally, in the foregoing method, the process for the RPL autonomous node to notify the node that clears the forced handover and all the ring network nodes to recover the unknown packet rate limiting function of the system includes:
所述RPL自主节点通过再次发送R-APS(NR,RB)消息通知清除强制切换的节点和所有环网节点恢复系统的未知包限速功能。The RPL autonomous node notifies the node that has forcibly switched and all the ring network nodes to recover the unknown packet rate limiting function by resending the R-APS (NR, RB) message.
本申请还公开了一种节点设备,该设备包括:The application also discloses a node device, which includes:
第一单元,设置为在环网发生切换的过程中,将系统的未知包配置为不限速;The first unit is configured to configure the unknown packet of the system to be an unlimited speed during the switching of the ring network;
第二单元,设置为在环网的切换完成后,恢复系统的未知包限速功能。 The second unit is configured to restore the system's unknown packet rate limiting function after the ring network is switched.
可选地,上述节点设备中,所述环网发生切换的过程包括如下一种或多种:Optionally, in the foregoing node device, the process of switching the ring network includes one or more of the following:
环网检测到链路故障时进行的环网切换;Ring network switching when the ring network detects a link fault;
环网故障恢复时进行的环网切换;Ring network switching when the ring network recovers;
人工切换环网节点端口时进行的环网切换;Ring network switching when manually switching the ring node port;
清除人工切换时进行的环网切换;Clearing the ring network switching performed during manual switching;
强制切换环网节点端口时进行的环网切换;Ring network switching when the ring network node port is forcibly switched;
清除强制切换时进行的环网切换。Clear the ring switch performed during forced switching.
本申请还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述环网切换方法。The present application also provides a computer readable storage medium storing computer executable instructions that, when executed, implement the ring switching method described above.
本申请技术方案,在环网切换时,自动设置系统未知包不限速,在切换完成后再恢复系统的限速功能。这样既能提高环网的切换性能,又不影响系统的安全性,并且本方案实施极为简单,不会给系统带来额外的开销,在相关网络设备中很容易实施。In the technical solution of the present application, when the ring network is switched, the system unknown packet is automatically set to an unlimited speed, and the speed limit function of the system is restored after the handover is completed. In this way, the switching performance of the ring network can be improved without affecting the security of the system, and the implementation of the solution is extremely simple, and does not bring additional overhead to the system, and is easily implemented in related network devices.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1是本发明实施例的环网切换方法的流程图;1 is a flowchart of a ring network switching method according to an embodiment of the present invention;
图2是本发明实施例中正常工作状态的组网示意图;2 is a schematic diagram of networking in a normal working state according to an embodiment of the present invention;
图3是本发明实施例中环网出现链路故障的组网示意图;3 is a schematic diagram of networking of a link failure in a ring network according to an embodiment of the present invention;
图4为本发明实施例中R-APS PDU(Protocol Data Unit,协议数据单元)报文格式示意图;4 is a schematic diagram of a format of a R-APS PDU (Protocol Data Unit) packet according to an embodiment of the present disclosure;
图5为图4所示R-APS PDU报文中R-APS特定信息格式示意图;5 is a schematic diagram of a format of R-APS specific information in the R-APS PDU packet shown in FIG. 4;
图6为本发明实施例的节点设备的示意图。FIG. 6 is a schematic diagram of a node device according to an embodiment of the present invention.
本发明的实施方式Embodiments of the invention
下文将结合附图对本申请技术方案作进一步详细说明。需要说明的是, 在不冲突的情况下,本申请的实施例和实施例中的特征可以任意相互组合。The technical solutions of the present application will be further described in detail below with reference to the accompanying drawings. It should be noted, The features of the embodiments and the embodiments of the present application may be combined with each other arbitrarily without conflict.
实施例一 Embodiment 1
如图1所示,本实施例提供一种环网切换方法,包括如下操作:As shown in FIG. 1 , this embodiment provides a ring network switching method, including the following operations:
环网发生切换的过程中,每个环网节点将系统的未知包配置为不限速,直到环网的切换完成后,每个环网节点恢复系统的未知包限速功能。During the switching of the ring network, each ring network node configures the unknown packets of the system to an unlimited speed. After the ring network is switched, each ring network node recovers the unknown packet rate limit function of the system.
其中,本实施例所涉及的环网切换包括各种情况触发的环网切换,例如如下几种:The ring network switching involved in this embodiment includes ring network switching triggered by various conditions, for example, the following types:
一、环网检测到链路故障时进行的环网切换。1. The ring network is switched when the ring network detects a link fault.
环网检测到链路故障时,故障节点会发送R-APS(SF)消息通知其他环网节点链路故障(即可认为开始进行环网切换),发生故障的节点和接收到该消息的所有环网节点将系统的未知包限速值设置为不限速;When the ring network detects a link failure, the faulty node sends an R-APS (SF) message to notify other ring network nodes of the link failure (that is, the ring network switch is considered to start), the failed node and all the messages received. The ring network node sets the system's unknown packet rate limit value to an unlimited speed;
环网处于稳定的故障状态时(即可认为环网切换完成),恢复系统的未知包限速值(即为恢复系统的未知包限速功能,后文中恢复系统的未知包限速值即为恢复系统的未知包限速功能)。When the ring network is in a stable fault state (that is, the ring network switching is completed), the unknown packet speed limit value of the system is restored (that is, the speed limit function of the unknown packet of the recovery system is restored, and the unknown packet speed limit value of the recovery system in the following is Restore the system's unknown packet speed limit function).
二、环网故障恢复时进行的环网切换。2. Ring network switching during ring network recovery.
环网故障恢复时,故障恢复节点会发送R-APS(NR)消息通知其他环网节点链路故障恢复(即可认为开始进行环网切换),故障恢复节点和接收到该消息的所有环网节点将系统的未知包限速值设置为不限速;When the ring network recovers, the fault recovery node sends an R-APS (NR) message to notify other ring network nodes of link failure recovery (ie, it can be considered to start ring network switching), the fault recovery node and all rings that receive the message. The node sets the system's unknown packet rate limit value to an unlimited speed;
RPL自主(RPL owner)节点接收到R-APS(NR)消息,在某个定时器事件结束后会通知所有环网节点恢复系统的未知包限速值。可选地,RPL owner节点的定时器为周期定时器,例如WTR(Wait to Restore,等待恢复)定时器,即WTR定时器时间到,RPL owner节点开始周期性发送R-APS(NR,RB)消息,每个节点收到R-APS(NR,RB)消息后开始处理转发表清除等动作,此定时器事件结束后,RPL owner节点可以定期再次发送R-APS(NR,RB)消息以通知每个环网节点恢复系统的未知包限速值,这样,当每个环网节点第二次收到R-APS(NR,RB)消息,RPL owner节点和再次接收到R-APS(NR,RB)消息的所有环网节点恢复系统的未知包限速值。The RPL owner node receives the R-APS (NR) message and notifies all ring nodes to recover the system's unknown packet rate limit value after a timer event ends. Optionally, the timer of the RPL owner node is a periodic timer, for example, a WTR (Wait to Restore) timer, that is, the WTR timer expires, and the RPL owner node starts to periodically send the R-APS (NR, RB). The message, after receiving the R-APS (NR, RB) message, each node starts to process the forwarding table clearing. After the timer event ends, the RPL owner node can periodically send an R-APS (NR, RB) message to notify. Each ring network node recovers the system's unknown packet rate limit value. Thus, when each ring network node receives the R-APS (NR, RB) message for the second time, the RPL owner node receives the R-APS again (NR, All ring nodes of the RB) message recover the unknown packet rate limit value of the system.
三、人工切换环网节点端口时进行的环网切换。 3. Ring network switching when manually switching the ring network node port.
人工切换环网节点端口时,被人为切换的节点会发送指示人工切换(MS)的R-APS消息(即可认为开始进行环网切换),人工切换的节点和收到该消息的所有环网节点将系统的未知包限速值设置为不限速;When manually switching the ring node port, the node that is manually switched will send an R-APS message indicating the manual handover (MS) (ie, it can be considered to start the ring network handover), the manually switched node and all the rings that receive the message. The node sets the system's unknown packet rate limit value to an unlimited speed;
环网人工切换完成后,恢复系统的未知包限速值。After the manual switching of the ring network is completed, the system's unknown packet rate limit value is restored.
四、清除人工切换时进行的环网切换。4. Clear the ring network switching performed during manual switching.
清除人工切换时,被清除人工切换的节点会发送R-APS(NR)消息(即可认为开始进行环网切换),清除人工切换的节点或收到该消息的所有环网节点将系统的未知包限速值设置为不限速;When the manual switch is cleared, the node that is manually cleared will send an R-APS (NR) message (that is, start ring network switch), and the node that is manually switched or all ring nodes that receive the message will be unknown. The packet speed limit value is set to an unlimited speed;
RPL owner节点接收到R-APS(NR)消息,在某个定时器事件超时后,会发送R-APS(NR,RB)消息并阻塞PRL链路,这样,收到R-APS(NR,RB)消息的环网节点会解除由于人工切换命令导致的阻塞,随后RPL owner节点通知所有环网节点恢复系统的未知包限速值。可选地,RPL owner节点可以通过再次发送R-APS(NR,RB)消息以通知每个环网节点恢复系统的未知包限速值,而每个环网节点第二次收到R-APS(NR,RB)消息时恢复系统的未知包限速值即可。The RPL owner node receives the R-APS (NR) message, and after a timer event expires, it sends an R-APS (NR, RB) message and blocks the PRL link, thus receiving the R-APS (NR, RB). The ring node of the message will cancel the blocking caused by the manual switching command, and then the RPL owner node notifies all ring nodes to restore the system's unknown packet rate limit value. Optionally, the RPL owner node may notify each ring network node to recover the unknown packet rate limit value by sending an R-APS (NR, RB) message again, and each ring network node receives the R-APS for the second time. (NR, RB) message can restore the system's unknown packet speed limit value.
五、强制切换环网节点端口时进行的环网切换。5. Ring network switching when the switch of the ring network node port is forcibly switched.
强制切换环网节点端口时,被强制切换的节点会发送指示强制切换(FS)的R-APS消息(即可认为开始进行环网切换),强制切换的节点和收到该消息的所有环网节点将系统的未知包限速值设置为不限速;When forcibly switching the ring network node port, the node that is forcibly switched will send an R-APS message indicating forced switching (FS) (that is, it can be considered to start ring network switching), the node that is forced to switch, and all rings that receive the message. The node sets the system's unknown packet rate limit value to an unlimited speed;
环网强制切换完成后,恢复系统的未知包限速值。After the ring network forced switchover is completed, the system's unknown packet rate limit value is restored.
六、清除强制切换时进行的环网切换。6. Clear the ring network switching when forced switching.
清除强制切换时,被清除强制切换的节点会发送R-APS(NR)消息(即可认为开始进行环网切换),清除强制切换的节点或收到该消息的所有环网节点将系统的未知包限速值设置为不限速;When the forced switchover is cleared, the node that is cleared for forced handover will send an R-APS (NR) message (that is, it can be considered to start the ring network handover), and the node that is forcibly switched or all ring nodes that receive the message will be unknown. The packet speed limit value is set to an unlimited speed;
RPL owner节点接收到R-APS(NR)消息,在某个定时器事件超时后,发送R-APS(NR,RB)消息并阻塞PRL链路;接收到R-APS(NR,RB)消息的环网节点解除由于强制切换命令导致的阻塞,至此清除强制切换完成,RPL owner节点通知每个环网节点恢复系统的未知包限速值即可。可选地,RPL  owner节点可以通过再次发送R-APS(NR,RB)消息以通知每个环网节点恢复系统的未知包限速功能。The RPL owner node receives the R-APS (NR) message, sends an R-APS (NR, RB) message and blocks the PRL link after a timer event times out; receives the R-APS (NR, RB) message. The ring network node cancels the blocking caused by the forced switching command. At this point, the clearing of the forced switching is completed, and the RPL owner node notifies each ring network node to restore the system's unknown packet rate limit value. Optionally, RPL The owner node can notify each ring node to recover the unknown packet rate limiting function of the system by sending an R-APS (NR, RB) message again.
另外,环网中每个节点需要记录该系统当前的未知包限速值,若用户修改该限速值,环网节点也需要更新该限速值,当环网切换完成后,环网节点按照更新的限速值恢复系统的未知包限速功能即可。In addition, each node in the ring network needs to record the current unknown rate limit value of the system. If the user changes the speed limit value, the ring network node also needs to update the rate limit value. When the ring network switch is completed, the ring network node follows the ring network node. The updated speed limit value restores the system's unknown packet speed limit function.
以下结合附图对技术方案的实施做进一步的详细描述(这里仅以最常见的链路故障发现和恢复来说明环网切换时关于未知包限速的处理,其他场景的切换处理与之类似,不具体说明)。本申请对本领域技术人员熟知的部分未进行表述或者未进行详细描述,各种操作将按照顺序使用多个分离的步骤进行描述。The implementation of the technical solution is further described in detail below with reference to the accompanying drawings. Here, only the most common link failure detection and recovery is used to describe the processing of the unknown packet rate limit during the ring network switching, and the switching processing of other scenarios is similar. Not specified). The present application is not described or described in detail by those skilled in the art, and the various operations will be described in a plurality of separate steps in sequence.
本发明实施例的一般组网如图2,若干台设备组成环网并运行ERPS环网保护协议,其中,RPL链路可以配置成环网中任意两台设备之间的链路。正常工作时RPL链路上的端口处于阻塞状态。组网中节点(node)1、node2、node3、node4节点组成环网,RPL链路为node3和node4之间的链路,node4上的端口为owner节点。DUT1和DUT2模拟现网中需要通信的两个网元设备,端口分别与测试仪的两个端口相连,测试仪模拟收发包。一般应用中,系统是设置未知包限速的,测试仪端口A和B之间的报文是已知包,不受未知包限速控制。每个环网中的节点都记录了系统当前的未知包限速值。The general networking of the embodiment of the present invention is as shown in FIG. 2. A plurality of devices form a ring network and run an ERPS ring network protection protocol. The RPL link can be configured as a link between any two devices in the ring network. The port on the RPL link is blocked during normal operation. In the networking, nodes 1, node 2, node 3, and node 4 form a ring network. The RPL link is the link between node 3 and node 4. The port on node 4 is the owner node. DUT1 and DUT2 simulate two network element devices that need to communicate in the live network. The ports are respectively connected to the two ports of the tester, and the tester simulates the transceiver package. In the general application, the system sets the speed limit of the unknown packet, and the message between the tester ports A and B is a known packet, and is not subject to the speed limit control of the unknown packet. The nodes in each ring record the current unknown packet rate limit of the system.
正常情况下,测试仪的端口A和B之间通过DUT1—node4—node1—node2—node3—DUT2进行通信,如图2所示;当环网中的非RPL链路出现故障时,测试仪的端口A和B之间通过DUT1—node4—node3—DUT2进行通信,如图3所示。Under normal circumstances, the tester's ports A and B communicate through DUT1—node4—node1—node2—node3—DUT2, as shown in Figure 2; when the non-RPL link in the ring network fails, the tester's Ports A and B communicate through DUT1—node4—node3—DUT2, as shown in Figure 3.
环网链路检测到故障时的处理流程如下:The processing flow when the ring link detects a fault is as follows:
node1和node2检测到链路故障后,设置设备的未知包限速为不限速;阻塞故障端口,清空MAC地址转发表;周期性发送R-APS(SF)消息通知其他环网节点链路故障。After detecting a link fault, node1 and node2 set the device's unknown packet rate limit to an unlimited speed; block the faulty port and clear the MAC address forwarding table; periodically send an R-APS (SF) message to notify other ring network nodes of the link fault. .
node3和node4第一次收到R-APS(SF)消息,设置设备的未知包限速为不限速;清空MAC地址转发表;node4是RPL-owner节点,解除node4节点端口的阻塞。 Node3 and node4 receive the R-APS (SF) message for the first time, set the device's unknown packet rate limit to unlimited speed; clear the MAC address forwarding table; node4 is the RPL-owner node, and the node4 node port is blocked.
node3和node4第二次收到R-APS(SF)消息,根据G.8032中定义规则触发逻辑清空MAC地址转发表。Node3 and node4 receive the R-APS (SF) message for the second time, and trigger the logic to clear the MAC address forwarding table according to the rules defined in G.8032.
node3和node4第三次收到R-APS(SF)消息,恢复设备的未知包限速值。此时网络已经处于稳定的保护状态。Node3 and node4 receive the R-APS (SF) message for the third time, and restore the unknown packet rate limit of the device. At this point, the network is already in a stable state of protection.
RPL-owner节点node4发送消息通知故障节点恢复设备的未知包限速值。The RPL-owner node node4 sends a message to notify the faulty node to recover the unknown packet rate limit value of the device.
node1和node2收到该消息后,恢复设备的未知包限速值。After receiving the message, node1 and node2 restore the unknown packet rate limit of the device.
需要说明的是,此处可以设计一种新的消息用于通知发生故障的节点,恢复未知包限速值,由于R-APS PDU字段中的特定信息字段中有一些保留字段是未使用的,如图4所示,因此可以利用这些字段来表示该消息,比如可以使用图5中R-APS特定信息格式中的状态字段中的状态预留位,将状态预留位设置为00001来表示恢复未知包限速值消息。It should be noted that, here, a new message can be designed to notify the failed node, and the unknown packet rate limit value is restored. Since some reserved fields in the specific information field in the R-APS PDU field are unused, As shown in FIG. 4, these fields can be used to represent the message. For example, the status reserved bit in the status field in the R-APS specific information format in FIG. 5 can be used, and the status reserved bit is set to 00001 to indicate recovery. Unknown packet speed limit value message.
环网链路故障恢复(环网节点node1和node2之间的链路故障恢复)时的处理流程如下:The processing flow when the ring link fault recovery (link failure recovery between the ring node node1 and node2) is as follows:
node1和node2检测到链路故障恢复后,设置设备的未知包限速值为不限速;周期性发送R-APS(NR)消息通知其他环网节点链路故障恢复。After detecting the link fault recovery, node1 and node2 set the device's unknown packet rate limit to an unlimited speed; periodically send an R-APS (NR) message to notify other ring network nodes of link fault recovery.
node3和node4接收到R-APS(NR)消息,设置设备的未知包限速为不限速;RPL-owner节点node4开启WTR定时器。Node3 and node4 receive the R-APS (NR) message, and set the device's unknown packet rate limit to an unlimited speed; the RPL-owner node node4 turns on the WTR timer.
node2收到node1的R-APS(NR)消息,开启之前出现链路故障的端口(根据G.8032协议规定,这里假定node2的节点ID大于node1的节点ID)。Node2 receives the R-APS (NR) message from node1 and opens the port where the link failed before (according to the G.8032 protocol, the node ID of node2 is assumed to be greater than the node ID of node1).
RPL-owner节点node4的WTR定时器定时时间到,关闭RPL-owner端口,发送R-APS(NR,RB)消息,清空MAC地址转发表。The WTR timer of the RPL-owner node node4 expires, the RPL-owner port is closed, the R-APS (NR, RB) message is sent, and the MAC address forwarding table is cleared.
每个节点收到R-APS(NR,RB)消息,根据G.8032中定义规则清空MAC地址转发表;Each node receives an R-APS (NR, RB) message, and clears the MAC address forwarding table according to the rules defined in G.8032;
node1收到R-APS(NR,RB)消息,开启之前出现链路故障的端口,停止发送R-APS(NR)消息;Node1 receives the R-APS (NR, RB) message, starts the port with the link failure before, and stops sending the R-APS (NR) message.
随后,每个节点会第二次收到R-APS(NR,RB)消息,此第二次收到的R-APS(NR,RB)消息用于通知每个环网节点恢复每个节点的未知包限速值。 Subsequently, each node receives the R-APS (NR, RB) message a second time, and the second received R-APS (NR, RB) message is used to notify each ring network node to recover each node. Unknown packet speed limit value.
实施例二 Embodiment 2
如图6所示,本实施例提供一种节点设备,可实现上述实施例一的方法,所述节点设备至少包括第一单元和第二单元。As shown in FIG. 6, the embodiment provides a node device, which can implement the method in the foregoing Embodiment 1, where the node device includes at least a first unit and a second unit.
第一单元,设置为在环网发生切换的过程中,将系统的未知包配置为不限速;The first unit is configured to configure the unknown packet of the system to be an unlimited speed during the switching of the ring network;
第二单元,设置为在环网的切换完成后,恢复系统的未知包限速功能。The second unit is configured to restore the system's unknown packet rate limiting function after the ring network is switched.
本实施例所涉及的环网切换的过程包括如下一种或多种:The process of ring network switching involved in this embodiment includes one or more of the following:
环网检测到链路故障时进行的环网切换;Ring network switching when the ring network detects a link fault;
环网故障恢复时进行的环网切换;Ring network switching when the ring network recovers;
人工切换环网节点端口时进行的环网切换;Ring network switching when manually switching the ring node port;
清除人工切换时进行的环网切换;Clearing the ring network switching performed during manual switching;
强制切换环网节点端口时进行的环网切换;Ring network switching when the ring network node port is forcibly switched;
清除强制切换时进行的环网切换。Clear the ring switch performed during forced switching.
由于本实施例提供的节点设备可实现上述实施例一的方法,故针对节点设备的其他操作处理,可参见实施例一的相应内容,在此不再赘述。The node device provided in this embodiment can implement the method in the foregoing embodiment. Therefore, for the other operations of the node device, refer to the corresponding content in the first embodiment, and details are not described herein again.
本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现实施例一所述的环网切换方法。The embodiment of the invention further provides a computer readable storage medium, which stores computer executable instructions, and when the computer executable instructions are executed, implements the ring network switching method according to the first embodiment.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的模块/单元(处理器)可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本申请不限制于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct related hardware, such as a processor, which may be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Wait. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, the module/unit (processor) in the foregoing embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, being stored in the memory by a processor. The program/instruction in it to implement its corresponding function. This application is not limited to any specific combination of hardware and software.
以上所述,仅为本申请的较佳实例而已,并非用于限定本申请的保护范围。凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等, 均应包含在本申请的保护范围之内。The above descriptions are only preferred examples of the present application and are not intended to limit the scope of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this application, All should be included in the scope of protection of this application.
工业实用性Industrial applicability
本申请实施例提供一种环网切换方法及节点设备,既能提高环网的切换性能,又不影响系统的安全性,并且本方案实施极为简单,不会给系统带来额外的开销,在相关网络设备中很容易实施。 The embodiment of the present application provides a ring network switching method and a node device, which can improve the switching performance of the ring network without affecting the security of the system, and the implementation of the solution is extremely simple, and does not bring additional overhead to the system. It is easy to implement in related network devices.

Claims (12)

  1. 一种环网切换方法,包括:A ring network switching method includes:
    环网发生切换的过程中,每个环网节点将系统的未知包配置为不限速,直到环网的切换完成后,每个环网节点恢复系统的未知包限速功能。During the switching of the ring network, each ring network node configures the unknown packets of the system to an unlimited speed. After the ring network is switched, each ring network node recovers the unknown packet rate limit function of the system.
  2. 如权利要求1所述的方法,其中,所述环网发生切换的过程中,每个环网节点将系统的未知包配置为不限速,直到环网的切换完成后,每个环网节点恢复未知包限速功能的过程包括:The method according to claim 1, wherein in the process of switching the ring network, each ring network node configures an unknown packet of the system to an unlimited speed until after the ring network is switched, each ring network node The process of recovering the unknown packet speed limit function includes:
    环网检测到链路故障时,故障节点通知其他环网节点链路故障,环网进行切换;When the ring network detects a link fault, the faulty node notifies other ring network nodes that the link is faulty, and the ring network switches.
    所述故障节点和接收到链路故障通知的所有环网节点将系统的未知包配置为不限速;The faulty node and all ring network nodes that receive the link failure notification configure the unknown packet of the system to an unlimited speed;
    当环网的切换完成,环网处于稳定的故障状态时,每个环网节点恢复系统的未知包限速功能。When the ring network is switched and the ring network is in a stable fault state, each ring network node recovers the unknown packet rate limit function of the system.
  3. 如权利要求1或2所述的方法,其中,所述环网发生切换的过程中,每个环网节点将系统的未知包配置为不限速,直到环网的切换完成后,每个环网节点恢复未知包限速功能的过程包括:The method according to claim 1 or 2, wherein in the process of switching the ring network, each ring network node configures an unknown packet of the system to an unlimited speed until after the ring network is switched, each ring The process of recovering the unknown packet rate limit function by the network node includes:
    环网故障恢复时,故障恢复节点通知其他环网节点链路故障恢复,环网进行切换;When the ring network recovers, the fault recovery node notifies the other ring network nodes that the link is faulty and the ring network switches.
    所述故障恢复节点和接收到链路故障恢复通知的所有环网节点将系统的未知包配置为不限速;The fault recovery node and all ring network nodes that receive the link failure recovery notification configure the unknown packet of the system to an unlimited speed;
    所述环网保护链路RPL自主节点接收到链路故障恢复通知,在定时器事件结束后通知所有环网节点恢复系统的未知包限速功能。The ring network protection link RPL autonomous node receives the link failure recovery notification, and notifies all ring network nodes to restore the system's unknown packet rate limiting function after the timer event ends.
  4. 如权利要求3所述的方法,其中,所述RPL自主节点在定时器事件结束后通知所有环网节点恢复系统的未知包限速功能的过程包括:The method of claim 3, wherein the process by which the RPL autonomous node notifies all ring network nodes to recover the system's unknown packet rate limiting function after the timer event ends includes:
    所述RPL自主节点在定时器定时时间到达时首次发送环网保护倒换恢复R-APS(NR,RB)消息,定时器事件结束,再次发送R-APS(NR,RB)消息,通知每个环网节点恢复系统的未知包限速功能。The RPL autonomous node first sends a ring network protection switching to recover the R-APS (NR, RB) message when the timer timing time arrives, the timer event ends, and the R-APS (NR, RB) message is sent again to notify each ring. The network node recovers the system's unknown packet rate limit function.
  5. 如权利要求3所述的方法,其中,所述环网发生切换的过程中,每个 环网节点将系统的未知包配置为不限速,直到环网的切换完成后,每个环网节点恢复未知包限速功能的过程包括:The method of claim 3, wherein during the switching of the ring network, each The ring network node configures the unknown packet of the system to an unlimited speed. After the ring network is switched, the process of restoring the unknown packet rate limit function of each ring network node includes:
    人工切换环网节点端口时,被人为切换的节点发送指示人工切换MS的环网自动保护倒换R-APS消息给其他环网节点,环网进行切换;When manually switching the node port of the ring network, the node that is manually switched sends a ring network automatic protection switching R-APS message indicating that the MS is manually switched to the other ring network node, and the ring network switches.
    人工切换的节点和收到所述R-APS消息的所有环网节点将系统的未知包配置为不限速;The manually switched node and all the ring network nodes that receive the R-APS message configure the unknown packet of the system to an unlimited speed;
    当环网人工切换完成后,所有环网节点恢复系统的未知包限速功能。When the ring network is manually switched, all ring nodes restore the system's unknown packet rate limit function.
  6. 如权利要求5所述的方法,其中,所述环网发生切换的过程中,每个环网节点将系统的未知包配置为不限速,直到环网的切换完成后,每个环网节点恢复未知包限速功能的过程包括:The method according to claim 5, wherein in the process of switching the ring network, each ring network node configures an unknown packet of the system to an unlimited speed until after the ring network is switched, each ring network node The process of recovering the unknown packet speed limit function includes:
    清除人工切换时,被清除人工切换的节点发送环网保护倒换恢复R-APS(NR)消息给其他环网节点,环网进行切换;When the manual switching is cleared, the node that is manually switched off sends a ring protection switch to restore the R-APS (NR) message to other ring network nodes, and the ring network switches.
    清除人工切换的节点和收到所述R-APS(NR)消息的所有环网节点将系统的未知包设置为不限速;Clearing the manually switched node and all ring nodes receiving the R-APS (NR) message set the unknown packet of the system to an unlimited speed;
    RPL自主节点接收到所述R-APS(NR)消息,在定时器定时时间到时,发送R-APS(NR,RB)消息给所有环网节点并阻塞PRL链路;The RPL autonomous node receives the R-APS (NR) message, and sends an R-APS (NR, RB) message to all ring network nodes and blocks the PRL link when the timer expires;
    接收到所述R-APS(NR,RB)消息的环网节点解除由于人工切换命令导致的阻塞;The ring network node that receives the R-APS (NR, RB) message releases the blocking caused by the manual switching command;
    环网节点解除阻塞后,所述RPL自主节点通知清除人工切换的节点和所有环网节点恢复系统的未知包限速功能。After the ring network node is unblocked, the RPL autonomous node notifies the node that clears the manual switch and all the ring network nodes to recover the unknown packet rate limit function of the system.
  7. 如权利要求6所述的方法,其中,所述RPL自主节点通知清除人工切换的节点和所有环网节点恢复系统的未知包限速功能的过程包括:The method of claim 6, wherein the RPL autonomous node notifies the clearing of the manually switched node and all ring network nodes to recover the unknown packet rate limiting function of the system includes:
    所述RPL自主节点通过再次发送R-APS(NR,RB)消息以通知清除人工切换的节点和所有环网节点恢复系统的未知包限速功能。The RPL autonomous node notifies the clearing of the manually switched node and all ring network nodes to recover the unknown packet rate limiting function by resending the R-APS (NR, RB) message.
  8. 如权利要求3所述的方法,其中,所述环网发生切换的过程中,每个环网节点将系统的未知包配置为不限速,直到环网的切换完成后,每个环网节点恢复未知包限速功能的过程包括:The method according to claim 3, wherein in the process of switching the ring network, each ring network node configures an unknown packet of the system to an unlimited speed until after the ring network is switched, each ring network node The process of recovering the unknown packet speed limit function includes:
    强制切换环网节点端口时,被强制切换的节点发送指示强制切换FS的环网自动保护倒换R-APS消息给所有环网节点,环网进行切换; When forcibly switching the ring network node port, the node that is forcibly switched sends a ring network automatic protection switching R-APS message indicating that the FS is forcibly switched to all ring network nodes, and the ring network switches.
    强制切换的节点和收到所述R-APS消息的所有环网节点将系统的未知包配置为不限速;The node that is forcibly switched and all the ring network nodes that receive the R-APS message configure the unknown packet of the system to an unlimited speed;
    当环网强制切换完成后,所有环网节点恢复系统的未知包限速功能。After the ring network forced switchover is completed, all ring network nodes recover the system's unknown packet rate limit function.
  9. 如权利要求3所述的方法,其中,环网发生切换的过程中,每个环网节点将系统的未知包配置为不限速,直到环网的切换完成后,每个环网节点恢复未知包限速功能的过程包括:The method according to claim 3, wherein in the process of switching the ring network, each ring network node configures the unknown packet of the system to an unlimited speed, and after the ring network switching is completed, each ring network node recovers the unknown. The process of the packet speed limit function includes:
    清除强制切换时,被清除强制切换的节点发送环网保护倒换恢复R-APS(NR)消息给所有环网节点,环网进行切换;When the forced switchover is cleared, the node that is cleared forcibly switches sends a ring protection switch to restore the R-APS (NR) message to all ring nodes, and the ring network switches.
    清除强制切换的节点或收到所述R-APS(NR)消息的所有环网节点将系统的未知包配置为不限速;Clearing the node that is forcibly switched or all ring nodes that receive the R-APS (NR) message configure the unknown packet of the system to an unlimited speed;
    RPL自主节点接收到所述R-APS(NR)消息,在定时器事件超时后,发送R-APS(NR,RB)消息并阻塞PRL链路;Receiving, by the RPL autonomous node, the R-APS (NR) message, after the timer event expires, sending an R-APS (NR, RB) message and blocking the PRL link;
    接收到所述R-APS(NR,RB)消息的环网节点解除由于强制切换命令导致的阻塞;The ring network node that receives the R-APS (NR, RB) message releases the blocking caused by the forced switching command;
    解除阻塞后,所述RPL自主节点通知清除强制切换的节点和所有环网节点恢复系统的未知包限速功能。After the congestion is released, the RPL autonomous node notifies the node that clears the forced handover and all the ring network nodes to recover the unknown packet rate limiting function of the system.
  10. 如权利要求9所述的方法,其中,所述RPL自主节点通知清除强制切换的节点和所有环网节点恢复系统的未知包限速功能的过程包括:The method of claim 9, wherein the RPL autonomous node notifies the clearing of the forcibly switched node and all of the ring network nodes to recover the system's unknown packet rate limiting function includes:
    所述RPL自主节点通过再次发送R-APS(NR,RB)消息通知清除强制切换的节点和所有环网节点恢复系统的未知包限速功能。The RPL autonomous node notifies the node that has forcibly switched and all the ring network nodes to recover the unknown packet rate limiting function by resending the R-APS (NR, RB) message.
  11. 一种节点设备,包括:A node device, comprising:
    第一单元,设置为在环网发生切换的过程中,将系统的未知包配置为不限速;The first unit is configured to configure the unknown packet of the system to be an unlimited speed during the switching of the ring network;
    第二单元,设置为在环网的切换完成后,恢复系统的未知包限速功能。The second unit is configured to restore the system's unknown packet rate limiting function after the ring network is switched.
  12. 如权利要求11所述的节点设备,其中,所述环网发生切换的过程包括如下一种或多种:The node device according to claim 11, wherein the process of switching the ring network includes one or more of the following:
    环网检测到链路故障时进行的环网切换;Ring network switching when the ring network detects a link fault;
    环网故障恢复时进行的环网切换; Ring network switching when the ring network recovers;
    人工切换环网节点端口时进行的环网切换;Ring network switching when manually switching the ring node port;
    清除人工切换时进行的环网切换;Clearing the ring network switching performed during manual switching;
    强制切换环网节点端口时进行的环网切换;Ring network switching when the ring network node port is forcibly switched;
    清除强制切换时进行的环网切换。 Clear the ring switch performed during forced switching.
PCT/CN2016/092372 2016-03-03 2016-07-29 Node device and ring network switching method WO2017148093A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610122087.9A CN107154886A (en) 2016-03-03 2016-03-03 A kind of node device and looped network switching method
CN201610122087.9 2016-03-03

Publications (1)

Publication Number Publication Date
WO2017148093A1 true WO2017148093A1 (en) 2017-09-08

Family

ID=59743446

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/092372 WO2017148093A1 (en) 2016-03-03 2016-07-29 Node device and ring network switching method

Country Status (2)

Country Link
CN (1) CN107154886A (en)
WO (1) WO2017148093A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113645312A (en) * 2021-08-25 2021-11-12 烽火通信科技股份有限公司 Method and device for protecting sub-ring network link based on ERPS protocol

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103023769A (en) * 2013-01-22 2013-04-03 烽火通信科技股份有限公司 Method for forwarding two-layer broadcasting packets and untagged packets of ONU (optical network unit)
CN103227753A (en) * 2013-04-01 2013-07-31 北京东土科技股份有限公司 Network congestion processing method, system and device
CN103618723A (en) * 2013-12-03 2014-03-05 北京东土科技股份有限公司 Method and device for preventing looped network protocol message from attacking device CPU

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103023769A (en) * 2013-01-22 2013-04-03 烽火通信科技股份有限公司 Method for forwarding two-layer broadcasting packets and untagged packets of ONU (optical network unit)
CN103227753A (en) * 2013-04-01 2013-07-31 北京东土科技股份有限公司 Network congestion processing method, system and device
CN103618723A (en) * 2013-12-03 2014-03-05 北京东土科技股份有限公司 Method and device for preventing looped network protocol message from attacking device CPU

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN107154886A (en) 2017-09-12

Similar Documents

Publication Publication Date Title
EP1994694B1 (en) System and method for preventing loops in the presence of control plane failures
JP5508289B2 (en) Network recovery system and method from multilink failure
US8411690B2 (en) Preventing data traffic connectivity between endpoints of a network segment
US8699380B2 (en) Port table flushing in ethernet networks
EP1625705A2 (en) Protected switching ring
JP5521663B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD
CN101883038B (en) Host node in the method for EAPS looped network protection switching and EAPS looped network
CN106789521B (en) A kind of ring network fault reverse method and link point
WO2010102490A1 (en) Address update method for ports of switching node, and switching node in ethernet ring network
EP2533470B1 (en) Method and equipment for preventing repeated refreshing of ethernet ring node address table
WO2010031295A1 (en) Control method for ethernet failure recovery
CN102238067B (en) Switching method and device on Rapid Ring Protection Protocol (RRPP) ring
CN103825754B (en) Ring network multipoint fault discovery and recovery processing method
CN102487348B (en) Method and system for realizing looped network uplink protection
KR100968939B1 (en) Method and apparatus for protection switching of ring network
US9065756B2 (en) System and method for providing fast and efficient flushing of a forwarding database in a network processor
JP5004758B2 (en) Layer 2 network and network connection device
WO2017148093A1 (en) Node device and ring network switching method
CN109194592B (en) Method and system for solving island problem in multi-link network
CN108833247B (en) Method and device for re-switching after link failure recovery
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
CN101815021A (en) Method for implementing protocol channel in Ethernet protection
JP2008301433A (en) Communication device and ring node device
CN114710440A (en) Processing method and device for looped network convergence

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16892281

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16892281

Country of ref document: EP

Kind code of ref document: A1