CN101771583A - Method and device for detecting elimination or no elimination of network failure - Google Patents

Method and device for detecting elimination or no elimination of network failure Download PDF

Info

Publication number
CN101771583A
CN101771583A CN200910244544A CN200910244544A CN101771583A CN 101771583 A CN101771583 A CN 101771583A CN 200910244544 A CN200910244544 A CN 200910244544A CN 200910244544 A CN200910244544 A CN 200910244544A CN 101771583 A CN101771583 A CN 101771583A
Authority
CN
China
Prior art keywords
timer
contract
project
mep
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN200910244544A
Other languages
Chinese (zh)
Other versions
CN101771583B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2009102445441A priority Critical patent/CN101771583B/en
Publication of CN101771583A publication Critical patent/CN101771583A/en
Application granted granted Critical
Publication of CN101771583B publication Critical patent/CN101771583B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and a device for detecting elimination or no elimination of network failure. When local MEP detects that CCM messages have faults, the duration N of a software timer is set according to the contract issuing period T1 of the CCM messages and the contract issuing period T2 of the local MEP; in the duration of the timer, the local MEP judges whether the current value of the timer is zero or not once passing one contract issuing period; if the value of the timer is not zero, the value of the timer subtracts one; when the value of the timer becomes zero from N, the network fault is eliminated. The method and the device of the invention realize the timer of the millisecond grade by a software timer which does not use CPU, thus greatly saving hardware timer resource in the network, simplifying the distribution and maintenance difficulty of the timer resource, and owning better application value and superiority.

Description

