Ring network system and working method thereof

By building a switch chain and carrying out a port negotiation mechanism, the problems of long convergence time and low link efficiency of industrial Ethernet ring networking are solved, fast fault recovery and efficient communication channels of the ring network are achieved, broadcast storms are avoided, and costs are reduced. .

CN118740548APending Publication Date: 2024-10-01STATE GRID CORPORATION OF CHINA +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410750626.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The convergence time of existing industrial Ethernet ring networking is too long, the link efficiency is low, and it is difficult to implement hybrid networking. It is easy to form broadcast storms, resulting in high costs.

Method used

By building a switch chain, setting edge ports, ordinary ports and blocked ports, each switch link has only one blocked port. The switch node periodically sends link status messages, updates the neighbor status database, and starts the port when a new switch joins. Negotiation mechanism to establish neighbor relationships and replace faulty links to maintain communication channels.

Benefits of technology

It realizes the continuous continuity of communication paths between nodes on the ring network, improves the convergence speed and efficiency, avoids broadcast storms, can quickly detect faults and enable backup links, and respond to and restore single-point or multi-point interruptions in the Ethernet ring network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740548A_ABST
    Figure CN118740548A_ABST
Patent Text Reader

Abstract

The invention relates to a looped network system and a working method thereof, a plurality of sections of VLANs and Velcro IDs with the same configuration and mutually communicated switches are connected together to construct a switch chain, and each switch can only have two ports to be added into the same section of link; an edge port, a common port and a blocking port are arranged in each section of switch chain, and only one blocking port is arranged in each switch chain; each switch node in each switch link periodically sends link state messages, all nodes update local neighbor state databases after receiving the link state messages sent by other nodes, and the state databases of all the nodes on the switch links are kept consistent; and when a new switch is added into the switch chain, starting a port neighbor negotiation mechanism for adding the position node, negotiating with an adjacent port by receiving and transmitting a neighbor protocol message to establish a neighbor relationship, and continuing to send and receive the neighbor protocol message after negotiation succeeds.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer networks, and in particular to a ring network system and a working method thereof. Background Art

[0002] As the industrial environment places higher and higher demands on the reliability, real-time performance and protection capabilities of industrial control networks, industrial Ethernet widely adopts ring networking to improve network reliability. Most of them are based on RSTP ring networks to implement various functions and networking, but the convergence time of RSTP ring networks is too long, about 1-10 seconds, which is not accurate enough; at the same time, various protocols are used, such as public protocols and private protocols are used to form separate networks, and hybrid networking cannot be achieved. If hybrid networking is to be achieved, broadcast storms are likely to form, so the ring network link efficiency is low and the cost is high.

[0003] In the prior art CN1812361A fast ring network protection method and system, the present invention discloses a fast ring network protection method, including: creating a fast ring network protection domain, connecting nodes through ports to form a ring, and each node includes two ports connected to the ring; the master node sets the first port to forwarding mode and the second port to blocking mode; the link failure is learned through access control table, forwarding table item or virtual local area network, and the virtual local area network forwards data messages and protocol messages; when the link failure is learned, the master node sets the second port to forwarding mode, and refreshes the forwarding table of the master node and other nodes. In the prior art, multiple ports are set in a link, and when one of the ports fails, the passive port is enabled to restore the failed link. In this method, if there are problems with the ports in the link, the entire ring network will continue to fail, and it takes a lot of time to process multiple fault ports, so the efficiency of the ring network link is low. Summary of the invention

[0004] In order to solve the above problems existing in the prior art, the present invention proposes a ring network system and a working method thereof.

[0005] The technical solution of the present invention is as follows:

[0006] On the one hand, the present invention provides a working method of a ring network system, and the specific steps include:

[0007] Connect several switches with the same segment VLAN and magic word ID and interconnected to build a switch chain. Each switch can only have two ports added to the same link.

[0008] In each switch chain, an edge port, a common port and a blocking port are set, wherein there is only one blocking port in each switch link;

[0009] Each switch node in each switch link periodically sends a link status message. After receiving the link status message sent by other nodes, all nodes update their local neighbor status database to keep the status database of all nodes on the switch link consistent.

[0010] When a new switch joins the switch chain, the port neighbor negotiation mechanism of the node joining the position is started, and the neighbor relationship is established by negotiating with the adjacent port through sending and receiving neighbor protocol messages, and after the negotiation is successful, the neighbor protocol messages are continued to be sent and received;

[0011] The constructed switch chain is added to the blocked link in the ring network to replace the original link and maintain the communication path of each node in the ring network.

