CN107302484A - A kind of method and apparatus of looped network self-healing - Google Patents
A kind of method and apparatus of looped network self-healing Download PDFInfo
- Publication number
- CN107302484A CN107302484A CN201710440165.4A CN201710440165A CN107302484A CN 107302484 A CN107302484 A CN 107302484A CN 201710440165 A CN201710440165 A CN 201710440165A CN 107302484 A CN107302484 A CN 107302484A
- Authority
- CN
- China
- Prior art keywords
- gateway
- node gateway
- node
- malfunctioning
- starting point
- 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.)
- Pending
Links
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
- H04L12/437—Ring fault isolation or reconfiguration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
Abstract
The embodiments of the invention provide a kind of method and apparatus of looped network self-healing, including:Detect the malfunctioning node gateway that abnormality is in looped network;Obtain the quantity of malfunctioning node gateway;If the quantity of malfunctioning node gateway is 1, in the non-faulting node gateway being in from looped network, starting point gateway and terminating gateway are determined, and carries out between starting point gateway and terminating gateway data interaction;If the quantity of malfunctioning node gateway is more than or equal to 2, and each malfunctioning node gateway is adjacent, then determines starting point gateway and terminating gateway in the non-faulting node gateway in normal condition from looped network, and carries out between starting point gateway and terminating gateway data interaction;If the quantity of malfunctioning node gateway is more than or equal to 2, and each malfunctioning node gateway is non-adjacent, then skips each malfunctioning node gateway and carry out data interaction.The embodiment of the present invention is realized when failure node gateway in looped network, can still cause other non-faulting node gateway proper communications in looped network.
Description
Technical field
The present invention relates to communication technical field, the method for more particularly to a kind of looped network self-healing and a kind of dress of looped network self-healing
Put.
Background technology
Loop network, is commonly called as " looped network ", is that every equipment is linked together using continuous, closure a ring.It
It ensure that the signal sent in an equipment can all be seen by other all equipment on ring.In simple looped network, net
The damage of any part will all cause system to break down in network, will so hinder whole system to carry out normal work.And have
The ring network of higher structure then largely improves this defect.The latticed form of this structure is mainly used in token
In net, each equipment is directly to be concatenated by cable in this network structure, eventually forms a closed loop, whole network hair
The information sent is exactly to be transmitted in this ring, and generally this kind of network is referred to as " token-ring network ".In token-ring network, possess
The equipment of " token " allows to transmit data in a network.It can so ensure only have an equipment can in sometime interior network
To transmit information.
In the prior art, " token " is transmitted successively in ring-like connection, and transmission medium used is usually coaxial cable,
It is direct series connection between each node of whole network, so any one node, which is out of order, can all cause interruption, the paralysis of whole network
Paralysis, it is very inconvenient to safeguard.On the other hand because coaxial cable uses the way of contact of contact pin type, hold very much
Loose contact, network interruption are easily caused, and so searches extremely difficult.
Also in that its ring type structure, determines that its scalability is poor, any information transmitted on ring is all necessary
Through all end points, therefore, if the certain point of ring disconnects, the communication on ring between all ends will be terminated.It is in the art now
The shortcoming of this network topology structure is overcome, each end points is also connected on standby ring in addition to being connected with a ring, when main ring event
During barrier, it is automatically brought on standby ring.If newly to add or mobile node, whole network must be just interrupted, the two of ring
End, which performs connector, to be connected.It so can not only increase the complexity of network topology, can also increase hardware cost.
The content of the invention
In view of the above problems, the embodiment of the present invention proposes a kind of method of looped network self-healing and a kind of corresponding looped network self-healing
Device.
In order to solve the above problems, the embodiment of the invention discloses a kind of method of looped network self-healing, including:
Detect the malfunctioning node gateway that abnormality is in the looped network;
Obtain the quantity of the malfunctioning node gateway;
If the quantity of the malfunctioning node gateway is 1, in the non-faulting node gateway being in from the looped network, it is determined that
Starting point gateway and terminating gateway, and carry out data interaction between the starting point gateway and the terminating gateway;
If the quantity of the malfunctioning node gateway is more than or equal to 2, and each malfunctioning node gateway is adjacent, then from the ring
In net in the non-faulting node gateway in normal condition, determine starting point gateway and terminating gateway, and the starting point gateway with
Data interaction is carried out between the terminating gateway;
If the quantity of the malfunctioning node gateway is more than or equal to 2, and each malfunctioning node gateway is non-adjacent, then skips institute
State each malfunctioning node gateway and carry out data interaction.
It is preferred that, it is described from the looped network in normal condition non-faulting node gateway in, determine starting point gateway and
Terminating gateway, and progress data interaction includes between the starting point gateway and the terminating gateway:
Using the upstream node gateway of the malfunctioning node gateway as starting point gateway, downstream node gateway is used as terminal net
Close, data interaction is carried out between the starting point gateway and the terminating gateway;
Or,
Using the downstream node gateway of the malfunctioning node gateway as starting point gateway, upstream node gateway is used as terminal net
Close, data interaction is carried out between the starting point gateway and the terminating gateway;
Or,
, will be except using the upstream node gateway of the malfunctioning node gateway, downstream node gateway simultaneously as starting point gateway
The malfunctioning node gateway, the upstream node gateway of the malfunctioning node gateway, the downstream node net of the malfunctioning node gateway
Any node gateway outside pass carries out data friendship as terminating gateway between the starting point gateway and the terminating gateway
Mutually.
It is preferred that, the step of being in the malfunctioning node gateway of abnormality in the detection looped network includes:
Detect the heartbeat signal of each node gateway in the looped network;
When the heartbeat signal of node gateway, or, the heartbeat signal of node gateway can not be detected for error signal, then sentence
The fixed node gateway is in abnormality.
It is preferred that, each node gateway is connected by optical fiber in the looped network, and each node gateway has photoswitch respectively;
It is described to skip the step of each described malfunctioning node gateway carries out data interaction and include:
Each described malfunctioning node gateway opens photoswitch and carries out data interaction.
It is preferred that, described method also includes:
The malfunctioning node gateway is recovered automatically;The automatic recovery includes system reboot, recovered before failure just
Often operation is set;
If automatic recover failure, fault warning is carried out;
When the malfunctioning node gateway reverts to normal condition, and upstream node gateway, and, downstream node gateway enters
Row data interaction.
Accordingly, the embodiment of the invention also discloses a kind of device of looped network self-healing, including:
Detection module, the malfunctioning node gateway of abnormality is in for detecting in the looped network;
Acquisition module, the quantity for obtaining the malfunctioning node gateway;
First performing module, if the quantity for the malfunctioning node gateway is 1, the non-event being in from the looped network
Hinder in node gateway, determine starting point gateway and terminating gateway, and enter line number between the starting point gateway and the terminating gateway
According to interaction;
If the quantity that first performing module is additionally operable to the malfunctioning node gateway is more than or equal to 2, and each failure
Node gateway is adjacent, then determines starting point gateway and terminal in the non-faulting node gateway in normal condition from the looped network
Gateway, and carry out data interaction between the starting point gateway and the terminating gateway;
Second performing module, if the quantity for the malfunctioning node gateway is more than or equal to 2, and each malfunctioning node net
Close non-adjacent, then skip each described malfunctioning node gateway and carry out data interaction.
It is preferred that, first performing module includes:
First determination sub-module, for regarding the upstream node gateway of the malfunctioning node gateway as starting point gateway, downstream
Node gateway carries out data interaction as terminating gateway between the starting point gateway and the terminating gateway;
Second determination sub-module, for regarding the downstream node gateway of the malfunctioning node gateway as starting point gateway, upstream
Node gateway carries out data interaction as terminating gateway between the starting point gateway and the terminating gateway;
3rd determination sub-module, for by the upstream node gateway of the malfunctioning node gateway, downstream node gateway simultaneously
As starting point gateway, by except the malfunctioning node gateway, the upstream node gateway of the malfunctioning node gateway, the failure section
Any node gateway outside the downstream node gateway of point gateway is as terminating gateway, in the starting point gateway and the terminal net
Data interaction is carried out between pass.
It is preferred that, the detection module includes:
Heartbeat detection submodule, the heartbeat signal for detecting each node gateway in the looped network;
Decision sub-module, the heartbeat signal of node gateway can not be detected for working as, or, the heartbeat signal of node gateway is
During error signal, then judge that the node gateway is in abnormality.
It is preferred that, each node gateway is connected by optical fiber in the looped network, and each node gateway has photoswitch respectively;
Second performing module includes:
Photoswitch submodule, opens photoswitch for each described malfunctioning node gateway and carries out data interaction.
It is preferred that, described device also includes:
Recovery module, is recovered automatically for the malfunctioning node gateway;The automatic recovery includes system reboot, extensive
Normal operation before multiple failure is set;
Alarm module, if for recovering failure automatically, carrying out fault warning;
3rd performing module, for when the malfunctioning node gateway reverts to normal condition, and upstream node gateway, with
And, downstream node gateway carries out data interaction.
The embodiment of the present invention includes advantages below:
In embodiments of the present invention, the malfunctioning node gateway of abnormality is in the looped network by detecting, and is obtained
The quantity of the malfunctioning node gateway, if the quantity of the malfunctioning node gateway is 1, the non-faulting being in from the looped network
In node gateway, starting point gateway and terminating gateway are determined, and data are carried out between the starting point gateway and the terminating gateway
Interaction;If the quantity of the malfunctioning node gateway is more than or equal to 2, and each malfunctioning node gateway is adjacent, then from the looped network
In in the non-faulting node gateway in normal condition, determine starting point gateway and terminating gateway, and in the starting point gateway and institute
State and carry out data interaction between terminating gateway;If the quantity of the malfunctioning node gateway is more than or equal to 2, and each malfunctioning node
Gateway is non-adjacent, then skips the mode that each described malfunctioning node gateway carries out data interaction, realize when appearance event in looped network
When hindering node gateway, it is not necessary to by way of primary ring cutting is shifted into standby ring, it can still cause other non-events in looped network
Hinder node gateway proper communication, so both will not increase the complexity of network topology because standby ring is added, also will not be because of
Add standby ring and increase hardware cost.
Brief description of the drawings
Fig. 1 is a kind of step flow chart one of the embodiment of the method for looped network self-healing of the present invention;
Fig. 2 is a kind of step flowchart 2 of the embodiment of the method for looped network self-healing of the present invention;
Fig. 3 is a kind of structured flowchart of the device embodiment of looped network self-healing of the present invention.
Embodiment
In order to facilitate the understanding of the purposes, features and advantages of the present invention, it is below in conjunction with the accompanying drawings and specific real
Applying mode, the present invention is further detailed explanation.
Reference picture 1, shows a kind of step flow chart one of the embodiment of the method for looped network self-healing of the present invention, in the application
In, looped network refers to token-ring network, and the transmission method of token-ring network physically employs star topology, but in logic still
It is ring topology.
In such networks, there is a kind of special frame to be referred to as " token ", constantly transmit to determine a knot on loop
When point can send bag.Token is 24 bit lengths, there is the domain of 38, be respectively first delimiter (Start Delimiter,
SD), access control (Access Control, AC) and whole delimiter (End Delimiter, ED).First delimiter be it is a kind of with
Many different signal modes, are showed, purposes is to prevent it to be construed as other things as a kind of non-data signal.It is this
8 unique bit combinations can only be identified as frame headers and know symbol (SOF).
The media access control mechanism of token-ring network uses the round-robin method of distributed AC servo system pattern.In token-ring network
In there is a token (Token) to be transmitted successively in network access node intercomputer along ring bus, token is actually a spy
The frame of different form, itself and the use not comprising information, only control channel, it is ensured that can be only in synchronization only one of which node
Account for channel.When node on the ring is all idle, token around go in ring into.Node device could send data frame after there was only acquirement token,
Therefore it will not collide.Because token is transmitted successively in order on net ring, therefore for all log equipments, visit
The power of asking is fair.
Token has " spare time " and " busy " two states at work." spare time " represents that token does not have occupied, that is, is not set in netting
It is standby to transmit information;" busy " expression token is occupied, that is, has information to transmit in netting.Wish that the equipment for transmitting data is necessary
First it is detected that " spare time " token, it is set to the state of " busy ", then data are transmitted behind the token.When passed data are by mesh
Node device receive after, data are removed from net, and token is set to " spare time " again.
Described method specifically may include steps of:
Step 101, the malfunctioning node gateway that abnormality is in the looped network is detected;
Each node gateway has two kinds of working conditions in looped network:Normal condition and abnormality.When node gateway
When normal condition, represent that node gateway can normally receive the packet of upstream node gateway transmission, then packet is entered
Row processing, then the packet after processing is sent to downstream node gateway, when node gateway all in looped network is all in normal
During state, a looped network could be formed;When node gateway cannot normally receive upstream node gateway transmission packet, and/
Or, packet cannot be handled, and/or, it is not possible to the packet after processing is sent to downstream node gateway, all may be used
Abnormality is in predicate node gateway.
Because in whole looped network between each node being direct series connection, any one node gateway is out of order and can all made
Interruption into whole network, paralysis, therefore, in order to prevent because some or multiple node gateway failure abnormal networks
Interrupt, paralyse, or even loss of data is, it is necessary to which the working condition to all node gateways in looped network is detected.
In a kind of preferred embodiment of the invention, the malfunctioning node gateway of abnormality is in the detection looped network
The step of include:
Detect the heartbeat signal of each node gateway in the looped network;
When the heartbeat signal of node gateway, or, the heartbeat signal of node gateway can not be detected for error signal, then sentence
The fixed node gateway is in abnormality.
Heartbeat detection, it is general that simple heartbeat packet is sent using timing for judging whether counterpart device normally runs, such as
Do not receive other side's response in section at the appointed time really, then judge that other side is not online.
For example, it is for a long time, in the free time, still to have gone offline that server, which cannot be distinguished by client, then client timing is sent out
Heartbeat packet is sent to tell it me also online to server end.If not receiving the heartbeat packet of client transmission in service end a few minutes
Then it is considered as client not online.The party awarding the contract can be client or server end.In general, examining for efficiency
Consider, be that client sends heartbeat packet to server end automatically, certainly, the hair heartbeat of server end automatic regular polling is also can to client
With realization.
The embodiment of the present invention exactly detects the working condition of all node gateways in looped network using features described above.Specifically
, in looped network, packet can have both direction to carry out data transmission, when packet is according to some direction sequential delivery
When, it can be responded by the upstream node gateway heartbeat packet of gateway transmission to downstream node, downstream node gateway, then mean that
Node gateway is online.If upstream node gateway is not received by the response of downstream node gateway, then mean that downstream node
Gateway is not online, or downstream node gateway is not received by the heartbeat packet of upstream node gateway transmission, then mean that upstream
Node gateway is not online.
For example, there is tetra- node gateways of A, B, C, D in looped network, under normal circumstances, packet is the side according to A, B, C, D, A
To being transmitted, in the heartbeat signal of four node gateways of detection, A can send heartbeat packet to B, if A have received B sound
Should, then it represents that A, B are online, if B is not received by A heartbeat packet, then it represents that A is not online;If A have sent the heart to B
Bag is jumped, but is not received by B response, then represents that B is not online.
Certainly, node gateway is not meant to that node gateway is in normal condition online, hard due to node gateway
The factors such as part failure, the system failure, it may appear that although downstream node gateway is carried out to the heartbeat packet that upstream node gateway is sent
Response, but be in response to be error signal situation.So such case decides that node gateway is in abnormality.
For example, there is tetra- node gateways of A, B, C, D in looped network, under normal circumstances, packet is the side according to A, B, C, D, A
To being transmitted, in the heartbeat signal of four node gateways of detection, A can send heartbeat packet to B, if A have received B sound
Should, and response signal is normal, then it represents that B is in normal condition, while D sends heartbeat packet to A, although A is sent to D
Heartbeat packet responded, but be in response to is error signal, such as normal response signal should be " 11 ", but A rings
The signal answered is " 01 ", then A responses are exactly error signal, now decides that A is online, but is in abnormality, also
It is that A is malfunctioning node gateway.
If the upstream node gateway of some node gateway is not online, then just without normal direction, the node gateway sends heartbeat
Bag, then the node gateway will be broadcasted in looped network, notify other non-faulting node gateways, the upstream node net of oneself
Close not online.
Step 102, the quantity of the malfunctioning node gateway is obtained;
When detect in looped network there is malfunctioning node gateway when, can be broadcasted in looped network.
For example, D detects A for malfunctioning node gateway, and malfunction is " equipment on-line, equipment is in abnormality ",
So, D can be broadcasted in looped network, and B, C are received after broadcast, be known that in looped network there is a malfunctioning node gateway, just
It is A, and malfunction is " equipment on-line, equipment is in abnormality ".If also there are other malfunctioning node nets in looped network
Close, then the upstream node gateway of the malfunctioning node gateway is broadcasted also by the above method in looped network, so, in looped network
Each non-faulting node gateway can learn in looped network that there are several malfunctioning node gateways, malfunctioning node gateway is which respectively
A bit, and, the malfunction of each malfunctioning node gateway.
Step 103, if the quantity of the malfunctioning node gateway is 1, the non-faulting node net being in from the looped network
The Central Shanxi Plain, determines starting point gateway and terminating gateway, and carry out data interaction between the starting point gateway and the terminating gateway;
If the node gateway of some in looped network occurs in that failure, then looped network is no longer just " ring ", looped network is also just paralysed
, it is that the main ring that will appear from failure is switched on standby ring, to ensure that looped network can be continued to run with the prior art.But such as
Now standby ring is also failure to fruit, then what looped network still can not normally be run, gently then causes looped network to be paralysed, heavy then cause ring
Loss of data in net in non-faulting node gateway.
, in embodiments of the present invention, can be from ring if the quantity of malfunctioning node gateway is 1 in order to avoid there is above-mentioned situation
In the non-faulting node gateway being in net, starting point gateway and terminating gateway are determined, and in starting point gateway and the terminating gateway
Between carry out data interaction.
In a kind of preferred embodiment of the invention, the non-faulting node gateway that normal condition is in from the looped network
In, determine starting point gateway and terminating gateway, and the progress data round-trip transmission between the starting point gateway and the terminating gateway
Including:
Using the upstream node gateway of the malfunctioning node gateway as starting point gateway, downstream node gateway is used as terminal net
Close, data interaction carried out between the starting point gateway and the terminating gateway,
Or,
Using the downstream node gateway of the malfunctioning node gateway as starting point gateway, upstream node gateway is used as terminal net
Close, data interaction carried out between the starting point gateway and the terminating gateway,
Or,
, will be except using the upstream node gateway of the malfunctioning node gateway, downstream node gateway simultaneously as starting point gateway
The malfunctioning node gateway, the upstream node gateway of the malfunctioning node gateway, the downstream node net of the malfunctioning node gateway
Any node gateway outside pass carries out data friendship as terminating gateway between the starting point gateway and the terminating gateway
Mutually.
For example, there is five node gateways of A, B, C, D, E in looped network, under normal circumstances, packet is according to A, B, C, D, E, A
Direction be transmitted, by detection learn A be malfunctioning node gateway, then in logic, what B, C, D, E were still linked in sequence,
Now can be using B as starting point gateway, then E carries out data biography as terminating gateway according to B, C, D, E, D, C, B, C order
It is defeated, during data transfer, it can continue to use " token ", to ensure that only one of which node gateway is in processing in link
Data;Can also be using E as starting point gateway, then B enters line number as terminating gateway according to E, D, C, B, C, D, E, D order
According to transmission.
, using C or D as terminating gateway, can also thus there are both links using B, E simultaneously as starting point gateway, than
Such as one link is B, C, and another link is E, D, C, or a link is B, C, D, and another link is E, D, then
In this case, it is exactly both links while carrying out data transmission.
Step 104, if the quantity of the malfunctioning node gateway is more than or equal to 2, and each malfunctioning node gateway is adjacent, then
From the looped network in the non-faulting node gateway in normal condition, starting point gateway and terminating gateway are determined, and at described
Data interaction is carried out between point gateway and the terminating gateway;
Specifically, in token-ring network, each node gateway has device id, and with uniqueness.Set up in looped network
The position relationship of each node gateway in Cheng Shi, looped network is just forever determined, and each node gateway is known that the upstream of oneself
Which platform node gateway is, which platform downstream node gateway is.
In this application, the state of looped network can be monitored from any one node gateway accessing computer in looped network,
Wherein, network management system is installed in computer.Webmaster can be by network management system to each node gateway transmission webmaster in looped network
Frame, so each node gateway just can know that the state of the node gateway of each in looped network, wherein, gateway frame is assisted using webmaster
View, in looped network, the highest priority of network management protocol.
For example, there is five node gateways of A, B, C, D, E in looped network, it is assumed that failure gateway is A, B, then webmaster passes through webmaster
System sends a webmaster frame, and such C, D, E are known that A, B are malfunctioning node gateway, Ran Hou after webmaster frame is received
Starting point gateway and terminating gateway are determined in C, D, E, and carries out between starting point gateway and terminating gateway data interaction.
In a kind of preferred embodiment of the invention, each node gateway is connected by optical fiber in the looped network, each node
Gateway has photoswitch respectively.
Photoswitch (Optical Switch, OS) is that one kind has one or more selectable transmission windows, can be to light
Optical signal in transmission line or integrated optical circuit carries out the device of mutually conversion or logical operation.The basic form of photoswitch is
2X2, that is, entering end and going out end respectively has two optical fiber, can complete two kinds of connection status, parallel connection and interconnection.Relatively large
Space division light crosspoint can be made up of basic 2X2 photoswitches and corresponding 1X2 optical switch stacks, combination.
Photoswitch plays highly important effect in optical-fiber network, in wavelength-division multiplex (Wavelength Division
Multiplexing, WDM) in Transmission system, photoswitch can be used for wavelength adaptation, regeneration and Clock Extraction, in Optical Time Division Multiplexing
In (Optical Time Division Multiplex, OTDM) system, photoswitch can be used for demultiplexing;In All-optical switching system
In system, photoswitch is optical cross connect (Optical Cross-connect, OXC) Primary Component, is also the weight of wavelength conversion
Want device.According to the input and output port number of photoswitch, can be divided into 1 × 1,1 × 2,1 × N, 2 × 2,2 × N, M × N etc. it is many
Kind, they have different purposes in different occasions.Its application mainly has:The pretection switch system of optical-fiber network, test optical fiber
In light source control, the real-time monitoring system of network performance, the test of optical device, build OXC equipment exchcange core, light insert/
Divide multiplexing, optic test, optical sensor system etc..
In this application, then it is pretection switch function using photoswitch, while malfunctioning node gateway opens photoswitch,
The data upstream and downstream switching congestion brought by this node failure or interruption are shielded, allows the upstream and downstream node of malfunctioning node to become direct
Believe that the node of neighbour carries out data interaction so that the upstream node gateway of malfunctioning node gateway can skip malfunctioning node gateway,
Downstream node gateway directly with malfunctioning node gateway carries out data interaction.
And the unlatching of photoswitch, both can be the photoswitch that webmaster opens malfunctioning node gateway by network management system,
When the working condition that can be photoswitch decision node gateway is abnormal condition, automatically turn on, wherein, photoswitch decision node
The working condition of gateway can be judged by encoding, for example, being encoded to 0000 during node gateway normal work, then light is opened
Pass detects when being encoded to 0000 of node gateway, would not open, if the coding detected is not 0000, then mean that
Node gateway is in abnormal operating state, then just automatically turns on.Certainly, other manner can also be used by opening photoswitch,
The embodiment of the present invention is not restricted to this.
For example, there is five node gateways of A, B, C, D, E in looped network, it is assumed that failure gateway is A, B, then webmaster passes through webmaster
System sends a webmaster frame, and such C, D, E are known that A, B are malfunctioning node gateways after webmaster frame is received, then, A,
Photoswitch in B is opened so that C, E turn into adjacent node gateway, then carry out data interaction.
It should be noted that when malfunctioning node gateway quantity is 1, and, the quantity of malfunctioning node gateway is more than or waited
In 2, and each malfunctioning node gateway it is adjacent when, except using aforesaid way ensure non-faulting node gateway between data interaction
Outside, the mode of photoswitch can also be used to ensure data interaction between non-faulting node gateway.
Step 105, if the quantity of the malfunctioning node gateway is more than or equal to 2, and each malfunctioning node gateway is non-adjacent,
Then skip each described malfunctioning node gateway and carry out data interaction.
For example, A, C are malfunctioning node gateway, but B is non-faulting node gateway, then must just be used using photoswitch
B can carry out data interaction with D, E, and because B is to be directly connected to D and E, the link of B, D, E composition is also looped network.
That is, original looped network has five node gateways of A, B, C, D, E, the order of data transfer is A, B, C, D, E, A, but is worked as
When A, C are malfunctioning node gateway, the node gateway of looped network is B, D, E, and the order of data transfer is B, D, E, B, node gateway A, C
It is equivalent to a link, no longer processing data, is only merely transmission data.
It is described to skip the step that each described malfunctioning node gateway carries out data interaction in a kind of preferred embodiment of the invention
Suddenly include:
Each described malfunctioning node gateway opens photoswitch and carries out data interaction.
Specifically, photoswitch can be with individual reception instruction and execute instruction.For example, when some node gateway is failure
During node gateway, the photoswitch of the malfunctioning node gateway can receive the transmission of non-faulting node gateway, open the finger of photoswitch
Order so that non-faulting node gateway can skip malfunctioning node gateway and proceed data interaction in looped network.
Reference picture 2, shows a kind of step flowchart 2 of the embodiment of the method for looped network self-healing of the present invention, specifically can be with
Comprise the following steps:
Step 201, the malfunctioning node gateway that abnormality is in the looped network is detected;
Step 202, the quantity of the malfunctioning node gateway is obtained;
Step 203, if the quantity of the malfunctioning node gateway is 1, the non-faulting node net being in from the looped network
The Central Shanxi Plain, determines starting point gateway and terminating gateway, and carry out data interaction between the starting point gateway and the terminating gateway;
Step 204, if the quantity of the malfunctioning node gateway is more than or equal to 2, and each malfunctioning node gateway is adjacent, then
From the looped network in the non-faulting node gateway in normal condition, starting point gateway and terminating gateway are determined, and at described
Data interaction is carried out between point gateway and the terminating gateway;
Step 205, if the quantity of the malfunctioning node gateway is more than or equal to 2, and each malfunctioning node gateway is non-adjacent,
Then skip each described malfunctioning node gateway and carry out data interaction;
Step 206, the malfunctioning node gateway is recovered automatically;The automatic recovery includes system reboot, recovers event
Normal operation before barrier is set;
In this application, node gateway has visual management system, and user can check section by connecting computer
The hardware state of point gateway, and, the working condition of looped network.So, in actual applications, it may appear that because system is unstable
Etc. factor, node gateway is caused to be in abnormality.Therefore, when detecting node gateway in abnormality, node gateway
The mode that can be set by restarting the normal operation before system, or recovery failure automatically is recovered.
Step 207, if automatic recover failure, fault warning is carried out;
When it is automatic recover failure when, then can be determined that the problem of not be management system, but node gateway hard in itself
Part problem, now, node gateway can carry out fault warning, and carry out failure logging.
Because being that in looped network, when some node gateway breaks down, all node gateways can in looped network
Learn, therefore, fault warning is not that can only be sent from malfunctioning node gateway, can also be sent from non-faulting node gateway.
Step 208, when the malfunctioning node gateway reverts to normal condition, and upstream node gateway, and, downstream joint
Point gateway carries out data interaction.
Whether through the mode recovered automatically, or the mode of hardware is changed, when malfunctioning node reverts to normal condition
When, it oneself can send broadcast or upstream or downstream node gateway sends broadcast, inform malfunctioning node gateway
Recover normal.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it to be all expressed as to a series of action group
Close, but those skilled in the art should know, the embodiment of the present invention is not limited by described sequence of movement, because according to
According to the embodiment of the present invention, some steps can be carried out sequentially or simultaneously using other.Secondly, those skilled in the art also should
Know, embodiment described in this description belongs to preferred embodiment, the involved action not necessarily present invention is implemented
Necessary to example.
Reference picture 3, shows a kind of structured flowchart of the device embodiment of looped network self-healing of the present invention, can specifically include
Following module:
Detection module 301, the malfunctioning node gateway of abnormality is in for detecting in the looped network;
Acquisition module 302, the quantity for obtaining the malfunctioning node gateway;
First performing module 303, if the quantity for the malfunctioning node gateway is 1, is in from the looped network
In non-faulting node gateway, starting point gateway and terminating gateway are determined, and enter between the starting point gateway and the terminating gateway
Row data interaction;
If the quantity that first performing module is additionally operable to the malfunctioning node gateway is more than or equal to 2, and each failure
Node gateway is adjacent, then determines starting point gateway and terminal in the non-faulting node gateway in normal condition from the looped network
Gateway, and carry out data interaction between the starting point gateway and the terminating gateway;
Second performing module 304, if the quantity for the malfunctioning node gateway is more than or equal to 2, and each failure section
Point gateway is non-adjacent, then skips each described malfunctioning node gateway and carry out data interaction.
In a kind of preferred embodiment of the invention, first performing module includes:
First determination sub-module, for regarding the upstream node gateway of the malfunctioning node gateway as starting point gateway, downstream
Node gateway carries out data interaction as terminating gateway between the starting point gateway and the terminating gateway;
Second determination sub-module, for regarding the downstream node gateway of the malfunctioning node gateway as starting point gateway, upstream
Node gateway carries out data interaction as terminating gateway between the starting point gateway and the terminating gateway;
3rd determination sub-module, for by the upstream node gateway of the malfunctioning node gateway, downstream node gateway simultaneously
As starting point gateway, by except the malfunctioning node gateway, the upstream node gateway of the malfunctioning node gateway, the failure section
Any node gateway outside the downstream node gateway of point gateway is as terminating gateway, in the starting point gateway and the terminal net
Data interaction is carried out between pass.
In a kind of preferred embodiment of the invention, the detection module includes:
Heartbeat detection submodule, the heartbeat signal for detecting each node gateway in the looped network;
Decision sub-module, the heartbeat signal of node gateway can not be detected for working as, or, the heartbeat signal of node gateway is
During error signal, then judge that the node gateway is in abnormality.
In a kind of preferred embodiment of the invention, each node gateway is connected by optical fiber in the looped network, each node
Gateway has photoswitch respectively;Second performing module includes:
Photoswitch submodule, opens photoswitch for each described malfunctioning node gateway and carries out data interaction.
In a kind of preferred embodiment of the invention, described device also includes:
Recovery module, is recovered automatically for the malfunctioning node gateway;The automatic recovery includes system reboot, extensive
Normal operation before multiple failure is set;
Alarm module, if for recovering failure automatically, carrying out fault warning;
3rd performing module, for when the malfunctioning node gateway reverts to normal condition, and upstream node gateway, with
And, downstream node gateway carries out data interaction.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related
Part illustrates referring to the part of embodiment of the method.
Each embodiment in this specification is described by the way of progressive, what each embodiment was stressed be with
Between the difference of other embodiment, each embodiment identical similar part mutually referring to.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, device or calculate
Machine program product.Therefore, the embodiment of the present invention can using complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can use it is one or more wherein include computer can
With in the computer-usable storage medium (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention is with reference to method according to embodiments of the present invention, terminal device (system) and computer program
The flow chart and/or block diagram of product is described.It should be understood that can be by computer program instructions implementation process figure and/or block diagram
In each flow and/or square frame and the flow in flow chart and/or block diagram and/or the combination of square frame.These can be provided
Computer program instructions are set to all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to produce a machine so that held by the processor of computer or other programmable data processing terminal equipments
Capable instruction is produced for realizing in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames
The device for the function of specifying.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing terminal equipments
In the computer-readable memory worked in a specific way so that the instruction being stored in the computer-readable memory produces bag
The manufacture of command device is included, the command device is realized in one flow of flow chart or multiple flows and/or one side of block diagram
The function of being specified in frame or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that
Series of operation steps is performed on computer or other programmable terminal equipments to produce computer implemented processing, so that
The instruction performed on computer or other programmable terminal equipments is provided for realizing in one flow of flow chart or multiple flows
And/or specified in one square frame of block diagram or multiple square frames function the step of.
Although having been described for the preferred embodiment of the embodiment of the present invention, those skilled in the art once know base
This creative concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to
Including preferred embodiment and fall into having altered and changing for range of embodiment of the invention.
Finally, in addition it is also necessary to explanation, herein, such as first and second or the like relational terms be used merely to by
One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation
Between there is any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant meaning
Covering including for nonexcludability, so that process, method, article or terminal device including a series of key elements are not only wrapped
Those key elements, but also other key elements including being not expressly set out are included, or also include being this process, method, article
Or the intrinsic key element of terminal device.In the absence of more restrictions, by wanting that sentence "including a ..." is limited
Element, it is not excluded that also there is other identical element in the process including the key element, method, article or terminal device.
Method above to a kind of looped network self-healing provided by the present invention and a kind of device of looped network self-healing, have been carried out in detail
Introduce, specific case used herein is set forth to the principle and embodiment of the present invention, the explanation of above example
It is only intended to the method and its core concept for helping to understand the present invention;Simultaneously for those of ordinary skill in the art, according to this
The thought of invention, be will change in specific embodiments and applications, in summary, and this specification content should not
It is interpreted as limitation of the present invention.
Claims (10)
1. a kind of method of looped network self-healing, it is characterised in that including:
Detect the malfunctioning node gateway that abnormality is in the looped network;
Obtain the quantity of the malfunctioning node gateway;
If the quantity of the malfunctioning node gateway is 1, in the non-faulting node gateway being in from the looped network, starting point is determined
Gateway and terminating gateway, and carry out data interaction between the starting point gateway and the terminating gateway;
If the quantity of the malfunctioning node gateway is more than or equal to 2, and each malfunctioning node gateway is adjacent, then from the looped network
In non-faulting node gateway in normal condition, determine starting point gateway and terminating gateway, and the starting point gateway with it is described
Data interaction is carried out between terminating gateway;
If the quantity of the malfunctioning node gateway is more than or equal to 2, and each malfunctioning node gateway is non-adjacent, then skips described each
Individual malfunctioning node gateway carries out data interaction.
2. according to the method described in claim 1, it is characterised in that the non-faulting that normal condition is in from the looped network
In node gateway, starting point gateway and terminating gateway are determined, and data are carried out between the starting point gateway and the terminating gateway
Interaction includes:
Using the upstream node gateway of the malfunctioning node gateway as starting point gateway, downstream node gateway as terminating gateway,
Data interaction is carried out between the starting point gateway and the terminating gateway;
Or,
Using the downstream node gateway of the malfunctioning node gateway as starting point gateway, upstream node gateway as terminating gateway,
Data interaction is carried out between the starting point gateway and the terminating gateway;
Or,
, will be except described using the upstream node gateway of the malfunctioning node gateway, downstream node gateway simultaneously as starting point gateway
Malfunctioning node gateway, the upstream node gateway of the malfunctioning node gateway, the malfunctioning node gateway downstream node gateway it
Outer any node gateway carries out data interaction as terminating gateway between the starting point gateway and the terminating gateway.
3. according to the method described in claim 1, it is characterised in that the failure of abnormality is in the detection looped network
The step of node gateway, includes:
Detect the heartbeat signal of each node gateway in the looped network;
When the heartbeat signal of node gateway, or, the heartbeat signal of node gateway can not be detected for error signal, then institute is judged
State node gateway and be in abnormality.
4. method according to claim 1 or 2, it is characterised in that each node gateway is connected by optical fiber in the looped network
Connect, each node gateway has photoswitch respectively;It is described to skip the step of each described malfunctioning node gateway carries out data interaction
Including:
Each described malfunctioning node gateway opens photoswitch and carries out data interaction.
5. according to the method described in claim 1, it is characterised in that described method also includes:
The malfunctioning node gateway is recovered automatically;The automatic recovery includes system reboot, recovers the normal fortune before failure
Row is set;
If automatic recover failure, fault warning is carried out;
When the malfunctioning node gateway reverts to normal condition, and upstream node gateway, and, downstream node gateway enters line number
According to interaction.
6. a kind of device of looped network self-healing, it is characterised in that including:
Detection module, the malfunctioning node gateway of abnormality is in for detecting in the looped network;
Acquisition module, the quantity for obtaining the malfunctioning node gateway;
First performing module, if the quantity for the malfunctioning node gateway is 1, the non-faulting section being in from the looped network
In point gateway, starting point gateway and terminating gateway, and the progress data friendship between the starting point gateway and the terminating gateway are determined
Mutually;
If the quantity that first performing module is additionally operable to the malfunctioning node gateway is more than or equal to 2, and each malfunctioning node
Gateway is adjacent, then determines starting point gateway and terminating gateway in the non-faulting node gateway in normal condition from the looped network,
And carry out data interaction between the starting point gateway and the terminating gateway;
Second performing module, if the quantity for the malfunctioning node gateway is more than or equal to 2, and each malfunctioning node gateway is non-
It is adjacent, then skip each described malfunctioning node gateway and carry out data interaction.
7. device according to claim 6, it is characterised in that first performing module includes:
First determination sub-module, for regarding the upstream node gateway of the malfunctioning node gateway as starting point gateway, downstream node
Gateway carries out data interaction as terminating gateway between the starting point gateway and the terminating gateway;
Second determination sub-module, for regarding the downstream node gateway of the malfunctioning node gateway as starting point gateway, upstream node
Gateway carries out data interaction as terminating gateway between the starting point gateway and the terminating gateway;
3rd determination sub-module, for using the upstream node gateway of the malfunctioning node gateway, downstream node gateway simultaneously as
Starting point gateway, by except the malfunctioning node gateway, the upstream node gateway of the malfunctioning node gateway, the malfunctioning node net
Any node gateway outside the downstream node gateway of pass as terminating gateway, the starting point gateway and the terminating gateway it
Between carry out data interaction.
8. device according to claim 6, it is characterised in that the detection module includes:
Heartbeat detection submodule, the heartbeat signal for detecting each node gateway in the looped network;
Decision sub-module, the heartbeat signal of node gateway can not be detected for working as, or, the heartbeat signal of node gateway is mistake
During signal, then judge that the node gateway is in abnormality.
9. the device according to claim 6 or 7, it is characterised in that each node gateway is connected by optical fiber in the looped network
Connect, each node gateway has photoswitch respectively;Second performing module includes:
Photoswitch submodule, opens photoswitch for each described malfunctioning node gateway and carries out data interaction.
10. device according to claim 6, it is characterised in that described device also includes:
Recovery module, is recovered automatically for the malfunctioning node gateway;The automatic recovery includes system reboot, recovers event
Normal operation before barrier is set;
Alarm module, if for recovering failure automatically, carrying out fault warning;
3rd performing module, for when the malfunctioning node gateway reverts to normal condition, and upstream node gateway, and,
Downstream node gateway carries out data interaction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710440165.4A CN107302484A (en) | 2017-06-12 | 2017-06-12 | A kind of method and apparatus of looped network self-healing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710440165.4A CN107302484A (en) | 2017-06-12 | 2017-06-12 | A kind of method and apparatus of looped network self-healing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107302484A true CN107302484A (en) | 2017-10-27 |
Family
ID=60135381
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710440165.4A Pending CN107302484A (en) | 2017-06-12 | 2017-06-12 | A kind of method and apparatus of looped network self-healing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107302484A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108449251A (en) * | 2018-05-17 | 2018-08-24 | 马鞍山钢铁股份有限公司 | A kind of communication wheel seeks system and method |
CN110996318A (en) * | 2019-12-23 | 2020-04-10 | 广西电网有限责任公司电力科学研究院 | Safety communication access system of intelligent inspection robot of transformer substation |
CN113805476A (en) * | 2021-09-01 | 2021-12-17 | 武汉市政工程设计研究院有限责任公司 | High-reliability network early warning method and system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1557657A (en) * | 2004-01-15 | 2004-12-29 | 武汉理工大学 | Fibre optical CAN bus self-healing ring network interface device |
CN1805399A (en) * | 2005-01-14 | 2006-07-19 | 华为技术有限公司 | Self recovery method and system in shared protection for optical channels |
CN105162514A (en) * | 2015-09-24 | 2015-12-16 | 中国民用航空总局第二研究所 | Optical fiber ring network communication system and method |
CN205005051U (en) * | 2015-09-24 | 2016-01-27 | 中国民用航空总局第二研究所 | Optic fibre looped netowrk communication node equipment and system |
EP3059905A1 (en) * | 2011-08-09 | 2016-08-24 | ADVA Optical Networking SE | A method and apparatus for providing an uplink over an access ring |
-
2017
- 2017-06-12 CN CN201710440165.4A patent/CN107302484A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1557657A (en) * | 2004-01-15 | 2004-12-29 | 武汉理工大学 | Fibre optical CAN bus self-healing ring network interface device |
CN1805399A (en) * | 2005-01-14 | 2006-07-19 | 华为技术有限公司 | Self recovery method and system in shared protection for optical channels |
EP3059905A1 (en) * | 2011-08-09 | 2016-08-24 | ADVA Optical Networking SE | A method and apparatus for providing an uplink over an access ring |
CN105162514A (en) * | 2015-09-24 | 2015-12-16 | 中国民用航空总局第二研究所 | Optical fiber ring network communication system and method |
CN205005051U (en) * | 2015-09-24 | 2016-01-27 | 中国民用航空总局第二研究所 | Optic fibre looped netowrk communication node equipment and system |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108449251A (en) * | 2018-05-17 | 2018-08-24 | 马鞍山钢铁股份有限公司 | A kind of communication wheel seeks system and method |
CN108449251B (en) * | 2018-05-17 | 2023-09-26 | 马鞍山钢铁股份有限公司 | Communication round-robin system and method |
CN110996318A (en) * | 2019-12-23 | 2020-04-10 | 广西电网有限责任公司电力科学研究院 | Safety communication access system of intelligent inspection robot of transformer substation |
CN110996318B (en) * | 2019-12-23 | 2021-07-23 | 广西电网有限责任公司电力科学研究院 | Safety communication access system of intelligent inspection robot of transformer substation |
CN113805476A (en) * | 2021-09-01 | 2021-12-17 | 武汉市政工程设计研究院有限责任公司 | High-reliability network early warning method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20200106662A1 (en) | Systems and methods for managing network health | |
CN101908986B (en) | Method and equipment for detecting link fault | |
US20080117827A1 (en) | Method and system for verifying connectivity of logical link | |
JP5317378B2 (en) | Method and apparatus for handling multi-span section operating channel failures in ring optical transmission networks | |
CN107302484A (en) | A kind of method and apparatus of looped network self-healing | |
TWI455525B (en) | Recovery method for ring-based network | |
CN101436975A (en) | Method, apparatus and system for implementing rapid convergence in looped network | |
CN102918809B (en) | The method of network and expanding element and operational network | |
CN105207871B (en) | Double-cut ring network protection method and device | |
CN101771705B (en) | Processing method based on RRPP and device | |
US8493843B2 (en) | System and method for using an alternative wire pair for communication on initial wire pair failure | |
CN105897580B (en) | A kind of unrelated forwarding network quick fault testing of agreement and traffic protection switching method | |
US9379938B2 (en) | Method and system for SOAM flow switching | |
CN109964450B (en) | Method and device for determining shared risk link group | |
JP3547215B2 (en) | Transmission fault handling device | |
CN103746912A (en) | Data message transmission method and equipment based on subring link | |
MXPA05005053A (en) | Method and system for surveilling a telecommunications network link. | |
CN107005440A (en) | A kind of method of link failure positioning, apparatus and system | |
CN100461737C (en) | Elastic packet link point internal connection fault processing method and apparatus | |
EP2528263B1 (en) | Method for implementing protection group overlay, and method and system for ethernet protection switching | |
US10432451B2 (en) | Systems and methods for managing network health | |
CN101729349B (en) | RRPP-based detection method and device for connectivity of main ring access | |
CN101150477A (en) | Data transmission and protection method of Ethernet loop network and its application device | |
JP2005033665A (en) | Transmission control system and fault occurrence detection control method | |
US7730229B2 (en) | Determining an aggreagated active/standby state for an interface unit form entity active/standby states |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171027 |