A kind ofly detect method and the device whether network failure is eliminated
Technical field
The present invention relates to the data communication fault detection technique, refer in particular to failure of connectivity and safeguard and a kind ofly in (CFM, Connectivity Fault Management) agreement detect method and the device whether network failure is eliminated.
Background technology
Actual needs according to the carrier network operation, usually Network Management work is divided into three major types: be respectively operation (Operation), manage (Administration), safeguard (Maintenance), be called for short OAM, mainly daily network and business thereof are analyzed, predicted and work such as planning, and to regular job activities such as network and professional test and fault managements.Along with the popularization of Carrier-class Ethernet technology, carrier class OAM technology is more and more important, and industry has also proposed multiple OAM agreement, and the CFM agreement is wherein to use more a kind of agreement.
In the prior art, according to CFM agreement configuring maintenance association node (MEP in network, Maintenanceassociation End Point), send connectivity checks message (CCM periodically by MEP, ContinuityCheck Message), receive the CCM message simultaneously, network failure such as lose to detect cross-join, mistake CCM and far-end.Each Local MEP needs to dispose two timers at least, is respectively applied for to detect cross-join and wrong CCM fault; Receive the CCM message of far-end MEP transmission at Local MEP after, if it is wrong to detect the CCM message, then determine the type of network failure according to the type of error of CCM message, Local MEP will start the timer of this fault correspondence, and be set to N=3.5*interval according to the timing of CFM agreement timer, wherein, interval is the cycle of the CCM message that receives of Local MEP, at N in the time, if this fault is not eliminated, then Local MEP whenever receives the CCM message of a mistake, the timing of timer will be changed to N again; If in the time, Local MEP is not received wrong CCM message at N, such fault elimination is described then; As a same reason, whether far-end MEP of every configuration also needs to distribute a timer to be used to detect far-end and loses fault and eliminate.
At present, can adopt the software timer of realizing by CPU, or adopt hardware timer; When adopting the software timer of CPU realization, because under the CFM agreement, the sense cycle of network failure mostly is millisecond (ms) level, for example 3.3ms, 10ms level, it is the ms level that the timer of its use also needs, and the software timer cycle that CPU realizes is longer, can not reach the demand of ms level; When adopting hardware timer because the resource-constrained of hardware timer, will limiting network in the quantity of supported MEP.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of method and device whether network failure is eliminated that detect, and can solve the problem of hardware timer resource-constrained when satisfying Millisecond timing demand.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides a kind of method whether network failure is eliminated that detects, this method comprises:
When local maintenance association node (MEP) detects connectivity checks message (CCM) when wrong,, the duration N of software timer is set according to the period T 2 of giving out a contract for a project of give out a contract for a project period T 1 and the Local MEP of CCM message;
In timer duration, Local MEP is every gives out a contract for a project the cycle through one, judges whether the currency of a timer is zero, when being worth for non-zero, the value of timer is subtracted 1, is kept to zero up to the value of timer from N.
In the such scheme, this method also comprises: in timer duration, Local MEP detects the CCM message when wrong periodically, resets length of timer.
In the such scheme, the value of timer subtracted 1 after, this method further comprises: whether the currency of judging timer is zero, if be zero, then produce and interrupts alarm, and continue to judge at next all after date of giving out a contract for a project; If non-vanishing, then continue to judge at next all after date of giving out a contract for a project.
In the such scheme, described length of timer N is the give out a contract for a project multiple in cycle of Local MEP, and N gets positive integer.
In the such scheme, described length of timer N is 3.5*T1/T2.
The present invention also provides a kind of device whether network failure is eliminated that detects, and this device comprises: message receives detection module, software timer, message transmission enquiry module; Wherein,
Message receives detection module: be used for Local MEP and receive the CCM message that far-end MEP sends, and received CCM message is detected;
Software timer is used for the period T 2 of giving out a contract for a project according to the give out a contract for a project period T 1 and the Local MEP of the CCM message that receives, and timing length N is set, and the value of timer is counted;
Message sends enquiry module, is used for Local MEP and sends the CCM message to far-end MEP periodically, and give out a contract for a project the cycle through one in that Local MEP is every, judges whether the currency of a timer is zero, and when the value non-zero of timer, and the value of timer is subtracted 1.
In the such scheme, described software timer comprises: timer parameter is provided with module, timer counting module; Wherein,
Timer parameter is provided with module, is used for the period T 2 of giving out a contract for a project according to the give out a contract for a project period T 1 and the Local MEP of the CCM message that receives, and length of timer N is set, and set duration N is write in the software timer of Local MEP correspondence;
The timer counting module is used in timer duration, and Local MEP is every gives out a contract for a project the cycle through one, and timer is subtracted 1 counting, when the value of timer is zero, stops counting.
In the such scheme, described timer counting module also is used at Local MEP whenever through all after date of giving out a contract for a project, and sends the value that enquiry module provides current timer to message.
In the such scheme, described length of timer N is the give out a contract for a project multiple in cycle of Local MEP, and N gets positive integer.
In the such scheme, described length of timer N is 3.5*T1/T2.
Method and device that whether detection network failure provided by the present invention is eliminated, when Local MEP detects the CCM message when wrong, according to the period T 2 of giving out a contract for a project of give out a contract for a project period T 1 and the Local MEP of CCM message, starting duration is the software timer of N=3.5*T1/T2; In timer duration, Local MEP is every gives out a contract for a project the cycle through one, judges whether the currency of a timer is zero, if the value non-zero of timer, then the value with timer subtracts 1; When the value of timer is kept to zero from N, show that then network failure eliminates; After software timer started, in timer duration, Local MEP detected the CCM message when wrong, resets length of timer.
Adopt method of the present invention and device, realize other timer of Millisecond, saved the hardware timer resource in the network greatly, simplified the distribution and the maintenance difficulties of timer resource by the software timer that does not use CPU; In the time need carrying out refinement to the type of network failure, method of the present invention can also realize a plurality of software timers, is worth and superiority thereby embody better application.
Description of drawings
Fig. 1 detects and timer method to set up flow chart for CCM message of the present invention;
Fig. 2 detects the method flow diagram whether network failure is eliminated for the present invention;
Fig. 3 detects the structure drawing of device whether network failure is eliminated for the present invention.
Embodiment
Basic thought of the present invention is: when Local MEP detects the CCM message when wrong, according to the period T 2 of giving out a contract for a project of give out a contract for a project period T 1 and the Local MEP of CCM message, the duration N of software timer is set; In the duration that timer is set, Local MEP is every gives out a contract for a project the cycle through one, judges whether the currency of a timer is zero, if the value non-zero of timer then subtracts 1 in the value with timer; When the value of timer when N is kept to zero, show that network failure eliminates.
Below in conjunction with specific embodiment, be described in detail realizing method of the present invention and device.
The method whether detection network failure provided by the invention is eliminated, as depicted in figs. 1 and 2, this method comprises:
Step 101: Local MEP detects whether the CCM message is wrong, and message is wrong if Local MEP detects CCM, and then execution in step 102; Message is errorless if Local MEP detects CCM, and then repeated execution of steps 101;
In this step, Local MEP receives the CCM message that far-end MEP sends, and the CCM message is detected; Comprise in the described CCM message and give out a contract for a project the cycle (CCM.interval) and other relevant informations of MEP.
The process that described Local MEP detects the CCM message that receives, be specially: Local MEP compares information in the CCM message that is received and local pre-configured information, if the two information inconsistency, illustrate that then the CCM message is wrong, network breaks down, Local MEP is determined the type of pairing network failure according to the type of CCM message mistake.Above-mentioned fault detection method and fault type be defined as prior art, do not do detailed description at this.
Step 102: timer parameter is set, and starts the timer of Local MEP correspondence;
In this step, give out a contract for a project the cycle (CCM.interval) that comprises in the CCM message is made as T1, give out a contract for a project the cycle (MEP.interval) of Local MEP is made as T2; Wherein, the cycle of giving out a contract for a project of Local MEP is the cycle of Local MEP to far-end MEP transmission CCM message, and this cycle is set by Local MEP.
According to the CFM agreement, N=3.5*T1/T2 is set, here, N is the give out a contract for a project multiple in cycle of Local MEP, and N gets positive integer, and N is write in the software timer of Local MEP correspondence as the initial value of timer, and starting this timer, timer value is that non-zero is considered as starting timer by zero saltus step.
Step 201: Local MEP has judged whether to pass through the time in the cycle of giving out a contract for a project, if then execution in step 202; Otherwise, return step 201;
In this step, in the flow process of giving out a contract for a project, Local MEP can send the CCM message to far-end MEP periodically, and this cycle of giving out a contract for a project is set by Local MEP; Because Local MEP was fixed to the cycle that far-end MEP sends the CCM message, send a CCM message so Local MEP is every to far-end MEP, just be equivalent to time through the cycle of giving out a contract for a project.
Step 202~203: whether the currency of Local MEP inquiry timer is zero, if the value non-zero of timer, after Local MEP subtracts 1 with the value of timer, execution in step 204; If the value of timer is zero, then return step 201;
In this step, CCM message of the every transmission of Local MEP, is just checked the value of the timer of a Local MEP correspondence at promptly every time through the cycle of giving out a contract for a project; If the value non-zero of timer subtracts 1 with the value of timer.
Step 204: Local MEP checks whether the value of timer is zero; If the value of timer is non-vanishing, then return step 201; If the value of timer is zero, then execution in step 205.
Step 205: timer expiry produces and interrupts alarm, and returns step 201.
In step 101~102 of Fig. 1, wrong if Local MEP detects the CCM message, then the value with timer is changed to N=3.5*T1/T2 again, makes timer begin reclocking from N; In step 201~205 of Fig. 2, if the timer of Local MEP correspondence starts, promptly timer has nonzero value, then through all after date of giving out a contract for a project, the value of timer is subtracted 1; Wherein, Fig. 1 and flow process shown in Figure 2 be two fully independently, concurrent flow process, there is no the order of wait successively between the two, the two unique common resource has been to use same software timer.
Hence one can see that, and after software timer started, on the one hand, in Fig. 1 flow process, if the fault of detecting, timer constantly was reset to N; On the other hand, in Fig. 2 flow process, the value of timer can continue to subtract 1, is kept to zero up to the value of timer, shows that network failure eliminates.
In sum, the present invention has realized other timer of Millisecond by the mode of software timer, has saved the hardware timer resource in the network greatly, has simplified the distribution and the maintenance difficulties of timer resource; And, in the time need expanding, when promptly the type of network failure being carried out refinement, a plurality of software timers can be set to the content of network measuring, more embody superiority of the present invention.
For realizing said method, the invention provides a kind of device whether network failure is eliminated that detects, as shown in Figure 3, this device comprises: message receives detection module, software timer and message and sends enquiry module; Wherein,
Message receives detection module: be used for Local MEP and receive the CCM message that far-end MEP sends, and received CCM message is detected;
Software timer is used for the period T 2 of giving out a contract for a project according to the give out a contract for a project period T 1 and the Local MEP of CCM message, timing length N is set, and the value of timer is counted;
Message sends enquiry module, is used for Local MEP and sends the CCM message to far-end MEP periodically, and give out a contract for a project the cycle through one in that Local MEP is every, judges whether the currency of a timer is zero, and when the value non-zero of timer, and the value of timer is subtracted 1.
Described software timer comprises: timer parameter is provided with module, timer counting module; Wherein,
Timer parameter is provided with module, is used for the period T 2 of giving out a contract for a project according to the give out a contract for a project period T 1 and the Local MEP of CCM message, length of timer N is set, and set duration N is write in the software timer of Local MEP correspondence;
The timer counting module is used in timer duration, and Local MEP is every gives out a contract for a project the cycle through one, and timer is subtracted 1 counting, when the value of timer is zero, stops counting.
In the such scheme, described timer counting module also is used at Local MEP whenever through all after date of giving out a contract for a project, and sends the value that enquiry module provides current timer to message.
The initial value N of described timer is the give out a contract for a project multiple in cycle of Local MEP, and N gets positive integer.
Described length of timer N is 3.5*T1/T2.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. one kind is detected the method whether network failure is eliminated, and it is characterized in that, this method comprises:
When local maintenance association node (MEP) detects connectivity checks message (CCM) when wrong,, the duration N of software timer is set according to the period T 2 of giving out a contract for a project of give out a contract for a project period T 1 and the Local MEP of CCM message;
In timer duration, Local MEP is every gives out a contract for a project the cycle through one, judges whether the currency of a timer is zero, when being worth for non-zero, the value of timer is subtracted 1, is kept to zero up to the value of timer from N.
2. method according to claim 1 is characterized in that, this method also comprises: in timer duration, Local MEP detects the CCM message when wrong periodically, resets length of timer.
3. method according to claim 1 is characterized in that, the value of timer is subtracted 1 after, this method further comprises: whether the currency of judging timer is zero, if be zero, then produce and interrupts alarm, and continue to judge at next all after date of giving out a contract for a project; If non-vanishing, then continue to judge at next all after date of giving out a contract for a project.
4. according to each described method of claim 1 to 3, it is characterized in that described length of timer N is the give out a contract for a project multiple in cycle of Local MEP, N gets positive integer.
5. method according to claim 4 is characterized in that, described length of timer N is 3.5*T1/T2.
6. one kind is detected the device whether network failure is eliminated, and it is characterized in that, this device comprises: message receives detection module, software timer, message transmission enquiry module; Wherein,
Message receives detection module: be used for Local MEP and receive the CCM message that far-end MEP sends, and received CCM message is detected;
Software timer is used for the period T 2 of giving out a contract for a project according to the give out a contract for a project period T 1 and the Local MEP of the CCM message that receives, and timing length N is set, and the value of timer is counted;
Message sends enquiry module, is used for Local MEP and sends the CCM message to far-end MEP periodically, and give out a contract for a project the cycle through one in that Local MEP is every, judges whether the currency of a timer is zero, and when the value non-zero of timer, and the value of timer is subtracted 1.
7. device according to claim 6 is characterized in that, described software timer comprises: timer parameter is provided with module, timer counting module; Wherein,
Timer parameter is provided with module, is used for the period T 2 of giving out a contract for a project according to the give out a contract for a project period T 1 and the Local MEP of the CCM message that receives, and length of timer N is set, and set duration N is write in the software timer of Local MEP correspondence;
The timer counting module is used in timer duration, and Local MEP is every gives out a contract for a project the cycle through one, and timer is subtracted 1 counting, when the value of timer is zero, stops counting.
8. device according to claim 7 is characterized in that, described timer counting module also is used at Local MEP whenever through all after date of giving out a contract for a project, and sends the value that enquiry module provides current timer to message.
9. according to claim 6 or 7 described devices, it is characterized in that described length of timer N is the give out a contract for a project multiple in cycle of Local MEP, N gets positive integer.
10. device according to claim 9 is characterized in that, described length of timer N is 3.5*T1/T2.
CN2009102445441A 2009-12-30 2009-12-30 Method and device for detecting elimination or no elimination of network failure Active CN101771583B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009102445441A CN101771583B (en) 2009-12-30 2009-12-30 Method and device for detecting elimination or no elimination of network failure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009102445441A CN101771583B (en) 2009-12-30 2009-12-30 Method and device for detecting elimination or no elimination of network failure