[0012] As a preferred implementation, the edge port includes a primary edge port and a secondary edge port. The primary edge port is determined by user configuration and election, and is used to initiate blocked port preemption, terminate messages, and send topology change messages to other networks; the secondary edge port is also determined by user configuration and election, and is used to terminate messages and send topology change messages to other networks.

[0013] As a preferred implementation, among all the ports of the switch chain, only one port is in a blocking state, and all the remaining ports are in a forwarding state.

[0014] As a preferred implementation manner, the link status message includes system MAC, port priority, port index, link status, neighbor status and port role.

[0015] As a preferred implementation, the selection of the blocked port is determined by a port priority comparison principle, and the specific port priority comparison principle is as follows:

[0016] The larger the port priority value is, the higher the priority is. When the port priorities are the same, compare the bridge MAC of the port. The smaller the bridge MAC is, the higher the priority is. When the port bridge MAC is the same, compare the port number. The smaller the number is, the higher the priority is.

[0017] In another aspect, the present invention provides a ring network system, comprising:

[0018] The switch chain building module connects several switches with the same segment VLAN and magic word ID and interconnected to build a switch chain, where each switch can only have two ports added to the same link;

[0019] A switch chain port setting module, which sets edge ports, common ports and blocking ports in each switch chain, wherein there is only one blocking port in each switch chain;

[0020] The switch chain node synchronization module, each switch node in each switch link periodically sends a link status message. After all nodes receive the link status message sent by other nodes, they update the local neighbor status database to keep the status database of all nodes on the switch link consistent;

[0021] The new switch joining module starts the port neighbor negotiation mechanism of the node when a new switch joins the switch chain, establishes a neighbor relationship with the adjacent port by sending and receiving neighbor protocol messages, and continues to send and receive neighbor protocol messages after the negotiation is successful;

[0022] The switch chain access module adds the constructed switch chain to the blocked link in the ring network, replacing the original link to maintain the communication path of each node on the ring network.

[0023] As a preferred implementation, the edge port includes a primary edge port and a secondary edge port. The primary edge port is determined by user configuration and election, and is used to initiate blocked port preemption, terminate messages, and send topology change messages to other networks; the secondary edge port is also determined by user configuration and election, and is used to terminate messages and send topology change messages to other networks.

[0024] As a preferred implementation, among all the ports of the switch chain, only one port is in a blocking state, and all the remaining ports are in a forwarding state.

[0025] As a preferred implementation manner, the link status message includes system MAC, port priority, port index, link status, neighbor status and port role.

[0026] As a preferred implementation, the selection of the blocked port is determined by a port priority comparison principle, and the specific port priority comparison principle is as follows:

[0027] The larger the port priority value is, the higher the priority is. When the port priorities are the same, compare the bridge MAC of the port. The smaller the bridge MAC is, the higher the priority is. When the port bridge MAC is the same, compare the port number. The smaller the number is, the higher the priority is.

[0028] The present invention has the following beneficial effects:

[0029] 1. The present invention uses a switch chain to replace a faulty link in a ring network, thereby achieving continuous conduction of the communication paths between nodes on the ring network.

[0030] 2. The present invention uses a switch chain to enable the ring network to have a faster convergence speed, higher calculation efficiency, and more accurate results.

[0031] 3. The switch chain of the present invention is composed of switches that are configured with the same segment VLAN and magic word ID and are interconnected. It can realize hybrid networking in more complex networking modes, quickly form links, and effectively avoid link paralysis caused by broadcast storms.

[0032] 4. The present invention transmits ring network control information through a control channel and combines the topological characteristics of the ring network itself to quickly discover network failures and enable backup links for rapid recovery. It can achieve efficient and rapid response and recovery for single-point interruptions, single-point unidirectional interruptions, and multi-point interruptions of the Ethernet ring network. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is a schematic diagram of the steps of the present invention;

[0034] Figure 2 It is a schematic diagram of the structure of the switch chain;

[0035] Figure 3 The figure is a schematic diagram of fault detection between adjacent ports of each switch. DETAILED DESCRIPTION

[0036] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0037] It should be understood that the step numbers used in this document are only for convenience of description and are not intended to limit the order in which the steps are executed.

[0038] It should be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0039] The terms “include” and “comprising” indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0040] The term "and / or" means and includes any and all possible combinations of one or more of the associated listed items.

[0041] Embodiment 1:

[0042] See also Figure 1 , a working method of a ring network system, the specific steps include:

[0043] Step 1: Connect several switches that are configured with the same segment VLAN and magic word ID and are interconnected to build a switch chain. Each switch can only have two ports added to the same link.

[0044] In this embodiment, in order to prevent loops in the switch chain, a loop protection mechanism needs to be activated to selectively block ports and eliminate Ethernet redundant loops. When a link failure occurs in the ring network, the blocked port can be quickly released to perform link switching and restore the communication paths of each node on the ring network.

[0045] The composition of the switch chain is as follows Figure 2 shown.

[0046] Step 2: Set edge ports, common ports and blocking ports in each switch chain, where there is only one blocking port in each switch link;

[0047] In this embodiment, there is only one primary edge port in a switch chain, which is determined by user configuration and election. The primary edge port can initiate blocked port preemption, terminate messages, send topology change messages to other networks, etc. There is only one secondary edge port in a switch chain, which is determined by user configuration and election. The secondary edge port has the functions of terminating messages and sending topology change messages to other networks.

[0048] All ports except edge ports and blocking ports are common ports. Common ports are responsible for monitoring the link status of directly connected switches and notifying neighbor ports of link changes, which are then continuously spread to other ports on the link and finally reach the primary edge port, which then decides how to handle the reported link changes.

[0049] The port status is divided into two states: blocking and forwarding. In a chain, only one port is in the blocking state, and the others are in the forwarding state.

[0050] Step 3: Each switch node in each switch link periodically sends a link status message. After receiving the link status message sent by other nodes, all nodes update the local neighbor status database to keep the status database of all nodes on the switch link consistent;

[0051] In this embodiment, the switch node periodically sends a link status notification message from the switch port. The message is broadcast to all nodes in the user-configured segment VLAN. All nodes need to process it and update the neighbor status database of this node. The neighbor status DOWN also sends a port neighbor fault message. Under normal circumstances, slow cycle synchronization is adopted, and the node sends out once every 10 seconds; after the node information changes, the link status update message is sent immediately. The link status message needs to carry: system MAC, port priority, port index, link status, neighbor status, port role and other contents.

[0052] Step 4: When a new switch joins the switch chain, the port neighbor negotiation mechanism of the node joining the position is started, and the neighbor relationship is established with the adjacent port through negotiation by sending and receiving neighbor protocol messages, and the neighbor protocol messages are continued to be sent and received after the negotiation is successful;

[0053] In this embodiment, the neighbor message does not carry a tag, is sent to only one hop, and is not forwarded after being received. The frequency of sending the neighbor protocol message is 1 time / 3.3 milliseconds. The timeout period of the neighbor protocol message is 10 milliseconds.

[0054] The neighbor negotiation mechanism can prevent the link from being unidirectional. The neighbor negotiation mechanism is bidirectional. The ports at both ends of the link must send neighbor protocol messages to the other end. If one end does not receive the neighbor protocol message sent by the other end within the timeout period, the neighbor status of the port will be set to Down. The neighbor negotiation mechanism provides necessary information for displaying the chain topology. By using the neighbor negotiation mechanism to establish neighbor relationships for each port, each link can be connected in series to form a complete chain.

[0055] At the same time, each switch uses CCM to detect whether the message is in a fault state between adjacent ports. Figure 3 shown.

[0056] Step 5: Add the constructed switch chain to the blocked link in the ring network, replacing the original link to maintain the communication path of each node in the ring network.

[0057] In this embodiment, in order to prevent loops from being formed and blocked by blocked ports, a port blocking mechanism is set. In the switch chain, no port is designated as a specific blocked port, and each port in the switch chain may become a blocked port; when the switch chain is intact, a switch chain only blocks one port.

[0058] Specifically, the blocked port is determined by the management priority and the user configuration priority. For example, by comparing the port priorities, the port with the highest priority is blocked.

[0059] Port priority comparison principle: when the port priority value is larger, the priority is higher; when the port priorities are the same, compare the port bridge MAC, the smaller the bridge MAC, the higher the priority; when the port bridge MAC is the same, compare the port number, the smaller the number, the higher the priority.

[0060] At the same time, a port preemption mode is set in the system; for example, when a link failure is restored to normal, a blocked port is selected from the last restored link to determine whether the blocked port should be migrated, which is determined by the preemption mode; although the use of the preemption mode is prone to packet loss, it can quickly restore the previously configured link status, thereby improving computing efficiency.

[0061] The three necessary conditions for triggering preemption include the existence of a master edge node in the switch chain, the user has configured a blocking port, and the blocking port exists and the link is complete.

