CN101252528A - Method and apparatus for detecting malfunction - Google Patents

Method and apparatus for detecting malfunction Download PDF

Info

Publication number
CN101252528A
CN101252528A CNA2008100899799A CN200810089979A CN101252528A CN 101252528 A CN101252528 A CN 101252528A CN A2008100899799 A CNA2008100899799 A CN A2008100899799A CN 200810089979 A CN200810089979 A CN 200810089979A CN 101252528 A CN101252528 A CN 101252528A
Authority
CN
China
Prior art keywords
equipment
message
cycle
detection messages
detection
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
CNA2008100899799A
Other languages
Chinese (zh)
Other versions
CN101252528B (en
Inventor
石勇
张炜
吴丽娜
王朋
汪祖亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2008100899799A priority Critical patent/CN101252528B/en
Publication of CN101252528A publication Critical patent/CN101252528A/en
Application granted granted Critical
Publication of CN101252528B publication Critical patent/CN101252528B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a fault detection method and a device, including that a detection message is transmitted to a second device according to the preset message transmit cycle; the source address and the destination address of the detection message are the device address of the device which transmits the detection message; the next hop address is the address of the second device; when no detection message returns within the preset detection cycle, the communication between the device which transmits the detection message and the second device fails. In the fault detection method and the device, both of the BFD session sides are not needed to support the BFD bilaterally; the BFD session can be created on one side for the BFD fault detection, realizing the fault detection between the device which supports the BFD and the device which can not support the BFD.

Description

A kind of fault detection method and equipment
Technical field
The present invention relates to communication technical field, relate in particular to a kind of fault detection method and equipment.
Background technology
Along with development of Communication Technique, how communication failure between the adjacent system is carried out fast detecting, when breaking down, set up replaceable channel or be switched to other links, become a major issue that needs to be resolved hurrily.At present, a lot of hardware or software can't provide this function, can't detect by realizing route such as Ethernet, and forwarding engine or interface can't be realized detecting end to end etc.In order to address the above problem, a kind of fast detection mechanism BFD (Bidirectional Forwarding Detection, two-way forwarding detects) has been proposed in the prior art.The service that BFD provides comprises, detects network reachability, simultaneously for application layer provides reachability status information, and UP or DOWN (operate as normal or break down) information for example.After the BFD session is set up, both sides periodically send the BFD message to opposite equip., simultaneously also on the link that has enabled BFD, periodically detect the arrival situation of the BFD message of opposite equip., if in certain intervals, do not receive BFD message, think that then network breaks down from opposite equip..
BFD can carry out fault detect on the passage between the system, these passages comprise direct physical link, virtual circuit, tunnel, MPLS (Multiprotocol Label Switch, multiprotocol label switching) LSP (Label Switched Path, label switched path), the multi-hop routing channel, and non-direct passage.BFD can detect in real time to any media, any protocol layer, comprises interface, data link and expands to the detection of forwarding engine, especially can provide light load, short fault detect of duration to passage between the adjacent forwarding engine.
The BFD detecting pattern comprises that asynchronous mode, query pattern etc. are several.Wherein, under asynchronous mode, periodically send the BFD message between the system mutually,, determine that then session is Down if the BFD message that opposite equip. is sent is not received by certain system in detection time.Under query pattern, supposing that each system all has is used for confirming that it is connected to the independent solution of other system, in case after a BFD session is set up, system stops to send the BFD message, unless certain equipment needs explicitly checking connectivity, under the internuncial situation of needs explicit authentication, system sends the BFD message of a short series, just do not announce that session is Down if receive the message that returns in detection time, if receive the back message using of opposite equip., agreement is kept silent once more.
In realizing process of the present invention, the inventor finds to exist in the prior art following defective:
In actual use, have the plurality of devices of different manufacturers in network environment, the not interconnection of equipment of the same race also may occur for same producer, the both sides of link detecting, may occur having only a side to support the BFD session, and the opposing party does not support the BFD session; Perhaps for the dual-homed situation of CE (Customer Edge, customer edge), PE (Provider Edge, the provider edge) node is not very sensitive to the link change of CE side, need not support BFD, and CE is relatively more responsive to the link change of PE side, needs to support BFD.
Yet, in the prior art, need set up peering session at the passage two ends, after setting up, session realizes fault detect to the control message of opposite equip. transmission BFD separately with the speed after consulting.Therefore, require both sides' equipment all to support the BFD session, under the situation of having only a side to support BFD to talk with, can't carry out the BFD fault detect.
Summary of the invention
The embodiment of the invention provides a kind of fault detection method and equipment, has realized having only a side to support to carry out one-sided fault detect under the situation of BFD session at local terminal and opposite end.
The embodiment of the invention provides a kind of fault detection method, comprising:
Send the cycle to second equipment transmission detection messages according to the message that sets in advance, the source address in the described detection messages, destination address are for sending the device address of detection messages, and next hop address is described second device address;
In default sense cycle, do not have described detection messages to return, then break down with communicating by letter of described second equipment.
The embodiment of the invention provides a kind of fault test set, comprising:
Packet sending unit is used for sending the cycle to second equipment transmission detection messages according to the message that sets in advance, and the source address in the described detection messages, destination address are for sending the device address of message, and next hop address is described second device address;
The message receiving element is used to receive the detection messages that second equipment returns;
Fault detection unit is used for not having described detection messages to return in default sense cycle, then determine with the communicating by letter of second equipment in break down.
In the embodiments of the invention, provide a kind of mechanism of one-sided detection, do not need BFD session both sides all to support BFD, can only set up the BFD session, carry out the BFD fault detect, realized the equipment of support BFD and do not supported fault detect between the equipment of BFD a side.
Description of drawings
Fig. 1 is a kind of fault detection method flow chart in the embodiment of the invention;
Fig. 2 is the form schematic diagram of detection messages in the embodiment of the invention;
Fig. 3 is a kind of fault test set structure chart in the embodiment of the invention.
Embodiment
The embodiment of the invention provides a kind of fault detection method, is applied to comprise in the system of first equipment (fault detect initiating equipment) and second equipment (equipment to be detected), as shown in Figure 1, comprising:
101, it is that minimum message sends at interval that the detection messages transmission cycle is set, and sense cycle is set multiplies each other at interval for detecting the reception of multiple and minimum message.Wherein said minimum message sends and can equal described minimum message reception at interval at interval, also difference can be set according to actual needs.
Wherein the form of detection messages comprises as shown in Figure 2: the Vers:BFD protocol version; Diag: diagnostic sampling word, indicate the reason of the local BFD last session Down of system; The local state of Sta:BFD; P: if mark should sign, the expression parameter changes or transmitting system when connecting, and request the other side confirms immediately and responds.Otherwise, do not ask the other side to confirm and respond; F: must be in the back message using of response P flag set with the F flag set; C: forwarding/control separation flags, in case set, the variation of control plane does not influence BFD and detects, as: control plane is ISIS, and when ISIS was restarted, BFD can continue to monitor Link State; A: the authentication sign, on behalf of session, set need verify; D: on behalf of the transmit leg expectation, query requests, set adopt query pattern that link is monitored; R: reserved place (this position is M in the BASE06 version, and expression is multi-hop BFD); Detect Mult: detect multiple, be used for the detection side and calculate the detection time-out time; Length: message length; My Discriminator:BFD session connection local session identifier; Your Discriminator:BFD session connection far-end Session ID; Desired Min TX Interval: the local minimum BFD message of supporting sends at interval; Required Min RXInterval: the local minimum BFD that supports receives at interval; Required Min Echo RX Interval: the local minimum Echo message of supporting receives (if the Echo function is not supported in this locality, then being provided with 0) at interval; Auth Type: auth type; Auth Length: verify data length; Authentication Data: verify data district.
Transmission cycle, receiving cycle and the sense cycle of above-mentioned detection messages can realize by revising the BFD negotiations process, specifically see following formula (1), (2) and (3), promptly enable the one-sided session of BFD after, by the BFD parameter according to following rule calculating, for example,
Message send the cycle=local terminal min-rx-interval (1)
Actual message receiving cycle=local terminal min-rx-interval (2)
Sense cycle=local terminal detects multiple DM *Local terminal min-rx-interval (3)
102, the first equipment send the cycle to second equipment transmission detection messages according to the message that sets in advance, and the source address in the described detection messages, destination address are described first device address, and next hop address is described second device address.
For example, revise BFD IP detection messages, source address, destination address are first device address, and next jumping is second device address, and first equipment is jumped the link layer address that obtains the outgoing interface and second equipment by next, encapsulation that can be correct, transmission detection messages; Second equipment receives detection messages, transmits this message according to normal forwarding process, because destination address is first device address, so message can be forwarded back first equipment, thereby reaches the purpose of one-sided session.
103, described first equipment determines do not have described detection messages to return in default sense cycle, determines that then first equipment breaks down with communicating by letter of second equipment, for example second equipment breaks down or first equipment and second equipment between link break down.
Owing to may have a plurality of sessions between the equipment, therefore can also increase in can the detection messages in 102 and carry Session ID, be used for judging in a plurality of sessions of first equipment and the communication of second equipment with the corresponding session of described Session ID whether breaking down, promptly second equipment (destination device) the Session ID field in detection messages is filled in first equipment (source device) Session ID, first equipment (source device) Session ID field in detection messages is filled in second equipment (destination device) Session ID, when first equipment (source device) receives behind second equipment (destination device) returned packet, find that the destination device Session ID in the message is the Session ID of this equipment, then this session is not broken down.
The embodiment of the invention also provides a kind of fault test set, as shown in Figure 3, comprise: packet sending unit 10, be used for sending the cycle to second equipment transmission detection messages according to the message that sets in advance, source address in the described detection messages, destination address are for sending the device address of message, and next hop address is described second device address; Message receiving element 20 is used to receive the detection messages that second equipment returns; Fault detection unit 30 is used for not having described detection messages to return in default sense cycle, then determine with the communicating by letter of second equipment in break down.
Fault test set also comprises: the transmission message cycle is provided with the unit, is used to be provided with message and sends the cycle; The reception message cycle is provided with the unit, is used to be provided with the message receiving cycle; Sense cycle is provided with the unit, is used to be provided with the detection multiple, and the value of using described detection multiple and message receiving cycle to multiply each other obtains sense cycle.Session identification is revised the unit, be used for revising Session ID in described detection messages, the second equipment session identifier field in detection messages is filled in the first equipment session identifier, and the first equipment session identifier field in detection messages is filled in the second equipment session identifier.
Fault detection unit also is used for: judge described Session ID correspondence whether to break down with the session of communicating by letter second equipment.
In the embodiments of the invention, provide a kind of mechanism of one-sided detection, do not need BFD session both sides all to support BFD, can only set up the BFD session, carry out the BFD link failure detection, realized support BFD equipment and do not supported fault detect between the BFD equipment a side.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode under a lot of situation.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium, comprise that some instructions are with so that a computer equipment (can be a personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
More than disclosed only be several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.

Claims (10)

1. a fault detection method is characterized in that, comprising:
Send the cycle to second equipment transmission detection messages according to the message that sets in advance, the source address in the described detection messages, destination address are for sending the device address of detection messages, and next hop address is described second device address;
In default sense cycle, do not have described detection messages to return, then break down with communicating by letter of described second equipment.
2. fault detection method according to claim 1 is characterized in that, the message that described basis sets in advance sends the cycle and also comprised before second equipment sends detection messages:
It is that minimum message sends at interval that the message transmission cycle is set.
3. fault detection method according to claim 1 is characterized in that, the message that described basis sets in advance sends the cycle and also comprised before second equipment sends detection messages:
Sense cycle is set receives the value that multiplies each other at interval for detecting multiple and minimum message.
4. as fault detection method as described in the claim 2, it is characterized in that described minimum message sends and equals minimum message at interval and receive at interval.
5. fault detection method according to claim 1 is characterized in that, also carries Session ID in the described detection messages.
6. as fault detection method as described in the claim 5, it is characterized in that, also carry Session ID in the described detection messages and specifically comprise:
The second equipment session identifier field in detection messages is filled in the first equipment session identifier, and the first equipment session identifier field in detection messages is filled in the second equipment session identifier.
7. a fault test set is characterized in that, comprising:
Packet sending unit is used for sending the cycle to second equipment transmission detection messages according to the message that sets in advance, and the source address in the described detection messages, destination address are for sending the device address of message, and next hop address is described second device address;
The message receiving element is used to receive the detection messages that second equipment returns;
Fault detection unit is used for not having described detection messages to return in default sense cycle, then determine with the communicating by letter of second equipment in break down.
8. as fault test set as described in the claim 7, it is characterized in that, also comprise:
The transmission message cycle is provided with the unit, is used to be provided with message and sends the cycle;
The reception message cycle is provided with the unit, is used to be provided with the message receiving cycle;
Sense cycle is provided with the unit, is used to be provided with the detection multiple, and the value of using described detection multiple and message receiving cycle to multiply each other obtains sense cycle.
9. as fault test set as described in the claim 7, it is characterized in that, also comprise:
Session identification is revised the unit, be used for revising Session ID in described detection messages, the second equipment session identifier field in detection messages is filled in the first equipment session identifier, and the first equipment session identifier field in detection messages is filled in the second equipment session identifier.
10. as fault test set as described in the claim 9, it is characterized in that fault detection unit also is used for: judge described Session ID correspondence whether to break down with the session of communicating by letter second equipment.
CN2008100899799A 2008-04-14 2008-04-14 Method and apparatus for detecting malfunction Expired - Fee Related CN101252528B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100899799A CN101252528B (en) 2008-04-14 2008-04-14 Method and apparatus for detecting malfunction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100899799A CN101252528B (en) 2008-04-14 2008-04-14 Method and apparatus for detecting malfunction

Publications (2)

Publication Number Publication Date
CN101252528A true CN101252528A (en) 2008-08-27
CN101252528B CN101252528B (en) 2011-04-13

Family

ID=39955721

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100899799A Expired - Fee Related CN101252528B (en) 2008-04-14 2008-04-14 Method and apparatus for detecting malfunction

Country Status (1)

Country Link
CN (1) CN101252528B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101984695A (en) * 2010-11-15 2011-03-09 中兴通讯股份有限公司 Link detection method for port R6 in worldwide interoperability for microwave access (WIMAX) system, base station and system
CN104079446A (en) * 2013-03-29 2014-10-01 中兴通讯股份有限公司 Method and system for automatically negotiating connectivity detection time of MPLS network
CN104104644A (en) * 2013-04-01 2014-10-15 中兴通讯股份有限公司 Bidirectional forwarding detection system and detection time configuration method of bidirectional forwarding detection
CN104283711A (en) * 2014-09-29 2015-01-14 中国联合网络通信集团有限公司 Fault detection method based on BFD, nodes and system
CN104579757A (en) * 2014-12-19 2015-04-29 北京华为数字技术有限公司 Method and device for detecting fault
CN105450519A (en) * 2015-11-11 2016-03-30 中国联合网络通信集团有限公司 Message sending method and core switch
CN110138631A (en) * 2019-03-25 2019-08-16 视联动力信息技术股份有限公司 The method for detecting connectivity and terminal device in a kind of view networking tunnel
US10855583B2 (en) 2018-07-31 2020-12-01 Hewlett Packard Enterprise Development Lp Supporting BFD packets in a virtualized switch environment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100359864C (en) * 2006-02-23 2008-01-02 烽火通信科技股份有限公司 Method and apparatus of CPU fault detection for signal processing unit
CN101087211B (en) * 2007-07-20 2010-08-11 华为技术有限公司 A method and system for realizing echo function in BFD mechanism and its function entity

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101984695A (en) * 2010-11-15 2011-03-09 中兴通讯股份有限公司 Link detection method for port R6 in worldwide interoperability for microwave access (WIMAX) system, base station and system
CN104079446A (en) * 2013-03-29 2014-10-01 中兴通讯股份有限公司 Method and system for automatically negotiating connectivity detection time of MPLS network
CN104104644A (en) * 2013-04-01 2014-10-15 中兴通讯股份有限公司 Bidirectional forwarding detection system and detection time configuration method of bidirectional forwarding detection
CN104283711A (en) * 2014-09-29 2015-01-14 中国联合网络通信集团有限公司 Fault detection method based on BFD, nodes and system
CN104283711B (en) * 2014-09-29 2018-01-26 中国联合网络通信集团有限公司 Fault detection method, node and system based on two-way converting detection BFD
CN104579757A (en) * 2014-12-19 2015-04-29 北京华为数字技术有限公司 Method and device for detecting fault
CN105450519A (en) * 2015-11-11 2016-03-30 中国联合网络通信集团有限公司 Message sending method and core switch
CN105450519B (en) * 2015-11-11 2018-05-01 中国联合网络通信集团有限公司 The sending method and core switch of message
US10855583B2 (en) 2018-07-31 2020-12-01 Hewlett Packard Enterprise Development Lp Supporting BFD packets in a virtualized switch environment
CN110138631A (en) * 2019-03-25 2019-08-16 视联动力信息技术股份有限公司 The method for detecting connectivity and terminal device in a kind of view networking tunnel

Also Published As

Publication number Publication date
CN101252528B (en) 2011-04-13

Similar Documents

Publication Publication Date Title
CN101252528B (en) Method and apparatus for detecting malfunction
RU2424625C2 (en) Scheme for ensuring fault tolerance in communication networks
US20080117827A1 (en) Method and system for verifying connectivity of logical link
CN100450039C (en) Fast convergence method and device of the end-to-end service
CN104168193B (en) A kind of method and routing device of Virtual Router Redundancy Protocol fault detect
JP4884184B2 (en) Communication device and program for link aggregation
CN101610535B (en) Method, system and device for ensuring BFD conversation stability on the scene of multilink direct connection
US20070237085A1 (en) System and methodology for fast link failover based on remote upstream failures
CN102780635B (en) The method of pretection switch, TOR switch and system is realized based on TRILL network
CN101094121B (en) Method, system and device for detecting Ethernet links among not direct connected devices
CN101247321A (en) Method, device and system for routing diagnosis in network based on diameter protocol
CN101447900A (en) Method, system and device for building bidirectional forwarding detection
CN106559280A (en) Bidirectional forwarding detection (BFD) method and device
CN101631069A (en) Method, system and equipment for pseudo wire parameter negotiation
EP2254289B1 (en) Method, device, and system for establishing label switching path in fast rerouting switching
CN104601394A (en) Business chain connectivity detection method, device and system
US20100165997A1 (en) Path switching method, communication system, communication device, and program
JP2013026829A (en) Transmission system and control method of transmission system
US20130266008A1 (en) Packet forwarding method and network device
CN101771604A (en) Routing detection method, system and intermediate routing device
CA2715472A1 (en) Path protection by sharing continuity check messages
CN101692654B (en) Method, system and equipment for HUB-Spoken networking
CN102918807B (en) Method and routing equipment for BFD session establishment
CN102224709A (en) Method and apparatus of monitoring on ip bearing net performance
CN102882779A (en) VRRP (Virtual Router Redundancy Protocol) advertisement link protection method and system

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110413

Termination date: 20180414