Publications (2)

Publication Number Publication Date
CN101771583A true CN101771583A (en) 2010-07-07
CN101771583B CN101771583B (en) 2012-11-28

Family

ID=42504199

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009102445441A Active CN101771583B (en) 2009-12-30 2009-12-30 Method and device for detecting elimination or no elimination of network failure

Country Status (1)

Country Link
CN (1) CN101771583B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143005A (en) * 2011-04-14 2011-08-03 中兴通讯股份有限公司 Method and device for determining fault elimination based on operation and maintenance (OAM)
CN102546404A (en) * 2011-12-27 2012-07-04 盛科网络(苏州)有限公司 Method and system for optimizing MEP (message exchange pattern) packet sending time in OAM (operation administration and maintenance) chip
CN102970171A (en) * 2012-12-06 2013-03-13 盛科网络(苏州)有限公司 Method for realizing multiple operations, administration and maintenance (OAM) time precision through chip level
CN103023671A (en) * 2011-09-20 2013-04-03 盛科网络(苏州)有限公司 Chip-level method and device for achieving various Intervals by OAM (operations, administration and maintenance)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100550785C (en) * 2006-08-30 2009-10-14 华为技术有限公司 A kind of method of ethernet device link failure detection and system thereof
CN100563180C (en) * 2007-05-30 2009-11-25 杭州华三通信技术有限公司 Link failure detection method and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143005A (en) * 2011-04-14 2011-08-03 中兴通讯股份有限公司 Method and device for determining fault elimination based on operation and maintenance (OAM)
WO2012139477A1 (en) * 2011-04-14 2012-10-18 中兴通讯股份有限公司 Method and device for determining failure elimination based on oam protocol
CN102143005B (en) * 2011-04-14 2015-01-28 中兴通讯股份有限公司 Method and device for determining fault elimination based on operation and maintenance (OAM)
CN103023671A (en) * 2011-09-20 2013-04-03 盛科网络(苏州)有限公司 Chip-level method and device for achieving various Intervals by OAM (operations, administration and maintenance)
CN103023671B (en) * 2011-09-20 2015-04-22 盛科网络(苏州)有限公司 Chip-level method and device for achieving various Intervals by OAM (operations, administration and maintenance)
CN102546404A (en) * 2011-12-27 2012-07-04 盛科网络(苏州)有限公司 Method and system for optimizing MEP (message exchange pattern) packet sending time in OAM (operation administration and maintenance) chip
CN102970171A (en) * 2012-12-06 2013-03-13 盛科网络(苏州)有限公司 Method for realizing multiple operations, administration and maintenance (OAM) time precision through chip level

Also Published As

Publication number Publication date
CN101771583B (en) 2012-11-28

Similar Documents

Publication Publication Date Title
CN100471128C (en) Method and device for realizing equipment state polling
CN101521603B (en) Method and system for quickly detecting connectivity of link
CN101771583B (en) Method and device for detecting elimination or no elimination of network failure
CN105359469A (en) Hierarchical rule-based routing system
CN109194547A (en) Message transmitting method, device, local device and readable storage medium storing program for executing
CN101378333B (en) System, apparatus and method for transmitting and receiving check information message continuously
CN104202334B (en) A kind of method and device for establishing network connection
CN102104531B (en) Message processing device, method and system
CN107360239A (en) A kind of client connection status detection method and system
CN104272658A (en) Ensure upstream channel quality measurement stability in an upstream channel bonding system using t4 timeout multiplier
CN103346944A (en) Multi-channel looped network node device with multi-point collaboration detection and detection method
CN102055624A (en) Method and system for detecting connectivity fault
CN109040307A (en) A kind of self-cleaning method and device of communication connection
US20110267961A1 (en) Connectivity fault management for ethernet tree (e-tree) type services
CN106464356B (en) A kind of detection method of rogue's optical network unit, apparatus and system
CN102215130A (en) CFD (connectivity fault detection) protocol configuration method and device thereof
CN105871560B (en) The starting method and device of router
CN104883701A (en) Communication method between frame and discs in mobile forward network
CN110113222A (en) A kind of link bandwidth utilization rate acquisition methods and device and terminal
JP2010041604A (en) Network management method
EP2988476B1 (en) Method and apparatus for processing operation on endpoint peripheral
CN109274546A (en) A kind of scheduling method for timer and device
CN105681187A (en) VRRP (Virtual Router Redundancy Protocol) backup set management method and related device
CN109586978B (en) Bus topology network ad hoc network method
US20070171896A1 (en) Management system and management method for managing a communication apparatus

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