[0062] The master edge port election mechanism related to the preemption mechanism only has the right to elect the edge port, and ultimately there is only one master edge port in a switch chain. After the port starts the protocol, if it meets the requirements for participating in the edge port election, it will initially set its operating role to the master edge and start sending master edge election messages periodically without waiting for the neighbor negotiation to succeed. If the operating port role of this port is an edge port, it receives a port fault notification message or does not receive the master edge election message for more than 3 cycles (the cycle is configurable, the default is 3 cycles), and the operating port role of the port is set to the master edge port. If there is a link failure on the ring, the operating roles of the two edge ports are both master edge ports, and both send master edge port election messages periodically. When the last link failure is restored, the edge ports at both ends can receive the master edge port election message from the other end, and the master edge port with the lower priority becomes the secondary edge port.

[0063] Flexible designation of blocking ports related to preemption mechanisms. Users can flexibly designate ideal blocking points, which do not take effect immediately. Under normal circumstances, the blocking point is one of the ports on the link that last completes neighbor negotiation. Only after the preemption mechanism takes effect will it preempt from the current blocking point to the user-specified blocking point.

[0064] As a preferred implementation mode of this embodiment, the edge port includes a primary edge port and a secondary edge port. The primary edge port is determined by user configuration and election, and is used to initiate blocked port preemption, terminate messages, and send topology change messages to other networks; the secondary edge port is also determined by user configuration and election, and is used to terminate messages and send topology change messages to other networks.

[0065] In this embodiment, the processing of the topology notification message is as follows: the switch chain can receive the TCN message of RSTP, and if the message of the FLUSH_MAC address type of TCP is received, the switch in the switch chain clears the MAC address table of the local machine. If the edge port at the switch end, when the topology changes in the chain, it is also necessary to send a TCN message similar to RSTP to notify the RSTP switch to clear the switch MAC and regenerate a new link.

[0066] As a preferred implementation of this embodiment, among all the ports of the switch chain, only one port is in a blocking state, and all the remaining ports are in a forwarding state.

[0067] As a preferred implementation manner of this embodiment, the link status message includes system MAC, port priority, port index, link status, neighbor status and port role.

[0068] As a preferred implementation of this embodiment, the selection of the blocked port is determined by a port priority comparison principle, and the specific port priority comparison principle is as follows:

[0069] The larger the port priority value is, the higher the priority is. When the port priorities are the same, compare the bridge MAC of the port. The smaller the bridge MAC is, the higher the priority is. When the port bridge MAC is the same, compare the port number. The smaller the number is, the higher the priority is.

[0070] In this embodiment, the switch chain supports at least three designation methods, for example, designating the best blocking port as the port with the highest priority; designating the middle blocking port as the port in the middle of the switch chain; and designating the port at the relative distance position of the main edge port. When the hop count of the main edge port is 1, the hop count increases in sequence along the neighbor direction of the main edge port.

[0071] Embodiment 2:

[0072] A ring network system, comprising:

[0073] A switch chain building module connects a number of switches configured with the same segment VLAN and magic word ID and interconnected to build a switch chain, wherein each switch can only have two ports added to the same segment link; this module is used to implement the function of step S1 in the first embodiment, and will not be repeated here;

[0074] A switch chain port setting module, which sets edge ports, common ports and blocking ports in each switch chain, wherein each switch chain has only one blocking port; this module is used to implement the function of step S2 in the first embodiment, and will not be described in detail here;

[0075] The switch chain node synchronization module, each switch node in each switch link periodically sends a link status message, and all nodes update the local neighbor status database after receiving the link status message sent by other nodes, so as to keep the status database of all nodes on the switch link consistent; this module is used to implement the function of step S3 in the first embodiment, and will not be repeated here;

[0076] A new switch joining chain module, when a new switch joins the switch chain, starts the port neighbor negotiation mechanism of the joining position node, negotiates with the adjacent port to establish a neighbor relationship by sending and receiving neighbor protocol messages, and continues to send and receive neighbor protocol messages after the negotiation is successful; this module is used to implement the function of step S4 in the first embodiment, which will not be repeated here;

[0077] The switch chain access module adds the constructed switch chain to the blocked link in the ring network, replacing the original link to maintain the communication path of each node in the ring network. This module is used to implement the function of step S5 in the first embodiment, which will not be repeated here;

[0078] As a preferred implementation mode of this embodiment, the edge port includes a primary edge port and a secondary edge port. The primary edge port is determined by user configuration and election, and is used to initiate blocked port preemption, terminate messages, and send topology change messages to other networks; the secondary edge port is also determined by user configuration and election, and is used to terminate messages and send topology change messages to other networks.

[0079] As a preferred implementation of this embodiment, among all the ports of the switch chain, only one port is in a blocking state, and all the remaining ports are in a forwarding state.

[0080] As a preferred implementation manner of this embodiment, the link status message includes system MAC, port priority, port index, link status, neighbor status and port role.

[0081] As a preferred implementation of this embodiment, the selection of the blocked port is determined by a port priority comparison principle, and the specific port priority comparison principle is as follows:

[0082] The larger the port priority value is, the higher the priority is. When the port priorities are the same, compare the bridge MAC of the port. The smaller the bridge MAC is, the higher the priority is. When the port bridge MAC is the same, compare the port number. The smaller the number is, the higher the priority is.

[0083] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A working method of a ring network system, characterized in that: The specific steps include: Connect several switches with the same segment VLAN and magic word ID and interconnected to build a switch chain. Each switch can only have two ports added to the same link. In each switch chain, an edge port, a common port and a blocking port are set, wherein there is only one blocking port in each switch link; Each switch node in each switch link periodically sends a link status message. After receiving the link status message sent by other nodes, all nodes update their local neighbor status database to keep the status database of all nodes on the switch link consistent. When a new switch joins the switch chain, the port neighbor negotiation mechanism of the node joining the position is started, and the neighbor relationship is established by negotiating with the adjacent port through sending and receiving neighbor protocol messages, and after the negotiation is successful, the neighbor protocol messages are continued to be sent and received; The constructed switch chain is added to the blocked link in the ring network to replace the original link and maintain the communication path of each node in the ring network.

2. A ring network system working method according to claim 1, characterized in that: The edge port includes a primary edge port and a secondary edge port. The primary edge port is determined by user configuration and election, and is used to initiate blocked port preemption, terminate messages, and send topology change messages to other networks; the secondary edge port is also determined by user configuration and election, and is used to terminate messages and send topology change messages to other networks.

3. A ring network system working method according to claim 1, characterized in that: Among all the ports of the switch chain, only one port is in a blocking state, and all the remaining ports are in a forwarding state.

4. A ring network system working method according to claim 1, characterized in that: The link status message includes system MAC, port priority, port index, link status, neighbor status and port role.

5. A ring network system working method according to claim 1, characterized in that: The selection of the blocking port is determined by the port priority comparison principle. The specific port priority comparison principle is as follows: The larger the port priority value is, the higher the priority is. When the port priorities are the same, compare the bridge MAC of the port. The smaller the bridge MAC is, the higher the priority is. When the port bridge MAC is the same, compare the port number. The smaller the number is, the higher the priority is.

6. A ring network system, characterized in that: include: The switch chain building module connects several switches with the same segment VLAN and magic word ID and interconnected to build a switch chain, where each switch can only have two ports added to the same link; A switch chain port setting module, which sets edge ports, common ports and blocking ports in each switch chain, wherein there is only one blocking port in each switch chain; The switch chain node synchronization module, each switch node in each switch link periodically sends a link status message. After all nodes receive the link status message sent by other nodes, they update the local neighbor status database to keep the status database of all nodes on the switch link consistent; The new switch joining module starts the port neighbor negotiation mechanism of the node when a new switch joins the switch chain, establishes a neighbor relationship with the adjacent port by sending and receiving neighbor protocol messages, and continues to send and receive neighbor protocol messages after the negotiation is successful; The switch chain access module adds the constructed switch chain to the blocked link in the ring network, replacing the original link to maintain the communication path of each node on the ring network.

7. A ring network system according to claim 6, characterized in that: The edge port includes a primary edge port and a secondary edge port. The primary edge port is determined by user configuration and election, and is used to initiate blocked port preemption, terminate messages, and send topology change messages to other networks; the secondary edge port is also determined by user configuration and election, and is used to terminate messages and send topology change messages to other networks.

8. A ring network system according to claim 6, characterized in that: Among all the ports of the switch chain, only one port is in a blocking state, and all the remaining ports are in a forwarding state.

9. A ring network system according to claim 6, characterized in that: The link status message includes system MAC, port priority, port index, link status, neighbor status and port role.

10. A ring network system according to claim 6, characterized in that: The selection of the blocking port is determined by the port priority comparison principle. The specific port priority comparison principle is as follows: The larger the port priority value is, the higher the priority is. When the port priorities are the same, compare the bridge MAC of the port. The smaller the bridge MAC is, the higher the priority is. When the port bridge MAC is the same, compare the port number. The smaller the number is, the higher the priority is.