CN108134728A - A kind of ring redundancy series network structure and its ring redundancy and the method for hot plug - Google Patents

A kind of ring redundancy series network structure and its ring redundancy and the method for hot plug Download PDF

Info

Publication number
CN108134728A
CN108134728A CN201711387999.XA CN201711387999A CN108134728A CN 108134728 A CN108134728 A CN 108134728A CN 201711387999 A CN201711387999 A CN 201711387999A CN 108134728 A CN108134728 A CN 108134728A
Authority
CN
China
Prior art keywords
port
slave device
link
network structure
ring redundancy
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.)
Granted
Application number
CN201711387999.XA
Other languages
Chinese (zh)
Other versions
CN108134728B (en
Inventor
刘德雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
HUBEI PHILISENSE ELECTRONIC EQUIPMENT Co Ltd
Original Assignee
HUBEI PHILISENSE ELECTRONIC EQUIPMENT Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by HUBEI PHILISENSE ELECTRONIC EQUIPMENT Co Ltd filed Critical HUBEI PHILISENSE ELECTRONIC EQUIPMENT Co Ltd
Priority to CN201711387999.XA priority Critical patent/CN108134728B/en
Publication of CN108134728A publication Critical patent/CN108134728A/en
Application granted granted Critical
Publication of CN108134728B publication Critical patent/CN108134728B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • H04L12/437Ring fault isolation or reconfiguration

Landscapes

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

Abstract

The invention discloses a kind of ring redundancy series network structure and its ring redundancy and the method for hot plug, the ring redundancy series network structure is the ring-like network structure being connected in series by a main equipment and N number of slave device;The ring redundancy and the method for hot plug are:First establish physically ring redundancy series network structure;Then two initial single-ended links in logic are established and return to corresponding link information to main equipment;Situation is returned further according to the link information monitored, judges whether corresponding initial link circuit is abnormal;When occurring abnormal, initialization process then is carried out to all slave devices in link, and after the completion of equipment initialization, re-establish two new single-ended links in logic, concurrently repairing leads to the position that data link is abnormal, and ensures that the ring-like network structure moment is in the effective connection status of annular.The present invention has many advantages, such as low cost, high robustness, high stability and high flexibility.

Description

A kind of ring redundancy series network structure and its ring redundancy and the method for hot plug
Technical field
The present invention relates to a kind of series network structure, particularly relate to a kind of ring redundancy series network structure and its Ring redundancy and the method for hot plug.
Background technology
The series network of " handing in hand " structure is widely used in industrial bus, shows because its is simple in structure, wiring convenience In the systems such as field Conference Bus.As shown in Figure 1, being a kind of structure diagram of " handing in hand " series network, which includes 1 master Equipment and 4 slave devices, data are propagated in a link by the forwarding of each node.The series network of this " handing in hand " structure is deposited The problem of be:When some nodes break down in series circuit, entire link failure is may result in, so needing certain Mechanism ensure its robustness.
Therefore, the present invention proposes a kind of series network of ring redundancy mechanism, and what can be effectively prevent overcomes " handing in hand " to tie The defects of present in the series network of structure.
Redundancy common at present is generally divided into two classes that is, active redundancy and backup Redundancy;Wherein, active redundancy refers to By the parallel system of two or more unit concurrent workings, system is in normal condition, parallel units equalization of incidence work;When During the failure of one of parallel units, work is undertaken by other parallel units;Backup Redundancy refer to system include two or The unit of more identical functions, one of unit is as working cell, and other units are as standby unit, and system is just During normal state, working cell is run, and standby unit is stand-by;When working cell is broken down, work is taken over by standby unit Make cell operation, ensure that system continues to run with.
In active redundancy mode, parallel mechanism can make system have improving performance potentiality, but two-way Parallel Unit it Between task distribution and data exchange etc. can dramatically increase system complexity.
In backup Redundancy mode, using duplicate standby unit, the workload and complexity of system design can be reduced Degree, but stand-by unit is generally in standby mode, can not play effectiveness under normal circumstances, system can be made to become too fat to move instead And make the reduction of system working efficiency.
Invention content
The purpose of the present invention is to provide a kind of ring redundancy series network structure efficient, robustness is good and realize it Ring redundancy and the method for hot plug automatically form new data link, ensure that series network is held on startup and after failure Continuous robustness, while the ring redundancy series network structure also has the tenability of hot plug, favorably convenient for circuit more Change adjustment.
To achieve the above object, the technical solution taken of the present invention is:A kind of ring redundancy series network structure, includes one A main equipment and N number of slave device, the main equipment are equipped with Single port A and Single port B, and each slave device is all provided with that there are one hold Mouth a and a port b, each slave device are connected by a port being correspondingly provided with and a port that another slave device is equipped with It connects, N number of slave device is sequentially connected in series into a chain-shaped network structure by the port being correspondingly provided with, positioned at the chain-shaped network Two slave devices at structure both ends are connect respectively with two ports A and B of the main equipment, form a ring-like network structure.
A kind of method for realizing ring redundancy series network ring redundancy proposed by the present invention is superfluous based on above-mentioned annular The ring redundancy method that remaining series network structure is established, comprises the steps of:
S1, the initial loop redundancy series network of foundation physically:By the port A and B of main equipment respectively with by N number of from setting The both ends connection of the standby chain-shaped network structure being sequentially connected in series, forms a ring redundancy series network physically;
S2, the process by " finding step by step ", the port A for establishing two difference main equipments in logic are connected with port B Initial single-ended links, i.e. link LA and link LB;
S3, by main equipment respectively to port A and port B the link LA received and link LB return data information into Row monitoring analysis, and judge two initial single-ended links LA and LB whether normal operation;
If S4, main equipment monitor that the respective link return information that port A and port B are received is normal, end is confirmed Two equal normal operations of initial single-ended links where mouth A and port B, then continue the ring redundancy string for keeping establishing in step S1 Join the connection status of network structure;
It is different that if S5, main equipment monitor that the link return information in port A and port B received by any one port has Often, then assert in the initial single-ended links where the port in failure state;
S6, it finds out the position broken down in failure single-ended links, and will be established in step S1 at the trouble location Ring redundancy series network structure is broken into the series network structure of two " handing in hand " formulas, concurrently starts link inside Self-regeneration process, and in the way of step S2, establish two new single-ended links LA' and LB';
S7, two equipment that two new single-ended links LA' and LB' ends are established in step S6 are reconnected in Together, a new ring redundancy series network structure is formed;
S8, step S3 to step S7 is repeated, keeps annular redundant strings connection network structure continuous and effective, it is superfluous so as to fulfill annular Remaining series network structure ring redundancy.
Further, in the step S2, by the process of " step by step find ", two difference main equipments in logic are established The initial single-ended links that port A is connected with port B, detailed process are:
(1) it is powered and starts main equipment, " check " frame is simultaneously emitted by by port A and port B, it is assumed that the institute in step S1 The slave device #1 for having the ring redundancy series network structure head end of foundation is connect with port A, and positioned at ring redundancy series network The slave device #N of structure tail end is connect with port B, remaining each slave device between slave device #1 and slave device #N sequentially connects It connects;
(2) when the port a of slave device #1 first receives " check " frame that port A is sent out, it is determined that this port a is from setting The upstream port of standby #1, the another port a of slave device #1 is downstream port, concurrently by the port a of slave device #1 upstream The port A of main equipment sends " QA#1 " frame;
(3) when the port A of upstream main equipment receives " QA#1 " frame that the port a of slave device #1 is sent out, it is determined that main Being bi-directionally connected for the port A and downstream slave device #1 of equipment is normal, at this time again from the port A of main equipment to the port of slave device #1 A sends " QA#2 " frame, as the response to " QA#1 " frame;
(4) when the port a of slave device #1 receives " QA#2 " frame that the port a of slave device #1 is sent out, it is determined that from setting The port a of standby #1 and being bi-directionally connected for upstream main equipment are normal, the mutual hair for the main equipment port A and slave device #1 that is just at this time It is existing;
(5) with same process (1)~(4), " check " frame is sent out by slave device #1, slave device #2 is according to receiving The port case of " check " frame, determines thereon/downstream port, then from the upstream port that slave device #2 is determined to slave device # 1 port for sending out " check " frame sends " QA#1 " frame, determines that slave device #1 sends out the port of " check " frame with slave device #2's It is bi-directionally connected normally, the port for then sending out " check " frame from slave device #1 again sends " QA# to the upstream port of slave device #2 2 " frames determine that the upstream port of slave device #2 and being bi-directionally connected for slave device #1 are normal, just complete at this time slave device #1 with from The mutual discovery of equipment #2;
(6) it along slave device #1 to the direction of slave device #N, in the way of process (5), carries out finding down successively, directly " check " frame that a certain slave device #K during being found along this direction is sent out does not obtain slave device #K+1 downstream Response when stop, if " check " frame that slave device #K is sent out is not responded, slave device #K, which assert, lays oneself open to link End has just automatically formed a single-ended links LA stopped by the A of port to slave device #K since then;
(7) in the process for starting port A " finding step by step ", while establishing single-ended links LA, start port B and " send out step by step It is existing " process, and with same process (2)~(6), find downstream from setting successively along slave device #N to the direction of slave device #1 It is standby, one is established by the B of port to the single-ended links LB that slave device #K+1 stops, when the slave device #K in step (6) is identified At the end of single-ended links LA, then slave device #K+1 is then the end of single-ended links LB, and slave device #K and slave device #K+1 is not It is finding mutually;
Wherein, N for the natural even number more than 2 or is the natural odd number more than 2;
When N is the natural even number more than 2, then
When N is the natural odd number more than 2, then
Further, in the step S3, by main equipment respectively to port A and port B the link LA received and link LB return data information be monitored analysis, and judge two initial single-ended links LA and LB whether normal operation, specifically Process is as follows:
(1) it is sent out by being located at the slave device #T-1 of the slave device #T of link LA ends upstream comprising Self address information DT " report " frame;
(2) after the slave device #T-1 of upstream receives " report " frame that slave device #T is sent out, by the address information of oneself DT-1 is added to the postamble of " report " frame that slave device #T is sent out, and then and continues up trip slave device #T-2 forwarding;
(3) in the way of process (3), the address information of oneself is added to its reception by downstream slave device After the postamble of " report " frame and continue, to the forwarding of its upstream slave device, to relay upwards step by step successively, until by end from setting Standby " report " frames of the #T through forwarding up step by step positioned at the port A of link LA head ends by until receiving, and main equipment is just at this time The address information and the order of connection of all slave devices on link LA are got;
(4) it in the way of process (1)~(3), is upstream forwarded step by step by the slave device #T+1 for being located at link LB ends " report " frame stops to the port B for being located at link LB head ends, and all slave devices on link LB are just got by main equipment Address information and the order of connection;
(5) if link LA and LB reaches corresponding port A and port B when returning to link information in the time of agreement When, then confirm that link LA and LB at this time are in normal operating condition;
(6) if link LA when returning to link information not the time of agreement reach port A when, that is, assert data frame surpass When, port A is in state undetermined at this time, if similarly link LB does not reach port B when returning to link information in the time of agreement When, port B is in state undetermined at this time;
(7) when main equipment monitor its either port A or port B be in state undetermined be then assert corresponding port A or Link LA or link LB where the B of port are in failure state, and there are connecting faults by corresponding link LA or link LB;
Wherein, wherein, N is the natural even number more than 2 or is the natural odd number more than 2;
When N is the natural even number more than 2, then
When N is the natural odd number more than 2, then
Further, in the step S6, the self-regeneration process for starting link inside is specific as follows:
(1) A and B is held to send out tentative termination data transfer command simultaneously by main equipment;
(2) equipment initialization is carried out to all slave devices on initial single-ended links LA and initial single-ended links LB;
(3) after the completion of the initialization of all slave devices, the port A and port B " finding step by step " of main equipment are restarted Process establishes two new single-ended links LA' and LB'.
Further, after certain port of any slave device is identified as downstream port, the slave device is no longer right The check frames received from port downstream are responded.
A kind of method for realizing ring redundancy series network hot plug proposed by the present invention is based on above-mentioned ring redundancy string The hot-plug method that connection network structure is established, comprises the steps of:
SS1, the initial loop redundancy series network of foundation physically:By the port A and B of main equipment respectively with by M from The chain-shaped network structure both ends connection that equipment is sequentially connected in series, forms a ring redundancy series network structure physically;
SS2, the process by " finding step by step ", the port A for establishing two difference main equipments in logic are connected with port B Initial single-ended links, i.e. link LA and link LB;
SS3, when needing in the initial single-ended links of any bar established in step SS2 a new slave device in addition When, the initial single-ended links that the needs add new slave device are first disconnected, new slave device then will be needed, which to place, needs chain to be added Connection relation at the connecting portion of road and with original link establishment physically forms the new ring being made of " M+1 " a slave device Shape redundancy series network structure type finally by " finding step by step " process in step SS2, establishes two new single-ended links;
SS4, when needing to replace with a new slave device in the initial single-ended links of any bar established in step SS2 When, the link that slave device is needed replacing in former single-ended links is first disconnected, then removes former slave device, new slave device is accessed into chain Lu Zhong restores the original ring redundancy series network structure type being made of " M " a slave device, finally by step SS2 " by Grade is found " process, establish two new single-ended links;
SS5, when needing to remove a slave device in the initial single-ended links of any bar established in step SS2, directly It connects in initial single-ended links of the slave device for removing the needs where it and removes, then will be located at and be removed slave device both ends Equipment restore physical connection, form the new ring redundancy series network structure type being made of " M-1 " a slave device, finally press According to " finding step by step " process in step SS2, two new single-ended links are established;
Wherein, M is the natural number to be more than 2.
Compared with prior art, the beneficial effects of the invention are as follows:(1) it is at low cost, it is only necessary to increase a company for main equipment Connect port, so that it may so that the series network of original " handing in hand " structure forms a loop configuration, so as to safety The characteristic of redundancy;(2) have the ability of automatic fault detection and fast quick-recovery, can be substantially reduced by accident without human intervention The influence of failure improves the robustness and stability of serial network;(3) hot plug can be supported, without increasing additional match Network size can easily be changed by putting work, provide very high flexibility.
Description of the drawings
Fig. 1 is the series network constructive embodiment of " handing in hand " structure;
A kind of ring redundancy series connection that Fig. 2 is established when realizing ring redundancy series network ring redundancy method for the present invention The embodiment of network structure;
Fig. 3 is the embodiment that connecting fault occurs for ring redundancy series network structure of the present invention;
Fig. 4 is based on the new data link structure diagram formed after Fig. 3 fault recoveries;
Fig. 5 return the process schematic of link information to be established ring redundancy series network structure based on Fig. 2;
Fig. 6 carries out main equipment and " gradually finds " downstream slave device to be established ring redundancy series network structure based on Fig. 2 Process schematic;
Fig. 7 is that the present invention is to realize a kind of ring redundancy series connection net that ring redundancy series network hot-plug method is established The embodiment of network structure
Fig. 8 is the ring redundancy series network structure established based on Fig. 7, when realizing hot plug, the first heat insert The embodiment of structure;
Fig. 9 is the ring redundancy series network structure established based on Fig. 7, and when realizing hot plug, second of heat inserts knot The embodiment of structure;
Figure 10 is the ring redundancy series network structure established based on Fig. 7, when realizing hot plug, the third hot plug The embodiment of structure;
Figure 11 is the workflow schematic diagram of main equipment in ring redundancy series network structure of the present invention;
Figure 12 is the workflow schematic diagram of slave device in ring redundancy series network structure of the present invention;
Specific embodiment
To be easy to understand the technical means, the creative features, the aims and the efficiencies achieved by the present invention, with reference to The drawings and specific embodiments, how the present invention is further explained implements.
Embodiment 1:As shown in Fig. 2, a kind of ring redundancy series network structure provided by the invention, includes a main equipment And eight slave devices, main equipment is equipped with Single port A and Single port B, each slave device are equipped with a port a and a port b, Eight slave devices are sequentially connected in series into a chain-shaped network structure by the port being correspondingly provided with, positioned at the chain-shaped network structure both ends Two slave devices connect respectively with two ports A and B of main equipment, formed a ring-like network structure.
Embodiment 2:A kind of method for realizing ring redundancy series network ring redundancy provided by the invention, includes following step Suddenly:
S1, the initial loop redundancy series network of foundation physically:
As shown in Fig. 2, by the port A and B of main equipment the chain-shaped network knot with being sequentially connected in series by eight slave devices respectively Structure both ends connect, and form a ring redundancy series network structure physically;
S2, the process by " finding step by step ", the port A for establishing two difference main equipments in logic are connected with port B Initial single-ended links, i.e. link LA and link LB;
S3, by main equipment respectively to port A and port B the link LA received and link LB return data information into Row monitoring analysis, and judge two initial single-ended links LA and LB whether normal operation;
If S4, main equipment monitor that the respective link return information that port A and port B are received is normal, end is confirmed Two equal normal operations of initial single-ended links where mouth A and port B, then continue the ring redundancy string for keeping establishing in step S1 Join network structure;
It is different that if S5, main equipment monitor that the link return information in port A and port B received by any one port has Often, then assert in the initial single-ended links where the port in failure state;
S6, it finds out the position broken down in failure single-ended links, and will be established in step S1 at the trouble location Ring redundancy series network structure is broken into the series network structure of two " handing in hand " formulas, concurrently starts link inside Self-regeneration process, and in the way of step S2, establish two new single-ended links LA' and LB';
S7, two equipment that two new single-ended links LA' and LB' ends are established in step S6 are reconnected in Together, a new ring redundancy series network structure is formed;
S8, step S3 to step S7 is repeated, keeps annular redundant strings connection network structure continuous and effective, it is superfluous so as to fulfill annular Remaining series network structure ring redundancy.
As shown in Fig. 6, Figure 11 and Figure 12, in step S2, by the process of " finding step by step ", two points in logic are established The initial single-ended links LA and LB that the port A and port B of other main equipment are connected, detailed process are:
(1) it is powered and starts main equipment, " check " frame is simultaneously emitted by by port A and port B, wherein, own in step sl The slave device #1 of the ring redundancy series network structure head end of foundation is connect with port A, and positioned at ring redundancy series network knot The slave device #8 of structure tail end is connect with port B, remaining each slave device between slave device #1 and slave device #8 is sequentially connected with;
(2) when the port a of slave device #1 first receives " check " frame that port A is sent out, it is determined that this port a is from setting The upstream port of standby #1, the another port a of slave device #1 is downstream port, concurrently by the port a of slave device #1 upstream The port A of main equipment sends " QA#1 " frame;
(3) when the port A of upstream main equipment receives " QA#1 " frame that the port a of slave device #1 is sent out, it is determined that main Being bi-directionally connected for the port A and downstream slave device #1 of equipment is normal, at this time again from the port A of main equipment to the port of slave device #1 A sends " QA#2 " frame, as the response to " QA#1 " frame;
(4) when the port a of slave device #1 receives " QA#2 " frame that the port a of slave device #1 is sent out, it is determined that from setting The port a of standby #1 and being bi-directionally connected for upstream main equipment are normal, the mutual hair for the main equipment port A and slave device #1 that is just at this time It is existing;
(5) with same process (1)~(4), " check " frame is sent out by slave device #1, slave device #2 is according to receiving The port case of " check " frame, determines thereon/downstream port, then from the upstream port that slave device #2 is determined to slave device # 1 port for sending out " check " frame sends " QA#1 " frame, determines that slave device #1 sends out the port of " check " frame with slave device #2's It is bi-directionally connected normally, the port for then sending out " check " frame from slave device #1 again sends " QA# to the upstream port of slave device #2 2 " frames determine that the upstream port of slave device #2 and being bi-directionally connected for slave device #1 are normal, just complete at this time slave device #1 with from The mutual discovery of equipment #2;
(6) it along slave device #1 to the direction of slave device #8, in the way of process (5), carries out finding down successively, directly " check " frame that slave device #4 during being found along this direction is sent out does not obtain the response of slave device #5 downstream When stop, slave device #4 then assert the end for laying oneself open to link at this time, just automatically formed since then one by the A of port to from The single-ended links LA that equipment #4 stops;
(7) in the process for starting port A " finding step by step ", while establishing single-ended links LA, start port B and " send out step by step It is existing " process, and with same process (2)~(6), find downstream from setting successively along slave device #8 to the direction of slave device #1 It is standby, it establishes one and is identified in step (6) in list to the single-ended links LB that slave device #5 stops, slave device #4 by the B of port Hold the end of link LA, then slave device #5 is then the end of single-ended links LB, positioned at single-ended links LA end slave device #4 with End slave device #5 positioned at single-ended links LB is not having found mutually.
As shown in Fig. 5, Figure 11 and Figure 12, in step S3, the chain that is received respectively to port A and port B by main equipment The data information that road LA and link LB is returned is monitored analysis, and judge whether two initial single-ended links LA and LB run Normally, detailed process is as follows:
(1) it is sent out by being located at the slave device #3 of the slave device #4 of link LA ends upstream comprising Self address information D4's " report " frame;
(2) after the slave device #3 of upstream receives " report " frame that slave device #4 is sent out, by the address information D3 of oneself The postamble of " report " frame that slave device #4 is sent out is automatically added to, then and continues up trip slave device #2 forwarding;
(3) in the way of process (3), the address information D2 of oneself is being added to its reception by downstream slave device #2 After the postamble of " report " frame and continue to forward to its upstream slave device #1, slave device #1 is again automatic by the address information D1 of oneself It is added to its postamble of " report " frame to be come up by slave device #2 forwardings, " report " forwarding being then connected to again is in place In the port A of link LA head ends, main equipment has just got all slave devices i.e. slave device #1 on link LA at this time To the address information and the order of connection of slave device #4, as shown in Figure 5;
(4) in the way of process (1)~(3), Self address will be included by the slave device #5 for being located at link LB ends and believed " report " frame of breath D5 is forwarded up to slave device #6, after slave device #6 receives " report " frame of slave device #5 forwardings again, The address information D6 of oneself is automatically added to forward the postamble of " report " frame to come up from slave device #5 and is continued to thereon Slave device #7 forwarding is swum, after slave device #7 receives " report " frame that slave device #6 forwardings come up again, and by the address of oneself Information D7 is automatically added to the postamble of " report " frame to be come up by slave device #6 forwardings, then proceedes to its upstream slave device #8 Forwarding, after slave device #8 receives " report " frame that slave device #7 forwardings come up again, and the address information D8 of oneself is automatic It is added to the postamble of " report " frame to be come up by slave device #7 forwardings, is then being forwarded to the port B positioned at link LB head ends In, at this time main equipment just get all slave devices i.e. slave device #8 to slave device #5 on link LB address information and The order of connection;
(5) if link LA and LB reaches corresponding end when returning to link information and being " report " frame in the time of agreement During mouth A and port B, then confirm that link LA and LB at this time are in normal operating condition;
(6) if link LA return link information be " report " frame when not the time of agreement reach port A when, that is, recognize Fixed number is in state undetermined according to frame timeout, at this time port A, if similarly link LB return link information be " report " frame when not When the time of agreement reaching port B, port B is in state undetermined at this time;
(7) when main equipment monitor its either port A or port B be in state undetermined be then assert corresponding port A or Link LA or link LB where the B of port are in failure state, and there are connecting faults by corresponding link LA or link LB;
In this example, it is assumed that in two initial single-ended links LA and link LB being established in step s 2, i.e., in place When connecting fault is sent out between slave device #5 and slave device #6 in link LB leads to link LB in failure, as shown in figure 3, The self-regeneration process for starting link inside according to step S6 at this time is specific as follows:
(1) A and B is held to send out tentative termination data transfer command simultaneously by main equipment;
(2) to being located at all slave device #1 of initial single-ended links LA to slave device #4 and on initial single-ended links LB All slave device #8 to slave device #5 carry out equipment initialization;
(3) after the completion of all slave devices, that is, slave device #1 is initialized to slave device #8, the end of main equipment is restarted The process of mouth A and port B " finding step by step ", as shown in fig. 6, establishing two new single-ended links LA' and LB', as shown in Figure 4.
By the process of " finding step by step ", during progress upstream and downstream equipment is mutually found, when certain of any slave device After port is identified as downstream port, then the slave device no longer responds the check frames received from port downstream, such as schemes Shown in 12.
Embodiment 3:The present invention provides a kind of method for realizing ring redundancy series network hot plug, comprises the steps of:
SS1, the initial loop redundancy series network of foundation physically:By the port A and B of main equipment respectively with by 6 from The chain-shaped network structure both ends connection that equipment is sequentially connected in series, forms a ring redundancy series network structure physically;
SS2, the process by " finding step by step ", the port A for establishing two difference main equipments in logic are connected with port B Initial single-ended links, i.e. link LA and link LB;
SS3, when needing in the initial single-ended links of any bar established in step SS2 a new slave device in addition When, the initial single-ended links that the needs add new slave device are first disconnected, new slave device then will be needed, which to place, needs chain to be added Connection relation at the connecting portion of road and with original link establishment physically forms the new ring being made of " 6+1 " a slave device Shape redundancy series network structure type finally by " finding step by step " process in step SS2, establishes two new single-ended links;
SS4, when needing to replace with a new slave device in the initial single-ended links of any bar established in step SS2 When, the link that slave device is needed replacing in former single-ended links is first disconnected, then removes former slave device, new slave device is accessed into chain Lu Zhong restores the original ring redundancy series network structure type being made of " 6 " a slave device, finally by step SS2 " by Grade is found " process, establish two new single-ended links;
SS5, when needing to remove a slave device in the initial single-ended links of any bar established in step SS2, directly It connects in initial single-ended links of the slave device for removing the needs where it and removes, then will be located at and be removed slave device both ends Equipment restore physical connection, form the new ring redundancy series network structure type being made of " 6-1 " a slave device, finally press According to " finding step by step " process in step SS2, two new single-ended links are established;
Wherein, the detailed process of initial single-ended links LA and link LB is established in step SS2 according to being provided in embodiment 2 A kind of step S2 in method for realizing ring redundancy series network ring redundancy is implemented.
Wherein, by finding step by step in step SS3~step SS5 " process, establish the specific mistakes of two new single-ended links Journey is implemented according to the step S6 in embodiment 2.
Finally illustrate, the foregoing is merely the embodiment of the present invention, are not intended to limit the scope of the invention, every The equivalent structure or equivalent flow shift made using description of the invention and accompanying drawing content, is directly or indirectly used in other Relevant technical field, is included within the scope of the present invention.

Claims (7)

1. a kind of ring redundancy series network structure, it is characterised in that:Comprising a main equipment and N number of slave device, the master sets Standby to be equipped with a port A and a port B, each slave device is equipped with a port a and a port b, N number of described Slave device is sequentially connected in series into a chain-shaped network structure, the both ends of the chain-shaped network structure port with the main equipment respectively A and port B connections form an annular series network structure.
2. a kind of method for realizing ring redundancy series network ring redundancy is that the ring redundancy described in 1 is wanted to connect based on right The ring redundancy method that network structure is established, it is characterised in that:It comprises the steps of:
S1, the initial loop redundancy series network of foundation physically:By the port A and B of main equipment respectively with by N number of slave device according to The both ends connection of the secondary chain-shaped network structure being connected into, forms a ring redundancy series network physically;
S2, the process by " step by step find ", at the beginning of establishing that the port A and port B of two difference main equipments in logic connect Beginning single-ended links, i.e. link LA and link LB;
S3, port A and port B the link LA received and link the LB data information returned are supervised respectively by main equipment Survey analysis, and judge two initial single-ended links LA and LB whether normal operation;
If S4, main equipment monitor that the respective link return information that port A and port B are received is normal, confirm port A and Two equal normal operations of initial single-ended links where the B of port then continue the ring redundancy for keeping establishing in step S1 series connection net The connection status of network structure;
If S5, main equipment monitor that the link return information in port A and port B received by any one port has exception, Then assert in the initial single-ended links where the port in failure state;
S6, the position broken down in failure single-ended links, and the annular that will be established in step S1 at the trouble location are found out Redundancy series network structure is broken into the series network structure of two " handing in hand " formulas, concurrently starts link inside self Repair process, and in the way of step S2, establish two new single-ended links LA' and LB';
S7, two equipment that two new single-ended links LA' and LB' ends are established in step S6 are reconnected in one It rises, forms a new ring redundancy series network structure;
S8, step S3 to step S7 is repeated, annular redundant strings connection network structure continuous and effective is kept, so as to fulfill ring redundancy string Join the ring redundancy of network structure.
3. the method according to claim 2 for realizing ring redundancy series network ring redundancy, it is characterised in that:The step In rapid S2, by the process of " finding step by step ", at the beginning of establishing that the port A and port B of two difference main equipments in logic connect Beginning single-ended links, detailed process are:
(1) it is powered and starts main equipment, " check " frame is simultaneously emitted by by port A and port B, it is assumed that all in step S1 to build The slave device #1 of vertical ring redundancy series network structure head end is connect with port A, and positioned at ring redundancy series network structure The slave device #N of tail end is connect with port B, remaining each slave device between slave device #1 and slave device #N is sequentially connected with;
(2) when the port a of slave device #1 first receives " check " frame that port A is sent out, it is determined that this port a is slave device #1 Upstream port, the another port a of slave device #1 is downstream port, and concurrently by the port a of slave device #1, upstream master setting Standby port A sends " QA#1 " frame;
(3) when the port A of upstream main equipment receives " QA#1 " frame that the port a of slave device #1 is sent out, it is determined that main equipment Port A and downstream slave device #1 be bi-directionally connected normal, sent out again from the port A of main equipment to the port a of slave device #1 at this time " QA#2 " frame is sent, as the response to " QA#1 " frame;
(4) when the port a of slave device #1 receives " QA#2 " frame that the port a of slave device #1 is sent out, it is determined that slave device #1 Port a and upstream main equipment be bi-directionally connected normal, the mutual discovery for the main equipment port A and slave device #1 that is just at this time;
(5) with same process (1)~(4), " check " frame is sent out by slave device #1, slave device #2 is according to receiving The port case of " check " frame, determines thereon/downstream port, then from the upstream port that slave device #2 is determined to slave device # 1 port for sending out " check " frame sends " QA#1 " frame, determines that slave device #1 sends out the port of " check " frame with slave device #2's It is bi-directionally connected normally, the port for then sending out " check " frame from slave device #1 again sends " QA# to the upstream port of slave device #2 2 " frames determine that the upstream port of slave device #2 and being bi-directionally connected for slave device #1 are normal, just complete at this time slave device #1 with from The mutual discovery of equipment #2;
(6) it along slave device #1 to the direction of slave device #N, in the way of process (5), carries out finding down successively, go directly suitable Time that " check " frame that a certain slave device #K during this direction is found is sent out does not obtain slave device #K+1 downstream Seasonable to stop, if " check " frame that slave device #K is sent out is not responded, slave device #K assert the end for laying oneself open to link End has just automatically formed a single-ended links LA stopped by the A of port to slave device #K since then;
(7) in the process for starting port A " finding step by step ", while establishing single-ended links LA, start port B's " finding step by step " Process, and with same process (2)~(6), find downstream slave device successively along slave device #N to the direction of slave device #1, build A vertical single-ended links LB by the B of port to slave device #K+1 only, when the slave device #K in step (6) is identified single-ended During the end of link LA, then slave device #K+1 is then the end of single-ended links LB, and slave device #K and slave device #K+1 is not mutual It was found that;
Wherein, N for the natural even number more than 2 or is the natural odd number more than 2;
When N is the natural even number more than 2, then
When N is the natural odd number more than 2, then
4. the method according to claim 3 for realizing ring redundancy series network ring redundancy, it is characterised in that:The step In rapid S3, port A and port B the link LA received and link the LB data information returned are supervised respectively by main equipment Survey analysis, and judge two initial single-ended links LA and LB whether normal operation, detailed process is as follows:
(1) it is sent out by being located at the slave device #T-1 of the slave device #T of link LA ends upstream comprising Self address information DT's " report " frame;
(2) after the slave device #T-1 of upstream receives " report " frame that slave device #T is sent out, by the address information D T-1 of oneself It is added to the postamble of " report " frame that slave device #T is sent out, then and continues up trip slave device #T-2 forwarding;
(3) in the way of process (3), the address information of oneself is added to " report " frame of its reception by downstream slave device Postamble after and continue, to the forwarding of its upstream slave device, to relay upwards step by step successively, until by end slave device #T through step by step Forwarding " report " frame to come up, main equipment has just got position at this time by until being received positioned at the port A of link LA head ends In the address information and the order of connection of all slave devices on link LA;
(4) it in the way of process (1)~(3), is upstream forwarded step by step by the slave device #T+1 for being located at link LB ends " report " frame stops to the port B for being located at link LB head ends, and all slave devices on link LB are just got by main equipment Address information and the order of connection;
(5) if link LA and LB when returning to link information the time of agreement reach corresponding port A and port B when, Confirm that link LA and LB at this time are in normal operating condition;
(6) if link LA when returning to link information not the time of agreement reach port A when, that is, assert data frame timeout, this When port A be in state undetermined, if similarly link LB when returning to link information not the time of agreement reach port B when, this When port B be in state undetermined;
(7) it is then to assert corresponding port A or port when main equipment monitors that its either port A or port B is in state undetermined Link LA or link LB where B are in failure state, and there are connecting faults by corresponding link LA or link LB;
Wherein, wherein, N is the natural even number more than 2 or is the natural odd number more than 2;
When N is the natural even number more than 2, then
When N is the natural odd number more than 2, then
5. the method according to claim 2 for realizing ring redundancy series network ring redundancy, it is characterised in that:The step In rapid S6, the self-regeneration process for starting link inside is specific as follows:
(1) A and B is held to send out tentative termination data transfer command simultaneously by main equipment;
(2) equipment initialization is carried out to all slave devices on initial single-ended links LA and initial single-ended links LB;
(3) after the completion of the initialization of all slave devices, the process of the port A and port B " finding step by step " of main equipment are restarted, Establish two new single-ended links LA' and LB'.
6. the method according to claim 3 for realizing ring redundancy series network ring redundancy, it is characterised in that:When any After certain port of the slave device is identified as downstream port, the slave device from port downstream no longer to receiving Check frames are responded.
7. a kind of method for realizing ring redundancy series network hot plug is the ring redundancy series connection net wanted based on right described in 1 The hot-plug method that network structure is established, it is characterised in that:It comprises the steps of:
SS1, the initial loop redundancy series network of foundation physically:By the port A and B of main equipment respectively with by M slave device The chain-shaped network structure both ends connection being sequentially connected in series, forms a ring redundancy series network physically;
SS2, the process by " step by step find ", at the beginning of establishing that the port A and port B of two difference main equipments in logic connect Beginning single-ended links, i.e. link LA and link LB;
SS3, when needing a new slave device in addition in the initial single-ended links of any bar established in step SS2, first The initial single-ended links that the needs add new slave device are disconnected, new slave device then will be needed, which to place, needs link connection to be added Connection relation at position and with original link establishment physically forms the new ring redundancy being made of " M+1 " a slave device Series network structure type finally by " finding step by step " process in step SS2, establishes two new single-ended links;
SS4, when needing to replace with a new slave device in the initial single-ended links of any bar established in step SS2, first The link that slave device is needed replacing in former single-ended links is disconnected, then removes former slave device, by new slave device access link, Restore the original ring redundancy series network structure type being made of " M " a slave device, finally by " sending out step by step in step SS2 It is existing " process, establish two new single-ended links;
SS5, when needing to remove a slave device in the initial single-ended links of any bar established in step SS2, direct general The slave device that the needs remove removes in the initial single-ended links where it, then by setting positioned at removed slave device both ends It is standby to restore physical connection, the new ring redundancy series network structure type being made of " M-1 " a slave device is formed, finally according to step " finding step by step " process in rapid SS2, establishes two new single-ended links;
Wherein, M is the natural number more than 2.
CN201711387999.XA 2017-12-20 2017-12-20 Method for realizing ring redundancy and hot plug of ring redundancy series network structure Active CN108134728B (en)

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 true CN108134728A (en) 2018-06-08
CN108134728B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
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
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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

Cited By (4)

* Cited by examiner, † Cited by third party
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
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

Also Published As

Publication number Publication date
CN108134728B (en) 2020-09-08

Similar Documents

Publication Publication Date Title
CN108134728A (en) A kind of ring redundancy series network structure and its ring redundancy and the method for hot plug
JP6076373B2 (en) Technology to cope with changes in the state of interconnection nodes
US8488475B2 (en) Fault processing method, system and exchanging device based on industry ethernet network
CN102710484B (en) Ring redundant real-time Ethernet communication method
EP3232616B1 (en) Failure processing method for forwarding device, and controller
CN103442035B (en) A kind of two net hot backup redundancy implementation methods of air traffic control automation system
TWI455525B (en) Recovery method for ring-based network
CN101588304A (en) Implementation method of VRRP
US8184527B2 (en) Method for conducting redundancy checks in a chain network
CN108804260B (en) SRIO system switching method and device
CN102891769A (en) Link fault informing method and apparatus
CN103107940A (en) Redundant gateway system for device level ring networks
CN104486128A (en) System and method for realizing redundant heartbeat between nodes of double-controller
JP2008167315A (en) Redundant line connecting method and wide-area communication network node device
CN106100988A (en) A kind of realize the method that link aggregation is switched fast
CN103001802B (en) Ether port failure self-repairing method and system
CN102932183A (en) Double-up link failure processing method and device
CN102075361A (en) Method and node equipment for recovering looped network business
CN102407868A (en) Hot-standby dual-connection method suitable for communication protocol of modern monitoring system of rail transit
CN106533771A (en) Network device and control information transmission method
CN101729349B (en) RRPP-based detection method and device for connectivity of main ring access
CN101902383B (en) E1-based bi-directional ring network method and system thereof
CN107124322B (en) Redundant communication method
JP5167183B2 (en) Node and network control method
JP5167173B2 (en) Node and network control method

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