CN102891767B - A kind of link protection method, network element and system - Google Patents

A kind of link protection method, network element and system Download PDF

Info

Publication number
CN102891767B
CN102891767B CN201210365622.5A CN201210365622A CN102891767B CN 102891767 B CN102891767 B CN 102891767B CN 201210365622 A CN201210365622 A CN 201210365622A CN 102891767 B CN102891767 B CN 102891767B
Authority
CN
China
Prior art keywords
network element
message
link
state machine
fault message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210365622.5A
Other languages
Chinese (zh)
Other versions
CN102891767A (en
Inventor
白艳
彭敏
张宇阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210365622.5A priority Critical patent/CN102891767B/en
Publication of CN102891767A publication Critical patent/CN102891767A/en
Application granted granted Critical
Publication of CN102891767B publication Critical patent/CN102891767B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a kind of link protection method, network element and system.By arranging a network element; the state advertisement message that the oam state machine receiving the first network element if detect in preset time period sends comprises active link fault message; then network element is switched to protection link; and the state that sends is switched message notifying first network element and is switched to conversion link between the first network element and local network element; send APS message notifying second network element and switch to protection link; to complete the switching to protection link; the failure problems avoiding transmission network element causes data not transmit, and realizes the function of striding equipment protection transmission link.Further; if detect in preset time period and do not receive state advertisement message; confirm the first network element failure; protection link is switched to by network element; the first network element avoiding active link place breaks down; the phenomenon that can not realize auto switching mechanism occurs, and achieves the function of protection fast between network element.

Description

A kind of link protection method, network element and system
Technical field
The present invention relates to pretection switch technical field, be specifically related to a kind of link protection method, network element and system.
Background technology
At present, APS (AutomaticProtectionSwitching is called for short APS) agreement has become a kind of key property of the transmission equipment in network communication field.The implementation method of APS protocol is simple; switch fast; general principle is: when point-to-point or point-to-multipoint between there is multilink time; backup can be formed between multilink; be active link by the link definition used; other backup links are defined as protection link, after the active link of initial choice for use lost efficacy, are switched to fast on other protection links.APS agreement terminal device can send APS protocol massages mutually, the APS state of opposite equip. can be communicated to local device by protocol massages, local device can carry out according to the APS state in APS message the state that decision-making determines self, decides to select which bar link by self APS state.The APS state that current APS agreement specifies has multiple, and defines the height of priority and the rule of state transition.Specify in APS agreement, when priority of status lower than APS agreement opposite equip. of the priority of status of local device, oneself state is moved to high priority state by local device, is consistent with the state of opposite equip..
The method of existing application APS agreement mainly detects the quality problems of transmission link; judge whether transmission link exists quality problems according to the connectivity testing message got; if there are quality problems, apply APS agreement and complete control and switch conservation treatment, to be switched to the transmission of protection link settling signal.But, after the equipment or device that detect link quality break down, then can not find the quality problems of transmission link, and then protection link can not be switched to the transmission of settling signal.
Summary of the invention
Embodiments provide a kind of link protection method, network element and system, solve existing link protection method and can not meet transmission equipment fault included by transmission network element and cause APS agreement to be switched to protect the problem that cannot realize.
In a first aspect, first network element, second network element and local network element are arranged in network, link between described first network element and described second network element is active link, link between described second network element and described local network element is protection link, the link protection method that the present embodiment provides comprises: described local network element judges the operation management maintain (Operation of described local network element, AdministrationandMaintenance, OAM) the state advertisement message that the oam state machine that whether state machine receives described first network element in preset time period sends, if the state advertisement message that the oam state machine not receiving described first network element sends, then generate working node fault message, described working node fault message is for representing described first network element failure,
Described local network unit switches to the protection link between described local network element and described second network element according to described working node fault message; And,
Described local network element sends APS message to the second network element comprising described working node fault message, switches to described protection link to trigger after described second network element receives described APS message.
In the first optional implementation of described first aspect, described judge the oam state machine of described local network element whether receive in preset time period described first network element send state advertisement message after, described method also comprises:
If the oam state machine of described local network element receives the state advertisement message that described first network element sends, then described local network element judges whether described state advertisement message comprises active link fault message;
If described state advertisement message comprises active link fault message, then described local network element obtains described active link fault message;
Described local network unit switches to the protection link between described local network element and described second network element according to described active link fault message; And,
Described local network unit sends state according to described active link fault message and switches message to the first network element, receives to trigger described first network element the conversion link switched to after described state switches message between described first network element to described local network element; And,
Described local network element sends APS message to the second network element comprising described active link fault message, switches to protection link to trigger after described second network element receives described APS message;
Described active link fault message is for representing the active link fault between described first network element and described second network element.
In the optional implementation of the second in the first optional implementation of described first aspect, described local network element sends the state comprising described active link fault message and switches message to the first network element and be specially: described local network element sends n the state comprising described active link fault message continuously and switches message to the first network element within the time period that the cycle is T, receives to trigger described first network element the conversion link switched to after described state switches message between described first network element and described local network element; Described T is greater than 0, and described n is greater than 0.
In second aspect, the network element that the present embodiment provides comprises:
Oam state machine, for the state advertisement message that the oam state machine judging whether to receive in preset time period the first network element sends, if the state advertisement message that the oam state machine not receiving the first network element in preset time period sends, then generate working node fault message; And,
APS state machine, for obtaining described working node fault message from the oam state machine of described network element, the protection link between described network element and described second network element is switched to according to described working node fault message, and send APS message extremely described second network element comprising described working node fault message, switch to described protection link to trigger after described second network element receives described APS message;
Described working node fault message is for representing described first network element failure;
Link between described first network element and described second network element is active link.
In the first optional implementation in described second aspect, the oam state machine of described network element, also for receiving the judged result of the state advertisement message of the oam state machine transmission of described first network element in foundation preset time period, judge whether described state advertisement message comprises active link fault message, if described state advertisement message comprises active link fault message, then obtain described active link fault message;
Described APS state machine, also for obtaining described active link fault message from the oam state machine of described network element, described protection link is switched to according to described active link fault message, and send state according to described active link fault message and switch message to described first network element, receive to trigger described first network element the conversion link switched to after described state switches message between described first network element to described local network element; And, for sending APS message extremely described second network element comprising described active link fault message, switch to protection link to trigger after described second network element receives described APS message;
Described active link fault message is for representing that the active link between described first network element and described second network element exists connective obstacle.
In the optional implementation of the second in the first optional implementation in described second aspect, described APS state machine, message to the first network element is switched specifically for sending n the state comprising described active link fault message within the time period that the cycle is T continuously, the conversion link switched to after described state switches message between described first network element and described local network element is received to trigger described first network element, described T is greater than 0, and described n is greater than 0.
In the third aspect, the link protection system that the present embodiment provides comprises: the first network element, the second network element and local network element, link between described first network element and described second network element is active link, link between described local network element and described second network element is protection link, described first network element comprises oam state machine, and described local network element comprises oam state machine and APS state machine;
Wherein, described first network element, for sending state advertisement message to the oam state machine of described local network element by the oam state machine of described first network element;
The oam state machine of described local network element, for the state advertisement message that the oam state machine judging whether to receive in preset time period described first network element sends, if the state advertisement message that the oam state machine not receiving described first network element in preset time period sends, then generate working node fault message; And,
Described APS state machine, for obtaining described working node fault message in the oam state machine from described local network element, described protection link is switched to according to described working node fault message, and send APS message to the second network element comprising described working node fault message, switch to described protection link to trigger after described second network element receives described APS message; Described working node fault message is for representing described first network element failure;
Described second network element, switches to described protection link after receiving described APS message.
In the first optional implementation in the described third aspect, the oam state machine of described local network element, also for receiving the judged result of the state advertisement message of the oam state machine transmission of described first network element in foundation preset time period, judge whether described state advertisement message comprises active link fault message, if described state advertisement message comprises active link fault message, then obtain described active link fault message; Described active link fault message is for representing the active link fault between described first network element and described second network element;
Described APS state machine, also for obtaining described active link fault message in the oam state machine from described local network element, protection link is switched to according to described active link fault message, and send state according to described active link fault message and switch message to the first network element, receive to trigger described first network element the conversion link switched to after described state switches message between described first network element to described local network element; And, for sending APS message extremely described second network element comprising described active link fault message, switch to described protection link to trigger after described second network element receives described APS message.
In the optional implementation of the second in the first optional implementation in the described third aspect, described APS state machine switches message to described first network element specifically for sending n the state comprising described active link fault message within the time period that the cycle is T continuously, the conversion link switched to after described state switches message between described first network element and described local network element is received to trigger described first network element, described T is greater than 0, and described n is greater than 0.
In any one optional implementation of the described third aspect or the described third aspect, described first network element, sends described state advertisement message to the oam state machine of described local network element according to predeterminated frequency specifically for the oam state machine by described first network element in described preset time period.
The link protection method that the embodiment of the present invention provides, network element and system, by arranging a network element, if the state advertisement message that the oam state machine that the oam state machine of described network element does not receive described first network element in preset time period sends detected, then confirm that first network element at active link place breaks down, transfer of data can not be realized, then switch to protection link by network element, and send APS message notifying second network element active link is switched to protection link, with the switching of link to protection link of finishing the work, the problem that avoiding transmission node has problem to cause data not transmit occurs, achieve the function of striding equipment protection transmission link.Further, if detect that the state advertisement message that the oam state machine that the oam state machine of described network element receives described first network element in preset time period sends comprises active link fault message, then switch to protection link according to described active link fault message, and the state that sends is switched message notifying first network element and is switched to conversion link between the first network element and local network element, and send APS message notifying second network element active link is switched to protection link, with the switching of link to protection link of finishing the work, proceed transfer of data; Avoid after active link breaks down, APS mechanism can not be realized, improve the reliability of transmission link.Additionally by switching oam state machine bearing message is set realizes link make to switch protection mechanism achieves the quick handoff links of striding equipment may.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
A kind of link protection method schematic diagram that Fig. 1 a provides for the embodiment of the present invention one;
The link protection application schematic diagram that Fig. 1 b provides for the embodiment of the present invention;
The another kind of link protection method schematic diagram that Fig. 2 provides for the embodiment of the present invention one;
The structural representation of a kind of network element that Fig. 3 a provides for the embodiment of the present invention two;
The structural representation of the another kind of network element that Fig. 3 b provides for the embodiment of the present invention two;
A kind of link protection system configuration schematic diagram that Fig. 4 provides for the embodiment of the present invention three.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Below by specific embodiment, be described in detail respectively.
Refer to Fig. 1 a, a kind of link protection method schematic diagram that Fig. 1 a provides for the embodiment of the present invention one.Wherein, the link protection method that the present embodiment provides applies APS (AutomaticProtectionSwitching is called for short APS) agreement, relate to active link and protection link, wherein.In link transmission network, be provided with the first network element, the second network element and local network element, active link is the transmission link at the first network element and the second network element place, and protection link is the transmission link at local network element and the second network element place.Wherein, the first network element and local network element all comprise an oam state machine.As shown in Figure 1a, the link protection method that the present embodiment provides comprises:
S110, local network element judge the state advertisement message that the oam state machine whether the oam state machine of local network element receives the first network element in preset time period sends; If the state advertisement message that the oam state machine receiving the first network element sends, then process ends; If the state advertisement message that the oam state machine not receiving the first network element sends, then perform step S130;
S130, generation working node fault message;
S150, local network unit switches to the protection link between local network element and the second network element according to working node fault message;
S170, local network element send APS message to the second network element comprising working node fault message, switch to protection link to trigger after the second network element receives APS message.
Wherein, when performing step S130, the working node fault message generated is for representing the first network element failure, if namely the first network element breaks down, then active link can not complete transfer of data, transmission link is caused to interrupt, thus working node fault message is generated, protection link is switched to trigger local network element, and send APS message to the second network element, trigger after the second network element receives APS message and dispatch, switch to protection link, to complete the switching of whole active link to protection link, the problem that avoiding transmission node has problem to cause data not transmit occurs, achieve the function of striding equipment protection transmission link.
In addition, by arrange oam state machine carry switching that various message realizes link make to switch protection mechanism achieves the quick handoff links of striding equipment may.
Wherein, in the state advertisement message step that the oam state machine that local network element judges whether to receive in preset time period the first network element by oam state machine sends, the message format of state advertisement message is in Table (one);
Table (one)
Message field (MFLD) implication is in Table (two);
Table (two)
Refer to Fig. 1 b, the link protection application schematic diagram that Fig. 1 b provides for the embodiment of the present invention.As shown in Figure 1 b, before the first network element 10 sends state advertisement message, by the situation of oam state machine 11 testing link of the first network element 10 or the situation of self operating state, local network element 30 can be sent to using state advertisement message as carrier.
The state advertisement message that the oam state machine 11 that oam state machine 31 by local network element 30 receives the first network element 10 sends, if the state advertisement message that the oam state machine 11 not receiving the first network element 10 in preset time period sends, the working node fault message that the oam state machine 31 then sending local network element 30 generates is to the APS state machine 32 of local network element 30, and the APS state machine 32 triggering local network element 30 switches to the protection link between local network element 30 and the second network element 20 according to working node fault message; And the APS state machine 32 triggering local network element 30 sends APS message to the second network element 20 comprising working node fault message, switches to protection link after receiving APS message with the oam state machine 21 triggering the second network element 20.
Dispatch after second network element 20 receives APS message, the oam state machine 21 of the APS message that the APS state machine 22 of Main Basis second network element 20 obtains according to the oam state machine 21 from the second network element 20 and the second network element 20 detects that the information such as the operating state of the second network element 20 switch to protection link.
Wherein, when performing the step S150 shown in Fig. 1 a and step S170, first can perform step S150, then performing step S170, also can perform simultaneously, therefore no longer to illustrate, also first can perform step S170, then perform step S150, also no longer to illustrate.The priority execution sequence of step S150 and step S170 does not form the restriction to embodiments of the invention, just can according to working node fault message link to the object of link switching of protection link of finishing the work as long as reach.
The link protection method that the present embodiment provides is by arranging local network element, if the state advertisement message not receiving the first network element and send detected in preset time period, then confirm that first network element at active link place breaks down, transfer of data can not be realized, then switch to protection link by local network element, and send APS message notifying second network element active link is switched to protection link, with the switching of link to protection link of finishing the work, the problem that the transmission node avoiding active link place has problem to cause data not transmit occurs, achieve the function of striding equipment protection transmission link, improve the reliability of APS application technology.
As the optional execution mode of one, refer to Fig. 2, the another kind of link protection method schematic diagram that Fig. 2 provides for the embodiment of the present invention one.As shown in Figure 2, after performing based on the step S110 shown in Fig. 1 a, if judge the state advertisement message that the oam state machine that the oam state machine of local network element does not receive the first network element in preset time period sends, then perform the step shown in Fig. 1 a; If judge the state advertisement message that the oam state machine of local network element sends at the oam state machine that local network element receives the first network element, link protection method as shown in Figure 2 also can continue to perform following steps:
S120, local network element judge whether state advertisement message comprises active link fault message;
If so, then perform step S121, then order performs; If not, be then left intact, process ends;
S121, local network element obtain active link fault message;
S122, local network unit switches to the protection link between local network element and the second network element according to active link fault message;
S123, local network element send the state comprising active link fault message and switch message to the first network element, receive to trigger the first network element the conversion link switched to after state switches message between the first network element and local network element;
S124, local network element send APS message to the second network element comprising active link fault message, switch to protection link to trigger after the second network element receives APS message.
Wherein, after the step S110 shown in Fig. 1 a, state advertisement message can be received in preset time period if confirm, then show that the first network element that active link comprises can transmit data, namely there is not fault in the first network element, but the information that state advertisement message comprises is diversified, namely active link fault message can be comprised, also can comprise for showing that the first network element does not exist other work state informations of fault, then judge whether state advertisement message comprises active link fault message further by performing step S120, to determine active link whether fault, and then according to confirming that the result obtaining active link fault realizes protection mechanism.Namely active link fault message is for representing the active link fault between the first network element and the second network element.
Wherein, state switches message format in Table (three);
Table (three)
Please refer to Fig. 1 b, by the oam state machine 31 accepting state notification packet of local network element 30, if the state advertisement message that the oam state machine 11 receiving the first network element 10 in preset time period sends, then the oam state machine 31 of local network element 30 judges whether state advertisement message comprises active link fault message further, if comprise, then obtain active link fault message, and send active link fault message to the APS state machine 32 of local network element 30, the APS state machine 32 triggering local network element 30 switches to the protection link between local network element 30 and the second network element 20 according to active link fault message, and the APS state machine 32 triggering local network element 30 sends the state comprising active link fault message switches message to the first network element 10, receive the conversion link switched to after state switches message between the first network element and local network element with the oam state machine 11 triggering the first network element 10, then the APS state machine 32 triggering local network element 30 sends APS message to the second network element 20 comprising active link fault message, switches to protection link to trigger after the second network element 20 receives APS message.
Dispatch after second network element 20 receives APS message, the oam state machine 21 of the APS message that the APS state machine 22 of Main Basis second network element 20 obtains according to the oam state machine 21 from the second network element 20 and the second network element 20 detects that the information such as the operating state of the second network element 20 switch to protection link.
Wherein, when performing the step S122 shown in Fig. 2 and step S123, first can perform step S122, then performing step S123, also can perform simultaneously, therefore no longer to illustrate, also first can perform step S123, then perform step S122, also no longer to illustrate.The priority execution sequence of step S122 and step S123 does not form the restriction to embodiments of the invention, just can according to active link fault message link to the object of link switching of protection link of finishing the work as long as reach.
The link protection method that the present embodiment provides is by arranging local network element, if detect in preset time period that the state advertisement message receiving the first network element transmission comprises active link fault message, then switch to protection link according to active link fault message, and the state that sends is switched message notifying first network element and is switched to conversion link between the first network element and local network element, and send APS message notifying second network element and active link is switched to protection link, with the switching of link to protection link of finishing the work, proceed transfer of data; After the first network element avoiding active link place breaks down, APS mechanism can not be realized, improve the reliability of transmission link.
As the optional execution mode of one, when performing the step S123 shown in Fig. 2, concrete operations can be local network unit according to active link fault message, within the time period that the cycle is T, send continuously n state switch message to the first network element, receive to trigger the first network element the conversion link switched to after state switches message between the first network element and local network element.Wherein, T is greater than 0, n and is greater than 0.
Send continuously within the time period that the cycle is T object that n state switch message to the first network element mainly avoid state to switch message is affected by environment is washed out, the first network element cannot be delivered to, therefore regularly switch message to the first network element with certain frequency transmission state.
As the optional execution mode of one, T can be 3.3ms, and n can be 3.Be 3 by arrange T be 3.3ms, n, then can realize striding equipment protection mechanism and carry out being limited in 50ms the overall switching time that active link switches to protection link, meet the high performance demands of application APS protocol protection transmission link.
Wherein, if working node fault message or active link fault message do not detected; namely do not needing to carry out active link under the switch instances of protection link; can every state information to the first network element of the local network element of 5s timed sending, the information such as the state information of the local network element that protection link comprises and facility information can be known at any time to make the first network element.
Refer to Fig. 3 a, the structural representation of a kind of network element that Fig. 3 a provides for the embodiment of the present invention two.As shown in Figure 3 a, the network element 3 that the present embodiment provides comprises oam state machine 31 and APS state machine 32.
Link between first network element and the second network element is active link.
Wherein, the oam state machine 31 that network element 3 comprises, the state advertisement message that the oam state machine for judging whether to receive in preset time period the first network element sends, if not, then generates working node fault message;
The APS state machine 32 that network element 3 comprises; for obtaining working node fault message from the oam state machine 31 of network element 3; the protection link between network element and the second network element is switched to according to working node fault message; and send APS message to the second network element comprising working node fault message, switch to protection link to trigger after the second network element receives APS message.
Working node fault message is for representing the first network element failure.
The network element that the present embodiment provides, the state advertisement message not receiving the first network element and send is detected in preset time period by oam state machine 31, then confirm that first network element at active link place breaks down, transfer of data can not be realized, APS state machine 32 then by network element 3 switches to protection link, and send APS message notifying second network element active link is switched to protection link, with the switching of link to protection link of finishing the work, the problem that the transmission node avoiding active link place has problem to cause data not transmit occurs, achieve the function of striding equipment protection transmission link, improve the reliability of APS application technology.
As the optional execution mode of one, oam state machine, also for receiving the judged result of the state advertisement message of the oam state machine transmission of the first network element in foundation preset time period, judge whether state advertisement message comprises active link fault message, if so, then active link fault message is obtained;
APS state machine, also for obtaining active link fault message from the oam state machine of described network element, protection link is switched to according to active link fault message, and send the state comprising active link fault message and switch message to the first network element, receive to trigger the first network element the conversion link switched to after state switches message between the first network element and local network element; And, for sending APS message to the second network element comprising active link fault message, switch to protection link to trigger after the second network element receives APS message.
Active link fault message is for representing that the active link between the first network element and the second network element exists connective obstacle.
The network element that the present embodiment provides, measure in preset time period by oam state machine examination the state advertisement message receiving the first network element transmission and comprise active link fault message, then switch to protection link by APS state machine according to active link fault message, and the state that sends is switched message notifying first network element and is switched to conversion link between the first network element and local network element, send APS message notifying second network element simultaneously and active link is switched to protection link, with the switching of link to protection link of finishing the work, proceed transfer of data; After the first network element avoiding active link place breaks down, APS mechanism can not be realized, improve the reliability of transmission link.
As the optional execution mode of one, APS state machine, specifically for according to active link fault message, within the time period that the cycle is T, send continuously n state switch message to the first network element, receive to trigger the first network element the conversion link switched to after state switches message between the first network element and local network element.Wherein, T is greater than 0, n and is greater than 0.
Send continuously within the time period that the cycle is T object that n state switch message to the first network element mainly avoid state to switch message is affected by environment is washed out, the first network element cannot be delivered to, therefore regularly switch message to the first network element with certain frequency transmission state.
As the optional execution mode of one, T can be 3.3ms, and n can be 3.Be 3 by arrange T be 3.3ms, n, then can realize striding equipment protection mechanism and carry out being limited in 50ms the overall switching time that active link switches to protection link, meet the high performance demands of application APS protocol protection transmission link.
Wherein, if working node fault message or active link fault message do not detected; namely do not needing to carry out active link under the switch instances of protection link; APS state machine can every state information to the first network element of the local network element of 5s timed sending, can know the information such as the state information of the local network element that protection link comprises and facility information at any time to make the first network element.
Refer to Fig. 3 b, the structural representation of the another kind of network element that Fig. 3 b provides for the embodiment of the present invention two.As shown in Figure 3 b, this network element comprises at least one processor 301, at least one network interface 302, memory 303, at least one communication bus 304.
This communication bus 304 is for realizing the connection communication between said modules; Wherein, this memory 303 can store instruction, performs following flow process to make processor 301:
Local network element judges the state advertisement message that the oam state machine whether the oam state machine of local network element receives the first network element in preset time period sends, if the state advertisement message that the oam state machine not receiving the first network element sends, then generate working node fault message, working node fault message is for representing the first network element failure;
Local network unit switches to the protection link between local network element and the second network element according to working node fault message; And,
Local network element sends APS message to the second network element comprising working node fault message, switches to protection link to trigger after the second network element receives APS message.
Wherein, the link of the first network element arranged in link transmission network, the second network element and local network element closes and is: active link is the transmission link at the first network element and the second network element place; protection link is the transmission link at local network element and the second network element place, and the link between the first network element and local network element is conversion link.
And, above-mentioned working node fault message is for representing the first network element failure, if namely the first network element breaks down, then active link can not complete transfer of data, transmission link is caused to interrupt, thus working node fault message is generated, protection link is switched to trigger local network element, send APS message to the second network element simultaneously, trigger after the second network element receives APS message and dispatch, switch to protection link, to complete the switching of whole active link to protection link, the problem that avoiding transmission node has problem to cause data not transmit occurs, achieve the function of striding equipment protection transmission link.
In addition, by arrange oam state machine carry switching that various message realizes link make to switch protection mechanism achieves the quick handoff links of striding equipment may.
In addition; the processor 301 of the present embodiment also can be used for performing the step based on the plurality of optional implementation method of the link protection method shown in Fig. 1 a; the step of the Alternate embodiments of the link protection method that the step performed can provide see embodiment one, therefore do not repeat them here.
Refer to Fig. 4, a kind of link protection system configuration schematic diagram that Fig. 4 provides for the embodiment of the present invention three.As shown in Figure 4; the link protection system 4 that the present embodiment provides comprises: the first network element 41, second network element 42 and local network element 43; link between first network element 41 and the second network element 42 is active link; link between local network element 43 and the second network element 42 is protection link, and local network element 43 comprises oam state machine 431 and APS state machine 432.
Wherein, the first network element 41, for sending state advertisement message to oam state machine 431 by the oam state machine of the first network element 41;
Oam state machine 431, the state advertisement message that the oam state machine for judging whether to receive in preset time period the first network element 41 sends, if not, then generates working node fault message; And,
APS state machine 432, for obtaining working node fault message in the oam state machine 431 from local network element 43, protection link is switched to according to working node fault message, and send APS message to the second network element 42 comprising working node fault message, switch to protection link to trigger after the second network element 42 receives APS message; Working node fault message is for representing the first network element 41 fault.
Second network element 42, switches to protection link after receiving APS message.
The link protection system that the present embodiment provides is by arranging local network element 43, first network element 41 and the second network element 42, if local network element 43 detects in preset time period the state advertisement message not receiving the first network element 41 and send, then confirm that first network element 41 at active link place breaks down, transfer of data can not be realized, then switch to protection link by local network element 43, and send APS message notifying second network element 42 active link is switched to protection link, with the switching of link to protection link of finishing the work, the problem that the transmission node avoiding active link place has problem to cause data not transmit occurs, achieve the function of striding equipment protection transmission link, improve the reliability of APS application technology.
As the optional execution mode of one, the oam state machine of local network element, also for receiving the judged result of the state advertisement message of the oam state machine transmission of the first network element in foundation preset time period, judge whether state advertisement message comprises active link fault message, if so, then active link fault message is obtained.
And, APS state machine, also for obtaining active link fault message from the oam state machine of local network element, protection link is switched to according to active link fault message, and send the state comprising active link fault message and switch message to the first network element, receive to trigger the first network element the conversion link switched to after state switches message between the first network element and local network element; And, for sending APS message to the second network element comprising active link fault message, switch to protection link to trigger after the second network element receives APS message.
Active link fault message is for representing the active link fault between the first network element and the second network element.
The link protection system that the present embodiment provides is by arranging local network element, if detect in preset time period that the state advertisement message receiving the first network element transmission comprises active link fault message, then switch to protection link according to active link fault message, and the state that sends is switched message notifying first network element and is switched to conversion link between the first network element and local network element, send APS message notifying second network element simultaneously and active link is switched to protection link, with the switching of link to protection link of finishing the work, proceed transfer of data; After the first network element avoiding active link place breaks down, APS mechanism can not be realized, improve the reliability of transmission link.
As the optional execution mode of one, APS state machine is specifically for according to active link fault message, within the time period that the cycle is T, send n state continuously switch message to the first network element, the conversion link switched to after state switches message between the first network element and local network element is received to trigger the first network element, T is greater than 0, n and is greater than 0.
Send continuously within the time period that the cycle is T object that n state switch message to the first network element mainly avoid state to switch message is affected by environment is washed out, the first network element cannot be delivered to, therefore regularly switch message to the first network element with certain frequency transmission state.
As the optional execution mode of one, T can be 3.3ms, and n can be 3.Be 3 by arrange T be 3.3ms, n, then can realize striding equipment protection mechanism and carry out being limited in 50ms the overall switching time that active link switches to protection link, meet the high performance demands of application APS protocol protection transmission link.
Wherein, if working node fault message or active link fault message do not detected; namely do not needing to carry out active link under the switch instances of protection link; can every state information to the first network element of the local network element of 5s timed sending, the information such as the state information of the local network element that protection link comprises and facility information can be known at any time to make the first network element.
As the optional execution mode of one, the first network element, specifically for sending state advertisement message to oam state machine according to predeterminated frequency in preset time period.
Link protection method, network element and system disclosed in the embodiment of the present invention.By arranging a network element; if detect, the oam state machine of network element in preset time period does not receive state advertisement message; then confirm the active link fault between the first network element and the second network element; protection link is switched to by network element; and send APS message notifying second network element and switch to protection link; with the switching of link to protection link of finishing the work; the failure problems avoiding the transmission node at active link place causes data not transmit, and realizes the function of striding equipment protection transmission link.Further; the state advertisement message receiving the first network element transmission if detect in preset time period comprises active link fault message; then network element is switched to protection link; and the state that sends is switched message notifying first network element and is switched to conversion link between the first network element and local network element; and the switching of link to protection link of finishing the work; the first network element avoiding active link place breaks down, and the phenomenon that can not realize APS mechanism occurs.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random access memory (RandomAccessMemory is called for short RAM) etc.

Claims (7)

1. a link protection method; it is characterized in that, the first network element, the second network element and local network element are arranged in network, and the link between described first network element and described second network element is active link; link between described second network element and described local network element is protection link, and described method comprises:
Described local network element judges the state advertisement message that the operation management maintain oam state machine whether the operation management maintain oam state machine of described local network element receives described first network element in preset time period sends, if the state advertisement message that the oam state machine not receiving described first network element sends, then generate working node fault message, described working node fault message is for representing described first network element failure;
Described local network unit switches to the protection link between described local network element and described second network element according to described working node fault message; And,
Described local network element sends APS message to the second network element comprising described working node fault message, switches to described protection link to trigger after described second network element receives described APS message;
If the oam state machine of described local network element receives the state advertisement message that described first network element sends, then described local network element judges whether described state advertisement message comprises active link fault message;
If described state advertisement message comprises active link fault message, then described local network element obtains described active link fault message;
Described local network unit switches to the protection link between described local network element and described second network element according to described active link fault message; And,
Described local network unit sends state according to described active link fault message and switches message to the first network element, receives to trigger described first network element the conversion link switched to after described state switches message between described first network element to described local network element; And,
Described local network element sends APS message to the second network element comprising described active link fault message, switches to protection link to trigger after described second network element receives described APS message;
Described active link fault message is for representing the active link fault between described first network element and described second network element.
2. link protection method as claimed in claim 1, it is characterized in that, described local network element sends the state comprising described active link fault message and switches message to the first network element and be specially: described local network element sends n the state comprising described active link fault message continuously and switches message to the first network element within the time period that the cycle is T, receives to trigger described first network element the conversion link switched to after described state switches message between described first network element and described local network element; Described T is greater than 0, and described n is greater than 0.
3. a local network element, is characterized in that, described local network element comprises:
Operation management maintain oam state machine, for the state advertisement message that the oam state machine judging whether to receive in preset time period the first network element sends, if the state advertisement message that the oam state machine not receiving the first network element in preset time period sends, then generate working node fault message; And,
APS APS state machine, for obtaining described working node fault message in the oam state machine from described local network element, the protection link between described local network element and the second network element is switched to according to described working node fault message, and send APS message extremely described second network element comprising described working node fault message, switch to described protection link to trigger after described second network element receives described APS message;
Described working node fault message is for representing described first network element failure;
Link between described first network element and described second network element is active link;
The oam state machine of described local network element, also for receiving the judged result of the state advertisement message of the oam state machine transmission of described first network element in foundation preset time period, judge whether described state advertisement message comprises active link fault message, if described state advertisement message comprises active link fault message, then obtain described active link fault message;
Described APS state machine, also for obtaining described active link fault message in the oam state machine from described local network element, described protection link is switched to according to described active link fault message, and send state according to described active link fault message and switch message to described first network element, receive to trigger described first network element the conversion link switched to after described state switches message between described first network element to described local network element; And, for sending APS message extremely described second network element comprising described active link fault message, switch to protection link to trigger after described second network element receives described APS message;
Described active link fault message is for representing that the active link between described first network element and described second network element exists connective obstacle.
4. local network element as claimed in claim 3, it is characterized in that, described APS state machine, message to the first network element is switched specifically for sending n the state comprising described active link fault message within the time period that the cycle is T continuously, the conversion link switched to after described state switches message between described first network element and described local network element is received to trigger described first network element, described T is greater than 0, and described n is greater than 0.
5. a link protection system, it is characterized in that, comprise: the first network element, the second network element and local network element, link between described first network element and described second network element is active link, link between described local network element and described second network element is protection link, described first network element comprises operation management maintain oam state machine, and described local network element comprises oam state machine and APS APS state machine;
Wherein, described first network element, for sending state advertisement message to the oam state machine of described local network element by the oam state machine of described first network element;
The oam state machine of described local network element, for the state advertisement message that the oam state machine judging whether to receive in preset time period described first network element sends, if the state advertisement message that the oam state machine not receiving described first network element in preset time period sends, then generate working node fault message; And,
Described APS state machine, for obtaining described working node fault message in the oam state machine from described local network element, described protection link is switched to according to described working node fault message, and send APS message to the second network element comprising described working node fault message, switch to described protection link to trigger after described second network element receives described APS message; Described working node fault message is for representing described first network element failure;
Described second network element, switches to described protection link after receiving described APS message;
The oam state machine of described local network element, also for receiving the judged result of the state advertisement message of the oam state machine transmission of described first network element in foundation preset time period, judge whether described state advertisement message comprises active link fault message, if described state advertisement message comprises active link fault message, then obtain described active link fault message; Described active link fault message is for representing the active link fault between described first network element and described second network element;
Described APS state machine, also for obtaining described active link fault message in the oam state machine from described local network element, protection link is switched to according to described active link fault message, and send state according to described active link fault message and switch message to the first network element, receive to trigger described first network element the conversion link switched to after described state switches message between described first network element to described local network element; And, for sending APS message extremely described second network element comprising described active link fault message, switch to described protection link to trigger after described second network element receives described APS message.
6. link protection system as claimed in claim 5; it is characterized in that; described APS state machine switches message to described first network element specifically for sending n the state comprising described active link fault message within the time period that the cycle is T continuously; the conversion link switched to after described state switches message between described first network element and described local network element is received to trigger described first network element; described T is greater than 0, and described n is greater than 0.
7. the link protection system as described in claim 5 or 6, is characterized in that,
Described first network element, sends described state advertisement message to the oam state machine of described local network element according to predeterminated frequency specifically for the oam state machine by described first network element in described preset time period.
CN201210365622.5A 2012-09-27 2012-09-27 A kind of link protection method, network element and system Active CN102891767B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210365622.5A CN102891767B (en) 2012-09-27 2012-09-27 A kind of link protection method, network element and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210365622.5A CN102891767B (en) 2012-09-27 2012-09-27 A kind of link protection method, network element and system

Publications (2)

Publication Number Publication Date
CN102891767A CN102891767A (en) 2013-01-23
CN102891767B true CN102891767B (en) 2016-03-30

Family

ID=47535142

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210365622.5A Active CN102891767B (en) 2012-09-27 2012-09-27 A kind of link protection method, network element and system

Country Status (1)

Country Link
CN (1) CN102891767B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106921473B (en) * 2015-12-28 2020-03-31 华为技术有限公司 Data transmission method of rail transit wireless local area network and related equipment
CN106789252A (en) * 2016-12-23 2017-05-31 盛科网络(苏州)有限公司 The chip method that APS is switched fast is realized in a kind of OAM linkages
CN113055284B (en) * 2016-12-24 2024-06-07 华为技术有限公司 Path selection method, device and system
CN108462904B (en) * 2017-11-22 2020-12-15 上海欣诺通信技术股份有限公司 Protection group switching method based on hardware and optical communication equipment
CN109150622B (en) * 2018-09-12 2021-08-24 苏州盛科通信股份有限公司 Method and device for deploying OAM in multistage APS

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127653A (en) * 2006-08-14 2008-02-20 中兴通讯股份有限公司 Ethernet loop device with backup and implementation method for master device backup
CN101771610A (en) * 2009-12-24 2010-07-07 中兴通讯股份有限公司 Transport multiprotocol label switching network (T-MPLS) system for and link protection method
CN102035680A (en) * 2010-12-17 2011-04-27 中兴通讯股份有限公司 Cross-equipment link protection method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8203932B2 (en) * 2008-12-02 2012-06-19 Electronics And Telecommunications Research Institute Method and system for protection switching in ethernet ring

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127653A (en) * 2006-08-14 2008-02-20 中兴通讯股份有限公司 Ethernet loop device with backup and implementation method for master device backup
CN101771610A (en) * 2009-12-24 2010-07-07 中兴通讯股份有限公司 Transport multiprotocol label switching network (T-MPLS) system for and link protection method
CN102035680A (en) * 2010-12-17 2011-04-27 中兴通讯股份有限公司 Cross-equipment link protection method and system

Also Published As

Publication number Publication date
CN102891767A (en) 2013-01-23

Similar Documents

Publication Publication Date Title
CN102891767B (en) A kind of link protection method, network element and system
CN102014019B (en) Aggregated link switching method and device
CN103001799B (en) Method and node for achieving redundancy on basis of chain network
CN101729426B (en) Method and system for quickly switching between master device and standby device of virtual router redundancy protocol (VRRP)
CN111372272B (en) Abnormality recovery method and device for wireless bridging network
CN103368712A (en) Switchover method and device for main equipment and standby equipment
EP3029883B1 (en) Network protection method and apparatus, next-ring node, and system
CN103560955A (en) Method and device for switching between redundancy devices
CN102984014A (en) Data transmission method and network system
JP2007124300A (en) Wireless communication method, wireless base station device and wireless communication system
CN102025562A (en) Path detection method and device
CN103607317A (en) Two-layer loop detection method, two-layer loop detection device and communication system
CN101197733A (en) Automatic detection method and device for network connectivity
CN101753397A (en) System, method and device for rapidly self-healing Ethernet ring
CN103634131A (en) A method and device for detecting interconnection links of virtualization network devices
CN105577444A (en) Wireless controller management method and wireless controller
EP2925051A1 (en) Method, device and wireless communication system for dual-network backup
CN102970172B (en) A kind of method that communication link switches, equipment and communication system
CN103281720B (en) The hot standby changing method of wireless controller and device, wireless controller, connecting system
CN102136947A (en) Method and device for processing link faults
CN102571458A (en) Switching method and device for tunnel protection sets
CN101909006A (en) BFD (Bidirectional Forwarding Detection) message sending and receiving methods as well as device and communication system thereof
CN102271049B (en) Method, device and system for setting state of communication equipment
CN102724142B (en) Gateway level determination method supporting IPv6 and gateway having robustness
CN108459977A (en) IO retransmission methods and device in a kind of storage system between multi-controller

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant