Embodiment
The protection reverse method that the embodiment of the invention provides adopts and revises the controlling mechanism that node device sends the faulty indication message, perhaps carries the mode of protection switching request information in connecting monitoring messages.The embodiment of the invention also provides node corresponding equipment.Below be elaborated respectively.
In the following embodiments, node device self can have the functional module that is used for fault monitoring, by fault and fault clearance situation are known in the detection that transmits entity; The failure indication information that node device also can report by the fault monitoring equipment that obtains the outside is known fault and the fault clearance situation that transmits entity.
Embodiment one, a kind of protection reverse method.In the present embodiment, adopt the mode that node device sends the controlling mechanism of faulty indication message of revising.Flow process comprises step with reference to figure 3:
101, this end node devices is when protection transmits on the entity transport service, knows that work transmission entity recovers normal.
Work transmission entity can be two-way or unidirectional transmission entity with protection transmission entity in the present embodiment.This end node devices transmits by protecting reversed process that business is switched on the protection transmission entity normally after work transmission entity breaks down.
1. for the one-way transmission entity, because only there is a direction in work entity, so fault clearance also only need be followed according to the malfunction of this direction and be judged.
2. the situation of switching for two-way transmission entity, unidirectional protection, this end node devices know that the fault clearance of work transmission entity receive direction can think that work transmission entity recovers normal.
3. the situation of switching for two-way transmission entity, bidirectional protective; this end node devices need be known the fault clearance of work transmission entity receive direction; and do not receive peer node equipment by the faulty indication message that work transmission entity sends, can think that just the work transmission entity recovery is normal.
102, this end node devices starts the Wait-to-Restore time-delay.
When fault clearance, because intermittent defect causes frequently switching/recovery operation, can introduce fixing one section Wait to Restore Time (WTR:wait-to-restore) in order to prevent.After fault disappeared, elder generation started Wait-to-Restore time-delay (generally being 5~12 minutes) and enters Wait-to-Restore time-delay state, and during this period, business remains on the protection transmission entity and transmits, and loses efficacy up to WTR, and business just can be got back on the work transmission entity and be transmitted.Certainly, if there is the request (for example, the switching request that new detected fault causes) of higher priority before WTR loses efficacy, to arrive, then replace the WTR state.
The Wait-to-Restore time-delay specifically can use functional parts such as timer or timer to realize, specifically can adopt modes such as increasing progressively timing or countdown.
103, this end node devices is after the Wait-to-Restore time-delay reaches first setting-up time, stop to send faulty indication message (the perhaps all right fault clearance indication message that further transmits), after jumping out malfunction, switch to work transmission entity with equipment failure state elimination of notice peer node and indication peer node equipment to peer node equipment.
104, this end node devices transmits entity with business from protection and switches to work transmission entity after the Wait-to-Restore time-delay reaches second setting-up time.Switch in the protection of one-way transmission entity, two-way transmission entity bidirectional, the unidirectional protection of two-way transmission entity is switched etc. under the various applicable cases, the handover operation of carrying out when this step will be switched according to protection with the counterparty to business switch back work transmission entity.
The reason that step 103 and 104 is carried out in two steps is, transmission net for some type, MPLS for example, peer node equipment need not receive all in continuous several cycles that the faulty indication message just jumps out malfunction, in this case, this end node devices needs to wait for a period of time to carry out after stopping paying out the faulty indication message again and recovers to switch, to guarantee the unanimity of two ends action.Time difference between first setting-up time and second setting-up time can be set to node device and jump out malfunction needed detection time.
Except that above-mentioned protection is switched the recovery process, present embodiment also can be further considered the situation of execute protection reversed process when work transmission entity breaks down, and comprises step:
105, this end node devices during transport service, is known work transmission entity receive direction fault on work transmission entity.
106, time-delay is switched in this end node devices startup protection.
When protection is switched; the number of times of switching for limiting protecting; allow lower floor or upstream before upper strata or downstream, to implement protection (if promptly business has been recovered in lower floor or upstream; upper strata or downstream needn't be implemented protection again and be switched), can introduce protection and switch time-delay (Hold-off timer).Promptly after detecting fault, start protection earlier and switch time-delay (being generally 0~10 second) and enter the time-delay state of switching of protecting, switch according to up-to-date malfunction again after overtime.Protection is switched time-delay and can be used functional parts such as timer or timer to realize equally.
107, this end node devices protection switch the time-delay reach setting-up time after; business is switched to protection from work transmission entity transmit entity; and send the faulty indication message be used to notify current malfunction to peer node equipment, so that switching to protection with business from work transmission entity, peer node equipment transmits entity.
The form of faulty indication message can be provided with reference to existing mode in the present embodiment, and it not only is used to announce oam state, the foundation of switching also as trigger protection, but transmission be arranged on opportunity protection switch time-delay overtime after.
1. transmitting entity for work transmission entity with protection is the situation of one-way transmission entity, as MPLS.The faulty indication message can send with reference to existing mode, promptly oppositely transmit entities (as another unidirectional LSP opposite) or other available reverse connections (non-LSP, as IP-based control channel etc.) by other and send peer node equipment to the working LSP direction by this end node devices.
2. transmitting entity for work transmission entity with protection is the situation of two-way transmission entity, as Ethernet.For avoiding bi-directional failure to cause the faulty indication message unreachable, can transmit entity by protection by this end node devices and send peer node equipment to.
It can be that bidirectional protective is switched that performed protection is switched; to be this end node devices in protection switch all switches to protection with the business of both transmit and receive direction after time-delay reaches setting-up time and transmits entity, sends faulty indication message indication peer node equipment simultaneously and carries out corresponding two-way handover operation.
It also can be that unidirectional protection is switched that performed protection is switched; to be this end node devices in protection switch switches to protection with the business of receive direction after time-delay reaches setting-up time and transmits entity, sends the business with sending direction that faulty indication message indication peer node equipment carries out simultaneously and switches to the unidirectional handover operation that protection transmits entity.Obviously, in this case, the protection switching operation of this end node devices sending direction will be carried out by the faulty indication message that protection transmits the entity transmission according to peer node equipment.
The transmission opportunity of the foregoing description by control fault indication message (switches in protection and to send after time-delay reaches setting-up time; after reaching setting-up time, the Wait-to-Restore time-delay stops to send); carrying out Operations, Administration and Maintenance (OAM:Operation; Administration and Management) switches with appropriate trigger protection on opportunity state advertisement the time; make the node device that transmits the entity two ends can carry out consistent switching and recovery operation, avoid loss of traffic.
Embodiment to the node device of the present invention that is used to carry out above-mentioned protection reverse method describes below, and its basic logical structure is with reference to figure 4, comprises that mainly control module 201 and protection switch module 202.
Control module 201 is used for when protection transmits on the entity transport service, know work transmission entity recover normal after, start the Wait-to-Restore time-delay; After the Wait-to-Restore time-delay reaches setting-up time; control transmits entity with business from protection and switches to work transmission entity; stop to send the faulty indication message that is used to notify current malfunction, switch to work transmission entity so that peer node equipment transmits entity with business from protection to peer node equipment.
Module 202 is switched in protection, is used for the control according to control module 201, carries out business and switch between work transmission entity and protection transmission entity.
Corresponding with method among the embodiment one, control module 201 also can be further used for, on work transmission entity during transport service, know work transmission entity receive direction fault after, start protection and switch time-delay; Protection switch the time-delay reach setting-up time after; control switches to protection with business from work transmission entity and transmits entity; and send the faulty indication message be used to notify current malfunction to peer node equipment, so that switching to protection with business from work transmission entity, peer node equipment transmits entity.
Preferably, control module 201 is used for after the Wait-to-Restore time-delay reaches setting-up time, control transmits entity with business from protection and switches to work transmission entity, stop to send the faulty indication message to peer node equipment, specifically can be to be used for: after the Wait-to-Restore time-delay reaches first setting-up time, stop to send the faulty indication message to peer node equipment; After the Wait-to-Restore time-delay reached second setting-up time, control transmitted entity with business from protection and switches to work transmission entity.
Be to be understood that, when above-mentioned node device specifically is applied in the actual transmission network, (for example each several part is with software can to adopt the way of realization that is fit to according to the needs of network type, or hardware, or the form of software and hardware combining is deployed on the identical or different physical entity) and/or increase the application function that is fit to.
Embodiment two, a kind of protection reverse method.In the present embodiment, adopt the mode of in connecting monitoring messages, carrying protection switching request information.Flow process comprises step with reference to figure 5:
301, this end node devices need to determine the protection switching action of execution.
Work transmission entity is two-way transmission entity with protection transmission entity in the present embodiment.The alleged protection switching action that need carry out comprises that business is switched to protection from work transmission entity to be transmitted entity and business is switched to two kinds of situations of work transmission entity from protection transmission entity.
1. this end node devices can be by knowing work transmission entity receive direction fault, determining that business need be switched to protection from work transmission entity transmits entity.Concrete fault detect mode can be determined according to the type of the transmission net of practical application, for example in Ethernet and MPLS, can not receive that in setting cycle being connected monitoring messages determines the loss of connectivity fault by detecting work transmission entity, certainly, can also be the fault of other types, connect, miss the cycle etc. as missing.
Certainly; also can introduce protection and switch time-delay, that is, this end node devices starts protection and switches time-delay after knowing work transmission entity receive direction fault; switch after time-delay reaches setting-up time in protection, self business is switched to protection from work transmission entity transmit entity.
In addition, after this end node devices is known work transmission entity receive direction fault, this end node devices can be carried failure indication information usually in sending to the connection monitoring messages of peer node equipment, alleged failure indication information is used to notify peer node equipment current malfunction;
The form of failure indication information and load mode can be provided with reference to existing mode in the present embodiment, and just it only is used to indicate oam state, not the foundation of switching as trigger protection.
2. this end node devices can be normal by knowing the work transmission entity recovery, determines business to be switched to work transmission entity from protection transmission entity.
Certainly, also can introduce the Wait-to-Restore time-delay, promptly; this end node devices is after knowing that work transmission entity is recovered normally; start the Wait-to-Restore time-delay, after the Wait-to-Restore time-delay reaches setting-up time, self business is transmitted entity from protection switch to work transmission entity.
In addition, after this end node devices knows that the work transmission entity receive direction recovers, this end node devices stops at usually and carries failure indication information (perhaps can also further carry the fault clearance indication information in sending to the connection monitoring messages of peer node equipment) in the connection monitoring messages that sends to peer node equipment, eliminates with notice peer node equipment failure state.As previously mentioned, in the present embodiment failure indication information stop to transmit the oam state that only is used to indicate fault clearance, as triggering the foundation of recovering to switch to work transmission entity.
302, this end node devices is carried protection switching request information in the connection monitoring messages that sends to peer node equipment by protection transmission entity, and alleged protection switching request information is used to ask peer node equipment to carry out and the switching action of this end node devices corresponding protection.
In the present embodiment protection switching request information can by to existing connect monitoring messages carry out in perhaps form expand and transmit, for example utilize the reservation that connects monitoring messages or newly-increased field or bit to represent to protect switching request information.
Performed protection switching action can be that bidirectional protective is switched; be that this end node devices is after determining to need the execute protection switching action; the business of both transmit and receive direction is all switched to corresponding transmission entity, transmit protection switching request information indication peer node equipment simultaneously and carry out corresponding two-way handover operation.
It also can be that unidirectional protection is switched that performed protection is switched; be that this end node devices is after determining to need the execute protection switching action; only the business with receive direction switches to corresponding transmission entity, transmits protection switching request information indication peer node equipment simultaneously and only the business of its sending direction is switched to corresponding transmission entity.Obviously, in this case, the protection switching operation of this end node devices sending direction will be carried out according to the protection switching request information that peer node equipment transmits.
Corresponding with previous step, the protection switching action of protection switching request information request comprises that business is switched to protection from work transmission entity to be transmitted entity and business is switched to two kinds of situations of work transmission entity from protection transmission entity.
Need to prove that the situation that protection is switched for two-way transmission entity bidirectional is because when bi-directional failure occurring, two end node devices may be in protection simultaneously and switch the time-delay state or be in Wait-to-Restore time-delay state simultaneously.Therefore, be to save system resource, after being in protection and switching the node device of time-delay state and receive the protection switching request information that transmits the opposite end, can remove self etc. the time-delay state of switching to be protected; The node device that is in Wait-to-Restore time-delay state finds that the opposite end stops to transmit (or the protection of receiving the opposite end recovers indication information) after the protection switching request information, can remove the Wait-to-Restore time-delay state of self.
The foregoing description is by using the mode that monitoring messages carries protection switching request information that connects; oam state announcement (for example failure indication information) and trigger protection switched separate; node device is only switched according to the transmission protection of protection switching request information and is recovered; make the node device that transmits the entity two ends can carry out consistent switching and recovery operation, avoid loss of traffic.
Embodiment to the node device of the present invention that is used to carry out above-mentioned protection reverse method describes below, and its basic logical structure mainly comprises sending module 401 and control module 402 with reference to figure 6.
Sending module 401 is used for transmitting entity by protection and sends the connection monitoring messages to peer node equipment.Control module 402; be used for after determining the protection switching action that needs are carried out; carry protection switching request information in sending module 401 sends to the connection monitoring messages of peer node equipment, alleged protection switching request information is used to ask peer node equipment to carry out and the switching action of this end node devices corresponding protection.
Be to be understood that, when above-mentioned node device specifically is applied in the actual transmission network, (for example each several part is with software can to adopt the way of realization that is fit to according to the needs of network type, or hardware, or the form of software and hardware combining is deployed on the identical or different physical entity) and/or increase the application function that is fit to.
For better understanding the foregoing description, below to describe in the concrete example that is applied as that transmits in the net.
The application (one-way transmission entity) of method in MPLS among application one, the embodiment one.
The network connection diagram of MPLS can be with reference to figure 1 (a) in should using.Execution that protection is switched and recovery flow process comprise with reference to figure 7:
1. suppose that the Z node connects monitoring messages (CV/FFD) cycles at continuous three and do not receive the CV/FFD message, the Z node enters the near terminal fault state, starts Hold-offtimer.
2. Z node Hold-offtimer is overtime, and the Z node selects protection to transmit the entity transport service.Simultaneously, the Z node sends the BDI message to the A node.
3. the A node is receiving that first BDI message just enters the far-end malfunction, selects protection to transmit the entity transport service.At this moment, A, Z node have as one man switched business.
4. before fault was not recovered, the Z node continued to send BDI to the A node according to certain transmission cycle (as 1s).
5. when fault clearance, the Z node is jumped out near terminal fault state (continuous three CV/FFD transmission cycle is received two correct CV/FFD messages at least), starts WTR timer.
6. the Z node stops to send the BDI message to the A node after WTR timer reaches first setting-up time (WTR-3 second).
7. the A node is not received a correct BDI message in continuous three transmission cycles (3 seconds), promptly jumps out the far-end malfunction, and the A node is selected the work transmission entity transport service.
8. after WTR timer reached second setting-up time (WTR), the Z node was selected the work transmission entity transport service.At this moment, A, Z node have as one man switched business.Time difference between first setting-up time and second setting-up time (3 seconds) is the A node and jumps out malfunction needed detection time.
The application (two-way transmission entity, bidirectional protective switch) of method in Ethernet among application two, the embodiment two.
With reference to figure 8, work transmission entity is path 1 and path 2, and it is that path 3 and path 4, two end node devices are expressed as C and D respectively that protection transmits entity.Whether C end and D end utilize detection of connectivity (CCM) message to come testing to transmit entity has fault to take place.Under the normal condition, two-way services transmit on path 1 and path 2 respectively.C end and D end all on work transmission entity and protection transmission entity transmission CCM message monitor and be connected.
1, the processing procedure that breaks down:
With reference to figure 9 (a), during work transmission entity generation bi-directional failure, the C end detects path 2 faults, and beginning sends RDI message (that is, with the RDI indication set of CCM message) on path 1, and starts Hold-offtimer, is assumed to 500ms; The D end detects path 1 fault, and beginning sends the RDI message on path 2, and starts Hold-offtimer, is assumed to 200ms.
With reference to figure 9 (b), after the 200ms, D end Hold-off timer is overtime, and the D end switches to two-way services on path 3 and the path 4, and beginning sends the CCM_P message (that is, with a reservation bit set of CCM message on path 4; This bit can be called the P bit, reset represents that business transmits on work transmission entity; Set represents that then business has switched to protection and transmitted on the entity and transmit, and the CCM with the set of P bit in this example is designated as CCM_P, reset still be designated as CCM).
With reference to figure 9 (c), the C end is received the CCM_P message that the D end sends, and judges the set of P bit, then removes the Hold-off state of self, two-way services are switched on path 3 and the path 4, and beginning sends the CCM_P message on path 3.At this moment, C, D two ends are provided with under the inconsistent situation at Hold-offtimer, have as one man switched business.
2, the processing procedure of fault clearance:
With reference to Figure 10 (a), after the fault clearance, C end detects path 2 and recovers, and stops to send the RDI message on the path 1 and send the CCM message elsewhere, and starts WTRtimer, is assumed to 5 minutes; The D end detects path 1 and recovers, and the CCM message is sent in beginning elsewhere on path 2, and starts WTRtimer, is assumed to 12 minutes.
With reference to Figure 10 (b), after 5 minutes, C end WTRtimer is overtime, and the C end switches to two-way services on path 1 and the path 2, and stops at and send the CCM_P message on the path 3 and send the CCM message elsewhere.
With reference to Figure 10 (c), the D end is received the CCM message that the C end sends, and judges the reset of P bit, then removes the WTR state of self, two-way services are switched on path 1 and the path 2, and the CCM message is sent in beginning elsewhere on path 4.At this moment, C, D two ends are provided with under the inconsistent situation at WTRtimer, have as one man switched business.
Adopt in the above-mentioned application among the CCM that on the protection work entity, sends and increase the mode that a P bit is used as protecting switching request; also can in CCM protocol Data Unit (PDU:Protocol Data Unit), increase some fields or type-length-value (TLV:Type length Value) and carry protection switching request information; benefit than the mode of only using a bit is to carry various protection switching request information like this, as path failure, manually switch, Forced Switch or the like.No matter which kind of mode all needs to distinguish with existing C CM message.What deserves to be explained is, when using the mode of TLV, need in the fixed field of PDU, use at least one bit to indicate whether to carry this TLV.
In the above-mentioned application examples in Ethernet, to use Ethernet (ETH; Ethernet) to carry protection switching request information be example to the CCM message; also can use the message of other form to carry protection switching request information, get final product, carry mode and should use-case similar so long as connect monitoring messages.In the time of for example in being applied in MPLS or IP network, also can using bi-directional failure to detect (BFD, Bidirectional Fault Detection) message and carry protection switching request information, the mode of carrying when carrying mode and using CCM is similar.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of the foregoing description is to instruct relevant hardware to finish by program, this program can be stored in the computer-readable recording medium, storage medium can comprise: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc.
More than protection reverse method and node corresponding equipment that the embodiment of the invention provided are described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.