CN108134728B - Method for realizing ring redundancy and hot plug of ring redundancy series network structure - Google Patents
Method for realizing ring redundancy and hot plug of ring redundancy series network structure Download PDFInfo
- Publication number
- CN108134728B CN108134728B CN201711387999.XA CN201711387999A CN108134728B CN 108134728 B CN108134728 B CN 108134728B CN 201711387999 A CN201711387999 A CN 201711387999A CN 108134728 B CN108134728 B CN 108134728B
- Authority
- CN
- China
- Prior art keywords
- port
- slave
- link
- ended
- initial single
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/42—Loop networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/42—Loop networks
- H04L12/437—Ring fault isolation or reconfiguration
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention discloses a method for realizing ring redundancy and hot plug of a ring redundancy series network structure, which comprises the following steps: firstly, establishing a physical annular redundant series network structure; then establishing two initial single-ended links on logic and returning corresponding link information to the master device; judging whether the corresponding initial link is abnormal or not according to the monitored link information return condition; when the abnormality occurs, all the slave devices in the link are initialized, two new logical single-ended links are reestablished after the initialization of the devices is completed, and meanwhile, the part causing the abnormality of the data link is repaired, so that the ring network structure is ensured to be in a ring effective connection state all the time. The invention has the advantages of low cost, high robustness, high stability, high flexibility and the like.
Description
Technical Field
The invention relates to the field of communication, in particular to a method for realizing ring redundancy and hot plug of a ring redundancy series network structure.
Background
The series network of the hand-in-hand structure is widely applied to systems such as an industrial bus, a field conference bus and the like due to simple structure and convenient wiring. As shown in fig. 1, the structure of a "hand-in-hand" serial network is schematically illustrated, and the example includes 1 master device and 4 slave devices, and data is transmitted in a link through forwarding of each node. The problems with this series network of "hand-in-hand" structures are: when a node in the serial line fails, the whole link fails, so that a certain mechanism is needed to ensure the robustness of the link.
Therefore, the invention provides a serial network of a ring redundancy mechanism, which can effectively overcome the defects of the serial network of a 'hand-in-hand' structure.
Currently, common redundancy technologies are generally divided into two categories, namely, working redundancy and backup redundancy; the working redundancy refers to a parallel system with two or more units working in parallel, and when the system is in a normal state, the parallel units work in an average load; when one of the parallel units fails, the work of the parallel unit is borne by the other parallel unit; the backup redundancy means that the system comprises two or more units with the same function, wherein one unit is used as a working unit, the other units are used as backup units, when the system is in a normal state, the working unit runs, and the backup units are standby and spare; when the working unit breaks down, the backup unit takes over the working unit to work, and the system is ensured to continue to operate.
In the working redundancy mode, the parallel mechanism can enable the system to have the potential of improving the performance, but the task allocation and data exchange between two parallel units can obviously increase the complexity of the system.
In the backup redundancy mode, the same backup unit is used, so that the workload and complexity of system design can be reduced, but the backup unit is usually in a standby state and cannot be used in a normal state, and on the contrary, the system becomes too bulky and the working efficiency of the system is reduced.
Disclosure of Invention
The invention aims to provide a method which has high efficiency and good robustness and can realize the ring redundancy and hot plug of a ring redundancy series network structure, automatically forms a new data link during starting and after failure, ensures the continuous robustness of a series network, simultaneously ensures that the ring redundancy series network structure also has the supporting capability of hot plug, and is favorable for changing and adjusting a line.
In order to achieve the purpose, the invention adopts the technical scheme that:
a method for implementing ring redundancy in a ring redundant tandem network architecture, comprising the steps of:
s1, establishing a physical initial annular redundant series network structure: connecting a port A and a port B of the master device with two ends of a chain network structure formed by sequentially connecting N slave devices in series to form a physical annular redundant series network; the formed physical ring-shaped redundant series network comprises a main device and N slave devices, wherein the main device is provided with a port A and a port B, each slave device is provided with a port a and a port B, the N slave devices are sequentially connected in series through the ports a or B which are respectively and correspondingly arranged to form a chain-shaped network structure, and the ports a of the two slave devices positioned at the two ends of the chain-shaped network structure are respectively connected with the port A and the port B of the main device to form a ring-shaped redundant series network structure;
s2, establishing two logically initial single-ended links respectively connected with a port A and a port B of the main equipment through a step-by-step discovery process, namely an initial single-ended link LA and an initial single-ended link LB;
s3, monitoring and analyzing data information returned by the initial single-ended link LA and the initial single-ended link LB received by the port A and the port B respectively through the main equipment, and judging whether the two initial single-ended links LA and LB operate normally or not;
s4, if the master device monitors that the return information of the corresponding links received by the port A and the port B are normal, confirming that the two initial single-ended links where the port A and the port B are located are normal in operation, and continuing to maintain the connection state of the ring redundancy series network structure established in the step S1;
s5, if the master device monitors that the link return information received by any one of the port A and the port B is abnormal, the master device determines that the initial single-ended link where the port is located is in a failure state;
s6, finding out the fault position in the failure initial single-ended link, and breaking the ring redundancy series network structure established in the step S1 into two 'hand-in-hand' series network structures from the fault position, meanwhile, starting the self-repairing process in the link, and establishing two new single-ended links LA 'and LB' according to the mode of the step S2;
s7, two devices at the tail ends of the two new single-ended links LA 'and LB' established in the step S6 are connected together again to form a new annular redundant series network structure;
and S8, repeating the steps S3 to S7, and keeping the ring redundancy series network structure continuously effective, so that the ring redundancy of the ring redundancy series network structure is realized.
Further, in step S2, through a "step-by-step discovery" process, two logically initial single-ended links connected to the port a and the port B of the respective sub-master device are established, where the specific process is as follows:
(1) powering on the master device, and simultaneously sending a "check" frame from the port a and the port B, assuming that all slave devices # 1 at the head end of the established ring redundant series network structure are connected to the port a, while the slave device # N at the tail end of the ring redundant series network structure is connected to the port B, and the rest of the slave devices located between the slave device # 1 and the slave device # N are sequentially connected;
(2) when port a of slave device # 1 receives the "check" frame sent by port a first, it determines that port a is the upstream port of slave device # 1, and another port b of slave device # 1 is the downstream port, and at the same time, port a of slave device # 1 sends "QA # 1" frame to port a of the upstream master device;
(3) when the port A of the upstream master device receives the QA # 1 frame sent by the port a of the slave device # 1, the bidirectional connection between the port A of the master device and the downstream slave device # 1 is determined to be normal, and at the moment, the port A of the master device sends a QA # 2 frame to the port a of the slave device # 1 as a response to the QA # 1 frame;
(4) when the port a of the slave device # 1 receives the "QA # 2" frame sent by the port a of the upstream master device, it is determined that the bidirectional connection between the port a of the slave device # 1 and the upstream master device is normal, and at this time, the mutual discovery between the port a of the master device and the slave device # 1 is completed;
(5) in the same procedures (1) to (4), the slave # 1 sends out a "check" frame, the slave # 2 determines the upstream/downstream ports thereof according to the port condition of the received "check" frame, the upstream port determined by the slave # 2 sends out a "QA # 1" frame to the port sending out the "check" frame from the slave # 1, the port sending out the "check" frame from the slave # 1 and the slave # 2 are determined to be in normal bidirectional connection, the port sending out the "check" frame from the slave # 1 sends out a "QA # 2" frame to the upstream port of the slave # 2, the upstream port of the slave # 2 and the slave # 1 are determined to be in normal bidirectional connection, and then mutual discovery between the slave # 1 and the slave # 2 is completed;
(6) in the direction from the slave device # 1 to the slave device # N, discovery is sequentially performed according to the process (5), until a certain "check" frame sent out from the slave device # K in the discovery process in the direction is not responded by the slave device # K +1 downstream, if the "check" frame sent out from the slave device # K is not responded, the slave device # K recognizes that the slave device # K is at the end of the link, and thus an initial single-ended link LA from the port a to the slave device # K is automatically formed;
(7) starting a process of 'progressive discovery' of a port A, establishing an initial single-ended link LA, starting a process of 'progressive discovery' of a port B, sequentially discovering downstream slave devices along the direction from a slave device # N to a slave device # 1 by the same processes (2) to (6), establishing an initial single-ended link LB starting from the port B to the slave device # K +1, and when the slave device # K in the step (6) is determined to be at the tail end of the initial single-ended link LA, taking the slave device # K +1 as the tail end of the initial single-ended link LB, and not discovering the slave device # K and the slave device # K +1 mutually;
wherein N is a natural even number greater than 2 or a natural odd number greater than 2;
Further, in step S3, the master device monitors and analyzes the data information returned by the initial single-ended link LA and the initial single-ended link LB received by the port a and the port B, respectively, and determines whether the two initial single-ended links LA and LB operate normally, where the specific process is as follows:
(1) sending a 'report' frame containing self address information DT by a slave # T-1 which is positioned at the tail end of the initial single-ended link LA and is upstream from the slave # T;
(2) when the upstream slave # T-1 receives the 'report' frame sent by the slave # T, the address information DT-1 of the upstream slave # T is added to the frame tail of the 'report' frame sent by the slave # T, and then the upstream slave # T-2 is continuously forwarded;
(3) according to the mode of the process (3), the downstream slave device adds the address information of the downstream slave device to the frame tail of the received report frame and continuously forwards the report frame to the upstream slave device, and the report frame sequentially and upwards forwards the frame until the report frame upwards forwarded step by the tail end slave device # T is received by the port A at the head end of the initial single-ended link LA, and at the moment, the master device acquires the address information and the connection sequence of all the slave devices on the initial single-ended link LA;
(4) according to the processes (1) - (3), forwarding a 'report' frame to a port B located at the head end of the initial single-ended link LB from a slave device # T +1 located at the tail end of the initial single-ended link LB to the upstream step by step, and then acquiring the address information and the connection sequence of all slave devices located on the initial single-ended link LB by the master device;
(5) if the initial single-ended link LA and LB reach the corresponding port A and port B at the appointed time when returning the link information, confirming that the initial single-ended link LA and LB are in the normal operation state;
(6) if the initial single-ended link LA does not reach the port A at the appointed time when returning the link information, the port A is determined to be overtime, and the port A is in a pending state at the moment;
(7) when monitoring that any port, namely the port A or the port B, is in a pending state, the master device determines that an initial single-ended link LA or an initial single-ended link LB where the corresponding port A or the port B is located is in a failure state, and the corresponding initial single-ended link LA or the initial single-ended link LB has a connection fault;
wherein N is a natural even number greater than 2 or a natural odd number greater than 2;
Further, in step S6, the self-healing process inside the link is started specifically as follows:
(1) the main device sends out a temporary termination data transmission command to the port A and the port B at the same time;
(2) initializing all slave devices on the initial single-ended link LA and the initial single-ended link LB;
(3) and after all the slave devices are initialized, restarting the process of 'step-by-step discovery' of the port A and the port B of the master device, and establishing two new single-ended links LA 'and LB'.
Further, when a port of any of the slave devices is identified as a downstream port, the slave device does not respond to the check frame received from the downstream port.
A method for realizing hot plug of a ring redundant series network structure is realized on the basis of the method for realizing the ring redundant of the ring redundant series network structure, and comprises the following steps:
SS1, establishing a physically initial ring redundant tandem network: connecting a port A and a port B of the master device with two ends of a chain network structure formed by sequentially connecting M slave devices in series to form a physical annular redundant series network structure;
SS2, through the process of 'discovery stage by stage', establishing two logically initial single-ended links respectively connected with port A and port B of the main device, namely an initial single-ended link LA and an initial single-ended link LB;
SS3, when a new slave device needs to be added in any initial single-ended link established in the step SS2, the initial single-ended link of the new slave device needs to be added is disconnected, then the new slave device is placed at the link connection position needing to be added, and a physical connection relation is established with the original link, a new annular redundant series network structure form formed by M +1 slave devices is formed, and finally two new single-ended links are established according to the step-by-step discovery process in the step SS 2;
SS4, when needing to replace a new slave device in any initial single-ended link established in the step SS2, firstly disconnecting the link needing to replace the slave device in the original single-ended link, then removing the original slave device, connecting the new slave device into the link, recovering the original ring redundancy serial network structure form formed by M slave devices, and finally establishing two new single-ended links according to the step-by-step discovery process in the step SS 2;
SS5, when a slave device needs to be removed from any one of the initial single-ended links established in the step SS2, directly removing the slave device needing to be removed from the initial single-ended link where the slave device is located, then restoring the physical connection of the devices at the two ends of the removed slave device to form a new annular redundant serial network structure form formed by 'M-1' slave devices, and finally establishing two new single-ended links according to the 'step-by-step discovery' process in the step SS 2;
wherein M is a natural number greater than 2.
Compared with the prior art, the invention has the beneficial effects that: (1) the cost is low, and a serial network of the original hand-in-hand structure can form an annular structure only by adding a connecting port for the main equipment, so that the main equipment has the characteristic of safety redundancy; (2) the system has the capability of automatically detecting faults and quickly recovering, can greatly reduce the influence of unexpected faults without human intervention, and improves the robustness and stability of the serial network; (3) the method can support hot plug, can conveniently change the network scale without adding extra configuration work, and provides high flexibility.
Drawings
FIG. 1 is an embodiment of a series network structure of a "hand-in-hand" structure;
FIG. 2 is a diagram illustrating an embodiment of a ring redundant series network structure established when implementing the ring redundant series network ring redundant method according to the present invention;
FIG. 3 illustrates an embodiment of a redundant ring network architecture according to the present invention with a connection failure;
FIG. 4 is a diagram illustrating a new data link structure formed after the failure recovery based on FIG. 3;
FIG. 5 is a schematic diagram of a process for returning link information based on the ring redundant serial network structure established in FIG. 2;
FIG. 6 is a schematic diagram of a process for a master device to "gradually discover" downstream slave devices based on the ring redundant serial network structure established in FIG. 2;
FIG. 7 is a diagram illustrating an embodiment of a ring redundant series network structure established for implementing hot plug method of the ring redundant series network according to the present invention
FIG. 8 is a first hot-plug configuration for hot-plugging based on the ring redundant serial network structure established in FIG. 7;
FIG. 9 is a second embodiment of a hot-plug configuration when hot-plugging is performed, based on the ring redundant serial network configuration established in FIG. 7;
FIG. 10 is a diagram of a third example of a hot-plug configuration when a hot-plug is performed based on the ring redundant serial network configuration established in FIG. 7;
FIG. 11 is a schematic view of the operation of a master device in the redundant ring network architecture of the present invention;
FIG. 12 is a schematic diagram of the operation flow of the slave device in the ring redundant serial network structure according to the present invention.
Detailed Description
In order to make the technical means, the creation features, the achievement purposes and the effects of the invention easy to understand, the following description further explains how the invention is implemented by combining the attached drawings and the detailed implementation modes.
As shown in fig. 2, an embodiment of a ring-shaped redundant series network structure provided by the present invention includes a master device and eight slave devices, the master device is provided with a port a and a port B, each slave device is provided with a port a and a port B, the eight slave devices are sequentially connected in series through the correspondingly provided ports to form a chain-shaped network structure, and two slave devices located at two ends of the chain-shaped network structure are respectively connected with the two ports a and B of the master device to form a ring-shaped redundant series network structure.
Based on the above embodiments of the ring redundant series network structure, the method for implementing ring redundancy of the ring redundant series network structure provided by the present invention comprises the following steps:
s1, establishing a physical initial annular redundant series network:
as shown in fig. 2, a port a and a port B of a master device are respectively connected to two ends of a chain network structure formed by eight slave devices in series in sequence to form a physical ring-shaped redundant series network structure;
s2, establishing two logically initial single-ended links respectively connected with a port A and a port B of the main equipment through a step-by-step discovery process, namely an initial single-ended link LA and an initial single-ended link LB;
s3, monitoring and analyzing data information returned by the initial single-ended link LA and the initial single-ended link LB received by the port A and the port B respectively through the main equipment, and judging whether the two initial single-ended links LA and LB operate normally or not;
s4, if the master device monitors that the return information of the corresponding links received by the port A and the port B are normal, confirming that the two initial single-ended links where the port A and the port B are located are normal in operation, and continuing to maintain the ring redundancy series network structure established in the step S1;
s5, if the master device monitors that the link return information received by any one of the port A and the port B is abnormal, the master device determines that the initial single-ended link where the port is located is in a failure state;
s6, finding out the fault position in the failure initial single-ended link, and breaking the ring redundancy series network structure established in the step S1 into two 'hand-in-hand' series network structures from the fault position, meanwhile, starting the self-repairing process in the link, and establishing two new single-ended links LA 'and LB' according to the mode of the step S2;
s7, two devices at the tail ends of the two new single-ended links LA 'and LB' established in the step S6 are connected together again to form a new annular redundant series network structure;
and S8, repeating the steps S3 to S7, and keeping the ring redundancy series network structure continuously effective, so that the ring redundancy of the ring redundancy series network structure is realized.
As shown in fig. 6, 11 and 12, in step S2, two logically initial single-ended links LA and LB connected to port a and port B of the master device respectively are established through a "step-by-step discovery" process, which specifically includes:
(1) powering on the master device, and simultaneously sending a "check" frame by the port a and the port B, wherein in step S1, all the slave devices # 1 at the head end of the established ring redundant serial network structure are connected to the port a, the slave device # 8 at the tail end of the ring redundant serial network structure is connected to the port B, and the rest of the slave devices between the slave device # 1 and the slave device # 8 are sequentially connected;
(2) when port a of slave device # 1 receives the "check" frame sent by port a first, it determines that port a is the upstream port of slave device # 1, and another port b of slave device # 1 is the downstream port, and at the same time, port a of slave device # 1 sends "QA # 1" frame to port a of the upstream master device;
(3) when the port A of the upstream master device receives the QA # 1 frame sent by the port a of the slave device # 1, the bidirectional connection between the port A of the master device and the downstream slave device # 1 is determined to be normal, and at the moment, the port A of the master device sends a QA # 2 frame to the port a of the slave device # 1 as a response to the QA # 1 frame;
(4) when the port a of the slave device # 1 receives the "QA # 2" frame sent by the port a of the upstream master device, it is determined that the bidirectional connection between the port a of the slave device # 1 and the upstream master device is normal, and at this time, the mutual discovery between the port a of the master device and the slave device # 1 is completed;
(5) in the same procedures (1) to (4), the slave # 1 sends out a "check" frame, the slave # 2 determines the upstream/downstream ports thereof according to the port condition of the received "check" frame, the upstream port determined by the slave # 2 sends out a "QA # 1" frame to the port sending out the "check" frame from the slave # 1, the port sending out the "check" frame from the slave # 1 and the slave # 2 are determined to be in normal bidirectional connection, the port sending out the "check" frame from the slave # 1 sends out a "QA # 2" frame to the upstream port of the slave # 2, the upstream port of the slave # 2 and the slave # 1 are determined to be in normal bidirectional connection, and then mutual discovery between the slave # 1 and the slave # 2 is completed;
(6) in the direction from the slave device # 1 to the slave device # 8, the discovery is performed in sequence according to the procedure (5), until the "check" frame sent from the slave device # 4 in the discovery process in the direction is not responded by the slave device # 5 downstream, the slave device # 4 recognizes that the frame is at the end of the link, and an initial single-ended link LA from the port a to the slave device # 4 is automatically formed;
(7) when the slave # 4 is determined to be at the end of the initial single-ended link LA in step (6), the slave # 5 is the end of the initial single-ended link LB, and the slave # 4 at the end of the initial single-ended link LA and the slave # 5 at the end of the initial single-ended link LB are not discovered with each other.
As shown in fig. 5, 11, and 12, in step S3, the master device respectively monitors and analyzes the data information returned by the initial single-ended link LA and the initial single-ended link LB received by the port a and the port B, and determines whether the two initial single-ended links LA and LB operate normally, where the specific process is as follows:
(1) sending a "report" frame containing self address information D4 by the slave # 3 located upstream of the slave # 4 at the end of the initial single-ended link LA;
(2) when the upstream slave # 3 receives the "report" frame sent from the slave # 4, the address information D3 of the upstream slave # 3 is automatically added to the end of the "report" frame sent from the slave # 4, and then the upstream slave # 2 is continuously forwarded;
(3) according to the procedure (3), after adding its own address information D2 to the frame end of the "report" frame received by the downstream slave device # 2 and continuing to forward to its upstream slave device # 1, the slave device # 1 automatically adds its own address information D1 to the frame end of the "report" frame forwarded by the slave device # 2, and then forwards the "report" received by the slave device # 2 to the port a located at the head end of the initial single-ended link LA, at which time the master device acquires the address information and connection order of all the slave devices (i.e., the slave device # 1 to the slave device #4) located on the initial single-ended link LA, as shown in fig. 5;
(4) in the manner of the procedures (1) to (3), the slave # 5 located at the end of the initial single-ended link LB forwards the "report" frame including the own address information D5 to the slave # 6, the slave # 6 receives the "report" frame forwarded from the slave # 5 again, then automatically adds the own address information D6 to the end of the "report" frame forwarded from the slave # 5 and forwards it to the slave # 7 upstream, the slave # 7 receives the "report" frame forwarded from the slave # 6 again, then automatically adds the own address information D7 to the end of the "report" frame forwarded from the slave # 6 and forwards it to the slave # 8 upstream, and the slave # 8 receives the "report" frame forwarded from the slave # 7 again, then automatically adds the own address information D8 to the end of the "report" frame forwarded from the slave # 7, then, the address information and the connection sequence of all the slave devices (namely, the slave device # 8 to the slave device #5) positioned on the initial single-ended link LB are acquired by the master device at this time;
(5) if the initial single-ended link LA and the initial single-ended link LB both reach the corresponding port A and port B at the appointed time when returning the link information, namely the report frame, then confirming that the initial single-ended link LA and LB at the moment are both in the normal running state;
(6) if the initial single-ended link LA does not reach the port A in the appointed time when returning the link information, namely the report frame, the port A is determined to be overtime, and the port A is in the undetermined state at the moment;
(7) when monitoring that any port, namely the port A or the port B, is in a pending state, the master device determines that an initial single-ended link LA or an initial single-ended link LB where the corresponding port A or the port B is located is in a failure state, and the corresponding initial single-ended link LA or the initial single-ended link LB has a connection fault;
in this embodiment, assuming that, in the two initial single-ended links LA and LB established in step S2, that is, when a connection failure occurs between the slave # 5 and the slave # 6 in the initial single-ended link LB, causing the initial single-ended link LB to fail, as shown in fig. 3, the self-healing process inside the link according to step S6 is specifically as follows:
(1) the main device sends out a temporary termination data transmission command to the port A and the port B at the same time;
(2) performing device initialization on all the slave devices (i.e., the slave device # 1 to the slave device #4) on the initial single-ended link LA and all the slave devices (i.e., the slave device # 8 to the slave device #5) on the initial single-ended link LB;
(3) when all the slaves (i.e. slave # 1 to slave #8) have been initialized, the process of "discovery stage by stage" of port a and port B of the master is restarted, as shown in fig. 6, and two new single-ended links LA 'and LB' are established, as shown in fig. 4.
In the process of discovering upstream and downstream devices from each other through the "discovery stage by stage" process, when a port of any slave device is identified as a downstream port, the slave device does not respond to the check frame received from its downstream port, as shown in fig. 12.
Based on the method for realizing the ring redundancy of the ring redundancy series network structure, the method for realizing the hot plug of the ring redundancy series network structure provided by the invention specifically comprises the following steps:
SS1, establishing a physically initial ring redundant tandem network: connecting a port A and a port B of the master device with two ends of a chain network structure formed by sequentially connecting 6 slave devices in series to form a physical annular redundant series network structure;
SS2, through the process of 'discovery stage by stage', establishing two logically initial single-ended links respectively connected with port A and port B of the main device, namely an initial single-ended link LA and an initial single-ended link LB;
SS3, when a new slave device needs to be added in any initial single-ended link established in the step SS2, the initial single-ended link of the new slave device needs to be added is disconnected, then the new slave device is placed at the link connection position needing to be added, and a physical connection relation is established with the original link, so that a new annular redundant series network structure form formed by '6 + 1' slave devices is formed, and finally two new single-ended links are established according to the 'step-by-step discovery' process in the step SS 2;
SS4, when needing to replace a new slave device in any initial single-ended link established in the step SS2, firstly disconnecting the link needing to replace the slave device in the original single-ended link, then removing the original slave device, connecting the new slave device into the link, recovering the original ring redundancy serial network structure form formed by '6' slave devices, and finally establishing two new single-ended links according to the 'step-by-step discovery' process in the step SS 2;
SS5, when a slave device needs to be removed from any one of the initial single-ended links established in the step SS2, directly removing the slave device needing to be removed from the initial single-ended link where the slave device is located, then restoring the physical connection of the devices at the two ends of the removed slave device to form a new annular redundant serial network structure form formed by '6-1' slave devices, and finally establishing two new single-ended links according to the 'step-by-step discovery' process in the step SS 2;
the specific process of establishing the initial single-ended link LA and the initial single-ended link LB in step SS2 is implemented according to step S2 in the method for implementing ring redundancy in a ring redundant serial network structure.
The specific process of establishing two new single-ended links through the step-by-step discovery process in the step SS3 to the step SS5 is implemented according to the step S6 in the method for realizing ring redundancy of the ring redundancy serial network structure.
Finally, the above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present invention or directly or indirectly applied to other related technical fields using the contents of the present specification and the attached drawings are included in the scope of the present invention.
Claims (6)
1. A method for realizing ring redundancy of a ring redundancy serial network structure is characterized in that: comprises the following steps:
s1, establishing a physical initial annular redundant series network structure: connecting a port A and a port B of the master device with two ends of a chain network structure formed by sequentially connecting N slave devices in series to form a physical annular redundant series network structure; the formed physical ring-shaped redundant series network structure comprises a main device and N slave devices, wherein the main device is provided with a port A and a port B, each slave device is provided with a port a and a port B, the N slave devices are sequentially connected in series to form a chain network structure, and two ends of the chain network structure formed by sequentially connecting the N slave devices in series are respectively connected with the port A and the port B of the main device;
s2, establishing two logically initial single-ended links respectively connected with a port A and a port B of the main equipment through a step-by-step discovery process, namely an initial single-ended link LA and an initial single-ended link LB;
s3, monitoring and analyzing data information returned by the initial single-ended link LA and the initial single-ended link LB received by the port A and the port B respectively through the main equipment, and judging whether the two initial single-ended links LA and LB operate normally or not;
s4, if the master device monitors that the return information of the corresponding links received by the port A and the port B are normal, confirming that the two initial single-ended links where the port A and the port B are located are normal in operation, and continuing to maintain the connection state of the ring redundancy series network structure established in the step S1;
s5, if the master device monitors that the link return information received by any one of the port A and the port B is abnormal, the master device determines that the initial single-ended link where the port is located is in a failure state;
s6, finding out the fault position in the failure initial single-ended link, and breaking the ring redundancy series network structure established in the step S1 into two 'hand-in-hand' series network structures from the fault position, meanwhile, starting the self-repairing process in the link, and establishing two new single-ended links LA 'and LB' according to the mode of the step S2;
s7, two devices at the tail ends of the two new single-ended links LA 'and LB' established in the step S6 are connected together again to form a new annular redundant series network structure;
and S8, repeating the steps S3 to S7, and keeping the ring redundancy series network structure continuously effective, so that the ring redundancy of the ring redundancy series network structure is realized.
2. The method for implementing ring redundancy of a ring redundant serial network architecture of claim 1, wherein: in step S2, two logical initial single-ended links connected to the port a and the port B of the master device are established through a "step-by-step discovery" process, which includes the following specific steps:
(1) powering on the master device, and simultaneously sending a "check" frame from the port a and the port B, assuming that all slave devices #1 at the head end of the established ring redundant series network structure are connected to the port a, while the slave device # N at the tail end of the ring redundant series network structure is connected to the port B, and the rest of the slave devices located between the slave device #1 and the slave device # N are sequentially connected;
(2) when port a of slave device #1 receives the "check" frame sent by port a first, it determines that port a is the upstream port of slave device #1, and another port b of slave device #1 is the downstream port, and at the same time, port a of slave device #1 sends "QA # 1" frame to port a of the upstream master device;
(3) when the port A of the upstream master device receives the QA #1 frame sent by the port a of the slave device #1, the bidirectional connection between the port A of the master device and the downstream slave device #1 is determined to be normal, and at the moment, the port A of the master device sends a QA #2 frame to the port a of the slave device #1 as a response to the QA #1 frame;
(4) when the port a of the slave device #1 receives the "QA # 2" frame sent by the port a of the upstream master device, it is determined that the bidirectional connection between the port a of the slave device #1 and the upstream master device is normal, and at this time, the mutual discovery between the port a of the master device and the slave device #1 is completed;
(5) in the same procedures (1) to (4), the slave #1 sends out a "check" frame, the slave #2 determines the upstream/downstream ports thereof according to the port condition of the received "check" frame, the upstream port determined by the slave #2 sends out a "QA # 1" frame to the port sending out the "check" frame from the slave #1, the port sending out the "check" frame from the slave #1 and the slave #2 are determined to be in normal bidirectional connection, the port sending out the "check" frame from the slave #1 sends out a "QA # 2" frame to the upstream port of the slave #2, the upstream port of the slave #2 and the slave #1 are determined to be in normal bidirectional connection, and then mutual discovery between the slave #1 and the slave #2 is completed;
(6) in the direction from the slave device #1 to the slave device # N, discovery is sequentially performed according to the process (5), until a certain "check" frame sent out from the slave device # K in the discovery process in the direction is not responded by the slave device # K +1 downstream, if the "check" frame sent out from the slave device # K is not responded, the slave device # K recognizes that the slave device # K is at the end of the link, and thus an initial single-ended link LA from the port a to the slave device # K is automatically formed;
(7) starting a process of 'progressive discovery' of a port A, establishing an initial single-ended link LA, starting a process of 'progressive discovery' of a port B, sequentially discovering downstream slave devices along the direction from a slave device # N to a slave device #1 by the same processes (2) to (6), establishing an initial single-ended link LB starting from the port B to the slave device # K +1, and when the slave device # K in the step (6) is determined to be at the tail end of the initial single-ended link LA, taking the slave device # K +1 as the tail end of the initial single-ended link LB, and not discovering the slave device # K and the slave device # K +1 mutually;
wherein N is a natural even number greater than 2 or a natural odd number greater than 2;
3. The method for implementing ring redundancy of a ring redundant serial network architecture of claim 1, wherein: in step S3, the master device monitors and analyzes the data information returned by the initial single-ended link LA and the initial single-ended link LB received by the port a and the port B, and determines whether the two initial single-ended links LA and LB operate normally, which includes the following specific steps:
(1) sending a 'report' frame containing self address information DT by a slave # T-1 which is positioned at the tail end of the initial single-ended link LA and is upstream from the slave # T;
(2) when the upstream slave # T-1 receives the "report" frame sent from the slave # T, the address information D T-1 of the upstream slave # T is added to the end of the frame of the "report" frame sent from the slave # T, and then the upstream slave # T-2 is continuously forwarded;
(3) according to the mode of the process (3), the downstream slave device adds the address information of the downstream slave device to the frame tail of the received report frame and continuously forwards the report frame to the upstream slave device, and the report frame sequentially and upwards forwards the frame until the report frame upwards forwarded step by the tail end slave device # T is received by the port A at the head end of the initial single-ended link LA, and at the moment, the master device acquires the address information and the connection sequence of all the slave devices on the initial single-ended link LA;
(4) according to the processes (1) - (3), forwarding a 'report' frame to a port B located at the head end of the initial single-ended link LB from a slave device # T +1 located at the tail end of the initial single-ended link LB to the upstream step by step, and then acquiring the address information and the connection sequence of all slave devices located on the initial single-ended link LB by the master device;
(5) if the initial single-ended link LA and LB reach the corresponding port A and port B at the appointed time when returning the link information, confirming that the initial single-ended link LA and LB are in the normal operation state;
(6) if the initial single-ended link LA does not reach the port A at the appointed time when returning the link information, the port A is determined to be overtime, and the port A is in a pending state at the moment;
(7) when monitoring that any port, namely the port A or the port B, is in a pending state, the master device determines that an initial single-ended link LA or an initial single-ended link LB where the corresponding port A or the port B is located is in a failure state, and the corresponding initial single-ended link LA or the initial single-ended link LB has a connection fault;
wherein N is a natural even number greater than 2 or a natural odd number greater than 2;
4. The method for implementing ring redundancy of a ring redundant serial network architecture of claim 1, wherein: in step S6, the self-healing process inside the link is started as follows:
(1) the main device sends out a temporary termination data transmission command to the port A and the port B at the same time;
(2) initializing all slave devices on the initial single-ended link LA and the initial single-ended link LB;
(3) and after all the slave devices are initialized, restarting the process of 'step-by-step discovery' of the port A and the port B of the master device, and establishing two new single-ended links LA 'and LB'.
5. The method for implementing ring redundancy in a ring redundant serial network of claim 2, wherein: when a port of any of the slave devices is identified as a downstream port, the slave device no longer responds to check frames received from its downstream port.
6. A method for implementing hot plug of a ring redundant series network structure, which is implemented on the basis of the method for implementing ring redundancy of a ring redundant series network structure in claim 1, and is characterized in that: comprises the following steps:
SS1, establishing a physically initial ring redundant tandem network: connecting a port A and a port B of the master device with two ends of a chain network structure formed by sequentially connecting M slave devices in series to form a physical annular redundant series network structure;
SS2, through the process of 'discovery stage by stage', establishing two logically initial single-ended links respectively connected with port A and port B of the main device, namely an initial single-ended link LA and an initial single-ended link LB;
SS3, when a new slave device needs to be added in any initial single-ended link established in the step SS2, the initial single-ended link of the new slave device needs to be added is disconnected, then the new slave device is placed at the link connection position needing to be added, and a physical connection relation is established with the original link, a new annular redundant series network structure form formed by M +1 slave devices is formed, and finally two new single-ended links are established according to the step-by-step discovery process in the step SS 2;
SS4, when needing to replace a new slave device in any initial single-ended link established in the step SS2, firstly disconnecting the link needing to replace the slave device in the original single-ended link, then removing the original slave device, connecting the new slave device into the link, recovering the original ring redundancy serial network structure form formed by M slave devices, and finally establishing two new single-ended links according to the step-by-step discovery process in the step SS 2;
SS5, when a slave device needs to be removed from any one of the initial single-ended links established in the step SS2, directly removing the slave device needing to be removed from the initial single-ended link where the slave device is located, then restoring the physical connection of the devices at the two ends of the removed slave device to form a new annular redundant serial network structure form formed by 'M-1' slave devices, and finally establishing two new single-ended links according to the 'step-by-step discovery' process in the step SS 2;
wherein M is a natural number greater than 2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711387999.XA CN108134728B (en) | 2017-12-20 | 2017-12-20 | Method for realizing ring redundancy and hot plug of ring redundancy series network structure |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711387999.XA CN108134728B (en) | 2017-12-20 | 2017-12-20 | Method for realizing ring redundancy and hot plug of ring redundancy series network structure |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108134728A CN108134728A (en) | 2018-06-08 |
CN108134728B true CN108134728B (en) | 2020-09-08 |
Family
ID=62391064
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711387999.XA Active CN108134728B (en) | 2017-12-20 | 2017-12-20 | Method for realizing ring redundancy and hot plug of ring redundancy series network structure |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108134728B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109067500A (en) * | 2018-07-16 | 2018-12-21 | 杭州高特电子设备股份有限公司 | A kind of data communication method of battery management system |
CN114531310A (en) * | 2022-02-11 | 2022-05-24 | 广东雷蒙电子科技股份有限公司 | Full-digital double-link conference system and method |
CN115225665A (en) * | 2022-06-27 | 2022-10-21 | 蔚来汽车科技(安徽)有限公司 | Vehicle processing system, vehicle comprising same, data processing method and storage medium |
CN115334041A (en) * | 2022-10-14 | 2022-11-11 | 广州翼辉信息技术有限公司 | Method for automatically allocating addresses to communication equipment of master station and slave station, master station, slave station and system |
CN118138401A (en) * | 2024-05-08 | 2024-06-04 | 山东大学 | Industrial bus system with mixed topology and communication method thereof |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101075934A (en) * | 2007-03-06 | 2007-11-21 | 中兴通讯股份有限公司 | Method and apparatus for ensuring Ethernet reliable operation in transmission node fault |
EP2178249A1 (en) * | 2008-10-15 | 2010-04-21 | Etherwan Systems, Inc. | Method of redundancy of ring network |
CN102075350A (en) * | 2010-12-22 | 2011-05-25 | 北京华环电子股份有限公司 | Synchronous digital hierarchy ring network topology discovery method |
CN105978735A (en) * | 2016-06-30 | 2016-09-28 | 重庆世纪之光科技实业有限公司 | Protection method and device for serial bus communication network |
-
2017
- 2017-12-20 CN CN201711387999.XA patent/CN108134728B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101075934A (en) * | 2007-03-06 | 2007-11-21 | 中兴通讯股份有限公司 | Method and apparatus for ensuring Ethernet reliable operation in transmission node fault |
EP2178249A1 (en) * | 2008-10-15 | 2010-04-21 | Etherwan Systems, Inc. | Method of redundancy of ring network |
CN102075350A (en) * | 2010-12-22 | 2011-05-25 | 北京华环电子股份有限公司 | Synchronous digital hierarchy ring network topology discovery method |
CN105978735A (en) * | 2016-06-30 | 2016-09-28 | 重庆世纪之光科技实业有限公司 | Protection method and device for serial bus communication network |
Also Published As
Publication number | Publication date |
---|---|
CN108134728A (en) | 2018-06-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108134728B (en) | Method for realizing ring redundancy and hot plug of ring redundancy series network structure | |
US8488475B2 (en) | Fault processing method, system and exchanging device based on industry ethernet network | |
JP6076373B2 (en) | Technology to cope with changes in the state of interconnection nodes | |
CN102882704B (en) | Link protection method in the soft reboot escalation process of a kind of ISSU and equipment | |
CN111385107B (en) | Main/standby switching processing method and device for server | |
US20030107987A1 (en) | Reconfiguration system for a communication network | |
JP2019134417A (en) | PLC backplane hot swap device | |
CN103560955A (en) | Method and device for switching between redundancy devices | |
CN108737188B (en) | Network card fault switching system | |
CN104468217A (en) | Network reconstruction method under 1394 network manager fault | |
CN104917700A (en) | Management unit and exchange unit dual-redundancy switch | |
CN102763087B (en) | Method and system for realizing interconnection fault-tolerance between CPUs | |
CN111786819A (en) | Serial server with dual-network-port redundancy function | |
CN102487332B (en) | Fault processing method, apparatus thereof and system thereof | |
CN110740066B (en) | Seat-invariant cross-machine fault migration method and system | |
CN204231405U (en) | A kind of Ethernet switch system of hardware redundancy | |
CN204633800U (en) | The switch of a kind of administrative unit and the two redundancy of crosspoint | |
CN116647424A (en) | Method for automatically recovering faults of CAN bus system of single ring network | |
CN207992997U (en) | I2C bus systems | |
CN111208804B (en) | Dust remover ash removal system with drop-off fault safety hot standby hard link and method thereof | |
JP2001344125A (en) | Dual node system | |
CN115190003A (en) | Network equipment | |
CN113741280A (en) | Intelligent management control device of homemade VPX framework | |
CN107395422B (en) | Multi-frame management system | |
CN101729349A (en) | RRPP-based detection method and device for connectivity of main ring access |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |