CN105915426A - Failure recovery method and device of ring network - Google Patents
Failure recovery method and device of ring network Download PDFInfo
- Publication number
- CN105915426A CN105915426A CN201610442836.6A CN201610442836A CN105915426A CN 105915426 A CN105915426 A CN 105915426A CN 201610442836 A CN201610442836 A CN 201610442836A CN 105915426 A CN105915426 A CN 105915426A
- Authority
- CN
- China
- Prior art keywords
- equipment
- priority
- main website
- loop network
- intermediateness
- 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
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
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention is applicable to the technical field of communication, and provides a failure recovery method and device of a ring network. The failure recovery method is applied in devices forming the ring network. The method comprises following steps of sending first detection messages to other devices in the ring network by ring ports at two sides when a local device is in an intermediate state; receiving the first detection messages sent by the other devices for master station election; setting the current state from the intermediate state to a slave station if the local device receives negative response messages sent by the other devices in the master station election process; setting the current state from the intermediate state to a master station if the local device does not receive the negative response messages sent by the other devices, thus managing the ring network. Through adoption of the method and the device, when a failure appears in the ring network, the new master station can be elected again, the network failure is recovered by establishing a new network topology, and the problem that in the prior art, the network failure cannot be processed and recovered when the failure appears in the master station.
Description
Technical field
The invention belongs to communication technical field, particularly relate to fault recovery method and the device of a kind of loop network.
Background technology
The loop network of existing Ethernet switch composition mainly uses network disaster recovery based on topology association
View, improves the availability of network by the method for network redundancy.Switch or switch when loop network
During internal link generation single failure, it is possible to recover the function of network within the regular hour.But, existing
Some Network Fault Detections generally use a main website to send fault detect message, with detection and process slave station
Fault;When main website itself fail, often cannot process and realize the recovery of network failure.
Summary of the invention
In consideration of it, the embodiment of the present invention provides fault recovery method and the device of a kind of loop network, to solve
The problem that prior art cannot process and realize network disaster recovery when main website breaks down.
First aspect, it is provided that the fault recovery method of a kind of loop network, described fault recovery method is applied
In the equipment of makeup ring l network, including:
When this equipment is in intermediateness, sent by central port, both sides other equipment in loop network
First detection messages, and receive the first detection messages of described other equipment transmission to carry out main website election contest;
During main website campaigns for, if this equipment receives the Negative Acknowledgment message that other equipment described sends,
Then current state is set to slave station by intermediateness;
If this equipment does not receives the Negative Acknowledgment message that other equipment described sends, then by current state by
Between state be set to main website, to manage described loop network.
Second aspect, it is provided that the fault recovery device of a kind of loop network, described fault recovery device is applied
In the equipment of makeup ring l network, including:
Election contest module, for when this equipment is in intermediateness, by central port, both sides in loop network
Other equipment send the first detection messages, and receive the first detection messages that other equipment described sends to enter
Row main website campaigns for;
Slave station arranges module, during campaigning in main website, if this equipment receives other equipment described and sends out
During the Negative Acknowledgment message sent, then current state is set to slave station by intermediateness;
Main website arranges module, if when this equipment does not receives the Negative Acknowledgment message that other equipment described sends,
Then current state is set to main website by intermediateness, to manage described loop network.
Compared with prior art, the embodiment of the present invention is set up on the basis of original main website, slave station two states
Intermediateness, this equipment being in intermediateness in loop network can be by both sides central ports to ring network
Other equipment in network send the first detection messages, and receive the first detection messages that other equipment described sends
To carry out main website election contest;During main website campaigns for, if this equipment receives the negative of described other equipment transmission
During response message, then current state is set to slave station by intermediateness;If this equipment do not receive described other
During the Negative Acknowledgment message that equipment sends, then current state is set to main website by intermediateness, to manage described ring
L network;Thus completing the election contest of main website in loop network so that the loop network broken down can weigh
Newly campaign for the main website made new advances, set up new network topology to recover network failure, solve prior art and leading
The problem that cannot process and realize network disaster recovery time breaking down in station.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to enforcement
In example or description of the prior art, the required accompanying drawing used is briefly described, it should be apparent that, describe below
In accompanying drawing be only some embodiments of the present invention, for those of ordinary skill in the art, do not paying
On the premise of going out creative work, it is also possible to obtain other accompanying drawings according to these accompanying drawings.
Fig. 1 is the composition schematic diagram of the loop network that the embodiment of the present invention provides;
Fig. 2 is the flowchart of the fault recovery method of the loop network that the embodiment of the present invention provides;
Fig. 3 is the first detection messages that this equipment that the embodiment of the present invention provides receives that other equipment described sends
Flow chart is implemented with carry out main website election contest;
Fig. 4 is the flowchart of the fault recovery method of the loop network that another embodiment of the present invention provides;
Fig. 5 is the flowchart of the fault recovery method of the loop network that another embodiment of the present invention provides;
Fig. 6 is the composition structure chart of the fault recovery device of the loop network that the embodiment of the present invention provides.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing and reality
Execute example, the present invention is further elaborated.Only should be appreciated that specific embodiment described herein
Only in order to explain the present invention, it is not intended to limit the present invention.
The embodiment of the present invention is additionally arranged intermediateness on the basis of original main website, slave station two states, annular
This equipment being in intermediateness in network can be sent out by central port, both sides other equipment in loop network
Send the first detection messages, and receive the first detection messages of described other equipment transmission to carry out main website election contest;
During main website campaigns for, if this equipment receives the Negative Acknowledgment message that other equipment described sends, then will
Current state is set to slave station by intermediateness;If this equipment does not receives the Negative Acknowledgment that other equipment described sends
During message, then current state is set to main website by intermediateness, to manage described loop network;Thus complete
The election contest of main website in loop network so that the loop network broken down can campaign for the main website made new advances again,
Set up new network topology to recover network failure, solve prior art and cannot locate when main website breaks down
Reason and the problem realizing network disaster recovery.The embodiment of the present invention additionally provides corresponding device, individually below
It is described in detail.
Fig. 1 shows the composition structural representation of the loop network that the embodiment of the present invention provides.
Refering to Fig. 1, in embodiments of the present invention, described loop network includes multiple equipment (such as switch).
Described equipment is sequentially connected, and forms loop checking installation physically.
In embodiments of the present invention, the state of described equipment includes main website state, slave station state, intermediateness,
And the state of equipment is not fixing, specifically, the equipment in described loop network can by main website or from
Station switches to intermediateness and is switched to main website or slave station by intermediateness.Equipment in described loop network
All can be as main website or slave station, such that it is able to be combined into different network topologies.
Wherein, when equipment is in intermediateness, it includes the central port being in forwarding state and is in obstruction
The central port of state, it is possible to send the first detection messages to carry out main website election contest by described central port;When setting
For when being in main website state, it includes being in the central port of forwarding state and being in the central port of blocked state,
The second detection messages can be periodically sent so that other equipment are according to receiving and turning by described central port
Send out the second detection messages described and detect ring network fault, thus manage described loop network;When equipment be in from
During state of standing, two central port all switches to forwarding state, is received by described central port and forwards main website
The second detection messages sent, is monitored the survival condition of other equipment in this equipment, loop network.
Here, the central port being in blocked state only forwards the detection messages in loop network, and is in forwarding shape
The central port of state forwards all types message.Therefore, network cyclization and main website, slave station select it physically
After, because the existence of choke ring port, logically retaining ring l network is open loop situations, it is to avoid formed wide
Broadcast storm.
In FIG, the shown equipment in loop network is in intermediateness, therefore, and each equipment
All include being in the central port of forwarding state and being in the central port of blocked state.
In embodiments of the present invention, when the equipment startup in loop network, loop network have new equipment to add
Entering or time arbitrary equipment in loop network breaks down, all devices in described loop network can enter
Intermediateness, as treating that election contest equipment re-starts main website election contest, carrys out instauration net rebuilding new network topology
Network fault.
What Fig. 2 showed the fault recovery method of the loop network that the embodiment of the present invention provides realizes flow process.?
In the embodiment of the present invention, the fault recovery method of described loop network is applied to form setting of described loop network
In Bei.
Refering to Fig. 2, described fault recovery method includes:
In step s 201, when this equipment is in intermediateness, by central port, both sides in loop network
Other equipment send the first detection messages, and receive the first detection messages that other equipment described sends to enter
Row main website campaigns for.
In embodiments of the present invention, described first detection messages include the MAC Address of this equipment, multicast address,
Priority parameters and this equipment current state in loop network;Wherein, described current state is middle
State, slave station state or main website state.This equipment being in intermediateness can be by the MAC Address of self, group
Broadcast address, priority parameters and this equipment current state in loop network to add to detection messages,
Obtain the first detection messages, then by central port, both sides, described first detection messages is sent to loop network
In other equipment;Similarly, other equipment in described loop network also can be sent out the first detection report
Literary composition, this equipment also can receive in loop network and be in the first detection messages that other equipment of intermediateness sends,
To carry out main website election contest.It should be noted that during using any one equipment in loop network as this equipment,
Other equipment are for this equipment, such as, when using the device A in loop network as this equipment
When other equipment send the first detection messages, other equipment described refer in loop network in addition to device A
Equipment.
As a preferred exemplary of the present invention, Fig. 3 shows that this equipment that the embodiment of the present invention provides receives
The first detection messages that other equipment described sends implements flow process with carry out main website election contest, including:
In step S301, this equipment receives the first detection messages that other equipment in loop network sends.
Here, this equipment is by receiving the first detection messages, thus obtains other equipment in loop network
MAC Address, multicast address, priority parameters and other equipment described are in the current state of loop network.
In step s 302, set with described other according to the priority of described first detection messages this equipment of comparison
Standby priority.
In embodiments of the present invention, priority ratio is to predominantly comparison MAC Address and priority parameters.Specifically
Including: after receiving the first detection messages that other equipment sends, compare the priority parameters of this equipment
With the priority parameters of other equipment described, wherein, the priority facility that priority parameters is the biggest is the highest, excellent
The priority facility that first level parameter is the least is the lowest;If the priority parameters of this equipment is excellent with other equipment described
When first level parameter is identical, compare MAC Address and the MAC Address of other equipment described of this equipment the most again;Its
In, the priority facility that MAC Address is the least is the highest, and the priority facility that MAC Address is the biggest is the lowest.The present invention
Embodiment is compared by the combination of priority parameters and MAC Address, is effectively guaranteed priority comparison result
Uniqueness.
In step S303, when the priority of this equipment is higher than the priority of other equipment described, to described
Other equipment sends Negative Acknowledgment message, so that other equipment described will after receiving described Negative Acknowledgment message
Current state is set to slave station by intermediateness.
In embodiments of the present invention, main website election contest is intended to choose priority from the equipment being in intermediateness
High equipment is as main website, to manage described loop network.Therefore, sent out by comparison priority when this equipment
When existing loop network exists priority ratio self low equipment, then the equipment low to priority is sent negative sound
Answer message, so that priority comparison result is informed the equipment that this priority is low so that low the setting of described priority
For current state is set to slave station by intermediateness.
In step S202, during main website campaigns for, if this equipment receives what other equipment described sent
During Negative Acknowledgment message, then current state is set to slave station by intermediateness.
In embodiments of the present invention, the equipment that priority is low finally all can receive preferential during main website campaigns for
The Negative Acknowledgment message that the equipment that level is high sends.Therefore, if the priority of this equipment is less than its in loop network
During his equipment, Negative Acknowledgment message can be received, then self all of central port is switched to forwarding state, to incite somebody to action
Current state is set to slave station by intermediateness, thus completes heavily determining of slave station role.
In step S203, if this equipment does not receives the Negative Acknowledgment message that other equipment described sends, then
Current state is set to main website by intermediateness, to manage described loop network.
If during main website campaigns for, if this equipment does not receives Negative Acknowledgment message always, showing the excellent of this equipment
First level is higher than other equipment in loop network.Now, current state is set to main by this equipment by intermediateness
Stand, thus complete heavily determining of main website role, rebuild new network topology.Wherein, as main website
This equipment still retains a central port being in blocked state, with logically keep looped network as open loop situations,
Avoiding the formation of broadcast storm, described this equipment as main website then sends the second detection messages in loop network,
To detect ring network fault.
Further, after the reconstruction completing new network topology, as the equipment one of slave station in loop network
Aspect self survival condition of monitoring, on the other hand monitors and records priority higher than other of own priority
The survival condition of equipment.Fig. 4 shows the fault recovery side of the loop network that another embodiment of the present invention provides
Method realize flow process.
In embodiments of the present invention, described method includes step S401, S402, wherein, step S401, S402
Identical with step S201 described in Fig. 2 embodiment, S202 respectively, specifically refer to chatting of above-described embodiment
Stating, here is omitted.
Further, described fault recovery method also includes:
In step S403, the MAC Address of record other equipment described and priority parameters, and stop sending
First detection messages.
In embodiments of the present invention, after this equipment receives Negative Acknowledgment message and current state is set to slave station,
Join higher than MAC Address and the priority of other equipment of self according to described Negative Acknowledgment message accounting priority
Count, and other equipment stopped in loop network send the first detection messages, to stop the election contest of main website.
In step s 404, when this equipment is in slave station state, the second inspection receiving and forwarding main website to send
Observe and predict literary composition, and monitor and record the priority survival condition higher than other equipment of this priority facility.
In step S405, if described priority is higher than the second inspection of other device forwards of this priority facility
Observe and predict literary composition time-out, then current state is set to intermediateness by slave station state, and other in loop network
Equipment sends main website election contest instruction information, so that other equipment described enters intermediateness again to lead
Stand election contest.
Here, described monitoring record the priority survival condition of other equipment higher than this priority facility
Can be monitor described priority higher than other device forwards of this priority facility the second detection messages whether
Time-out.If overtime, then this equipment being in slave station reenters intermediateness, by any one central port from turning
Hair-like state switches to blocked state, and other equipment in loop network sends main website election contest instruction information,
To start the election contest again of main website, it is achieved thereby that the redundancy of communication link and the combination of communication equipment redundancy,
It is no matter slave station or main website breaks down, can quickly detect the link failure in loop network, side
The management of equipment and maintenance in loop network, solve prior art and cannot locate when main website breaks down
Reason and the problem realizing network disaster recovery.
Fig. 5 shows the realization stream of the fault recovery method of the loop network that another embodiment of the present invention provides
Journey.
In embodiments of the present invention, described method includes step S501-S505, wherein, and step S501-S505
Identical with step S401-S405 described in Fig. 4 embodiment respectively, specifically refer to chatting of above-described embodiment
Stating, here is omitted.
Further, described fault recovery method also includes:
In step S506, when this equipment is in slave station state, if other received in loop network set
The main website election contest instruction information that preparation is sent, then be set to intermediateness by current state by slave station state, with again
Carry out main website election contest.
In embodiments of the present invention, this equipment being in slave station both can be sent out to other equipment in loop network
Send main website election contest instruction information to initiate main website election contest, it is also possible to other equipment in loop network that receives sends
Main website election contest instruction information enter intermediateness to carry out main website election contest.
Similarly, when this equipment is in main website state, if other equipment received in loop network sends
Main website election contest instruction information, then current state is set to intermediateness by main website state, again to lead
Stand election contest.
In sum, the embodiment of the present invention is additionally arranged centre on the basis of original main website, slave station two states
State, this equipment being in intermediateness in loop network can be by central port, both sides in loop network
Other equipment send the first detection messages, and receive the first detection messages of described other equipment transmission to carry out
Main website campaigns for;During main website campaigns for, if this equipment receives the Negative Acknowledgment report that other equipment described sends
Wen Shi, then be set to slave station by current state by intermediateness;If this equipment does not receives other equipment described and sends out
During the Negative Acknowledgment message sent, then current state is set to main website by intermediateness, to manage described loop network;
Thus completing the election contest of main website in loop network so that the loop network broken down can be campaigned for out again
New main website, sets up new network topology to recover network failure, solve prior art occur in main website therefore
The problem that cannot process and realize network disaster recovery during barrier.
Fig. 6 shows the composition structure of the fault recovery device of the loop network that the embodiment of the present invention provides, for
It is easy to explanation, illustrate only the part relevant to the embodiment of the present invention.
In embodiments of the present invention, the fault recovery device of described loop network is applied to makeup ring l network
In equipment, it can be the unit being built in the hardware cell of described equipment, software unit or software and hardware combining.
Optionally, described equipment is switch.In loop network, described equipment is sequentially connected, and physically forms
Loop checking installation.The state of described equipment includes main website state, slave station state, intermediateness, and equipment
State is not fixing, specifically, during the equipment in described loop network can be switched to by main website or slave station
Between state and switched to main website or slave station by intermediateness.Equipment in described loop network all can conduct
Main website or slave station, such that it is able to be combined into different network topologies.Wherein, it is in intermediateness when equipment
Time, it includes being in the central port of forwarding state and being in the central port of blocked state, it is possible to by described ring
Port sends the first detection messages to carry out main website election contest;When equipment is in main website state, it includes being in
The central port of forwarding state and the central port being in blocked state, it is possible to periodically sent out by described central port
Send the second detection messages so that other equipment are according to receiving and forwarding described second detection messages to detect looped network
Fault, thus manage described loop network;When equipment is in slave station state, two central port all switches
Become forwarding state, the second detection messages being received by described central port and forwarding main website to send, to this equipment,
In loop network, the survival condition of other equipment is monitored.Here, only the central port of blocked state it is in
Forward the detection messages in loop network, and the central port being in forwarding state forwards all types message.Cause
This, after network cyclization and main website, slave station are selected physically, because the existence of choke ring port, patrolling
Collecting upper retaining ring l network is open loop situations, it is to avoid form broadcast storm.
Refering to Fig. 6, described fault recovery device includes:
Election contest module 61, for when this equipment is in intermediateness, by central port, both sides to loop network
In other equipment send the first detection messages, and receive the first detection messages that other equipment described sends with
Carry out main website election contest;
Slave station arranges module 62, during campaigning in main website, if this equipment receives other equipment described
During the Negative Acknowledgment message sent, then current state is set to slave station by intermediateness;
Main website arranges module 63, if not receiving, for this equipment, the Negative Acknowledgment message that other equipment described sends
Time, then current state is set to main website by intermediateness, to manage described loop network.
Further, described election contest module 61 specifically includes:
First transmitting element 611, for by the MAC Address of this equipment, multicast address, priority parameters with
And this equipment current state in loop network adds to the first detection messages, and by central port, both sides
Described first detection messages is sent other equipment to loop network;
Wherein, described current state is that this equipment is in intermediateness, slave station state or main website state.
Further, described election contest module 61 also includes:
Receive unit 612, for receiving the first detection messages that other equipment in loop network sends;
Comparing unit 613, for according to the priority of described first detection messages this equipment of comparison with described its
The priority of his equipment;
Second transmitting element 614, during for being higher than the priority of other equipment described when the priority of this equipment,
Negative Acknowledgment message is sent, so that other equipment described are receiving described Negative Acknowledgment report to other equipment described
After literary composition, current state is set to slave station by intermediateness.
Further, described comparing unit 613 specifically for:
Comparing priority parameters and the priority parameters of other equipment described of this equipment, wherein, priority is joined
The priority facility that number is the biggest is the highest, and the priority facility that priority parameters is the least is the lowest;
If the priority parameters of this equipment is identical with the priority parameters of other equipment described, the most originally set
Standby MAC Address and the MAC Address of other equipment described;
Wherein, the priority facility that MAC Address is the least is the highest, and the priority facility that MAC Address is the biggest is the lowest.
The embodiment of the present invention is compared by the combination of priority parameters and MAC Address, is effectively guaranteed preferential
The uniqueness of level comparison result.
Further, described slave station arranges module 62 and is additionally operable to:
Receiving the Negative Acknowledgment message that other equipment described sends, by current state by intermediateness be set to from
After standing, the MAC Address of record other equipment described and priority parameters, and stop sending the first detection report
Literary composition.
In embodiments of the present invention, after receiving Negative Acknowledgment message and current state is set to slave station, described
Slave station arranges the MAC that module 62 is then higher than other equipment of self according to described Negative Acknowledgment message accounting priority
Address and priority parameters, and stop the first detection messages that other equipment in loop network sends,
To stop the election contest of main website.
Further, described fault recovery device also includes:
Monitoring modular 64, for when this equipment is in slave station state, receive and forward main website to send second
Detection messages, and monitor and record the priority survival condition higher than other equipment of this priority facility;
Intermediateness arranges module 65, if turning higher than other equipment of this priority facility for described priority
The the second detection messages time-out sent out, then be set to intermediateness by current state by slave station state, and to ring network
Other equipment in network sends main website election contest instruction information so that other equipment described enter intermediateness with
Again carry out main website election contest.
Here, the priority other equipment higher than own priority are monitored and recorded to described monitoring modular 64
Survival condition can be that monitoring priority is higher than the second detection messages of other device forwards of own priority
No time-out.If overtime, then the described equipment being in slave station will reenter intermediateness, and to loop network
In other equipment send main website election contest instruction information, to start the election contest again of main website, it is achieved thereby that logical
The redundancy of letter link and the combination of communication equipment redundancy, facilitate management and the maintenance of equipment in loop network,
Solve the problem that prior art cannot process and realize network disaster recovery when main website breaks down.
Further, described intermediateness arranges module 65 and is additionally operable to:
When this equipment is in slave station/main website state, if the master that other equipment received in loop network sends
Stand and campaign for instruction information, then current state is set to intermediateness by slave station/main website state, again to lead
Stand election contest.
In embodiments of the present invention, this equipment being in slave station both can be sent out to other equipment in loop network
Send main website election contest instruction information to initiate main website election contest, it is also possible to other equipment in loop network that receives sends
Main website election contest instruction information enter intermediateness to carry out main website election contest.Similarly, it is in the equipment of main website,
The main website election contest instruction information sent also by other equipment received in loop network enters intermediateness to enter
Row main website campaigns for.
It should be noted that the device in the embodiment of the present invention may be used for realizing in said method embodiment
All technical schemes, the function of its each functional module can be concrete according to the method in said method embodiment
Realizing, it implements the associated description that process can refer in examples detailed above, and here is omitted.
The embodiment of the present invention is additionally arranged intermediateness on the basis of original main website, slave station two states, annular
This equipment being in intermediateness in network can be sent out by central port, both sides other equipment in loop network
Send the first detection messages, and receive the first detection messages of described other equipment transmission to carry out main website election contest;
During main website campaigns for, if this equipment receives the Negative Acknowledgment message that other equipment described sends, then will
Current state is set to slave station by intermediateness;If this equipment does not receives the Negative Acknowledgment that other equipment described sends
During message, then current state is set to main website by intermediateness, to manage described loop network;Thus complete
The election contest of main website in loop network so that the loop network broken down can campaign for the main website made new advances again,
Set up new network topology to recover network failure, solve prior art and cannot locate when main website breaks down
Reason and the problem realizing network disaster recovery.
Those of ordinary skill in the art are it is to be appreciated that combine respectively showing of the embodiments described herein description
The unit of example and algorithm steps, it is possible to come with the combination of electronic hardware or computer software and electronic hardware
Realize.These functions perform with hardware or software mode actually, depend on the application-specific of technical scheme
And design constraint.Each specifically should being used for can be used different methods to realize by professional and technical personnel
Described function, but this realization is it is not considered that beyond the scope of this invention.
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, and foregoing description
Device and the specific works process of unit, be referred to the corresponding process in preceding method embodiment, at this
Repeat no more.
In several embodiments provided herein, it should be understood that the fault of disclosed loop network
Restoration methods and device, can realize by another way.Such as, device embodiment described above
It is only schematically, such as, described module, the division of unit, it is only a kind of logic function and divides,
Actual can have when realizing other dividing mode, the most multiple unit or assembly can in conjunction with or can collect
Become to another system, or some features can be ignored, or do not perform.Another point, shown or discussed
Coupling each other or direct-coupling or communication connection can be by between some interfaces, device or unit
Connect coupling or communication connection, can be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, as
The parts that unit shows can be or may not be physical location, i.e. may be located at a place, or
Can also be distributed on multiple NE.Can select therein some or all of according to the actual needs
Unit realizes the purpose of the present embodiment scheme.
It addition, each functional unit, module in each embodiment of the present invention can be integrated in one and process single
In unit, it is also possible to be that unit, module are individually physically present, it is also possible to two or more unit,
Module is integrated in a unit.
If described function realizes and as independent production marketing or use using the form of SFU software functional unit
Time, can be stored in a computer read/write memory medium.Based on such understanding, the skill of the present invention
Part that prior art is contributed by art scheme the most in other words or the part of this technical scheme can be with
The form of software product embodies, and this computer software product is stored in a storage medium, if including
Dry instruction is with so that a computer equipment (can be personal computer, server, or the network equipment
Deng) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium bag
Include: USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), random access memory
Device (RAM, Random Access Memory), magnetic disc or CD etc. are various can store program code
Medium.
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention is not limited to
This, any those familiar with the art, in the technical scope that the invention discloses, can readily occur in
Change or replacement, all should contain within protection scope of the present invention.Therefore, protection scope of the present invention should
Described it is as the criterion with scope of the claims.
Claims (14)
1. the fault recovery method of a loop network, it is characterised in that described fault recovery method is applied to
The equipment of makeup ring l network, including:
When this equipment is in intermediateness, sent by central port, both sides other equipment in loop network
First detection messages, and receive the first detection messages of described other equipment transmission to carry out main website election contest;
During main website campaigns for, if this equipment receives the Negative Acknowledgment message that other equipment described sends,
Then current state is set to slave station by intermediateness;
If this equipment does not receives the Negative Acknowledgment message that other equipment described sends, then by current state by
Between state be set to main website, to manage described loop network.
2. the fault recovery method of loop network as claimed in claim 1, it is characterised in that described in pass through
Central port, both sides other equipment in loop network send the first detection messages and include:
By the MAC Address of this equipment, multicast address, priority parameters and this equipment in loop network
Current state is added to the first detection messages, and described first detection messages is sent by central port, both sides
Other equipment to loop network;
Wherein, described current state is that this equipment is in intermediateness, slave station state or main website state.
3. the fault recovery method of loop network as claimed in claim 2, it is characterised in that described reception
The first detection messages that other equipment described sends includes to carry out main website election contest:
This equipment receives the first detection messages that other equipment in loop network sends;
Priority according to described first detection messages this equipment of comparison and the priority of other equipment described;
When the priority of this equipment is higher than the priority of other equipment described, send negative to other equipment described
Response message so that other equipment described after receiving described Negative Acknowledgment message by current state by centre
State is set to slave station.
4. the fault recovery method of loop network as claimed in claim 3, it is characterised in that described basis
The described priority of first detection messages this equipment of comparison includes with the priority of other equipment described:
Comparing priority parameters and the priority parameters of other equipment described of this equipment, wherein, priority is joined
The priority facility that number is the biggest is the highest, and the priority facility that priority parameters is the least is the lowest;
If the priority parameters of this equipment is identical with the priority parameters of other equipment described, the most originally set
Standby MAC Address and the MAC Address of other equipment described;
Wherein, the priority facility that MAC Address is the least is the highest, and the priority facility that MAC Address is the biggest is the lowest.
5. the fault recovery method of the loop network as described in any one of claim 2 to 4, it is characterised in that
Receive, at this equipment, the Negative Acknowledgment message that other equipment described sends, current state is set to by intermediateness
After slave station, described fault recovery method also includes:
The MAC Address of record other equipment described and priority parameters, and stop sending the first detection messages.
6. the fault recovery method of loop network as claimed in claim 5, it is characterised in that described fault
Restoration methods also includes:
When this equipment is in slave station state, the second detection messages receiving and forwarding main website to send, Yi Jijian
Survey and record the priority survival condition higher than other equipment of this priority facility;
If described priority is higher than the second detection messages time-out of other device forwards of this priority facility, then
Current state is set to intermediateness by slave station state, and other equipment in loop network to send main website competing
Select instruction information, so that other equipment described enters intermediateness again to carry out main website election contest.
7. the fault recovery method of loop network as claimed in claim 6, it is characterised in that described fault
Restoration methods also includes:
When this equipment is in slave station/main website state, if the master that other equipment received in loop network sends
Stand and campaign for instruction information, then current state is set to intermediateness by slave station/main website state, again to lead
Stand election contest.
8. the fault recovery device of a loop network, it is characterised in that described fault recovery device is applied to
The equipment of makeup ring l network, including:
Election contest module, for when this equipment is in intermediateness, by central port, both sides in loop network
Other equipment send the first detection messages, and receive the first detection messages that other equipment described sends to enter
Row main website campaigns for;
Slave station arranges module, during campaigning in main website, if this equipment receives other equipment described and sends out
During the Negative Acknowledgment message sent, then current state is set to slave station by intermediateness;
Main website arranges module, if when this equipment does not receives the Negative Acknowledgment message that other equipment described sends,
Then current state is set to main website by intermediateness, to manage described loop network.
9. the fault recovery device of loop network as claimed in claim 8, it is characterised in that described election contest
Module specifically includes:
First transmitting element, for by the MAC Address of this equipment, multicast address, priority parameters and basis
Equipment current state in loop network is added to the first detection messages, and by central port, both sides by institute
State the first detection messages and send other equipment to loop network;
Wherein, described current state is that this equipment is in intermediateness, slave station state or main website state.
10. the fault recovery device of loop network as claimed in claim 9, it is characterised in that described competing
Modeling block includes:
Receive unit, for receiving the first detection messages that other equipment in loop network sends;
Comparing unit, for setting with described other according to the priority of described first detection messages this equipment of comparison
Standby priority;
Second transmitting element, during for being higher than the priority of other equipment described when the priority of this equipment, to
Other equipment described sends Negative Acknowledgment message, so that other equipment described are receiving described Negative Acknowledgment message
After current state is set to slave station by intermediateness.
The fault recovery device of 11. loop networks as claimed in claim 10, it is characterised in that described ratio
To unit specifically for:
Comparing priority parameters and the priority parameters of other equipment described of this equipment, wherein, priority is joined
The priority facility that number is the biggest is the highest, and the priority facility that priority parameters is the least is the lowest;
If the priority parameters of this equipment is identical with the priority parameters of other equipment described, the most originally set
Standby MAC Address and the MAC Address of other equipment described;
Wherein, the priority facility that MAC Address is the least is the highest, and the priority facility that MAC Address is the biggest is the lowest.
The fault recovery device of 12. loop networks as described in any one of claim 9 to 11, its feature exists
In, described slave station arranges module and is additionally operable to:
Receiving the Negative Acknowledgment message that other equipment described sends, by current state by intermediateness be set to from
After standing, the MAC Address of record other equipment described and priority parameters, and stop sending the first detection report
Literary composition.
The fault recovery device of 13. loop networks as claimed in claim 12, it is characterised in that described event
Barrier recovery device also includes:
Monitoring modular, is used for when this equipment is in slave station state, the second inspection receiving and forwarding main website to send
Observe and predict literary composition, and monitor and record the priority survival condition higher than other equipment of this priority facility;
Intermediateness arranges module, if be higher than other device forwards of this priority facility for described priority
The second detection messages time-out, then current state is set to intermediateness by slave station state, and to loop network
In other equipment send main website election contest instruction information so that other equipment described enter intermediateness with again
Secondary carry out main website election contest.
The fault recovery device of 14. loop networks as claimed in claim 13, it is characterised in that in described
Between state setting module be additionally operable to:
When this equipment is in slave station/main website state, if the master that other equipment received in loop network sends
Stand and campaign for instruction information, then current state is set to intermediateness by slave station/main website state, again to lead
Stand election contest.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610442836.6A CN105915426B (en) | 2016-06-20 | 2016-06-20 | The fault recovery method and device of loop network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610442836.6A CN105915426B (en) | 2016-06-20 | 2016-06-20 | The fault recovery method and device of loop network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105915426A true CN105915426A (en) | 2016-08-31 |
CN105915426B CN105915426B (en) | 2019-06-04 |
Family
ID=56757991
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610442836.6A Active CN105915426B (en) | 2016-06-20 | 2016-06-20 | The fault recovery method and device of loop network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105915426B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106941634A (en) * | 2017-05-18 | 2017-07-11 | 烽火通信科技股份有限公司 | The method and system of OLT loopback detections in a kind of GPON systems |
CN108235245A (en) * | 2017-11-28 | 2018-06-29 | 厦门卓网信息科技股份有限公司 | A kind of method of WiFi positioning |
CN109245940A (en) * | 2018-10-15 | 2019-01-18 | 厦门卓网信息科技股份有限公司 | A kind of method network equipment discovery and detected |
CN109600290A (en) * | 2018-12-27 | 2019-04-09 | 苏州拓康自动化技术有限公司 | A kind of more main methods coexisted in loop network |
CN110601941A (en) * | 2018-06-12 | 2019-12-20 | 通号城市轨道交通技术有限公司 | Vehicle-mounted signal transmission system and method based on EtherCAT bus |
CN113875196A (en) * | 2019-05-28 | 2021-12-31 | 小糸电工株式会社 | Communication device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1768319B1 (en) * | 2005-09-26 | 2008-05-21 | Huawei Technologies Co., Ltd. | Method of inter-RPR-ring bridge redundancy |
CN101656650A (en) * | 2009-09-17 | 2010-02-24 | 杭州华三通信技术有限公司 | Method and main link device for realizing automatic configuration of Ethernet ring |
US7675869B1 (en) * | 2004-07-06 | 2010-03-09 | Marvell International Limited | Apparatus and method for master election and topology discovery in an Ethernet network |
CN102014001A (en) * | 2010-12-08 | 2011-04-13 | 迈普通信技术股份有限公司 | Method and exchange equipment for realizing fast Ethernet ring |
CN102158384A (en) * | 2011-01-25 | 2011-08-17 | 武汉迈威光电技术有限公司 | Novel MRing Ethernet ring network protection technology |
-
2016
- 2016-06-20 CN CN201610442836.6A patent/CN105915426B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7675869B1 (en) * | 2004-07-06 | 2010-03-09 | Marvell International Limited | Apparatus and method for master election and topology discovery in an Ethernet network |
EP1768319B1 (en) * | 2005-09-26 | 2008-05-21 | Huawei Technologies Co., Ltd. | Method of inter-RPR-ring bridge redundancy |
CN101656650A (en) * | 2009-09-17 | 2010-02-24 | 杭州华三通信技术有限公司 | Method and main link device for realizing automatic configuration of Ethernet ring |
CN102014001A (en) * | 2010-12-08 | 2011-04-13 | 迈普通信技术股份有限公司 | Method and exchange equipment for realizing fast Ethernet ring |
CN102158384A (en) * | 2011-01-25 | 2011-08-17 | 武汉迈威光电技术有限公司 | Novel MRing Ethernet ring network protection technology |
Non-Patent Citations (1)
Title |
---|
YUFEI XIE ETC: ""A bi-directional election algorithm based on ring topology"", 《IEEE INTERNATIONAL CONFERENCE ON INFORMATION SCIENCE AND TECHNOLOGY》 * |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106941634A (en) * | 2017-05-18 | 2017-07-11 | 烽火通信科技股份有限公司 | The method and system of OLT loopback detections in a kind of GPON systems |
CN106941634B (en) * | 2017-05-18 | 2020-07-14 | 烽火通信科技股份有限公司 | O L T loopback detection method and system in GPON system |
CN108235245A (en) * | 2017-11-28 | 2018-06-29 | 厦门卓网信息科技股份有限公司 | A kind of method of WiFi positioning |
CN108235245B (en) * | 2017-11-28 | 2023-05-26 | 厦门卓网信息科技股份有限公司 | WiFi positioning method |
CN110601941A (en) * | 2018-06-12 | 2019-12-20 | 通号城市轨道交通技术有限公司 | Vehicle-mounted signal transmission system and method based on EtherCAT bus |
CN110601941B (en) * | 2018-06-12 | 2021-07-27 | 通号城市轨道交通技术有限公司 | Vehicle-mounted signal transmission system and method based on EtherCAT bus |
CN109245940A (en) * | 2018-10-15 | 2019-01-18 | 厦门卓网信息科技股份有限公司 | A kind of method network equipment discovery and detected |
CN109245940B (en) * | 2018-10-15 | 2021-04-27 | 厦门卓网信息科技股份有限公司 | Method for discovering and detecting network equipment |
CN109600290A (en) * | 2018-12-27 | 2019-04-09 | 苏州拓康自动化技术有限公司 | A kind of more main methods coexisted in loop network |
CN113875196A (en) * | 2019-05-28 | 2021-12-31 | 小糸电工株式会社 | Communication device |
CN113875196B (en) * | 2019-05-28 | 2024-01-05 | 小糸电工株式会社 | Communication device |
Also Published As
Publication number | Publication date |
---|---|
CN105915426B (en) | 2019-06-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105915426A (en) | Failure recovery method and device of ring network | |
CN104378232B (en) | Fissure discovery, restoration methods and device under active and standby cluster networking pattern | |
CN105187249B (en) | A kind of fault recovery method and device | |
EP2798782B1 (en) | Technique for handling a status change in an interconnect node | |
CN102355366B (en) | Member-stacking device and method for managing member-stacking device at split stacking moment | |
CN100407646C (en) | Method for realizing data service backup | |
RU2423008C2 (en) | METHOD AND SYSTEM FOR AUTOMATIC PROTECTION OF Ethernet NETWORK | |
CN101199165A (en) | Method and collocation for processing failure in network | |
CN103442035B (en) | A kind of two net hot backup redundancy implementation methods of air traffic control automation system | |
CN108073540A (en) | I2C bus systems, warping apparatus investigation method | |
CN102394914A (en) | Cluster brain-split processing method and device | |
CN105227385A (en) | A kind of method and system of troubleshooting | |
CN101729426A (en) | Method and system for quickly switching between master device and standby device of virtual router redundancy protocol (VRRP) | |
CN101483571B (en) | RRPP configuring method, system and device | |
CN106034038A (en) | Method and device for preventing multi-conflict stacking | |
CN102664757B (en) | Cascading method and equipment for storage devices | |
WO2010121459A1 (en) | Method and system for implementing protection and recovery in automatically switching optical network | |
CN103297279B (en) | The active and standby single-deck reverse method of software control in a kind of many software process system | |
CN104065546A (en) | Ethernet protection switching method | |
CN101340377B (en) | Method, apparatus and system for data transmission in double layer network | |
CN101980478B (en) | Method and device for detecting and processing equipment failures and network equipment | |
CN102487332B (en) | Fault processing method, apparatus thereof and system thereof | |
CN101854263B (en) | Method, system and management server for analysis processing of network topology | |
CN102136957B (en) | Label switched path monitoring realization method, device and system | |
CN104125079A (en) | Method and device for determining double-device hot-backup configuration information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |