Nothing Special   »   [go: up one dir, main page]

CN102843274B - The method of a kind of multilink fault detection and device - Google Patents

The method of a kind of multilink fault detection and device Download PDF

Info

Publication number
CN102843274B
CN102843274B CN201210318545.8A CN201210318545A CN102843274B CN 102843274 B CN102843274 B CN 102843274B CN 201210318545 A CN201210318545 A CN 201210318545A CN 102843274 B CN102843274 B CN 102843274B
Authority
CN
China
Prior art keywords
equipment
detection
detection messages
opposite end
links
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
CN201210318545.8A
Other languages
Chinese (zh)
Other versions
CN102843274A (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.)
New H3C Information Technologies Co Ltd
Original Assignee
Hangzhou H3C 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201210318545.8A priority Critical patent/CN102843274B/en
Publication of CN102843274A publication Critical patent/CN102843274A/en
Application granted granted Critical
Publication of CN102843274B publication Critical patent/CN102843274B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Maintenance And Management Of Digital Transmission (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A kind of method and apparatus of multilink fault detection, when there is multiple communication links in transmission equipment and opposite end reception equipment room, transmission equipment sends detection messages according to default period 1 timing, and copies to described detection messages to receive with opposite end and send on all links of equipment communication simultaneously;Opposite end receives equipment according to adding up the detection messages quantity received in each of the links default second round, and when terminating described second round, the detection messages quantity that every communication link receives is collected;Whether opposite end receives the detection messages quantity in each of the links that equipment judges to add up in the detection cycle more than the threshold value Ccmp set, if it is, judge that this Link State is normal, otherwise, then judges this communication link fails。By the present invention, the multilink fault testing mechanism of LA Management Room is simple, and overhead is little。

Description

The method of a kind of multilink fault detection and device
Technical field
The present invention relates to data communication technology field, particularly relate to fault detection method when a kind of LA Management Room exists multiple communication links and device。
Background technology
Communication network device application process exists such a scene: communicate between network equipment A and network equipment B, there is multiple communication links between the two。And each of the links is all critically important, needs when a failure occurs to detect in time and identify。For this reason, it may be necessary on all communication links additional a kind of testing mechanism, to detect the fault on communication link in time。
In order to solve the problems referred to above, prior art generally adopts the scheme of a kind of maintenance agreement message status。The program is implemented as follows:
With reference to Fig. 1, with No. 1 link, network equipment A initiates detection for example。First network equipment A sends a detection messages P, gets started timing after being sent completely。In a predetermined time T, A waits the back message PA of detection messages P。In time T, if A receives back message PA, then it is assumed that this detects successfully。Network equipment A subsequently sends next detection messages, and re-starts timing。In time T, if A can not receive back message PA, it is believed that this detects unsuccessfully, reporting links communication failure。
But, adopt such scheme, after message is sent by the network equipment, it is necessary to record sends the information of message, and waits the back message of this message。It addition, the detection process in each of the links is done things in his own way, n bar link has needed n detection example, and overhead is very big, can cause that the performance of whole network system reduces。
Summary of the invention
In view of this, the present invention provides the method and apparatus that a kind of multilink fault detects。Pass through the present invention so that present system expense is little, and implement very simple。
For realizing the object of the invention, implementation of the present invention is specific as follows:
The method of a kind of multilink fault detection, described method is applied to transmission equipment and opposite end receives equipment room and there is the situation of multiple communication links, and wherein said method comprises the steps:
Step 1, transmission equipment send detection messages according to default period 1 timing, and copy to described detection messages to receive with opposite end and send on all links of equipment communication simultaneously;
Step 2, opposite end receive equipment according to adding up the detection messages quantity received in each of the links default second round, and when terminating described second round, the detection messages quantity that every communication link receives are collected;
The detection messages quantity judged on step 3, opposite end reception equipment in the detection cycle in each of the links of statistics, whether more than the threshold value Ccmp set, if it is, judge that this Link State is normal, otherwise, then judges this communication link fails。
Further, described second round is the integral multiple x of period 1。
Further, before carrying out step 3, described opposite end receives equipment and also needs to judge detecting whether effectively in second round。
Further, opposite end receives equipment and finds out detection messages maximum count Cmax from the detection messages quantity of all links received, and judge that whether the detection messages maximum count Cmax that receives is: Cmin≤Cmax≤x, if it is, the detection in this cycle is effective, enter step 3, otherwise, detection in this cycle is invalid, returns step 2, and wherein minimum detection packet counting Cmin presets as required。
Further, described minimum detection packet counting Cmin < dynamically adjusts in advance within the scope of x at (1/2) x≤Cmin, and described threshold value Ccmp is set as: Ccmp < Cmin。
Present invention simultaneously provides the device of a kind of multilink fault detection, wherein said device is applied to transmission equipment and opposite end receives equipment room and there is the situation of multiple communication links, described device is specially described transmission equipment or opposite end receives equipment, and described device includes such as lower module:
Configuration module, for when described device is as the equipment of transmission, configuration sends the period 1 t of detection messages, and when described device receives equipment as opposite end, and configuration receives the T and judge the threshold value Ccmp of communication link whether fault second round of detection messages;
Transceiver module, for when described device is as the equipment of transmission, detection messages is sent according to default period 1 timing, and copy to described detection messages to receive with opposite end all links of equipment communication send simultaneously, when described device receives equipment as opposite end, send, for receiving transmission equipment, the detection messages of coming;
Statistical module, for when described device receives equipment as opposite end, according to the detection messages quantity added up default second round on each communication link that transceiver module receives, and when terminating described second round, each communication link detection messages quantity result of statistics is collected and is sent to judge module;
Judge module, more than the threshold value Ccmp set, whether the detection messages quantity result received on the every communication link sent according to statistical module judges whether communication link exists fault, if it is, judge that this Link State is normal, otherwise, then this communication link fails is judged。
Further, described judge module is judging in second round, whether communication link is deposited before the failure, in addition it is also necessary to judge to detect whether in this second round effectively。
Further, configuration further is also used for judging whether effective minimum detection message amount Cmin of described detection cycle by described configuration module。
Further, there is integral multiple relation between T and described period 1 t in described second round, i.e. T=xt, wherein x is positive integer;Cmin < sets within the scope of x, and threshold value Ccmp < Cmin, to guarantee accurately to judge communication link fails as required at (1/2x)≤Cmin。
Further, judge module judges that whether the detection messages maximum count Cmax of statistical module counts is: Cmin≤Cmax≤x, then judge that the detection in this cycle is effective, otherwise, detection in this cycle is invalid, and notice statistical module re-starts detection messages quantity statistics。
Compared with existing technical scheme, the present invention is when there is multiple communication links in LA Management Room, it is provided that a kind of simple testing mechanism, realizes the fault detect on all links simultaneously。Therefore, present system expense is little, contributes to the performance boost of whole network system。
Accompanying drawing explanation
Fig. 1 is the fault detect schematic diagram that there is multiple communication links between conventional network equipment。
Fig. 2 is the method flow schematic diagram of multilink fault of the present invention detection。
Fig. 3 is the apparatus structure schematic diagram of multilink fault of the present invention detection。
Detailed description of the invention
In order to realize the object of the invention, the core concept that the present invention adopts is: when transmission equipment and opposite end reception equipment room exist multiple communication links, transmission equipment sends detection messages according to default period 1 timing, and copies to described detection messages to receive with opposite end and send on all links of equipment communication simultaneously;Opposite end receives equipment according to adding up the detection messages quantity received in each of the links default second round, and when terminating described second round, the detection messages quantity that every communication link receives is collected;Whether opposite end receives the detection messages quantity in each of the links that equipment judges to add up in the detection cycle more than the threshold value Ccmp set, if it is, judge that this Link State is normal, otherwise, then judges this communication link fails。By the present invention, the multilink fault testing mechanism of LA Management Room is simple, and overhead is little。
For making technical solution of the present invention clearly and understanding, described in detail below in conjunction with the specific embodiment of the invention。As in figure 2 it is shown, be the method flow diagram of a kind of multilink fault provided by the invention detection。Wherein said method is applied to transmission equipment and opposite end receives equipment room and there is the situation of multiple communication links, with reference to Fig. 1, for the network equipment A communication direction to network equipment B, the invention mainly comprises the following steps:
Step 1, transmission equipment send detection messages according to default period 1 timing, and copy to described detection messages to receive with opposite end and send on all links of equipment communication simultaneously。
In the application scenarios shown in Fig. 1, network equipment A sends detection messages by cycle t timing, and described detection messages is copied to and send on all communication links between network equipment A and network equipment B simultaneously。Wherein detection messages, it is possible to adopt the conventional heartbeat message of prior art or hello packet etc., be not repeated herein。
What detection messages sent on all communication links between network equipment A and network equipment B simultaneously is implemented as:
If each of the links has a sending module, then first detection messages is copied into many parts by software or specialized hardware, then transfers to each communication link sending module each to send。
If multiple communication links shares a sending module, then sending module adopts the mode of circulation to send on every communication link。
Step 2, opposite end receive equipment according to adding up the detection messages quantity received in each of the links default second round, and when terminating described second round, the detection messages quantity that every communication link receives are collected。
It is preferred that in embodiments of the present invention, described second round is the integral multiple x of period 1。Specifically, under application scenarios as shown in Figure 1, network equipment B adds up, by cycle T (T=xt, namely T is the integral multiple of t), the detection messages quantity received in each of the links。Counting is designated as C1, C2, C3 respectively ... Cn。
The detection messages quantity judged on step 3, opposite end reception equipment in the detection cycle in each of the links of statistics, whether more than the threshold value Ccmp set, if it is, judge that this link is that state is normal, otherwise, then judges this communication link fails。
Specifically, under application scenarios as shown in Figure 1, in order to enable effectively to judge whether certain communication link exists fault, need to set on network equipment B further a threshold value Ccmp, wherein said threshold value should be less than x, preferably, in embodiments of the present invention, set Ccmp < (1/2) x, within the detection cycle, if the counting of certain communication link is more than Ccmp, then judge that this communication link state is normal, otherwise, then judge that this link exists fault, and by corresponding fault alarm reporting to webmaster personnel。
In order to realize the object of the invention, further, carrying out before this step judges communication link fails, described opposite end receives equipment and also needs to judge detecting whether effectively in described second round。The process of implementing is: opposite end receives equipment and finds out detection messages maximum count Cmax from the detection messages quantity of all links received, and judge that whether the detection messages maximum count Cmax that receives is: Cmin≤Cmax≤x, if, then this detection cycle is effective, enter step 4, otherwise, abandon this detection cycle, returning step 2, wherein said Cmin presets as required。
Under application scenarios as shown in Figure 1, when cycle T terminates, network equipment B finds out a maximum count Cmax from C1-Cn, as Cmin≤Cmax≤x, then it is assumed that the detection in this cycle is effective。Otherwise, the detection in this cycle is invalid, returns step 2 and directly starts the next detection cycle。Wherein Cmin can dynamically regulate as required in advance, it is preferred that, in embodiments of the present invention, minimum detection packet counting Cmin is set as (1/2) x≤Cmin < x。
Further, described threshold value Ccmp should be set as: Ccmp < Cmin。
Refer to Fig. 3 and present invention simultaneously provides the device of a kind of multilink fault detection, wherein said device is applied to transmission equipment and opposite end receives equipment room and there is the situation of multiple communication links, specifically, in the present invention, described device can be transmission equipment or opposite end reception equipment, and described device includes such as lower module:
Configuration module, for when described device is as the equipment of transmission, configuration sends the period 1 t of detection messages, and when described device receives equipment as opposite end, configuration receives the T and judge whether effectively minimum detection message amount Cmin of described detection cycle and judge the threshold value Ccmp of communication link whether fault second round of detection messages。
It is preferred that in embodiments of the present invention, there is integral multiple relation between T and described period 1 t in described second round, i.e. T=xt, wherein x is positive integer。It addition, though Cmin can dynamically regulate as required in embodiments of the present invention, but preferably, Cmin should be set as (1/2) x≤Cmin < x, further, set and compare threshold value Ccmp < Cmin, to guarantee to judge whether communication link exists fault exactly。
Transceiver module, for when described device is as the equipment of transmission, sends detection messages according to default period 1 timing, and copies to described detection messages to receive with opposite end and send on all links of equipment communication simultaneously;When described device receives equipment as opposite end, send, for receiving transmission equipment, the detection messages of coming。
Statistical module, when described device receives equipment as opposite end, according to the detection messages quantity added up default second round on each communication link that transceiver module receives, and when terminating described second round, each communication link detection messages quantity result of statistics is collected and is sent to judge module。
Further, described statistical module, after terminating second round, also will find out the maximum detection messages quantity received on communication link in the detection messages quantity received from every communication link of described statistics。
Judge module, according to more than the threshold value Ccmp set, whether the detection messages quantity result received on every communication link that statistical module sends judges whether communication link exists fault, if, then judge that this Link State is normal, otherwise, then judge that this communication link exists fault, and by corresponding fault alarm reporting to webmaster personnel。
Further, described judge module is judging in this detection cycle, whether communication link is deposited before the failure, also need to judge detect whether effectively in second round, when judge module judges that the detection messages maximum count Cmax of statistical module counts is: Cmin≤Cmax≤x, then judge that the detection in this cycle is effective, otherwise, the detection in this cycle is invalid, and notice statistical module re-starts detection messages quantity statistics。
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all within the spirit and principles in the present invention, any amendment of making, equivalent replacement, improvement etc., should be included within the scope of protection of the invention。

Claims (10)

1. a method for multilink fault detection, described method is applied to transmission equipment and opposite end receives equipment room and there is the situation of multiple communication links, it is characterised in that described method comprises the steps:
Step 1, transmission equipment send detection messages according to default period 1 timing, and copy to described detection messages to receive with opposite end and send on all links of equipment communication simultaneously;Wherein, described described detection messages being copied to receives the step that simultaneously sends on all links of equipment communication with opposite end and includes:
When each of the links has a sending module, detection messages is copied into many parts, transfers to each communication link sending module each to send;
When multiple communication links shares a sending module, described sending module adopts the mode of circulation to send on every communication link;
Step 2, opposite end receive equipment according to adding up the detection messages quantity received in each of the links default second round, and when terminating described second round, the detection messages quantity that every communication link receives are collected;
Whether step 3, opposite end receive the detection messages quantity in each of the links that equipment judges to add up in the detection cycle more than the threshold value Ccmp set, if it is, judge that this Link State is normal, otherwise, then judge this communication link fails。
2. the method for claim 1, it is characterised in that described second round is the integral multiple x of period 1。
3. the method for claim 1, it is characterised in that before carrying out step 3, described opposite end receives equipment and also needs to judge detecting whether effectively in second round。
4. method as claimed in claim 2, it is characterized in that, opposite end receives equipment and finds out detection messages maximum count Cmax from the detection messages that all communication links receive, and judges that whether the detection messages maximum count Cmax received is: Cmin≤Cmax≤x, if, then the detection in this cycle is effective, entering step 3, otherwise, the detection in this cycle is invalid, returning step 2, wherein minimum detection packet counting Cmin presets as required。
5. method as claimed in claim 4, it is characterised in that described minimum detection packet counting Cmin existsDynamically adjust in advance in scope, and described threshold value Ccmp is set as: Ccmp < Cmin。
6. the device of a multilink fault detection, wherein said device is applied to transmission equipment and opposite end receives equipment room and there is the situation of multiple communication links, described device is specially described transmission equipment or opposite end receives equipment, it is characterised in that described device includes such as lower module:
Configuration module, for when described device is as the equipment of transmission, configuration sends the period 1 t of detection messages, and when described device receives equipment as opposite end, and configuration receives the T and judge the threshold value Ccmp of communication link whether fault second round of detection messages;
Transceiver module, for when described device is as the equipment of transmission, detection messages is sent according to default period 1 timing, and copy to described detection messages to receive with opposite end all links of equipment communication send simultaneously, when described device receives equipment as opposite end, send, for receiving transmission equipment, the detection messages of coming;Wherein, described described detection messages being copied to receives the step that simultaneously sends on all links of equipment communication with opposite end and includes:
When each of the links has a sending module, detection messages is copied into many parts, transfers to each communication link sending module each to send;
When multiple communication links shares a sending module, described sending module adopts the mode of circulation to send on every communication link;
Statistical module, for when described device receives equipment as opposite end, according to the detection messages quantity added up default second round on each communication link that transceiver module receives, and when terminating described second round, each communication link detection messages quantity result of statistics is collected and is sent to judge module;
Judge module, whether the detection messages quantity result received on the every communication link sent according to statistical module is more than the threshold value Ccmp set, and then judges whether communication link exists fault, if, then judge that this Link State is normal, otherwise, then judge this communication link fails。
7. device as claimed in claim 6, it is characterised in that whether described judge module communication link in judgement T second round is deposited before the failure, in addition it is also necessary to judge to detect whether in T second round effectively。
8. device as claimed in claim 6, it is characterised in that configuration further also is used for judging that described second round detects whether effective minimum detection message amount Cmin in T by described configuration module。
9. device as claimed in claim 7 or 8, it is characterised in that described second round exists integral multiple relation between T and described period 1 t, i.e. T=xt, wherein x is positive integer;Cmin existsSet as required in scope, and threshold value Ccmp < Cmin, to guarantee accurately to judge communication link fails。
10. device as claimed in claim 9, it is characterized in that, judge module judges that whether the detection messages maximum count Cmax of statistical module counts is: Cmin≤Cmax≤x, if, then judge that the detection in this cycle is effective, otherwise, the detection in this cycle is invalid, and notice statistical module re-starts detection messages quantity statistics。
CN201210318545.8A 2012-08-31 2012-08-31 The method of a kind of multilink fault detection and device Active CN102843274B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210318545.8A CN102843274B (en) 2012-08-31 2012-08-31 The method of a kind of multilink fault detection and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210318545.8A CN102843274B (en) 2012-08-31 2012-08-31 The method of a kind of multilink fault detection and device

Publications (2)

Publication Number Publication Date
CN102843274A CN102843274A (en) 2012-12-26
CN102843274B true CN102843274B (en) 2016-06-22

Family

ID=47370350

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210318545.8A Active CN102843274B (en) 2012-08-31 2012-08-31 The method of a kind of multilink fault detection and device

Country Status (1)

Country Link
CN (1) CN102843274B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179536B (en) * 2013-03-22 2016-02-10 成都卫士通信息产业股份有限公司 A kind of GPRS breaks the method automatically redialed
CN104113449A (en) * 2014-07-15 2014-10-22 华为技术有限公司 Link detection method and apparatus
CN107426030B (en) * 2017-08-09 2020-11-06 杭州迪普科技股份有限公司 Link fault reminding method and device
CN111800337B (en) * 2020-06-10 2022-06-21 锐捷网络股份有限公司 Data center-based method and device, electronic equipment and storage medium
CN114978939B (en) * 2022-06-10 2023-05-30 中煤科工重庆设计研究院(集团)有限公司 Method for detecting network link quality
CN115460125B (en) * 2022-09-05 2024-07-12 苏州盛科通信股份有限公司 Method and device for solving island problem in Multi-Link network

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136788A (en) * 2006-08-30 2008-03-05 华为技术有限公司 Fault location method and system for MPLS multicast
CN101640629A (en) * 2008-07-29 2010-02-03 华为技术有限公司 Method for monitoring link packet loss and bidirectional forwarding detector
WO2010045844A1 (en) * 2008-10-25 2010-04-29 华为技术有限公司 Method and device for measuring network performance parameters
CN102404170A (en) * 2011-11-18 2012-04-04 福建星网锐捷网络有限公司 Message loss detection method, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136788A (en) * 2006-08-30 2008-03-05 华为技术有限公司 Fault location method and system for MPLS multicast
CN101640629A (en) * 2008-07-29 2010-02-03 华为技术有限公司 Method for monitoring link packet loss and bidirectional forwarding detector
WO2010045844A1 (en) * 2008-10-25 2010-04-29 华为技术有限公司 Method and device for measuring network performance parameters
CN102404170A (en) * 2011-11-18 2012-04-04 福建星网锐捷网络有限公司 Message loss detection method, device and system

Also Published As

Publication number Publication date
CN102843274A (en) 2012-12-26

Similar Documents

Publication Publication Date Title
CN102843274B (en) The method of a kind of multilink fault detection and device
CN102404170B (en) Detection method, device and system of message loss
US20040179546A1 (en) System and method for interfacing with a management system
CN102014019B (en) Aggregated link switching method and device
CN103957155B (en) Message transmitting method, device and interconnecting interface
CN102780593B (en) Based on the method for BFD protocol detection link, device and network processing unit
CN104471915B (en) Tolerance state and step adjustment in link aggregation
CN102293029B (en) Method and apparatus for recovering memory of user-plane buffer
CN101489294A (en) Method, router and network appliance for regulating power
US9332092B2 (en) Method and system for processing data record packet
CN111654435B (en) Link protection fault processing system and method based on LACP
CN101051957B (en) Dynamically regulating method and device for link state and bundled link state
CN101796774A (en) Method and system for checking automatically connectivity status of an IP link on IP network
CN110601919A (en) Loopback detection method and system
WO2014044190A1 (en) Method and device for adjusting ethernet data transmission rate
CN101582815B (en) Protocol security testing method and device
CN107566294B (en) Network storm suppression method applicable to IEC62439 standard
CN102932820A (en) Link processing method, device and system
CN102045320A (en) Aging method and device for security policy
CN103684719A (en) Network dual-redundancy hot swap method independent of platforms
CN104348676B (en) A kind of chain circuit detecting method and equipment based on operation management maintainance OAM
CN112751740B (en) ERPS subring resource release method, system, server and storage medium
US20120315893A1 (en) Intelligent network management of subscriber-related events
CN115529277A (en) Method and switch for processing network congestion
CN101902337B (en) Method for managing network intrusion event

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: NEW H3C TECHNOLOGIES Co.,Ltd.

Address before: 310053 Hangzhou science and Technology Development Zone, Zhejiang high tech park, No. six and road, No. 310

Patentee before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230531

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.