A self-negotiation protection method and device based on ERPS protocol

Through the auto-negotiation protection method and APS code extension, the ERPS protocol automatically negotiates port roles, solving loop problems and signal degradation switching requirements in the ERPS protocol, and improving communication quality and bandwidth utilization.

CN116566890BActive Publication Date: 2025-09-09FIBERHOME TELECOMMUNICATION TECHNOLOGIES CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310639781.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-31
Publication Date
2025-09-09
Estimated Expiration
2043-05-31

AI Technical Summary

Technical Problem

The existing ERPS protocol has loop problems during link backup, causing broadcast storms and MAC address table instability, affecting communication quality, and failing to effectively handle protection switching requirements when signals degrade.

Method used

The ERPS protocol-based auto-negotiation protection method is adopted. By configuring the Auto role type and the static role type, the port roles are automatically negotiated to form an RPL link, and the APS code is extended to support protection switching logic for signal degradation.

Benefits of technology

It reduces the complexity of project deployment, improves bandwidth utilization, solves the protection switching requirements of the ERPS protocol when the signal degrades, and ensures communication quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116566890B_ABST
    Figure CN116566890B_ABST
Patent Text Reader

Abstract

The present invention discloses a self-negotiation protection method and device based on the ERPS protocol, which relates to the field of communication service switching and protection technology. The self-negotiation protection method based on the ERPS protocol includes: configuring the two ports of the upper ring node in the Ethernet multi-ring protection technology ERPS ring node participating in the self-negotiation, and at least one port of the two ring nodes adjacent to the upper ring node and the ports directly connected to the upper ring node as the Auto role type, and configuring the ports of the ring nodes not participating in the self-negotiation as the static role type, wherein the Auto role type can be switched between Auto Owner, Auto Neighbor and Auto Normal through negotiation; based on the negotiation priority of the Auto role type and the static role type, performing intra-device negotiation and inter-device negotiation on the upper ring node and its adjacent nodes in turn, and negotiating the port role type through self-negotiation to form an RPL link. The present invention can automatically negotiate the respective role types according to the configuration scenario, reducing the complexity of engineering deployment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of communication service switching and protection, and in particular to an ERPS protocol-based auto-negotiation protection method and device. Background Art

[0002] In Ethernet networks, redundant links are often used for link backup and improved network reliability. However, redundant links can create loops on the network, potentially causing broadcast storms and MAC (Media Access Control) address table instability, impacting user communication quality and even leading to communication interruptions.

[0003] To resolve network loops, Ethernet Ring Protection Switching (ERPS), a Layer 2 loop prevention protocol, is commonly deployed. ERPS offers fast convergence and selectively blocks redundant links, preventing broadcast storms and MAC address table instability, thereby effectively ensuring user communication quality.

[0004] General project deployment method:

[0005] Single-ring instance deployment scenario

[0006] like Figure 1 Nodes ABCDE form a ring. Node A in the upper ring is configured with an RPL (Ring Protection Link) Owner port, and node E is configured with an RPL (Ring Protection Link) Neighbor port. Under normal circumstances, both the RPL Owner port and the RPL Neighbor port are blocked, and services are connected to the carrier network via ABC-PE1 to prevent loops. If an ERPS ring network fails, both the RPL Owner port and the RPL Neighbor port are released, and services are connected to the carrier network via AED-PE2. However, the disadvantage is that the primary or backup link is often idle, wasting bandwidth.

[0007] Multi-ring instance deployment scenario

[0008] like Figure 2Nodes ABCDE form a ring. The port role types of the directly connected AE node on Ring1 are configured as RPL Owner and RPL Neighbor, respectively. The port role types of the directly connected AB nodes on Ring2 are configured as RPLowner and RPL Neighbor, respectively. Services bound to Ring1 are connected to the carrier network via ABC-PE1, and services bound to Ring2 are connected to the carrier network via AED-PE2. Through service planning, half of the services are connected to the carrier network via ABC-PE1, and the other half are connected to the carrier network via AED-PE2. This solution can improve bandwidth utilization, but it requires a high level of engineering personnel. The planning difficulty increases with the number of user networks and the scale of services, and engineering maintenance becomes increasingly complex. This is a problem with the current ERPS protocol.

[0009] Another issue is that the latest ERPS standard only supports SF (Signal Fail) switching. However, projects often encounter partial packet loss on the line, that is, SD (Signal Degrade), which also requires ERPS ring switching. However, the ERPS standard does not define the SD code and the logic for SD-triggered protection switching. Summary of the Invention

[0010] In response to the defects in the prior art, the first aspect of the present invention provides an auto-negotiation protection method based on the ERPS protocol, which can automatically negotiate respective role types according to the configuration scenario, reducing the complexity of engineering deployment.

[0011] In order to achieve the above purpose, the technical solution adopted by the present invention is:

[0012] An ERPS protocol-based auto-negotiation protection method, the method comprising the following steps:

[0013] Configure the two ports of the upper ring node in an Ethernet multi-ring protection technology (ERPS) ring node participating in auto-negotiation, as well as at least one of the ports of two ring nodes adjacent to the upper ring node and directly connected to the upper ring node, as the Auto role type. Configure the ports of the ring node not participating in auto-negotiation as the Static role type. The Auto role type can be switched between Auto Owner, Auto Neighbor, and Auto Normal through negotiation.

[0014] Based on the negotiation priority of the Auto role type and the Static role type, intra-device negotiation and inter-device negotiation are performed on the upstream node and its adjacent nodes in sequence. The port role type is negotiated through auto-negotiation to form an RPL link.

[0015] In some embodiments, the negotiation priority between the Auto role type and the static role type is:

[0016] Static Character > Auto Owner > Auto Neighbor > Auto Normal.

[0017] In some embodiments, when performing intra-device negotiation on the role types of two ports of an uplink node and the ports of adjacent nodes directly connected to the uplink node:

[0018] If two ports on a node are configured as Auto, the system compares the number of non-Normal types in the negotiated static and / or Auto role types on the two ports. If they are the same, one port is negotiated as Auto Owner or Auto Neighbor based on the port number, and the other port is negotiated as Auto Normal. If they are different, the port with the fewer non-Normal types in the negotiated static and / or Auto role types is negotiated as Auto Owner or Auto Neighbor, and the other port is negotiated as Auto Normal.

[0019] If only one port on a node is configured as the Auto role type, the negotiation is Auto Normal;

[0020] If only one port on a node is configured as the Auto role type and one port is configured as the static Normal role type, the Ring Protection Link RPL flag of the Auto role type port is set and the role type is negotiated to Auto Owner or AutoNeighbour;

[0021] If only one port on a node is configured as the Auto role type and one port is configured as the static Owner or Neighbor role type, the Ring Protection Link RPL flag of the Auto role type port is set and the role type is negotiated to AutoNormal.

[0022] If the Auto role type is not configured on a node, the role is determined based on the actual static configuration;

[0023] If two ports on a node are configured as Auto role types, the Ring Protection Link RPL flag of one port is set and the port is the Auto Owner, and the RPL flag of the other port is also set, and the negotiation is Auto Normal;

[0024] If two ports on a node are configured as Auto role types, the RPL flag of one port is set and the port is Auto Neighbor, and the RPL flag of the other port is also set and the negotiation is Auto Normal;

[0025] If two ports on a node are configured as Auto role types, the RPL flag of one port is set and the port is Auto Normal, and the RPL flag of the other port is also set, and the negotiation is Auto Owner or Auto Neighbor.

[0026] In some embodiments, when inter-device negotiation is performed on the role types of two ports of an upstream ring node and the ports of adjacent nodes directly connected to the upstream ring node:

[0027] When the local end's Auto Normal mode encounters the other end's Auto Owner mode, the local end is promoted to Auto Neighbour mode.

[0028] When the local end is in Auto Normal mode and the other end is in Auto Neighbor mode, the local end is promoted to Auto Owner mode.

[0029] When the local Auto Neighbor encounters the other Auto Neighbor, one end is promoted to Auto Owner based on the size of their NodeIDs, while the other end remains unchanged.

[0030] When the local end is in Auto Neighbor mode and the other end is in Auto Normal mode, the other end is promoted to Auto Owner mode.

[0031] When the local Auto Owner encounters the other Auto Owner, one end is downgraded to AutoNeighbour based on the size of their NodeIDs, while the other end remains unchanged.

[0032] When the local end's Auto Owner status encounters the other end's Auto Normal status, the other end's status is upgraded to Auto Neighbor.

[0033] The local end is in the static Owner role type. If the peer end is in the Auto role type, the peer end's RPL flag is set and the peer end is negotiated as an Auto Neighbor.

[0034] The local end has a static Neighbor role type. If the peer end has an Auto role type, the peer end's RPL flag is set and the peer end is negotiated as an Auto Owner.

[0035] The local end uses the static Normal role type. If the peer end uses the Auto role type, the peer end's RPL flag is set and the peer end is negotiated to Auto Normal.

[0036] The local end sets the RPL flag and is the Auto Owner. If the peer end is an Auto role, the peer end is negotiated to be an Auto Neighbor and the RPL flag is set.

[0037] The local end sets the RPL flag and is in the Auto Neighbor mode. If the peer end is in the Auto role mode, the peer end is negotiated as the Auto Owner and the RPL flag is set.

[0038] The local end sets the RPL flag and sets the local end to Auto Normal. If the peer end is in Auto role type, the peer end will be negotiated to Auto Normal and the RPL flag will be set to Auto Normal.

[0039] In some embodiments, the negotiation priority based on the Auto role type and the static role type is used to perform intra-device negotiation and inter-device negotiation on the upstream node and its adjacent nodes in sequence, and the port role type is negotiated in an auto-negotiation manner to form an RPL link, including:

[0040] In an ERPS ring, ports 1 / 1 and 1 / 2 of upstream node A, port 1 / 1 of node B directly connected to port 1 / 2 of upstream node A, and port 1 / 1 of node E directly connected to port 1 / 1 of upstream node A are all configured as Auto role types, and the ports of nodes B and E directly connected to other nodes on the ring and the ports of other nodes on the ring are configured as Static role types.

[0041] Because both ports 1 / 1 and 1 / 2 of node A on the upstream ring are configured as Auto, and the number of non-Normal types in the static and / or Auto role types initially negotiated by ports 1 / 1 and 1 / 2 on the upstream ring is 0, intra-device negotiation is performed to set port 1 / 1 (with the smaller port number) as Auto Owner and port 1 / 2 as AutoNormal.

[0042] Because only port 1 / 1 on node B is configured as the Auto role, intra-device negotiation is performed to change port 1 / 1 on node B to Auto Normal.

[0043] Based on the negotiation between Node B's 1 / 1 port and Node A's 1 / 2 port on the peer end and the Auto Normal role, inter-device negotiation is performed to maintain the Auto Normal role settings for Node A's 1 / 2 port and Node B's 1 / 1 port.

[0044] Because only port 1 / 1 on node E is configured as Auto, intra-device negotiation is performed to change port 1 / 1 on node E to Auto Normal.

[0045] Based on the negotiation that the 1 / 1 port of node A on the peer end of node E's 1 / 1 is the Auto Owner port, inter-device negotiation is performed to renegotiate the 1 / 1 port of node E to the Auto Neighbor port.

[0046] Block the 1 / 1 port of node A and the 1 / 1 port of node E on the upstream link to form an RPL link.

[0047] In some embodiments, the negotiation priority based on the Auto role type and the static role type is used to perform intra-device negotiation and inter-device negotiation on the upstream node and its adjacent nodes in sequence, and the port role type is negotiated in an auto-negotiation manner to form an RPL link, including:

[0048] In an ERPS dual-ring system, Ring 1 and Ring 2, ports 1 / 1 and 1 / 2 of upstream node A, port 1 / 1 of node B directly connected to port 1 / 2 of upstream node A, and port 1 / 1 of node E directly connected to port 1 / 1 of upstream node A are all configured as Auto role types, while the ports directly connected to other nodes on the ring, as well as the ports of other nodes on the ring, are configured as Static role types.

[0049] In the nodes of Ring1:

[0050] Because ports 1 / 1 and 1 / 2 of node A on the upstream ring are both configured as Auto, and the number of non-Normal types in the static and / or Auto role types initially negotiated by ports 1 / 1 and 1 / 2 on the upstream ring is 0, intra-device negotiation is performed. Port 1 / 1, which has the smaller port number, is negotiated as Auto Owner on Ring 1, and port 1 / 2 is negotiated as Auto Normal.

[0051] Because only port 1 / 1 of node B is configured as the Auto role type, intra-device negotiation is performed to set port 1 / 1 of node B to Auto Normal in Ring 1.

[0052] Based on the negotiation between Node B's 1 / 1 port and Node A's 1 / 2 port on the peer end and the Auto Normal role, inter-device negotiation is performed to maintain the Auto Normal role types of Node A's 1 / 2 port and Node B's 1 / 1 port on Ring 1.

[0053] Because only port 1 / 1 on node E is configured as the Auto role, intra-device negotiation is performed to set port 1 / 1 on node E to Auto Normal on Ring 1.

[0054] Based on the negotiation that the 1 / 1 port of node E on the other end of ring node A is the Auto Owner, inter-device negotiation is performed to renegotiate the 1 / 1 port of node E on Ring 1 to the Auto Neighbor port.

[0055] In Ring 1, block the 1 / 1 port of node A and the 1 / 1 port of node E on the upstream ring to form an RPL link.

[0056] In the nodes of Ring2:

[0057] Based on the fact that both ports 1 / 1 and 1 / 2 of node A on the upstream ring are configured as Auto roles, and that port 1 / 1 of node A on ring 1 is negotiated as Auto Owner and port 1 / 2 as Auto Normal, intra-device negotiation is performed. Among the ports on node A on ring 2, ports 1 / 2 that have negotiated static and / or Auto roles with a small number of non-Normal ports are negotiated as Auto Owner, and port 1 / 1 is negotiated as Auto Normal.

[0058] Because only port 1 / 1 of node B is configured as the Auto role type, intra-device negotiation is performed to set port 1 / 1 of node B to Auto Normal in Ring 2.

[0059] Based on the negotiation that the 1 / 2 ports of node A on the peer ring of node B are set to Auto Owner, inter-device negotiation is performed and the 1 / 1 ports of node B are renegotiated to Auto Neighbor on Ring 2.

[0060] Because only port 1 / 1 on node E is configured as the Auto role, intra-device negotiation is performed, and port 1 / 1 on node E is negotiated to Auto Normal on Ring 2.

[0061] Based on the negotiation that port 1 / 1 of node A on the peer end of node E is in the Auto Normal state, inter-device negotiation is performed to maintain the Auto Normal state of port 1 / 1 of node A and port 1 / 1 of node E on Ring 2.

[0062] In Ring2, block the 1 / 2 port of node A on the upstream ring and the 1 / 1 port of node B to form an RPL link.

[0063] In some embodiments, the negotiation priority based on the Auto role type and the static role type is used to perform intra-device negotiation and inter-device negotiation on the upstream node and its adjacent nodes in sequence, and the port role type is negotiated in an auto-negotiation manner to form an RPL link, including:

[0064] In an ERPS ring, ports 1 / 1 and 1 / 2 of upstream node A and port 1 / 1 of node E directly connected to port 1 / 1 of upstream node A are configured as Auto, and port 1 / 1 of node B directly connected to port 1 / 2 of upstream node A is configured as Static Owner.

[0065] Because both ports 1 / 1 and 1 / 2 of node A on the upstream ring are configured as Auto, and the number of non-Normal types in the static and / or Auto role types initially negotiated by ports 1 / 1 and 1 / 2 on the upstream ring is 0, intra-device negotiation is performed to set port 1 / 1 (with the smaller port number) as Auto Owner and port 1 / 2 as AutoNormal.

[0066] Based on the configuration of port 1 / 1 of the peer node B of port 1 / 2 of the upstream node A as the static owner, inter-device negotiation is performed to renegotiate port 1 / 2 of the upstream node A to Auto Neighbor with the RPL flag set. Port 1 / 1 of the upstream node A is renegotiated to Auto Normal with the RPL flag set.

[0067] Because only port 1 / 1 on node E is configured as Auto, intra-device negotiation is performed to change port 1 / 1 on node E to Auto Normal.

[0068] Based on the negotiation of port 1 / 1 of node A on the opposite end of node E's link, port 1 / 1 of node A on the opposite end is set to Auto Normal, and the RPL flag is set. Inter-device negotiation is performed to maintain the role types of port 1 / 1 of node A on the opposite end and port 1 / 1 of node E in Auto Normal, and the RPL flag of port 1 / 1 of node E is set to the same.

[0069] Block the 1 / 2 port of node A and the 1 / 1 port of node B on the upstream link to form an RPL link.

[0070] In some embodiments, the negotiation priority based on the Auto role type and the static role type is used to perform intra-device negotiation and inter-device negotiation on the upstream node and its adjacent nodes in sequence, and the port role type is negotiated in an auto-negotiation manner to form an RPL link, including:

[0071] When ERPS is configured with two rings: Ring 1 and Ring 2, at the ring node:

[0072] Configure ports 1 / 1 and 1 / 2 of node A on the upstream ring of Ring 1 as Auto. Also configure port 1 / 1 of node E, which is directly connected to port 1 / 1 of node A, as Auto. Configure port 1 / 1 of node B, which is directly connected to port 1 / 2 of node A, as Static Owner. Configure the ports on nodes B and E that are directly connected to other nodes on the ring, as well as the ports on other nodes on the ring, as Static.

[0073] Configure ports 1 / 1 and 1 / 2 of node A on the upstream ring of Ring2 as Auto, port 1 / 1 of node E directly connected to port 1 / 1 of node A as Static Owner, port 1 / 1 of node B directly connected to port 1 / 2 of node A as Auto, and the ports of node B and node E directly connected to the rest of the nodes on the ring and the ports of the rest of the nodes on the ring as Static.

[0074] In the nodes of Ring1:

[0075] Because ports 1 / 1 and 1 / 2 of node A on the upstream ring are both configured as Auto, and the number of non-Normal types in the static and / or Auto role types initially negotiated by ports 1 / 1 and 1 / 2 on the upstream ring is 0, intra-device negotiation is performed. Port 1 / 1, which has the smaller port number, is negotiated as Auto Owner on Ring 1, and port 1 / 2 is negotiated as Auto Normal.

[0076] Based on the configuration of port 1 / 1 of the peer node B of port 1 / 2 of the upstream node A as the static owner, inter-device negotiation is performed. In Ring 1, port 1 / 2 of the upstream node A is renegotiated to Auto Neighbor, and the RPL flag is set. Port 1 / 1 of the upstream node A is renegotiated to Auto Normal, and the RPL flag is set.

[0077] Because only port 1 / 1 on node E is configured as the Auto role, intra-device negotiation is performed to set port 1 / 1 on node E to Auto Normal on Ring 1.

[0078] Based on the negotiation that port 1 / 1 of node A on the peer end of node E is in Auto Normal mode and the RPL flag is set, inter-device negotiation is performed to maintain the role types of port 1 / 1 of node A and port 1 / 1 of node E in Ring 1 as Auto Normal, and the RPL flag of port 1 / 1 of node E is set.

[0079] In Ring 1, block the 1 / 2 port of node A and the 1 / 1 port of node B on the upstream ring to form an RPL link.

[0080] In the nodes of Ring2:

[0081] Based on the fact that both ports 1 / 1 and 1 / 2 of node A on the upstream ring are configured as Auto roles, and ports 1 / 2 of node A on Ring 1 are negotiated to Auto Neighbor and 1 / 1 to Auto Normal, intra-device negotiation is performed. Among the ports on node A on Ring 2, ports 1 / 1 that have negotiated static and / or Auto roles with a small number of non-Normal types are negotiated to Auto Owner, and ports 1 / 2 are negotiated to Auto Normal.

[0082] Based on the configuration of port 1 / 1 of node A on the upstream ring as the static owner of port 1 / 1 of node E on the opposite end, inter-device negotiation is performed. In Ring 2, port 1 / 1 of node A on the upstream ring is renegotiated to Auto Neighbor with the RPL flag set. Port 1 / 2 of node A on the upstream ring is renegotiated to Auto Normal with the RPL flag set.

[0083] Because only port 1 / 1 on node B is configured as the Auto role, intra-device negotiation is performed to set port 1 / 1 on node E in Ring 2 to Auto Normal.

[0084] Based on the negotiation between Node B's 1 / 1 port and Node A's 1 / 2 port on the opposite end of the ring, which is in Auto Normal mode and with the RPL flag set, inter-device negotiation is performed to maintain the Auto Normal role type of Node A's 1 / 2 port and Node B's 1 / 1 port in Ring 2, with the RPL flag set on Node B's 1 / 1 port.

[0085] In Ring2, block the 1 / 1 port of node A on the upstream ring and the 1 / 1 port of node E to form an RPL link.

[0086] In some embodiments, the present invention further comprises:

[0087] The Request / state field of the APS code is expanded with the following SD codes: Signal Degrade Local and Signal Degrade Remote.

[0088] When a local port generates an SD alarm or receives a Signal Degrade Local alarm from a remote end, the port generating the SD alarm or receiving the Signal Degrade Local alarm is blocked.

