A kind of chain circuit detecting method and equipment based on operation management maintainance OAM
Technical field
The present invention relates to communication technical field, more particularly to one kind to be based on operation management maintainance OAM(operation
Administration and Maintenance)Chain circuit detecting method and equipment.
Background technology
Currently, in IP bearer networks, operation management maintainance OAM technologies universal use and deployment, it is mainly used
In the link-quality and service quality of detection carrier network, when monitored connectivity of link breaks down, OAM technologies can
So that fault time is notified into network manager in time in a manner of alerting.
Specifically, the OAM detection devices for being monitored link both sides in the prior art can periodically send and receive inspection
Text is observed and predicted, if not receiving detection messages always in 3 or 3.5 detection cycles, then judges that monitored link has been sent out
Raw failure, and fault message is notified into network manager in a manner of alerting, therefore when OAM detection functions are normal, Ke Yizhun
The true time of day for detecting link.
But OAM detection devices are all provided in the both ends of detected link, if the OAM detection devices of one end or
Detection module in OAM detection devices is restarting the OAM software function upgrading either OAM inspections of OAM detection devices
When the connecting interface of OAM detection modules switches in measurement equipment, opposite end OAM detection devices can be caused to be detected the judgement of mistake
Surveyor's chain road is broken down, and then causes OAM detection devices relatively low to the accuracy of link detecting.
The content of the invention
The embodiments of the invention provide a kind of chain circuit detecting method and equipment based on operation management maintainance OAM, to solve
The problem of certainly OAM detection devices are relatively low to link detecting accuracy in the prior art.Its specific technical scheme is as follows:
First aspect is described the embodiments of the invention provide a kind of chain circuit detecting method based on operation management maintainance OAM
Method includes:
The first OAM detection devices for Link State detection receive the 2nd OAM inspections that opposite end is used for Link State detection
The first OAM management messages that measurement equipment is sent;
When the first OAM manages to carry in message abnormality is in for characterizing the 2nd OAM detection devices
Information when, the first OAM detection devices close the link detecting function of itself.
With reference in a first aspect, in the first mode in the cards, itself is closed in the first OAM detection devices
After link detecting function, methods described also includes:
Determine the time for being used to characterize link detecting function reboot time information carried in the first OAM management message
Value;
Before the time value, what the first OAM detection devices received that the 2nd OAM detection devices send takes
When managing message with the 2nd OAM for recovering normal condition for characterizing the 2nd OAM detection devices, then itself is restarted immediately
Link detecting function, and link is detected;
When reaching the time value, the first OAM detection devices do not receive the 2nd OAM detection devices and sent
Carry when recovering the 2nd OAM of normal condition for characterizing the 2nd OAM detection devices and managing message, then restart itself
Link detecting function, and link is detected.
With reference to the first possible implementation, in second of mode in the cards, methods described also includes:
When receiving the 2nd OAM management messages that the 2nd OAM detection devices are sent, the first OAM is managed
The packet loss count information carried in message carries to be sent to the 2nd OAM detection devices in the 3rd OAM manages message, so that
The 2nd OAM detection devices are using the packet loss value in the packet loss count information as the packet loss threshold value for judging Link State.
With reference to the first fermentation, in the third mode in the cards, the abnormality is specially the 2nd OAM inspections
OAM detection module of the measurement equipment either in the 2nd OAM detection devices is being restarted or the 2nd OAM detection devices
The connecting interface of OAM software function upgrading or the OAM detection modules in the 2nd OAM detection devices switches.
Second aspect to be based on operation management maintainance OAM link detecting equipment the embodiments of the invention provide a kind of, including:
Receiving module, the opposite end for receiving the OAM link detectings equipment are used for the opposite end OAM chains of Link State detection
The first OAM management messages that road detection device is sent;
Processing module, it is connected with the receiving module, for being carried when the first OAM is managed in message for characterizing
When the opposite end OAM link detectings equipment is in the information of abnormality, the OAM links residing for the processing module are closed
The link detecting function of detection device.
With reference to second aspect, in the first mode in the cards, the equipment also includes:
Detection module, it is connected with the receiving module, for determining that what is carried in the first OAM management message is used for table
Levy the time value of link detecting function reboot time information;Before the time value, the OAM detection devices receive described
What opposite end AM detection devices were sent carries the 2nd OAM pipes for recovering normal condition for characterizing the opposite end OAM detection devices
When managing message, then the link detecting function of the OAM link detectings equipment is restarted immediately, and link is detected;Reach
During the time value, what the OAM detection devices did not received that the opposite end OAM detection devices send carries for characterizing institute
When stating the 2nd OAM management messages of the 2nd OAM detection devices recovery normal condition, then the link of the OAM detection devices is restarted
Detection function, and link is detected.
With reference to the first mode in the cards, in second of possible implementation, the equipment also includes:
Message management module, it is connected with the detection module, receives what the opposite end OAM detection devices were sent for working as
During the 2nd OAM management message, the first OAM is managed to the packet loss count information carried in message and carried in the 3rd OAM management
Sent in message to the opposite end OAM detection devices, so that the opposite end OAM detection devices are by the packet loss count information
Packet loss value is as the packet loss threshold value for judging Link State.
The third aspect to be based on oam OAM link detecting equipment the embodiments of the invention provide a kind of, described to set
It is standby to include:
Message management module, for when the link inspection of the OAM link detectings equipment residing for the message management module
When brake is in abnormality, generation carries is in different for characterizing the OAM link detectings device link detection function
The first OAM management messages of the information of normal state;
Sending module, it is connected with the message management module, is used for the first OAM management messages to be sent to opposite end
In the opposite end OAM link detecting equipment of Link State detection, so that the opposite end OAM link detectings equipment is according to described first
The link detecting function of being used to characterize the OAM link detectings equipment of being carried in OAM management messages is in the letter of abnormality
Breath, close the link detecting function of the opposite end OAM link detecting equipment.
The embodiments of the invention provide a kind of operation management maintainance OAM link detecting equipment, the equipment bag for fourth aspect
Include:
Communication interface, the opposite end for receiving the OAM link detectings equipment are used for the opposite end OAM chains of Link State detection
The first OAM management messages that road detection device is sent;
Processor, it is connected with the communication interface, for parsing the first OAM management message, when the first OAM is managed
Carried in reason message when being in the information of abnormality for characterizing the opposite end OAM link detectings equipment, close the place
The link detecting function of the OAM link detectings equipment where reason device.
With reference to fourth aspect, in the first possible implementation, the processor is additionally operable to determine the first OAM
What is carried in management message is used to characterize the time value of link detecting function reboot time information, before the time value, institute
That states that OAM detection devices receive that the opposite end OAM detection devices send carries for characterizing the opposite end OAM detection devices
When recovering the 2nd OAM management messages of normal condition, then the link detecting function of itself is restarted immediately, and link is examined
Survey, when reaching the time value, what the OAM detection devices did not received that the opposite end OAM detection devices send carries
When recovering the 2nd OAM management messages of normal condition for characterizing the 2nd OAM detection devices, then the link inspection of itself is restarted
Brake, and link is detected.
With reference to the first possible implementation, in second of possible implementation, the processor is additionally operable to work as
When receiving the 2nd OAM management messages that the opposite end OAM link detecting equipment is sent, the first OAM is managed
The packet loss count information carried in message carries to be sent to the opposite end OAM link detecting equipment in the 3rd OAM manages message,
So that the opposite end OAM link detectings equipment is using the packet loss value in the packet loss count information as the packet loss for judging Link State
Threshold value.
The embodiments of the invention provide a kind of operation management maintainance OAM link detecting equipment, the equipment bag for 5th aspect
Include:
Processor, for when the link detecting function of the detection OAM link detectings equipment is in abnormality, generating
Carry the first OAM pipes that the link detecting function for characterizing the OAM link detectings equipment is in the information of abnormality
Manage message;
Communication interface, it is connected with the processor, for the first OAM management messages to be sent to the OAM links
The opposite end of detection device is used for the opposite end OAM link detecting equipment of Link State detection, so that the opposite end OAM detection devices close
Close the link detecting function of itself.
The first OAM detection devices reception opposite end for being used for Link State detection in embodiments of the present invention is used for Link State
After the first OAM management messages that 2nd OAM detection devices of detection are sent, carried when the first OAM is managed in message for table
When levying the 2nd OAM detection devices and being in the information of abnormality, the first OAM detection devices will close the link detecting work(of itself
Can, so as to avoid that the OAM detection devices of one end occur abnormal and cause opposite end OAM detection device mistakes send link failure
The problem of alarm, and then improve accuracy of the OAM detection devices to link detecting.
Further, in embodiments of the present invention when the first OAM detection devices receive the first OAM management messages, it is determined that
The time value for being used to characterize link detecting function reboot time information carried in first OAM management messages, in the time
Before value, what the first OAM detection devices received that the 2nd OAM detection devices send carry for characterizing described the
When two OAM detection devices recover the 2nd OAM management messages of normal condition, then the link detecting function of itself is restarted immediately, and
Link is detected;When reaching the time value, the first OAM detection devices do not receive the 2nd OAM detections
What equipment was sent, when carrying the 2nd OAM management messages for characterizing the 2nd OAM detection devices recovery normal condition,
Then restart the link detecting function of itself, and link is detected.Effectively OAM can be avoided to examine by the reboot time value
Measurement equipment is of short duration abnormal and sends fault alarm information immediately, while also ensure that abnormal either OAM inspections occur really for link
Measurement equipment can timely send warning information when exception occurring really.
Further, the first OAM detection devices receive the 2nd OAM detection devices are sent in embodiments of the present invention
When two OAM manage message, the first OAM is managed the packet loss count information carried in message and carried by the first OAM detection devices
Sent in 3rd OAM management messages to the 2nd OAM detection devices, that is to say, that the storage that the first OAM detection devices can be interim the
Packet loss count information in two OAM detection devices, should after the link detecting functional rehabilitation of the 2nd OAM detection devices is normal
The packet loss count information is returned to the 2nd OAM detection devices by the first OAM detection devices, thereby may be ensured that the 2nd OAM is detected
Equipment it can be determined immediately that the packet loss threshold value of itself, and is lost after detection function fault recovery by the packet loss threshold value to link
Bag rate is accurately detected, and then the 2nd OAM detection devices are more accurately detected to link.
Brief description of the drawings
Fig. 1 is a kind of chain circuit detecting method flow chart based on operation management maintainance OAM in the embodiment of the present invention;
Fig. 2 is the information exchange in the system that the first OAM detection devices and the 2nd OAM equipment are formed in the embodiment of the present invention
Flow chart;
Fig. 3 is a kind of structural representation based on operation management maintainance OAM link detecting equipment in the embodiment of the present invention;
Fig. 4 is structural representation of the another kind based on operation management maintainance OAM roads detection device in the embodiment of the present invention;
Fig. 5 is structural representation of the another kind based on operation management maintainance OAM link detecting equipment in the embodiment of the present invention;
Fig. 6 is a kind of structural representation based on operation management maintainance OAM link detecting equipment in the embodiment of the present invention;
Fig. 7 is structural representation of the another kind based on operation management maintainance OAM roads detection device in the embodiment of the present invention;
Fig. 8 is a kind of structural representation of operation management maintainance OAM link detecting equipment in the embodiment of the present invention;
Fig. 9 is the structural representation of another operation management maintainance OAM link detecting equipment in the embodiment of the present invention.
Embodiment
Technical solution of the present invention is described in detail below by accompanying drawing and specific embodiment.
Embodiment one:
It is a kind of chain circuit detecting method flow chart based on operation management maintainance OAM in the embodiment of the present invention as shown in Figure 1,
This method comprises the following steps:
Step 101, the first OAM detection devices for Link State detection receive that opposite end is used for Link State detection the
The first OAM management messages that two OAM detection devices are sent.
Firstly the need of explanation, the concrete scheme in the embodiment of the present invention is applied in OAM link detecting technologies,
When carrying out link detecting, the first OAM detection devices and the 2nd OAM detection devices can periodically send detection report between each other
Text, then the first OAM detection devices and the 2nd OAM detection devices determine whether link occurs according to the message number received
It is abnormal.
If the OAM detection modules in the 2nd OAM detection devices or the 2nd OAM detection devices are in the prior art
Restart OAM detection modules in OAM software function upgrading either the 2nd OAM detection devices of the 2nd OAM detection devices
Connecting interface switching when, the first OAM detection devices will be unable to the 2nd OAM detection devices carry out OAM protocols, also
The detection messages that can not receive opposite end, now the first OAM detection devices can not receive detection messages, in the prior art this
One OAM detection devices will send warning information, but now exception does not occur for link, be not that link is extremely caused logical
News are abnormal, therefore the warning information is being alerted extremely to link for mistake.
In embodiments of the present invention in order to avoid it is above-mentioned the problem of, therefore in embodiments of the present invention the first OAM detection set
Standby and the 2nd OAM detections include or chain is connected to a message management module, the message management module independent control, i.e.,:First
The normal operation for not interfering with message management module is restarted or closed to OAM detection devices and the 2nd OAM detection devices,
And the message management module can detect the first OAM detection devices and the link detecting function of the 2nd OAM detection devices
No normal operation, if the message management module determines the link detecting dysfunction of the 2nd OAM detection devices itself, then should
2nd OAM detection devices by by comprising or the message management module of connection generate the first OAM and manage message, and to first
OAM detection devices send the first OAM management messages.
Specifically, when the 2nd OAM detection devices detect that the link detecting function of itself occurs abnormal, this second
OAM detection devices will generate a kind of type of message of extension, such as in 802.1ag agreements(Of course not it is only limitted to the association
View), when the 2nd OAM detection devices generate the first OAM management messages, detection state message triple is carried in the message
TLV, reboot time message triple TLV, packet loss count message triple TLV, wherein:
Detection state TLV includes:TLV type (type)=9, length(Message length)=1 byte, value (value)=
1or2(1 sign detection state is normal, and 2 characterize detection abnormal states), it is specific as shown in table 1:
TLV type=9 |
Length=1 |
Value=1or2 |
Table 1
Reboot time TLV includes:TLV type (type)=10, length(Message length)=1 byte, value (value)=when
Between be worth(Second), it is specific as shown in table 2:
TLV type=10 |
Length=1 |
Value=time value |
Table 2
Packet loss, which counts TLV, to be included:TLV type (type)=11, length(Message length)=8 bytes, value (value)=lose
Bag counts, specific as shown in table 3:
TLV type=11 |
Length=8 |
Value=packet loss counts |
Table 3
After the management messages of the first OAM comprising above- mentioned information are generated, the 2nd OAM detection devices are by the first OAM
Management message is sent to the first OAM detection devices.
Now the first OAM that the 2nd OAM detection devices of reception are sent is managed message by the first OAM detection devices, and
Perform step 102.
Step 102, it is in abnormality for characterizing the 2nd OAM detection devices when the first OAM manages to carry in message
When, the first OAM detection devices close the link detecting function of itself.
For first OAM detection devices after the first OAM management messages are received, the first OAM detection devices will be to the
One OAM management messages are parsed, that is to say, that obtain the 2nd OAM detection device link detectings in the first OAM manages message
Whether function is in the information of abnormality, is characterized if being carried in the first OAM management messages at the 2nd OAM detection devices
During information under abnormality, the first OAM detection devices will directly close the link detecting function of itself.
Such as after the first OAM detection devices receive the first OAM management messages, the first OAM detection devices will
The value of the detection status information in the first OAM management messages is parsed first, when the value of the detection status information is 2, then
Illustrate that the detection function of the 2nd OAM detection devices is in abnormality, now the first OAM detection devices will close the chain of itself
Road detection function.
It should be noted that abnormality herein is in the 2nd OAM detection device or the 2nd OAM detection devices
OAM detection modules are being restarted in software function upgrading either the 2nd OAM detection devices of the 2nd OAM detection devices
The connecting interface switching of OAM detection modules etc., these are all due to the 2nd OAM detection devices running status of itself extremely
Adjustment, and be not that exception really occurs for link, therefore by the link detecting function of the OAM detection devices of temporary close the first,
The first OAM detection devices can be effectively avoided to send the fault alarm information of link failure.
Further, also carried in the first OAM manages message for characterizing link detecting function reboot time information
Time value, the first OAM detection devices will determine the time value, and the timing since when being connected to the first OAM management messages,
Before the time value, what the first OAM detection devices received that the 2nd OAM detection devices send carries for characterizing the 2nd OAM
When detection device recovers the 2nd OAM management messages of normal condition, then the first OAM detection devices restart the link inspection of itself immediately
Brake, and link is detected, if link detecting failure, then send warning information;
When reaching the time value, what the first OAM detection devices did not still receive that the 2nd OAM detection devices send takes
When managing message with the 2nd OAM for recovering normal condition for characterizing the 2nd OAM detection devices, then the first OAM detection devices
The link detecting function of itself will be restarted, and link is detected, if link detecting failure, then send warning information.
Specifically, the 2nd OAM detection devices to the first OAM detection devices when sending the first OAM management messages, meeting
A time value is added in the first OAM manages message(Such as 3 seconds), the time value is for the control of the first OAM detection devices
Link detecting function reboot time, if any instant in 3 seconds, which receives, characterizes the recovery of the 2nd OAM detection devices normally
When 2nd OAM manages message, the first OAM will restart the link detecting function of itself immediately, that is to say, that the first OAM detections are set
During for receiving the 2nd OAM management messages in 3 seconds, the first OAM detection devices will determine that the 2nd OAM detection devices temporarily go out
It is now abnormal, warning information can't be sent.
If but after 3 seconds, still do not receive the 2nd OAM management messages, now the first OAM detection devices are still
The link detecting function of itself will be restarted, and carry out normal link detecting, if during link detecting exception, sending alarm letter
Breath.
The time value of the reboot time information in message is managed by the first OAM can effectively avoid OAM detections from setting
Standby of short duration exception sends link failure warning information, and it is certain to also ensure that abnormal either OAM detection devices occur really for link
Generation can timely send warning information when abnormal, also ensure that the detection function of the first OAM detection devices will not one in addition
Directly it is closed, ensure that the normal operation of link detecting.
Further, packet loss count information is also carried in the first OAM manages message, is obtained in the first OAM detection devices
When getting the 2nd OAM management messages of the 2nd OAM detection devices transmission, the first OAM detection devices are by the packet loss count information
Carry and sent in the 3rd OAM manages message to the 2nd OAM detection devices, so that the 2nd OAM detection devices count the packet loss
Packet loss value in information is as the packet loss threshold value for judging Link State.
That is the first OAM detection devices temporarily save the detection parameters of the 2nd OAM detection devices, work as link detecting
When 2nd OAM detection devices of dysfunction recover normal link detecting function, the first OAM detection devices will preserve before
The detection parameters of the 2nd OAM detection devices return to the 2nd OAM detection devices, thereby may be ensured that the 2nd OAM detection devices
Detection parameters can be accurately adjusted after the recovery of link detecting dysfunction, and then enable the 2nd OAM detection devices
Accurately link is detected.
The first OAM detection devices for being used for Link State detection in embodiment one receive opposite end for Link State detection
The first OAM management messages that send of the 2nd OAM detection devices after, carried when the first OAM is managed in message for characterizing the
When two OAM detection devices are in the information of abnormality, the first OAM detection devices will close the link detecting function of itself, from
And the OAM detection devices for avoiding one end occur abnormal and cause opposite end OAM detection device mistakes send link-down alarm
And the problem of erroneous calculations link packet drop rate, and then improve accuracy of the OAM detection devices to link detecting.
Embodiment two:
Information exchange flow chart in the system formed below by the first OAM detection devices and the 2nd OAM equipment is to reality
The method applied in example one and embodiment two illustrates:
The information exchange mistake being illustrated in figure 2 in the system that the first OAM detection devices and the 2nd OAM detection devices are formed
Journey, specifically include following flow:
Step 201, the 2nd OAM detection devices detection function occurs abnormal;
Step 202, the 2nd OAM detection devices are sent to the first OAM detection devices carries detection status information, reboot time
The first OAM management messages of information, packet loss count information;
Step 203, the first OAM detection devices manage the detection status information in message according to the first OAM and close itself
Link detecting function, and preserve time value and packet loss count information in the reboot time information in the first OAM management messages
In packet loss count;
Step 204, before time value, the first OAM detection devices detect whether to receive the transmission of the 2nd OAM detection devices
The OAM detection device link detecting functional rehabilitation normal conditions of sign the 2nd the 2nd OAM management message, if it is not, then performing step
Rapid 205, if so, then performing step 206;
Step 205, arrival time value is determined whether, if reaching the time value, the first OAM detection devices restart itself
Link detecting function, and link is detected, if testing result characterizes link exception, send warning information;
Step 206, the first OAM detection devices restart the link detecting function of itself immediately, and generate and carry packet loss counting
The 3rd OAM management messages of information, and the 3rd OAM management messages are sent to the 2nd OAM detection devices;
Step 207, after the 2nd OAM detection devices receive the 3rd OAM management messages, the 3rd OAM management messages are obtained
In the packet loss that includes of packet loss count information count, and the packet loss is counted into the packet loss threshold value as judgement link packet drop rate.
, can be timely when the link detecting function of the 2nd OAM detection devices in the system occurs abnormal in embodiment two
Inform the first OAM detection devices so that the first OAM detection devices close the link detecting function of itself, now the first OAM is examined
Measurement equipment will not send the abnormal alarm of link, when re-launched between within value, the link detecting function of the 2nd OAM detection devices
When recovering normal condition, the 2nd OAM detection devices also will timely inform the first OAM detection devices, so that the first OAM is detected
Equipment restarts link detecting function immediately, this ensure that the first OAM detection devices will not be of short duration because of the 2nd OAM detection devices
Exception and send the warning information of mistake, the accuracy of the link detecting of system is improved, if after reboot time value
When 2nd OAM detection device detection functions do not recover normal yet, the first OAM detection devices will also restart link detecting function, and
When detecting link exception, send warning information, this ensure that link detecting system detect link it is really abnormal or
Person is that OAM detection devices can timely send warning information when really abnormal, this ensure that the normal function of link detecting,
And improve system accuracy.
Embodiment three:
The method in the embodiment of the present invention one is corresponded to, one kind is additionally provided in the embodiment of the present invention and is based on operation management maintainance
OAM link detecting equipment, it is illustrated in figure 3 a kind of link detecting based on operation management maintainance OAM in the embodiment of the present invention
Equipment, the equipment include:
Receiving module 301, the opposite end for receiving the OAM link detectings equipment are used for the opposite end of Link State detection
The first OAM management messages that OAM link detectings equipment is sent;
Processing module 302, it is connected with the receiving module 301, for carrying use when the first OAM is managed in message
When the sign opposite end OAM link detectings equipment is in the information of abnormality, the chain of the OAM link detectings equipment is closed
Road detection function.
As shown in figure 4, the equipment also includes:
Detection module 401, it is connected with receiving module 301, for determining that what is carried in the first OAM management message is used for
Characterize the time value of link detecting function reboot time information;Before the time value, the OAM detection devices receive institute
State the 2nd OAM carried for characterizing the opposite end OAM detection devices recovery normal condition that opposite end OAM detection devices are sent
When managing message, then the link detecting function of the OAM link detectings equipment is restarted immediately, and link is detected;To
During up to the time value, what the OAM detection devices did not received that the opposite end OAM detection devices send carries for characterizing
When the opposite end OAM detection devices recover the 2nd OAM management messages of normal condition, then the chain of the OAM detection devices is restarted
Road detection function, and link is detected.
Further, as shown in figure 5, the equipment also includes:
Message management module 501, it is connected with detection module 401, is sent for the opposite end OAM detection devices ought to be received
The 2nd OAM management messages when, the first OAM managed into the packet loss count information that carries in message carried and managed in the 3rd OAM
Manage in message and send to the opposite end OAM detection devices, so that the opposite end OAM detection devices are by the packet loss count information
Packet loss value as judge Link State packet loss threshold value.
Example IV:
The embodiment of the present invention additionally provides a kind of link detecting equipment based on oam OAM, is illustrated in figure 6
A kind of link detecting equipment based on oam OAM, the equipment include in inventive embodiments:
Message management module 601, for when the OAM link detectings equipment residing for the message management module 601
When link detecting function is in abnormality, generation is carried for characterizing the OAM link detectings device link detection function
The first OAM management messages of information in abnormality;
Sending module 602, be connected with the message management module 601, for by the first OAM management message send to
Opposite end is used for the opposite end OAM link detecting equipment of Link State detection, so that the opposite end OAM link detecting equipment is according to
The link detecting function of being used to characterize the OAM link detectings equipment of being carried in first OAM management messages is in abnormality
Information, close the link detecting function of the opposite end OAM link detecting equipment.
Wherein, also carried in the first OAM management messages that the sending module 602 is sent for characterizing link detecting function
The time value of reboot time information, so that the opposite end OAM link detecting equipment determines to carry in the first OAM management message
Be used for characterize the time value of link detecting function reboot time information;Before the time value, the opposite end OAM detections are set
It is standby receive that the OAM detection devices send carry recover normal condition for characterizing the OAM detection devices second
When OAM manages message, then the opposite end OAM link detectings equipment restarts link detecting function immediately, and link is detected;
When reaching the time value, what the opposite end OAM detection devices did not received that the OAM detection devices send, which carry, is used for
When characterizing the 2nd OAM management messages of the OAM detection devices recovery normal condition, then the OAM detection devices restart link
Detection function, and link is detected.
Further, message management module 601 is additionally operable to before not up to described time value, if detecting the OAM chains
During the link detecting functional rehabilitation normal condition of road detection device itself, generation is carried for characterizing the OAM link detectings
Device link detection function recovers the 2nd OAM management messages of the information of normal condition;
Sending module 602 be additionally operable to by the 2nd OAM that the message management module 601 generates management message send to
The opposite end OAM link detecting equipment, so that the opposite end OAM link detectings equipment is managed in message according to the 2nd OAM
What is carried is used to characterize the information of the link detecting functional rehabilitation normal condition of the OAM link detectings equipment, the opposite end OAM
The link detecting function of link detecting opening of device itself.
Further, the structural representation of another detection device in the embodiment of the present invention is illustrated in figure 7, the equipment is also wrapped
Include:
Receiving module 701, it is connected with sending module 602, the bag sent for receiving the opposite end OAM link detectings equipment
The 3rd OAM management messages of the count information containing packet loss, wherein, the packet loss count information is sent out for the OAM link detectings equipment
The information carried is delivered in the first OAM management messages of the opposite end OAM link detecting equipment;
Processing module 702, it is connected with the receiving module 701, for the packet loss value in the packet loss count information to be made
To judge the packet loss threshold value of Link State.
Embodiment five:
The method in the embodiment of the present invention one is corresponded to, a kind of operation management maintainance OAM is additionally provided in the embodiment of the present invention
Link detecting equipment, as shown in figure 8, the equipment includes:
Communication interface 801, the opposite end for receiving the OAM link detectings equipment are used for the opposite end of Link State detection
The first OAM management messages that OAM link detectings equipment is sent;
Processor 802, it is connected with the communication interface 801, for parsing the first OAM management message, when described the
Carried in one OAM management messages when be in the information of abnormality for characterizing the opposite end OAM link detectings equipment, closing
The link detecting function of the OAM link detectings equipment where the processor.
Further, the processor 802 is additionally operable to determine that what is carried in the first OAM management message is used to characterize link inspection
The time value of brake reboot time information, before the time value, the OAM detection devices receive the opposite end OAM
What detection device was sent carries the 2nd OAM management messages for recovering normal condition for characterizing the opposite end OAM detection devices
When, then the link detecting function of itself is restarted immediately, and link is detected;When reaching the time value, the OAM inspections
What measurement equipment did not received that the opposite end OAM detection devices send carry recovers for characterizing the 2nd OAM detection devices
During the 2nd OAM management messages of normal condition, then the link detecting function of itself is restarted, and link is detected.
Further, the processor 802 is additionally operable to when receive that the opposite end OAM link detecting equipment sends described the
When two OAM manage message, the first OAM is managed to the packet loss count information carried in message and carried in the 3rd OAM management reports
Send to the opposite end OAM link detecting equipment in text, believe so that the opposite end OAM link detectings equipment counts the packet loss
Packet loss value in breath is as the packet loss threshold value for judging Link State.
Embodiment six:
In addition, a kind of operation management maintainance OAM link detecting equipment is additionally provided in the embodiment of the present invention, as shown in figure 9,
The equipment includes:
Processor 901, during for being in abnormality in the link detecting function of detecting the OAM link detectings equipment,
Generate the first OAM that the link detecting function of carrying for characterizing the OA link detectings equipment is in the information of abnormality
Manage message;
Communication interface 902, it is connected with the processor 901, for the first OAM management messages to be sent to described
The opposite end of OAM link detecting equipment is used for the opposite end OAM link detecting equipment of Link State detection, so that OAM detections in opposite end are set
It is standby to close the link detecting function of itself.
Further, also carried in the first OAM management messages of the processor 901 generation for characterizing link detecting function
The time value of reboot time information, so that the opposite end OAM link detecting equipment determines to carry in the first OAM management message
Be used for characterize the time value of link detecting function reboot time information;Before the time value, the opposite end OAM detections are set
It is standby receive that the OAM detection devices send carry recover normal condition for characterizing the OAM detection devices second
When OAM manages message, then the opposite end OAM link detectings equipment restarts link detecting function immediately, and link is detected;
When reaching the time value, what the opposite end OAM detection devices did not received that the OAM detection devices send, which carry, is used for
When characterizing the 2nd OAM management messages of the OAM detection devices recovery normal condition, then the OAM detection devices restart link
Detection function, and link is detected.
Further, the processor 901 is additionally operable to before the time value is not reached, if the OAM where detecting itself
During the link detecting functional rehabilitation normal condition of link detecting equipment, generation is carried for characterizing the OAM links where itself
The 2nd OAM management messages of detection device link detecting functional rehabilitation normal state information, and the 2nd OAM is managed into message
Send to the opposite end OAM link detecting equipment, so that the opposite end OAM link detectings equipment manages according to the 2nd OAM
What is carried in message is used to characterize the information that the OAM link detectings device link detection function recovers normal condition, opens institute
State the link detecting function of opposite end OAM link detecting equipment.
Further, the processor 901 is additionally operable to receive counting comprising packet loss for the opposite end OAM link detectings equipment transmission
The 3rd OAM management messages of information, wherein, the packet loss count information is that the OAM link detectings equipment is sent to described right
The information that carries in the first OAM management messages of end OAM link detecting equipment, and by the packet loss value in the packet loss count information
As the packet loss threshold value for judging Link State.
Following technique effect or advantage at least be present in one or more embodiment provided by the invention:
The first OAM detection devices reception opposite end for being used for Link State detection in embodiments of the present invention is used for Link State
After the first OAM management messages that 2nd OAM detection devices of detection are sent, carried when the first OAM is managed in message for table
When levying the 2nd OAM detection devices and being in the information of abnormality, the first OAM detection devices will close the link detecting work(of itself
Can, so as to avoid that the OAM detection devices of one end occur abnormal and cause opposite end OAM detection device mistakes send link failure
The problem of alarm, and then improve accuracy of the OAM detection devices to link detecting.
Further, in embodiments of the present invention when the first OAM detection devices receive the first OAM management messages, it is determined that
The time value for being used to characterize link detecting function reboot time information carried in first OAM management messages, in the time
Before value, what the first OAM detection devices received that the 2nd OAM detection devices send carry for characterizing described the
When two OAM detection devices recover the 2nd OAM management messages of normal condition, then the link detecting function of itself is restarted immediately, and
Link is detected;When reaching the time value, the first OAM detection devices do not receive the 2nd OAM detections
What equipment was sent, when carrying the 2nd OAM management messages for characterizing the 2nd OAM detection devices recovery normal condition,
Then restart the link detecting function of itself, and link is detected.Effectively OAM can be avoided to examine by the reboot time value
Measurement equipment is of short duration abnormal and sends fault alarm information immediately, while also ensure that abnormal either OAM inspections occur really for link
Measurement equipment can timely send warning information when exception occurring really.
Further, the first OAM detection devices receive the 2nd OAM detection devices are sent in embodiments of the present invention
When two OAM manage message, the first OAM is managed the packet loss count information carried in message and carried by the first OAM detection devices
Sent in 3rd OAM management messages to the 2nd OAM detection devices, that is to say, that the storage that the first OAM detection devices can be interim the
Packet loss count information in two OAM detection devices, should after the link detecting functional rehabilitation of the 2nd OAM detection devices is normal
The packet loss count information is returned to the 2nd OAM detection devices by the first OAM detection devices, thereby may be ensured that the 2nd OAM is detected
Equipment it can be determined immediately that the packet loss threshold value of itself, and is lost after detection function fault recovery by the packet loss threshold value to link
Bag rate is accurately detected, and then the 2nd OAM detection devices are more accurately detected to link.
The present invention is with reference to method according to embodiments of the present invention, equipment(System)And the flow of computer program product
Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation
Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent
Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention
God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising including these changes and modification.