[0089] At the same time, the Signal Degrade Remote alarm is forwarded externally, so that ports with the Owner role or the Neighbor role on the ERPS ring can be released after receiving the Signal Degrade Remote alarm.

[0090] A second aspect of the present invention provides an ERPS protocol-based auto-negotiation protection device, which can automatically negotiate respective role types according to configuration scenarios, thereby reducing the complexity of engineering deployment.

[0091] In order to achieve the above purpose, the technical solution adopted by the present invention is:

[0092] An ERPS protocol-based auto-negotiation protection device, comprising:

[0093] A configuration module configured to configure two ports of an upper ring node in an Ethernet multi-ring protection technology (ERPS) ring node participating in auto-negotiation, as well as at least one of two ports of two ring nodes adjacent to the upper ring node and directly connected to the upper ring node, as having an Auto role type, and to configure ports of ring nodes not participating in auto-negotiation as having a static role type. The Auto role type can be switched between Auto Owner, Auto Neighbor, and Auto Normal through negotiation;

[0094] The negotiation module performs intra-device negotiation and inter-device negotiation on the upstream node and its adjacent nodes based on the negotiation priority of the Auto role type and the static role type, and negotiates the port role type through auto-negotiation to form an RPL link. Compared with the existing technology, the advantages of the present invention are:

[0095] The self-negotiation protection method based on the ERPS protocol in the present invention configures the two ports of the upper ring node in the Ethernet multi-ring protection technology ERPS ring node participating in the self-negotiation, and at least one port of the two ring nodes adjacent to the upper ring node and the ports directly connected to the upper ring node as the Auto role type, and configures the ports of the ring nodes not participating in the self-negotiation as the static role type. The Auto role type can be switched between Auto Owner, Auto Neighbor and Auto Normal through negotiation; based on the negotiation priority of the Auto role type and the static role type, the upper ring node and its adjacent nodes are sequentially negotiated within the device and between the devices, and the port role type is negotiated through self-negotiation to form an RPL link. That is, by setting the Auto role type, the respective role types can be automatically negotiated according to the configuration scenario, reducing the complexity of the project deployment. In addition, the ERPS standard does not define the SD code and the SD-triggered protection switching logic, and also proposes the ERPS SD code and SD-triggered switching logic, which solves the defect that the engineering ERPS does not support the signal degradation SD-triggered protection switching. BRIEF DESCRIPTION OF THE DRAWINGS

[0096] Figure 1 This is the ERPS single-ring instance deployment in existing technologies;

[0097] Figure 2 This is the ERPS multi-ring instance deployment in existing technologies;

[0098] Figure 3 This is a flow chart of the self-negotiation protection method based on the ERPS protocol in an embodiment of the present invention;

[0099] Figure 4 It is the APS code format of the ERPS protocol in the prior art;

[0100] Figure 5 It is the Auto code of the extended role of the APS code of the ERPS protocol in the embodiment of the present invention;

[0101] Figure 6 This is a schematic diagram of the full Auto negotiation configuration of an ERPS single-ring instance in an embodiment of the present invention;

[0102] Figure 7 This is a schematic diagram of the full Auto negotiation configuration of an ERPS multi-ring instance in an embodiment of the present invention;

[0103] Figure 8 This is a schematic diagram of the Auto-negotiation configuration of a single-ring ERPS instance in an embodiment of the present invention;

[0104] Figure 9 This is a schematic diagram of the Auto-negotiation configuration of an ERPS multi-ring instance in an embodiment of the present invention;

[0105] Figure 10 This is a schematic diagram of static role configuration for an ERPS multi-ring instance in an embodiment of the present invention;

[0106] Figure 11 is the SD code extended by the APS code of the ERPS protocol in the embodiment of the present invention;

[0107] Figure 12 In the embodiment of the present invention, signal degrade (SD) in the BC direction of the ERPS ring triggers service switching.

[0108] Figure 13 In the embodiment of the present invention, the service switching is triggered by SD (Signal Degrade) in the CB direction of the ERPS ring. DETAILED DESCRIPTION

[0109] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0110] See also Figure 3 As shown, an embodiment of the present invention discloses an auto-negotiation protection method based on the ERPS protocol, which includes the following steps:

[0111] S1. Configure the two ports of the upper ring node in the Ethernet multi-ring protection technology ERPS ring node participating in auto-negotiation, as well as at least one port of the two ring nodes adjacent to the upper ring node and the ports directly connected to the upper ring node, as the Auto role type. Configure the ports of the ring nodes not participating in auto-negotiation as the static role type. The Auto role type can be switched between Auto Owner, Auto Neighbor, and Auto Normal through negotiation.

[0112] It's worth noting that port role configuration in the ERPS standard primarily consists of static role types, which only exist in three types: static Owner, static Neighbor, and static Normal. Static role types do not support automatic role negotiation and must be manually configured. This invention introduces Auto role configuration, which enables ERPS ring ports to automatically negotiate when configured with the Auto role.

[0113] That is, in this embodiment of the present invention, at least one of the four ports of the upper ring node in the ERPS ring nodes participating in auto-negotiation, including the two ports of the upper ring node and the ports of the two adjacent ring nodes directly connected to the upper ring node, must be configured with the Auto role type. The ports of other ring nodes not participating in auto-negotiation must be configured with the Static role type. For example, the ports of the two nodes directly connected to the upper ring node, their ports directly connected to other nodes on the ring, and the ports of other nodes on the ring must all be configured with the Static role type.

[0114] See also Figure 4 As shown, it is the existing ERPS APS code format. Figure 5 In this embodiment of the present invention, the first four bits of the Reserved field in the Status field of the APS code are used to design an Auto role code for port role auto-negotiation. Bits 1-3 identify the port role type, and bit 4 is the RPL flag, which is used to resolve conflicting role negotiation states when some Auto role types are configured. When the RPL flag is set in the APS code received from the remote end, the negotiation state of the local end is renegotiated based on the remote end's.

[0115] Auto-negotiation first requires setting the negotiation priority. In this embodiment of the present invention, the negotiation priorities for the Auto role type and the Static role type are:

[0116] Static Character > Auto Owner > Auto Neighbor > Auto Normal.

[0117] The static role configuration has the highest priority. When the peer end is configured with a static role type, the local end renegotiates based on the peer end's static role type.

[0118] See also Figure 6 As shown, the upper ring node refers to node A directly connected to the user network. The two ring nodes adjacent to the upper ring node A are node B and node E, where each node B and node E has a port directly connected to the upper ring node A.

[0119] After the configuration in step S1 , intra-device negotiation and inter-device negotiation can be performed on the upstream node A, node B, and node E.

[0120] S2. Based on the negotiation priority of the Auto role type and the static role type, intra-device negotiation and inter-device negotiation are performed on the upstream node and its adjacent nodes in sequence. The port role type is negotiated through auto-negotiation to form an RPL link.

[0121] It should be noted that in the embodiment of the present invention, the principles of intra-device negotiation mainly include:

[0122] (1) If two ports on a node are configured as Auto role types, the number of non-Normal types in the negotiated static and / or Auto role types on the two ports is compared. If they are the same, one port is negotiated as Auto Owner or Auto Neighbor based on the port number size, and the other port is negotiated as Auto Normal. If they are different, the port with the smaller number of non-Normal types in the negotiated static and / or Auto role types is negotiated as Auto Owner or Auto Neighbor, and the other port is negotiated as Auto Normal.

[0123] Non-Normal types within the Static and / or Auto role types include Static Owner, Static Neighbor, Auto Owner, and Auto Neighbor. When comparing quantities, any of these four types can be compared.

[0124] Taking Auto Owner as an example, if the number of Auto Owners negotiated on two ports is the same, the port with the larger number (or smaller number) can be configured as Auto Owner or Auto Neighbor, and the other port can be configured as Auto Normal.

[0125] If the number of Auto Owners negotiated on the two ports is different, the port with the larger number (or smaller number) of Auto Owners is configured as Auto Owner or Auto Neighbor, and the other port is configured as Auto Normal.

[0126] It is worth noting that although the port number and the number of Auto Owners can be determined in any size relationship, the size relationship should remain unchanged during the overall negotiation process.

[0127] (2) If only one port on a node is configured as the Auto role type, the negotiation is Auto Normal.

[0128] (3) If only one port on a node is configured as the Auto role type and one port is configured as the static Normal role type, the Ring Protection Link RPL flag of the Auto role type port is set and the role type is negotiated to AutoOwner or Auto Neighbor.

[0129] (4) If only one port on a node is configured as the Auto role type and one port is configured as the static Owner or Neighbor role type, the Ring Protection Link RPL flag of the Auto role type port is set and the role type is negotiated to Auto Normal.

[0130] (5) If the Auto role type is not configured on a node, it is determined based on the actual static configuration.

[0131] That is, it is configured as static Owner, Neighbor, or Normal according to the actual situation.

[0132] (6) If two ports on a node are configured as Auto role types, the Ring Protection Link RPL flag of one port is set and the port is the Auto Owner, and the RPL flag of the other port is also set, and the negotiation is Auto Normal.

[0133] Among them, only when the Auto role type and the static role type exist at the same time, the RPL flag of the Auto code is 1. If all the roles on the ring are static or all are Auto, the RPL flag of the Auto code is 0. For details, please refer to Figure 4 shown.

[0134] (7) If two ports on a node are configured as Auto role types, the RPL flag of one port is set and the port is Auto Neighbor, and the RPL flag of the other port is also set and negotiated to Auto Normal.

[0135] (8) If two ports on a node are configured as Auto role types, the RPL flag of one port is set and the port is Auto Normal, and the RPL flag of the other port is also set, and the negotiation is Auto Owner or Auto Neighbour.

[0136] In the embodiment of the present invention, the principles of inter-device negotiation mainly include:

[0137] Principles of Auto-negotiation between devices:

[0138] (1) When the local end is in Auto Normal mode and the other end is in Auto Owner mode, the local end is promoted to Auto Neighbour mode.

[0139] (2) When the local end is in Auto Normal mode and the other end is in Auto Neighbor mode, the local end is promoted to Auto Owner.

[0140] (3) When the local Auto Neighbor encounters the other Auto Neighbor, one end is promoted to Auto Owner based on the size of their NodeIDs, while the other end remains unchanged.

[0141] (4) When the local end is in Auto Neighbor mode and the other end is in Auto Normal mode, the other end is promoted to Auto Owner mode.

[0142] (5) When the local Auto Owner encounters the other Auto Owner, one end is downgraded to AutoNeighbour based on the size of their NodeIDs, while the other end remains unchanged.

[0143] (6) When the local end is in Auto Owner mode and the other end is in Auto Normal mode, the other end is promoted to Auto Neighbour mode.

[0144] (7) The local end uses the static Owner role type. If the peer end uses the Auto role type, the peer end's RPL flag is set and the peer end is negotiated as an Auto Neighbor.

[0145] (8) The local end has a static Neighbour role type. If the peer end has an Auto role type, the peer end's RPL flag is set and the peer end is negotiated as an Auto Owner.

[0146] (9) The local end uses the static Normal role type. If the peer end uses the Auto role type, the peer end's RPL flag is set and the peer end is negotiated to Auto Normal.

[0147] (10) The RPL flag on the local end is set, and the local end is the Auto Owner. If the peer end is of the Auto role type, the peer end is negotiated to be the Auto Neighbor and the RPL flag is set.

[0148] (11) The RPL flag of the local end is set, and the local end is Auto Neighbor. If the other end is of Auto role type, the other end is negotiated as Auto Owner and the RPL flag is set.

[0149] (12) The local end sets the RPL flag and sets the local end to Auto Normal. If the peer end is of Auto role type, the peer end is negotiated to Auto Normal and the RPL flag is set to Auto Normal.

[0150] It is understandable that after setting the negotiation priority, self-negotiation in different scenarios can be performed based on the above-mentioned intra-device negotiation principle and inter-device negotiation principle.

[0151] To this end, the following specific embodiments are used to illustrate:

[0152] Example 1: Full Auto Negotiation Single Ring Scenario

[0153] See also Figure 6 As shown, a single ERPS ring instance is configured. While the number of ring nodes can be appropriately set as needed, they can generally be divided into three categories: upstream ring nodes, nodes directly connected to upstream ring nodes, and the remaining nodes. The remaining nodes can be configured with either Auto or Static role types. Without loss of generality, the following uses ring nodes ABCDE as an example. Within ring nodes ABCDE, ports 1 / 1 and 1 / 2 of upstream ring node A, port 1 / 1 of node B directly connected to port 1 / 2 of upstream ring node A, and port 1 / 1 of node E directly connected to port 1 / 1 of upstream ring node A are all configured with Auto role types. The ports of nodes B and E directly connected to the remaining nodes (C and D) on the ring, as well as the ports of the remaining nodes on the ring, are configured with a static role type (e.g., Static Normal). It is worth noting that the first 1 in port 1 / 1 refers to slot 1, and the second 1 refers to port 1.

[0154] The ERPS protocol sends an APS code, and the port roles of each node begin auto-negotiation. For uplink node A, both ports 1 / 1 and 1 / 2 are configured as Auto. Because the number of non-Normal types in the negotiated static and / or Auto role types for these two ports is the same (initially 0), the port with the smaller number (port 1 / 1) negotiates to Auto Owner, and the other port negotiates to Auto Normal.

[0155] For node B, its port 1 / 1 is internally negotiated to Auto Normal, while the role type negotiated on its peer node A's port 1 / 2 is Auto Normal, so their roles remain unchanged. For node E, its port 1 / 1 is internally negotiated to Auto Normal, while the role type negotiated on its peer node A's port 1 / 1 is AutoOwner. Therefore, the role type of node E's port 1 / 1 is renegotiated to Auto Neighbor.

[0156] At this point, an RPL link is established. The Auto Owner and Auto Neighbor ports on node A and node E are blocked, and service packets are connected to the carrier network via ABC-PE1. If an SF alarm occurs on link ABC, it is notified to other nodes on the ERPS ring using the APS code. Upon receiving the SF alarm, nodes A and E on the RPL link release their Auto Owner and Auto Neighbor ports, allowing services to connect to the carrier network via AED-PE2.

[0157] Example 2: Full Auto-negotiation multi-ring scenario

[0158] See also Figure 7 As shown in the figure, two ERPS rings are configured: Ring 1 and Ring 2. In ring nodes ABCDE, port 1 / 1 and port 1 / 2 of node A on the upper ring, port 1 / 1 of node B directly connected to port 1 / 2 of node A on the upper ring, and port 1 / 1 of node E directly connected to port 1 / 1 of node A on the upper ring are all configured as Auto role types. The ports of node B and node E directly connected to the remaining nodes (C and D) on the ring, as well as the ports of the remaining nodes on the ring, are configured as static role types (for example, static Normal).

[0159] On nodes ABCDE of Ring 1, the ERPS protocol sends the APS code, and the port roles of each node begin auto-negotiation. For node A on the upstream ring, its 1 / 1 and 1 / 2 ports are both configured as Auto. Because the number of non-Normal types in the negotiated static and / or Auto role types for these two ports is the same (initially 0), the port with the smaller number (1 / 1) negotiates to Auto Owner, and the other port negotiates to Auto Normal.

[0160] For node B, its port 1 / 1 is internally negotiated to Auto Normal, while the role type negotiated by its peer, ring node A, on port 1 / 2, is Auto Normal. Therefore, their roles remain unchanged. For node E, its port 1 / 1 is internally negotiated to Auto Normal, while the role type negotiated by its peer, ring node A, on port 1 / 1, is Auto Owner. Therefore, the role type of node E's port 1 / 1 is renegotiated to Auto Neighbor.

[0161] At this point, an RPL link is established. The Auto Owner and Auto Neighbor ports on node A and node E are blocked, and service packets are connected to the carrier network via ABC-PE1. If an SF alarm occurs on link ABC, it is notified to other nodes on the ERPS ring using the APS code. Upon receiving the SF alarm, nodes A and E on the RPL link release their Auto Owner and Auto Neighbor ports, allowing services to connect to the carrier network via AED-PE2.

[0162] On nodes ABCDE of Ring 2, the ERPS protocol sends the APS code, and the port roles of each node begin auto-negotiation. For node A in the upstream ring, both port 1 / 1 and port 1 / 2 are configured as Auto. Because port 1 / 1 negotiated as the Auto Owner in Ring 1, and the number of Auto Owners negotiated by port 1 / 2 is less than that of port 1 / 1, port 1 / 2 negotiates as the Auto Owner in Ring 2, and the other port negotiates as Auto Normal.

[0163] For node B, its port 1 / 1 is internally negotiated to Auto Normal, while the role type negotiated by its peer, ring node A, on port 1 / 2, is Auto Owner. Therefore, node B's port 1 / 1 is renegotiated to Auto Neighbor. For node E, its port 1 / 1 is internally negotiated to Auto Normal, while the role type negotiated by its peer, ring node A, on port 1 / 1, is Auto Normal. Therefore, their roles remain unchanged.

[0164] At this point, an RPL link is established. The Auto (Owner) ports on node A and 1 / 2, and the Auto (Neighbor) ports on node B, are blocked. Service packets are then routed to the carrier network via AED-PE2. If an SF alarm occurs on the link's AED, it is notified to other nodes on the ERPS ring using the APS code. Upon receiving the SF alarm, nodes A and B on the RPL link release their Auto (Owner) and Auto (Neighbor) ports, allowing services to access the carrier network via ABC-PE1.

[0165] Therefore, the services on Ring 1 and Ring 2 follow different paths. The protocol can automatically negotiate their respective role types based on the configuration scenario, reducing the complexity of project deployment and automatically achieving service load sharing.

[0166] Example 3: Partial Auto-negotiation Single-Ring Scenario

[0167] See also Figure 8 As shown in the figure, an ERPS single ring instance is configured. In ring nodes ABCDE, ports 1 / 1 and 1 / 2 of node A, and port 1 / 1 of node E directly connected to port 1 / 1 of node A, are configured as Auto. Port 1 / 1 of node B, directly connected to port 1 / 2 of node A, is configured as the static Owner. The ports of node B and node E directly connected to the remaining nodes (C and D) on the ring, as well as the ports of the remaining nodes on the ring, are configured as static roles (for example, static Normal).

[0168] The ERPS protocol sends an APS code, and the port roles of each node begin auto-negotiation. For uplink node A, both ports 1 / 1 and 1 / 2 are configured as Auto. Because the number of non-Normal types in the negotiated static and / or Auto role types for these two ports is the same (initially 0), the port with the smaller number (port 1 / 1) negotiates to Auto Owner, and the other port negotiates to Auto Normal.

[0169] Because port 1 / 1 on node B is configured as a static Owner role, and the static configuration takes precedence, port 1 / 2 on node A on the upstream ring is renegotiated to Auto Neighbor with the Auto code RPL flag set. Port 1 / 1 on node A on the upstream ring is renegotiated to Auto Normal with the Auto code RPL flag set. On node E, port 1 / 1 internally negotiates to Auto Normal. Port 1 / 1 on the peer node A on the upstream ring is negotiated to Auto Normal with the Auto code RPL flag set. Therefore, port 1 / 1 on node E is renegotiated to Auto Normal.

[0170] At this point, the RPL link is established. The Owner port on Node B's 1 / 1 and the Auto Neighbor port on Node A's 1 / 2 are blocked, and service packets are connected to the carrier network via AED-PE2. If an SF alarm occurs on the link's AED, it is notified to other nodes on the ERPS ring using the APS code. Upon receiving the SF alarm, Node B and Node A on the RPL link release the Owner and Auto Neighbor ports, allowing services to connect to the carrier network via ABC-PE1.

[0171] Example 4: Partial Auto-negotiation Multi-ring Scenario

[0172] See also Figure 9 As shown in the figure, two ERPS rings are configured: Ring1 and Ring2. At ring nodes ABCDE:

[0173] Configure ports 1 / 1 and 1 / 2 of node A on the upstream ring of Ring 1 as Auto. Configure port 1 / 1 of node E, which is directly connected to port 1 / 1 of node A on the upstream ring, as Auto. Configure port 1 / 1 of node B, which is directly connected to port 1 / 2 of node A on the upstream ring, as the static Owner. Configure the ports of node B and node E directly connected to the remaining nodes (C and D) on the ring, as well as the ports of the remaining nodes on the ring, as static (for example, static Normal).

[0174] The 1 / 1 port and 1 / 2 port of the upper ring node A of ring Ring2 are both configured as the Auto role type, and the 1 / 1 port of node E directly connected to the 1 / 1 port of the upper ring node A is configured as the static Owner role type, and the 1 / 1 port of node B directly connected to the 1 / 2 port of the upper ring node A is configured as the Auto role type. The ports of node B and node E directly connected to the remaining nodes (C and D) on the ring and the ports of the remaining nodes on the ring are configured as the static role type (for example, static Normal).

[0175] On nodes ABCDE of Ring 1, the ERPS protocol sends the APS code, and the port roles of each node begin auto-negotiation. For node A on the upstream ring, its 1 / 1 and 1 / 2 ports are both configured as Auto. Because the number of non-Normal types in the negotiated static and / or Auto role types for these two ports is the same (initially 0), the port with the smaller number (1 / 1) negotiates to Auto Owner, and the other port negotiates to Auto Normal.

[0176] Because port 1 / 1 on node B is configured as a static Owner role, and the static configuration takes precedence, port 1 / 2 on node A on the upstream ring is renegotiated to Auto Neighbor with the Auto code RPL flag set. Port 1 / 1 on node A on the upstream ring is renegotiated to Auto Normal with the Auto code RPL flag set. On node E, port 1 / 1 internally negotiates to Auto Normal. Port 1 / 1 on the peer node A on the upstream ring is negotiated to Auto Normal with the Auto code RPL flag set. Therefore, port 1 / 1 on node E is renegotiated to Auto Normal.

[0177] At this point, the RPL link is established. The Owner port on Node B's 1 / 1 and the Auto Neighbor port on Node A's 1 / 2 are blocked, and service packets are connected to the carrier network via AED-PE2. If an SF alarm occurs on the link's AED, it is notified to other nodes on the ERPS ring using the APS code. Upon receiving the SF alarm, Node B and Node A on the RPL link release the Owner and Auto Neighbor ports, allowing services to connect to the carrier network via ABC-PE1.

[0178] On nodes ABCDE of Ring 2, the ERPS protocol sends the APS code, and the port roles of each node begin auto-negotiation. For node A in the upstream ring, its 1 / 1 and 1 / 2 ports are both configured as Auto. Because port 1 / 2 negotiated as Auto Neighbor in Ring 1 and port 1 / 1 negotiated as Auto Normal, and the number of Auto Neighbors negotiated by port 1 / 1 is less than that negotiated by port 1 / 2, port 1 / 1 negotiates as Auto Owner in Ring 2, and the other port negotiates as Auto Normal.

[0179] Because port 1 / 1 on node E is configured as a static Owner role, and the static configuration takes precedence, port 1 / 1 on node A on the upstream ring is renegotiated to Auto Neighbor with the Auto code RPL flag set. Port 1 / 2 on node A on the upstream ring is renegotiated to Auto Normal with the Auto code RPL flag set. On node B, port 1 / 1 internally negotiates to Auto Normal, while port 1 / 2 on the peer node A on the upstream ring negotiates to Auto Normal with the Auto code RPL flag set. Therefore, port 1 / 1 on node B is renegotiated to Auto Normal, and the RPL flag on port 1 / 1 on node B is set.

[0180] At this point, an RPL link is established. The Owner port on node E and the Auto Neighbor port on node A in the upstream ring are blocked, and service packets are connected to the carrier network via ABC-PE1. If an SF alarm occurs on link ABC, it is notified to other nodes on the ERPS ring using the APS code. Upon receiving the SF alarm, nodes A and E on the RPL link release the Auto Owner and Auto Neighbor ports, allowing services to connect to the carrier network via AED-PE2.

[0181] Therefore, the services on Ring 1 and Ring 2 follow different paths. The protocol can automatically negotiate their respective role types based on the configuration scenario, reducing the complexity of project deployment and automatically achieving service load sharing.

[0182] Example 5: Static role configuration multi-ring scenario

[0183] The expanded EPRS protocol is also compatible with manually configured static role types.

[0184] See also Figure 10 As shown in the figure, nodes ABCDE form a ring, with nodes A through E representing the ERPS ring. In Ring1, ports 1 / 1 of node A are configured as the static owner, and ports 1 / 1 of node E are configured as the static neighbor. Services bound to Ring1 are connected to the service provider network via ABC-PE1. If an SF alarm occurs on link ABC, it is notified to other nodes on the ERPS ring using the APS code. Upon receiving the SF alarm, nodes A and E on the RPL link release their owner and neighbor ports, allowing services to connect to the service provider network via AED-PE2. In Ring2, ports 1 / 2 of node A are configured as the static owner, and ports 1 / 1 of node B are configured as the static neighbor. Services bound to Ring2 are connected to the service provider network via AED-PE2. If an SF alarm occurs on the link AED, the SF alarm is notified to other nodes on the ERPS ring using the APS code. After receiving the SF alarm, node A and node B on the RPL link release the Owner and Neighbor ports, and services are connected to the operator network through ABC-PE1.

[0185] In addition, the embodiment of the present invention also proposes an ERPS SD code and SD-triggered switching logic to address the defect that engineering ERPS does not support SD-triggered protection switching due to signal degradation.

[0186] like Figure 4 The following is the ERPS APS code format: Figure 11 This patent expands the Request / state field of the APS code with SD codes, 1010-Signal Degrade (Local) and 1001-Signal Degrade (Remote), to support signal degradation SD-triggered protection switching in the ERPS ring.

[0187] When a local port generates an SD alarm or receives a Signal Degrade (Local) alarm from a remote port, the port generating the SD alarm or receiving the Signal Degrade (Local) alarm is blocked and the Signal Degrade (Remote) alarm is forwarded. Ports with the Owner role or the Neighbor role on the ERPS ring are unblocked upon receiving a Signal Degrade (Remote) alarm.

[0188] The following describes an ERPS ring SD alarm switching scenario:

[0189] Configure an ERPS single ring instance. In ring nodes ABCDE, port 1 / 1 and port 1 / 2 of node A, port 1 / 1 of node B, and port 1 / 1 of node E are all configured as Auto. The port roles of all other nodes on the ring are all configured as Normal. The ERPS protocol sends an APS code, and the port roles of each node begin auto-negotiation. For node A, both port 1 / 1 and port 1 / 2 are configured as Auto. Because the number of non-Normal types in the negotiated static and / or Auto role types for these two ports is initially 0, the port with the smaller number (port 1 / 1) negotiates to Auto Owner, while the other port negotiates to Auto Normal. For node B, its port 1 / 1 internally negotiates to Auto Normal, while port 1 / 2 of its peer node A negotiates to Auto Normal, so their respective states remain unchanged. For node E, its 1 / 1 port is internally negotiated to Auto Normal. The 1 / 1 port of its peer link node A is in the Auto Owner state. Then, the 1 / 1 port of node E is renegotiated to Auto Neighbor. At this time, an RPL link is established, and services are connected to the carrier network through ABC-PE1.

[0190] See also Figure 12As shown, an SD alarm is generated in the BC direction. C sends Remote SD (1001) to D and Local SD (1010) to B. C blocks the port where the Local SD alarm is generated. After receiving Local SD (1010) from C, B blocks the inbound port of the Local SD (1010) message and simultaneously sends Remote SD (1001) to A. The APS code is transparently transmitted at each node. When the RPLowner node and RPL Neighbour node receive the Remote SD (1001) message, they release the RPL Owner port and RPLNeighbour port, and the service is connected to the operator network through AED-PE2.

[0191] As shown in Figure (11), an SD alarm is generated in the CB direction. B sends Remote SD (1001) to A and Local SD (1010) to C. B blocks the port where the Local SD alarm is generated. After receiving Local SD (1010) from B, C blocks the inbound port of the Local SD (1010) message and simultaneously sends Remote SD (1001) to D. The APS code is transparently transmitted at each node. When the RPLowner node and the RPL Neighbour node receive the Remote SD (1001) message, they release the RPL Owner port and the RPL Neighbour port, and the service is connected to the operator network through AED-PE2.

[0192] In summary, the self-negotiation protection method based on the ERPS protocol in the present invention configures the two ports of the upper ring node in the Ethernet multi-ring protection technology ERPS ring node, and at least one of the ports directly connected to the upper ring node in the two nodes adjacent to the upper ring node as Auto role types. The Auto role type can be switched between Auto Owner, Auto Neighbor and Auto Normal through negotiation; based on the negotiation priority of the Auto role type and the static role type, the upper ring node and its adjacent nodes are subjected to intra-device negotiation and inter-device negotiation in turn, and the port role type is negotiated through self-negotiation to form an RPL link. That is, by setting the Auto role type, the respective role types can be automatically negotiated according to the configuration scenario, reducing the complexity of engineering deployment. In addition, the ERPS standard does not define the SD code and SD-triggered protection switching logic, and also proposes the ERPS SD code and SD-triggered switching logic, which solves the defect that engineering ERPS does not support signal degradation SD-triggered protection switching.

[0193] At the same time, an embodiment of the present invention further provides an ERPS protocol-based self-negotiation protection device, which includes a configuration module and a negotiation module.

[0194] The configuration module is used to configure the two ports of the upper ring node in the Ethernet multi-ring protection technology ERPS ring node participating in auto-negotiation, as well as at least one of the ports of two ring nodes adjacent to the upper ring node and directly connected to the upper ring node, as the Auto role type, and configure the ports of the ring node not participating in auto-negotiation as the Static role type. The Auto role type can be switched between Auto Owner, Auto Neighbor, and Auto Normal through negotiation.

[0195] The negotiation module performs intra-device and inter-device negotiation on the upstream node and its adjacent nodes based on the negotiation priority of the Auto role type and the static role type. It negotiates the port role type through auto-negotiation to form an RPL link.

[0196] In some embodiments, the negotiation priority between the Auto role type and the static role type is:

[0197] Static Character > Auto Owner > Auto Neighbor > Auto Normal.

[0198] In some embodiments, when the negotiation module performs intra-device negotiation on the role types of the two ports of the uplink node and the ports of the adjacent nodes directly connected to the uplink node:

[0199] If two ports on a node are configured as Auto, the system compares the number of non-Normal types in the negotiated static and / or Auto role types on the two ports. If they are the same, one port is negotiated as Auto Owner or Auto Neighbor based on the port number, and the other port is negotiated as Auto Normal. If they are different, the port with the fewer non-Normal types in the negotiated static and / or Auto role types is negotiated as Auto Owner or Auto Neighbor, and the other port is negotiated as Auto Normal.

[0200] If only one port on a node is configured as the Auto role type, the negotiation is Auto Normal;

[0201] If only one port on a node is configured as the Auto role type and one port is configured as the static Normal role type, the Ring Protection Link RPL flag of the Auto role type port is set and the role type is negotiated to Auto Owner or AutoNeighbour;

[0202] If only one port on a node is configured as the Auto role type and one port is configured as the static Owner or Neighbor role type, the Ring Protection Link RPL flag of the Auto role type port is set and the role type is negotiated to AutoNormal.

[0203] If the Auto role type is not configured on a node, the role is determined based on the actual static configuration;

[0204] If two ports on a node are configured as Auto role types, the Ring Protection Link RPL flag of one port is set and the port is the Auto Owner, and the RPL flag of the other port is also set, and the negotiation is Auto Normal;

[0205] If two ports on a node are configured as Auto role types, the RPL flag of one port is set and the port is Auto Neighbor, and the RPL flag of the other port is also set and the negotiation is Auto Normal;

[0206] If two ports on a node are configured as Auto role types, the RPL flag of one port is set and the port is Auto Normal, and the RPL flag of the other port is also set, and the negotiation is Auto Owner or Auto Neighbor.

[0207] In some embodiments, when the negotiation module performs inter-device negotiation on the role types of the two ports of the uplink node and the ports of the adjacent nodes directly connected to the uplink node:

[0208] When the local end's Auto Normal mode encounters the other end's Auto Owner mode, the local end is promoted to Auto Neighbour mode.

[0209] When the local end is in Auto Normal mode and the other end is in Auto Neighbor mode, the local end is promoted to Auto Owner mode.

[0210] When the local Auto Neighbor encounters the other Auto Neighbor, one end is promoted to Auto Owner based on the size of their NodeIDs, while the other end remains unchanged.

[0211] When the local end is in Auto Neighbor mode and the other end is in Auto Normal mode, the other end is promoted to Auto Owner mode.

[0212] When the local Auto Owner encounters the other Auto Owner, one end is downgraded to AutoNeighbour based on the size of their NodeIDs, while the other end remains unchanged.

[0213] When the local end's Auto Owner status encounters the other end's Auto Normal status, the other end's status is upgraded to Auto Neighbor.

[0214] The local end is in the static Owner role type. If the peer end is in the Auto role type, the peer end's RPL flag is set and the peer end is negotiated as an Auto Neighbor.

[0215] The local end has a static Neighbor role type. If the peer end has an Auto role type, the peer end's RPL flag is set and the peer end is negotiated as an Auto Owner.

[0216] The local end uses the static Normal role type. If the peer end uses the Auto role type, the peer end's RPL flag is set and the peer end is negotiated to Auto Normal.

[0217] The local end sets the RPL flag and is the Auto Owner. If the peer end is an Auto role, the peer end is negotiated to be an Auto Neighbor and the RPL flag is set.

[0218] The local end sets the RPL flag and is in the Auto Neighbor mode. If the peer end is in the Auto role mode, the peer end is negotiated as the Auto Owner and the RPL flag is set.

[0219] The local end sets the RPL flag and sets the local end to Auto Normal. If the peer end is in Auto role type, the peer end will be negotiated to Auto Normal and the RPL flag will be set to Auto Normal.

[0220] In some embodiments, the negotiation module performs intra-device negotiation and inter-device negotiation on the upstream node and its adjacent nodes in sequence based on the negotiation priority of the Auto role type and the static role type, and negotiates the port role type through auto-negotiation to form an RPL link, including:

[0221] In an ERPS ring, ports 1 / 1 and 1 / 2 of upstream node A, port 1 / 1 of node B directly connected to port 1 / 2 of upstream node A, and port 1 / 1 of node E directly connected to port 1 / 1 of upstream node A are all configured as Auto role types, and the ports of nodes B and E directly connected to other nodes on the ring and the ports of other nodes on the ring are configured as Static role types.

[0222] Because both ports 1 / 1 and 1 / 2 of node A on the upstream ring are configured as Auto, and the number of non-Normal types in the static and / or Auto role types initially negotiated by ports 1 / 1 and 1 / 2 on the upstream ring is 0, intra-device negotiation is performed to set port 1 / 1 (with the smaller port number) as Auto Owner and port 1 / 2 as AutoNormal.

[0223] Because only port 1 / 1 on node B is configured as the Auto role, intra-device negotiation is performed to change port 1 / 1 on node B to Auto Normal.

[0224] Based on the negotiation between Node B's 1 / 1 port and Node A's 1 / 2 port on the peer end and the Auto Normal role, inter-device negotiation is performed to maintain the Auto Normal role settings for Node A's 1 / 2 port and Node B's 1 / 1 port.

[0225] Because only port 1 / 1 on node E is configured as Auto, intra-device negotiation is performed to change port 1 / 1 on node E to Auto Normal.

[0226] Based on the negotiation that the 1 / 1 port of node A on the peer end of node E's 1 / 1 is the Auto Owner port, inter-device negotiation is performed to renegotiate the 1 / 1 port of node E to the Auto Neighbor port.

[0227] Block the 1 / 1 port of node A and the 1 / 1 port of node E on the upstream link to form an RPL link.

[0228] In some embodiments, the negotiation module performs intra-device negotiation and inter-device negotiation on the upstream node and its adjacent nodes in sequence based on the negotiation priority of the Auto role type and the static role type, and negotiates the port role type through auto-negotiation to form an RPL link, including:

[0229] In an ERPS dual-ring system, Ring 1 and Ring 2, ports 1 / 1 and 1 / 2 of upstream node A, port 1 / 1 of node B directly connected to port 1 / 2 of upstream node A, and port 1 / 1 of node E directly connected to port 1 / 1 of upstream node A are all configured as Auto role types, while the ports directly connected to other nodes on the ring, as well as the ports of other nodes on the ring, are configured as Static role types.

[0230] In the nodes of Ring1:

[0231] Because ports 1 / 1 and 1 / 2 of node A on the upstream ring are both configured as Auto, and the number of non-Normal types in the static and / or Auto role types initially negotiated by ports 1 / 1 and 1 / 2 on the upstream ring is 0, intra-device negotiation is performed. Port 1 / 1, which has the smaller port number, is negotiated as Auto Owner on Ring 1, and port 1 / 2 is negotiated as Auto Normal.

[0232] Because only port 1 / 1 of node B is configured as the Auto role type, intra-device negotiation is performed to set port 1 / 1 of node B to Auto Normal in Ring 1.

[0233] Based on the negotiation between Node B's 1 / 1 port and Node A's 1 / 2 port on the peer end and the Auto Normal role, inter-device negotiation is performed to maintain the Auto Normal role types of Node A's 1 / 2 port and Node B's 1 / 1 port on Ring 1.

[0234] Because only port 1 / 1 on node E is configured as the Auto role, intra-device negotiation is performed to set port 1 / 1 on node E to Auto Normal on Ring 1.

[0235] Based on the negotiation that the 1 / 1 port of node E on the other end of ring node A is the Auto Owner, inter-device negotiation is performed to renegotiate the 1 / 1 port of node E on Ring 1 to the Auto Neighbor port.

[0236] In Ring 1, block the 1 / 1 port of node A and the 1 / 1 port of node E on the upstream ring to form an RPL link.

[0237] In the nodes of Ring2:

[0238] Based on the fact that both ports 1 / 1 and 1 / 2 of node A on the upstream ring are configured as Auto roles, and that port 1 / 1 of node A on ring 1 is negotiated as Auto Owner and port 1 / 2 as Auto Normal, intra-device negotiation is performed. Among the ports on node A on ring 2, ports 1 / 2 that have negotiated static and / or Auto roles with a small number of non-Normal ports are negotiated as Auto Owner, and port 1 / 1 is negotiated as Auto Normal.

[0239] Because only port 1 / 1 of node B is configured as the Auto role type, intra-device negotiation is performed to set port 1 / 1 of node B to Auto Normal in Ring 2.

[0240] Based on the negotiation that the 1 / 2 ports of node A on the peer ring of node B are set to Auto Owner, inter-device negotiation is performed and the 1 / 1 ports of node B are renegotiated to Auto Neighbor on Ring 2.

[0241] Because only port 1 / 1 on node E is configured as the Auto role, intra-device negotiation is performed, and port 1 / 1 on node E is negotiated to Auto Normal on Ring 2.

[0242] Based on the negotiation that port 1 / 1 of node A on the peer end of node E is in the Auto Normal state, inter-device negotiation is performed to maintain the Auto Normal state of port 1 / 1 of node A and port 1 / 1 of node E on Ring 2.

[0243] In Ring2, block the 1 / 2 port of node A on the upstream ring and the 1 / 1 port of node B to form an RPL link.

[0244] In some embodiments, the negotiation module performs intra-device negotiation and inter-device negotiation on the upstream node and its adjacent nodes in sequence based on the negotiation priority of the Auto role type and the static role type, and negotiates the port role type through auto-negotiation to form an RPL link, including:

[0245] In an ERPS ring, ports 1 / 1 and 1 / 2 of upstream node A and port 1 / 1 of node E directly connected to port 1 / 1 of upstream node A are configured as Auto, and port 1 / 1 of node B directly connected to port 1 / 2 of upstream node A is configured as Static Owner.

[0246] Because both ports 1 / 1 and 1 / 2 of node A on the upstream ring are configured as Auto, and the number of non-Normal types in the static and / or Auto role types initially negotiated by ports 1 / 1 and 1 / 2 on the upstream ring is 0, intra-device negotiation is performed to set port 1 / 1 (with the smaller port number) as Auto Owner and port 1 / 2 as AutoNormal.

[0247] Based on the configuration of port 1 / 1 of the peer node B of port 1 / 2 of the upstream node A as the static owner, inter-device negotiation is performed to renegotiate port 1 / 2 of the upstream node A to Auto Neighbor with the RPL flag set. Port 1 / 1 of the upstream node A is renegotiated to Auto Normal with the RPL flag set.

[0248] Because only port 1 / 1 on node E is configured as Auto, intra-device negotiation is performed to change port 1 / 1 on node E to Auto Normal.

[0249] Based on the negotiation of port 1 / 1 of node A on the opposite end of node E's link, port 1 / 1 of node A on the opposite end is set to Auto Normal, and the RPL flag is set. Inter-device negotiation is performed to maintain the role types of port 1 / 1 of node A on the opposite end and port 1 / 1 of node E in Auto Normal, and the RPL flag of port 1 / 1 of node E is set to the same.

[0250] Block the 1 / 2 port of node A and the 1 / 1 port of node B on the upstream link to form an RPL link.

[0251] In some embodiments, the negotiation module performs intra-device negotiation and inter-device negotiation on the upstream node and its adjacent nodes in sequence based on the negotiation priority of the Auto role type and the static role type, and negotiates the port role type through auto-negotiation to form an RPL link, including:

[0252] When ERPS is configured with two rings: Ring 1 and Ring 2, at the ring node:

[0253] Configure ports 1 / 1 and 1 / 2 of node A on the upstream ring of Ring 1 as Auto. Also configure port 1 / 1 of node E, which is directly connected to port 1 / 1 of node A, as Auto. Configure port 1 / 1 of node B, which is directly connected to port 1 / 2 of node A, as Static Owner. Configure the ports on nodes B and E that are directly connected to other nodes on the ring, as well as the ports on other nodes on the ring, as Static.

[0254] Configure ports 1 / 1 and 1 / 2 of node A on the upstream ring of Ring2 as Auto, port 1 / 1 of node E directly connected to port 1 / 1 of node A as Static Owner, port 1 / 1 of node B directly connected to port 1 / 2 of node A as Auto, and the ports of node B and node E directly connected to the rest of the nodes on the ring and the ports of the rest of the nodes on the ring as Static.

[0255] In the nodes of Ring1:

[0256] Because ports 1 / 1 and 1 / 2 of node A on the upstream ring are both configured as Auto, and the number of non-Normal types in the static and / or Auto role types initially negotiated by ports 1 / 1 and 1 / 2 on the upstream ring is 0, intra-device negotiation is performed. Port 1 / 1, which has the smaller port number, is negotiated as Auto Owner on Ring 1, and port 1 / 2 is negotiated as Auto Normal.

[0257] Based on the configuration of port 1 / 1 of the peer node B of port 1 / 2 of the upstream node A as the static owner, inter-device negotiation is performed. In Ring 1, port 1 / 2 of the upstream node A is renegotiated to Auto Neighbor, and the RPL flag is set. Port 1 / 1 of the upstream node A is renegotiated to Auto Normal, and the RPL flag is set.

[0258] Because only port 1 / 1 on node E is configured as the Auto role, intra-device negotiation is performed to set port 1 / 1 on node E to Auto Normal on Ring 1.

[0259] Based on the negotiation that port 1 / 1 of node A on the peer end of node E is in Auto Normal mode and the RPL flag is set, inter-device negotiation is performed to maintain the role types of port 1 / 1 of node A and port 1 / 1 of node E in Ring 1 as Auto Normal, and the RPL flag of port 1 / 1 of node E is set.

[0260] In Ring 1, block the 1 / 2 port of node A and the 1 / 1 port of node B on the upstream ring to form an RPL link.

[0261] In the nodes of Ring2:

[0262] Based on the fact that both ports 1 / 1 and 1 / 2 of node A on the upstream ring are configured as Auto roles, and ports 1 / 2 of node A on Ring 1 are negotiated to Auto Neighbor and 1 / 1 to Auto Normal, intra-device negotiation is performed. Among the ports on node A on Ring 2, ports 1 / 1 that have negotiated static and / or Auto roles with a small number of non-Normal types are negotiated to Auto Owner, and ports 1 / 2 are negotiated to Auto Normal.

[0263] Based on the configuration of port 1 / 1 of node A on the upstream ring as the static owner of port 1 / 1 of node E on the opposite end, inter-device negotiation is performed. In Ring 2, port 1 / 1 of node A on the upstream ring is renegotiated to Auto Neighbor with the RPL flag set. Port 1 / 2 of node A on the upstream ring is renegotiated to Auto Normal with the RPL flag set.

[0264] Because only port 1 / 1 on node B is configured as the Auto role, intra-device negotiation is performed to set port 1 / 1 on node E in Ring 2 to Auto Normal.

[0265] Based on the negotiation between Node B's 1 / 1 port and Node A's 1 / 2 port on the opposite end of the ring, which is in Auto Normal mode and with the RPL flag set, inter-device negotiation is performed to maintain the Auto Normal role type of Node A's 1 / 2 port and Node B's 1 / 1 port in Ring 2, with the RPL flag set on Node B's 1 / 1 port.

[0266] In Ring2, block the 1 / 1 port of node A on the upstream ring and the 1 / 1 port of node E to form an RPL link.

[0267] In some embodiments, the configuration module is further configured to:

[0268] The Request / state field of the APS code is expanded with the following SD codes: Signal Degrade Local and Signal Degrade Remote.

[0269] When a local port generates an SD alarm or receives a Signal Degrade Local alarm from a remote end, the port generating the SD alarm or receiving the Signal Degrade Local alarm is blocked.

[0270] At the same time, the Signal Degrade Remote alarm is forwarded externally, so that ports with the Owner role or the Neighbor role on the ERPS ring can be released after receiving the Signal Degrade Remote alarm.

[0271] The foregoing is merely a list of specific embodiments of the present application, intended to enable those skilled in the art to understand or implement the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application is not limited to the embodiments shown herein, but is intended to conform to the broadest scope consistent with the principles and novel features of the present application.

Claims

1. A self-negotiation protection method based on the ERPS protocol, characterized in that: The method comprises the following steps: Configure the two ports of the upper ring node in an Ethernet multi-ring protection technology (ERPS) ring node participating in auto-negotiation, as well as at least one of the ports of two ring nodes adjacent to the upper ring node and directly connected to the upper ring node, as the Auto role type. Configure the ports of the ring node not participating in auto-negotiation as the Static role type. The Auto role type can be switched between Auto Owner, Auto Neighbor, and Auto Normal through negotiation. Based on the negotiation priority of the Auto role type and the static role type, intra-device negotiation and inter-device negotiation are performed on the upstream node and its adjacent nodes in sequence. The port role type is negotiated through auto-negotiation to form an RPL link. The negotiation priorities between the Auto role type and the static role type are: Static Role > Auto Owner > Auto Neighbor > Auto Normal; When intra-device negotiation is performed on the role types of the two ports of the upstream ring node and the ports of the adjacent node directly connected to the upstream ring node: If two ports on a node are configured as Auto, the system compares the number of non-Normal types in the negotiated static and / or Auto role types on the two ports. If they are the same, one port is negotiated as Auto Owner or Auto Neighbor, and the other port is negotiated as Auto Normal, based on the port number difference. If they are different, the port with the smaller number of non-Normal types in the negotiated static and / or Auto role types is negotiated as Auto Owner or Auto Neighbor, and the other port is negotiated as Auto Normal. If only one port on a node is configured as the Auto role type and no other ports are configured as the Static role type, the negotiation is Auto Normal. If only one port on a node is configured as the Auto role type and one port is configured as the static Normal role type, the Ring Protection Link RPL flag of the Auto role type port is set and the role type is negotiated to Auto Owner or AutoNeighbour; If only one port on a node is configured as the Auto role type and one port is configured as the static Owner or Neighbor role type, the Ring Protection Link RPL flag of the Auto role type port is set and the role type is negotiated to AutoNormal. If the Auto role type is not configured on a node, the role is determined based on the actual static configuration; If two ports on a node are configured as Auto role types, the Ring Protection Link RPL flag of one port is set and the port is the Auto Owner, and the RPL flag of the other port is also set, and the negotiation is Auto Normal; If two ports on a node are configured as Auto role types, the RPL flag of one port is set and the port is Auto Neighbor, and the RPL flag of the other port is also set and the negotiation is Auto Normal; If two ports on a node are configured as Auto role types, the RPL flag of one port is set and the port is Auto Normal, and the RPL flag of the other port is also set and negotiated to Auto Owner or Auto Neighbor; When inter-device negotiation is performed on the role types of the two ports of the upstream ring node and the ports of the adjacent node directly connected to the upstream ring node: When the local end's Auto Normal mode encounters the other end's Auto Owner mode, the local end is promoted to Auto Neighbour mode. When the local end is in Auto Normal mode and the other end is in Auto Neighbor mode, the local end is promoted to Auto Owner mode. When the local Auto Neighbor encounters the other Auto Neighbor, one end is promoted to Auto Owner based on the size of their NodeIDs, while the other end remains unchanged. When the local end is in Auto Neighbor mode and the other end is in Auto Normal mode, the other end is promoted to Auto Owner mode. When the local Auto Owner encounters the other Auto Owner, one end is downgraded to AutoNeighbour based on the size of their NodeIDs, while the other end remains unchanged. When the local end's Auto Owner status encounters the other end's Auto Normal status, the other end's status is upgraded to Auto Neighbor. The local end is in the static Owner role type. If the peer end is in the Auto role type, the peer end's RPL flag is set and the peer end is negotiated as an Auto Neighbor. The local end has a static Neighbor role type. If the peer end has an Auto role type, the peer end's RPL flag is set and the peer end is negotiated as an Auto Owner. The local end uses the static Normal role type. If the peer end uses the Auto role type, the peer end's RPL flag is set and the peer end is negotiated to Auto Normal. The local end sets the RPL flag and is the Auto Owner. If the peer end is an Auto role, the peer end is negotiated to be an AutoNeighbour and the RPL flag is set. The local end sets the RPL flag and is in the Auto Neighbor mode. If the peer end is in the Auto role mode, the peer end is negotiated as the Auto Owner and the RPL flag is set. The RPL flag on the local end is set, and the local end is in Auto Normal mode. If the peer end is in Auto mode, the peer end is negotiated to AutoNormal mode and the RPL flag is set.

2. The self-negotiation protection method based on the ERPS protocol according to claim 1, characterized in that: Based on the negotiation priority of the Auto role type and the static role type, intra-device negotiation and inter-device negotiation are performed on the upstream node and its adjacent nodes in sequence, and the port role type is negotiated in an auto-negotiation manner to form an RPL link, including: In an ERPS ring, ports 1 / 1 and 1 / 2 of upstream node A, port 1 / 1 of node B directly connected to port 1 / 2 of upstream node A, and port 1 / 1 of node E directly connected to port 1 / 1 of upstream node A are all configured as Auto role types, and the ports of nodes B and E directly connected to other nodes on the ring and the ports of other nodes on the ring are configured as Static role types. Because ports 1 / 1 and 1 / 2 of node A on the upstream ring are both configured as Auto, and the number of non-Normal types in the static and / or Auto role types initially negotiated by ports 1 / 1 and 1 / 2 on the upstream ring is 0, intra-device negotiation is performed to set port 1 / 1 (with the smaller port number) as Auto Owner and port 1 / 2 as Auto Normal. Because only port 1 / 1 on node B is configured as the Auto role type, intra-device negotiation is performed to set port 1 / 1 on node B to Auto Normal. Based on the negotiation between Node B's 1 / 1 port and Node A's 1 / 2 port on the peer end and the Auto Normal role, inter-device negotiation is performed to maintain the Auto Normal role settings for Node A's 1 / 2 port and Node B's 1 / 1 port. Because only port 1 / 1 on node E is configured as the Auto role, intra-device negotiation is performed to change port 1 / 1 on node E to Auto Normal. Based on the negotiation that the 1 / 1 port of node A on the peer end of node E's 1 / 1 is the Auto Owner port, inter-device negotiation is performed to renegotiate the 1 / 1 port of node E to the Auto Neighbor port. Block the 1 / 1 port of node A and the 1 / 1 port of node E on the upstream link to form an RPL link.

3. The self-negotiation protection method based on the ERPS protocol according to claim 1, characterized in that: Based on the negotiation priority of the Auto role type and the static role type, intra-device negotiation and inter-device negotiation are performed on the upstream node and its adjacent nodes in sequence, and the port role type is negotiated in an auto-negotiation manner to form an RPL link, including: In an ERPS dual-ring system, Ring 1 and Ring 2, ports 1 / 1 and 1 / 2 of upstream node A, port 1 / 1 of node B directly connected to port 1 / 2 of upstream node A, and port 1 / 1 of node E directly connected to port 1 / 1 of upstream node A are all configured as Auto role types, while the ports directly connected to other nodes on the ring, as well as the ports of other nodes on the ring, are configured as Static role types. In the nodes of Ring1: Because ports 1 / 1 and 1 / 2 of node A on the upstream ring are both configured as Auto, and the number of non-Normal types in the static and / or Auto role types initially negotiated by ports 1 / 1 and 1 / 2 on the upstream ring is 0, intra-device negotiation is performed. Port 1 / 1, which has the smaller port number, is negotiated as Auto Owner on Ring 1, and port 1 / 2 is negotiated as Auto Normal. Because only port 1 / 1 of node B is configured as the Auto role type, intra-device negotiation is performed to set port 1 / 1 of node B to Auto Normal in Ring 1. Based on the negotiation between Node B's 1 / 1 port and Node A's 1 / 2 port on the peer end and the Auto Normal role, inter-device negotiation is performed to maintain the Auto Normal role types of Node A's 1 / 2 port and Node B's 1 / 1 port on Ring 1. Because only port 1 / 1 on node E is configured as the Auto role, intra-device negotiation is performed to set port 1 / 1 on node E to Auto Normal on Ring 1. Based on the negotiation that the 1 / 1 port of node E on the other end of ring node A is the Auto Owner, inter-device negotiation is performed to renegotiate the 1 / 1 port of node E on Ring 1 to the Auto Neighbor port. In Ring 1, block the 1 / 1 port of node A and the 1 / 1 port of node E on the upstream ring to form an RPL link. In the nodes of Ring2: Based on the fact that both ports 1 / 1 and 1 / 2 of node A on the upstream ring are configured as Auto roles, and that port 1 / 1 of node A on ring 1 is negotiated as Auto Owner and port 1 / 2 as Auto Normal, intra-device negotiation is performed. Among the ports on node A on ring 2, ports 1 / 2 that have negotiated static and / or Auto roles with a small number of non-Normal ports are negotiated as Auto Owner, and port 1 / 1 is negotiated as Auto Normal. Because only port 1 / 1 of node B is configured as the Auto role type, intra-device negotiation is performed to set port 1 / 1 of node B to Auto Normal in Ring 2. Based on the negotiation that the 1 / 2 ports of node A on the peer ring of node B are set to Auto Owner, inter-device negotiation is performed and the 1 / 1 ports of node B are renegotiated to Auto Neighbor on Ring 2. Because only port 1 / 1 on node E is configured as the Auto role, intra-device negotiation is performed, and port 1 / 1 on node E is negotiated to Auto Normal on Ring 2. Based on the negotiation that port 1 / 1 of node A on the peer end of node E is in the Auto Normal state, inter-device negotiation is performed to maintain the Auto Normal state of port 1 / 1 of node A and port 1 / 1 of node E on Ring 2. In Ring2, block the 1 / 2 port of node A on the upstream ring and the 1 / 1 port of node B to form an RPL link.

4. The self-negotiation protection method based on the ERPS protocol according to claim 1, characterized in that: Based on the negotiation priority of the Auto role type and the static role type, intra-device negotiation and inter-device negotiation are performed on the upstream node and its adjacent nodes in sequence, and the port role type is negotiated in an auto-negotiation manner to form an RPL link, including: In an ERPS ring, ports 1 / 1 and 1 / 2 of upstream node A and port 1 / 1 of node E directly connected to port 1 / 1 of upstream node A are configured as Auto, and port 1 / 1 of node B directly connected to port 1 / 2 of upstream node A is configured as Static Owner. Because ports 1 / 1 and 1 / 2 of node A on the upstream ring are both configured as Auto, and the number of non-Normal types in the static and / or Auto role types initially negotiated by ports 1 / 1 and 1 / 2 on the upstream ring is 0, intra-device negotiation is performed to set port 1 / 1 (with the smaller port number) as Auto Owner and port 1 / 2 as Auto Normal. Based on the configuration of port 1 / 1 of the peer node B of port 1 / 2 of the upstream node A as the static owner, inter-device negotiation is performed to renegotiate port 1 / 2 of the upstream node A to Auto Neighbor with the RPL flag set. Port 1 / 1 of the upstream node A is renegotiated to Auto Normal with the RPL flag set. Because only port 1 / 1 on node E is configured as the Auto role, intra-device negotiation is performed to change port 1 / 1 on node E to Auto Normal. Based on the negotiation of port 1 / 1 of node A on the opposite end of node E's link, port 1 / 1 of node A on the opposite end is set to Auto Normal, and the RPL flag is set. Inter-device negotiation is performed to maintain the role types of port 1 / 1 of node A on the opposite end and port 1 / 1 of node E in Auto Normal, and the RPL flag of port 1 / 1 of node E is set to the same. Block the 1 / 2 port of node A and the 1 / 1 port of node B on the upstream link to form an RPL link.

5. The self-negotiation protection method based on the ERPS protocol according to claim 1, characterized in that: Based on the negotiation priority of the Auto role type and the static role type, intra-device negotiation and inter-device negotiation are performed on the upstream node and its adjacent nodes in sequence, and the port role type is negotiated in an auto-negotiation manner to form an RPL link, including: When ERPS is configured with two rings: Ring 1 and Ring 2, at the ring node: Configure ports 1 / 1 and 1 / 2 of node A on the upstream ring of Ring 1 as Auto. Also configure port 1 / 1 of node E, which is directly connected to port 1 / 1 of node A, as Auto. Configure port 1 / 1 of node B, which is directly connected to port 1 / 2 of node A, as Static Owner. Configure the ports on nodes B and E that are directly connected to other nodes on the ring, as well as the ports on other nodes on the ring, as Static. Configure ports 1 / 1 and 1 / 2 of node A on the upstream ring of Ring2 as Auto, port 1 / 1 of node E directly connected to port 1 / 1 of node A as Static Owner, port 1 / 1 of node B directly connected to port 1 / 2 of node A as Auto, and the ports of node B and node E directly connected to the rest of the nodes on the ring and the ports of the rest of the nodes on the ring as Static. In the nodes of Ring1: Because ports 1 / 1 and 1 / 2 of node A on the upstream ring are both configured as Auto, and the number of non-Normal types in the static and / or Auto role types initially negotiated by ports 1 / 1 and 1 / 2 on the upstream ring is 0, intra-device negotiation is performed. Port 1 / 1, which has the smaller port number, is negotiated as Auto Owner on Ring 1, and port 1 / 2 is negotiated as Auto Normal. Based on the configuration of port 1 / 1 of the peer node B of port 1 / 2 of the upstream node A as the static owner, inter-device negotiation is performed. In Ring 1, port 1 / 2 of the upstream node A is renegotiated to Auto Neighbor, and the RPL flag is set. Port 1 / 1 of the upstream node A is renegotiated to Auto Normal, and the RPL flag is set. Because only port 1 / 1 on node E is configured as the Auto role, intra-device negotiation is performed to set port 1 / 1 on node E to Auto Normal on Ring 1. Based on the negotiation that port 1 / 1 of node A on the peer end of node E is in Auto Normal mode and the RPL flag is set, inter-device negotiation is performed to maintain the role types of port 1 / 1 of node A and port 1 / 1 of node E in Ring 1 as Auto Normal and the RPL flag of port 1 / 1 of node E as set. In Ring 1, block the 1 / 2 port of node A and the 1 / 1 port of node B on the upstream ring to form an RPL link. In the nodes of Ring2: Based on the fact that both ports 1 / 1 and 1 / 2 of node A on the upstream ring are configured as Auto roles, and ports 1 / 2 of node A on Ring 1 are negotiated to Auto Neighbor and 1 / 1 to Auto Normal, intra-device negotiation is performed. Among the ports on node A on Ring 2, ports 1 / 1 that have negotiated static and / or Auto roles with a small number of non-Normal types are negotiated to Auto Owner, and ports 1 / 2 are negotiated to Auto Normal. Based on the configuration of port 1 / 1 of node A on the upstream ring as the static owner of port 1 / 1 of node E on the opposite end, inter-device negotiation is performed. In Ring 2, port 1 / 1 of node A on the upstream ring is renegotiated to Auto Neighbor with the RPL flag set. Port 1 / 2 of node A on the upstream ring is renegotiated to Auto Normal with the RPL flag set. Because only port 1 / 1 on node B is configured as the Auto role, intra-device negotiation is performed to set port 1 / 1 on node E in Ring 2 to Auto Normal. Based on the negotiation between Node B's 1 / 1 port and Node A's 1 / 2 port on the opposite end of the ring, which is in Auto Normal mode and with the RPL flag set, inter-device negotiation is performed to maintain the Auto Normal role type of Node A's 1 / 2 port and Node B's 1 / 1 port in Ring 2, with the RPL flag set on Node B's 1 / 1 port. In Ring2, block the 1 / 1 port of node A on the upstream ring and the 1 / 1 port of node E to form an RPL link.

6. The self-negotiation protection method based on the ERPS protocol according to claim 1, characterized in that: Also includes: The Request / state field of the APS code is expanded with the following SD codes: Signal Degrade Local and Signal Degrade Remote. When a local port generates an SD alarm or receives a Signal Degrade Local alarm from a remote end, the port generating the SD alarm or receiving the Signal Degrade Local alarm is blocked. At the same time, the Signal Degrade Remote alarm is forwarded externally, so that ports with the Owner role or the Neighbor role on the ERPS ring can be released after receiving the Signal Degrade Remote alarm.

7. An ERPS protocol-based self-negotiation protection device that implements the ERPS protocol-based self-negotiation protection method according to claim 1, characterized in that: include: A configuration module configured to configure two ports of an upper ring node in an Ethernet multi-ring protection technology (ERPS) ring node participating in auto-negotiation, as well as at least one of two ports of two ring nodes adjacent to the upper ring node and directly connected to the upper ring node, as having an Auto role type, and to configure ports of ring nodes not participating in auto-negotiation as having a static role type. The Auto role type can be switched between Auto Owner, Auto Neighbor, and Auto Normal through negotiation; The negotiation module performs intra-device and inter-device negotiation on the upstream node and its adjacent nodes based on the negotiation priority of the Auto role type and the static role type. It negotiates the port role type through auto-negotiation to form an RPL link.

Citation Information

Patent Citations

  • Main / standby switching method of EAPS Ethernet ring network

    CN110635940A

  • Switching method and device, ring network, electronic equipment and storage medium

    CN112637052A