CN102035695A - Bidirectional forwarding detection method and device - Google Patents

Bidirectional forwarding detection method and device Download PDF

Info

Publication number
CN102035695A
CN102035695A CN2010105973080A CN201010597308A CN102035695A CN 102035695 A CN102035695 A CN 102035695A CN 2010105973080 A CN2010105973080 A CN 2010105973080A CN 201010597308 A CN201010597308 A CN 201010597308A CN 102035695 A CN102035695 A CN 102035695A
Authority
CN
China
Prior art keywords
link
described link
sends
notification message
linkdown notification
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.)
Pending
Application number
CN2010105973080A
Other languages
Chinese (zh)
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 CN2010105973080A priority Critical patent/CN102035695A/en
Publication of CN102035695A publication Critical patent/CN102035695A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a bidirectional forwarding detection method and a bidirectional forwarding detection device. The method comprises the following steps of: when one end of a link detects the link fault at the receiving direction, sending a link fault notification massage to the other end of the link; and receiving the link fault notification massage and giving an alarm by the other end of the link. Through the technical scheme provided by the invention, the problem that one end of the link cannot detect the link fault at once under the condition of single link and alarming can be delayed is solved, so that the effect of avoiding alarming delay is achieved.

Description

Bidirectional forwarding detection (BFD) method and device
Technical field
The present invention relates to the communications field, in particular to a kind of bidirectional forwarding detection (BFD) method and device.
Background technology
Two-way forwarding detects (Bidirectional Forwarding Detection, abbreviating BFD as) technology is a kind of detection messages that mutually sends and receive between two communication equipment of equal value unit, whether receive that by judging message that the opposite end sends determines the whether detection technique of fault of detected link in setting-up time, the fast detecting that generally is used for crucial link failure, two-way forward-path to the LA Management Room any type carries out fault detect, comprises direct-connected physical link, virtual circuit, tunnel, multi-hop routed path and one way link etc.
Under the situation for detected link single-pass, promptly, the transmitting-receiving both direction of link has a direction to disconnect, also will be understood that it is link failure, because if single-pass, business datum can't proper communication, if an end of detected link can not receive bag, detected link failure, and this moment if the link single-pass, but normally packet receiving of opposite end, in this case, can cause the opposite end can not detect link single-pass situation, finally cause at first detecting an end of link failure, can alarm fast, and the other end can not be alarmed at once, alarm can postpone, also can be inconsistent on the Business Processing thereby cause, thus an end that needs in other words to respond link failure fast can not respond alarm traffic affecting handling property fast.
Summary of the invention
Main purpose of the present invention is to provide a kind of bidirectional forwarding detection (BFD) method and device, one of to address the above problem at least.
According to an aspect of the present invention, provide a kind of bidirectional forwarding detection (BFD) method, having comprised: an end of link sends linkdown notification message to the other end of link when detecting the link failure that the debit makes progress; The other end of link receives this linkdown notification message, and initiates alarm.
According to another aspect of the present invention, provide a kind of two-way forwarding checkout gear, having comprised: sending module, be used for when detecting the link failure that the link debit makes progress, send linkdown notification message to the other end of link; Receiver module is used to receive the linkdown notification message that the other end of link sends, and initiates alarm.
By the present invention, an end that adopts link is after detecting the link failure that the debit makes progress, send the scheme of linkdown notification message to the other end of link, solved under the situation of link single-pass, deposit in the link at one end and can not detect link failure at once, and the problem that causes alarm to postpone, and then reached the effect of avoiding alarming delay.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart according to the bidirectional forwarding detection (BFD) method of the embodiment of the invention;
Fig. 2 is that the bidirectional forwarding detection link single-pass of the example according to the present invention shows schematic diagram;
Fig. 3 is the flow chart of the bidirectional forwarding detection (BFD) method of example according to the present invention;
Fig. 4 is the structured flowchart according to the two-way forwarding checkout gear of the embodiment of the invention;
Fig. 5 is the structured flowchart of two-way according to the preferred embodiment of the invention forwarding checkout gear.
Embodiment
Hereinafter will describe the present invention with reference to the accompanying drawings and in conjunction with the embodiments in detail.Need to prove that under the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.
Fig. 1 is the flow chart according to the bidirectional forwarding detection (BFD) method of the embodiment of the invention.As shown in Figure 1, the bidirectional forwarding detection (BFD) method according to the embodiment of the invention comprises:
Step S102, an end of link send linkdown notification message to the other end of link when detecting the link failure that the debit makes progress.
Step S104, the other end of link receive described linkdown notification message, and initiate alarm.
Use said method, can be under link single-pass situation, a feasible end that at first detects link failure is notified the opposite end link failure as early as possible, avoids remote alarm to postpone, and the assurance quick perception link failure in opposite end is alarmed immediately.
Preferably, among the step S102, one end of link may further include following processing at the detection link failure that the debit makes progress: when an end of link does not receive the session detection messages that the other end of link sends in predetermined sense cycle, judge that link failure upwards appears in the debit of link.
All do not receive the session detection messages that the other end sends when an end of link in predetermined (can be provided with as the case may be) sense cycle always, just can assert that this moment, upwards there was link failure in the link debit.In specific implementation process, the means that detect link failure include but not limited to said method, can expand according to actual needs, and are low excessively as transmission rate, can think when packet loss is too high and link failure occurred.
Preferably, among the step S102, an end of link may further include following processing to the other end transmission linkdown notification message of link: an end of link is carried at linkdown notification message and detects the other end that sends to link in the control message.
Use and detect control message transmission fault notification message, it is the most convenient to implement, the change minimum that need make, and practicality is very strong.
Preferably, an end of above-mentioned link is carried at the other end that sends to link in the detection control message with linkdown notification message and may further include following processing:
The value of controlling the diagnosis field (Diag field) in the message that will detect one end of link is revised as the predetermined value corresponding to linkdown notification message.
One end of link reorganizes and detects the control message, and is sent to the other end of link.
The Diag field is a value of statistical indicant in the detection control message, be used to indicate the reason that the last session status of local BFD system changes, therefore preferential this field of using represents to have occurred link failure among the present invention, for example, can preestablish: when an end of link finds that the value of Diag field in the detection control message is X, illustrate that the debit of opposite end is to link failure having occurred.
Preferably, the Diag field can be any value in 9~31.
Detect in the controlling packet structure in existing two-way forwarding, the scope of this field value is 0-31, and wherein 0-8 has had definition, so X can be a self-defining value among the 9-31, i.e. 9<=X<=31.
Below in conjunction with example and Fig. 2, Fig. 3 above-mentioned preferential embodiment is elaborated.
As shown in Figure 2, be one section IP link between device A and the equipment B among the figure, wherein RX and the TX debit that represents link respectively to originating party to, need on the link between the AB, dispose two-way converting inspection session, concrete steps are as follows:
Step S302, the two-way detection session on configuration link AB on device A and the equipment B respectively, and normally set up session;
Step S304, as shown in Figure 2, the debit of device A causes the link single-pass to link failure takes place, device A can not receive the session detection messages that B equipment is sent in sense cycle, detect alarm, the Diag field of revising the detection messages of local terminal transmission immediately is X (span of X is 9<=X<=31, does not do concrete qualification in this example), reorganizes message;
Step S306, the detection messages that device A will be revised after the reorganization immediately sends to B equipment, and B equipment is received the relevant detection message and found that the Diag field value of message is X, thinks that then device A has detected link failure, local terminal also should be alarmed immediately, and then the notice upper-layer service is handled.
Need to prove that above specific embodiment supposes that detected link is the IP link, for other link, as tunnel links (comprising dynamically static tunnel links), pseudo-wired link (comprising dynamically and static pseudo-wired link) etc. all is suitable for.
Fig. 4 is the structured flowchart according to the two-way forwarding checkout gear of the embodiment of the invention.As shown in Figure 4, the two-way forwarding checkout gear according to the embodiment of the invention comprises:
Sending module 42 is used for when detecting the link failure that the link debit makes progress, and sends linkdown notification message to the other end of link.
Receiver module 44 is used to receive the linkdown notification message that the other end of link sends, and initiates alarm.
In specific implementation process, each end of link all needs to be provided with an above-mentioned two-way forwarding checkout gear, and sending module 42 is used for sending linkdown notification message to the other end, and receiver module 44 is used to receive the linkdown notification message that the other end sends.
Preferably, sending module 42 may further include:
Detecting unit 422 when being used for not receiving the session detection messages that the other end of link sends in predetermined sense cycle, judges that link failure upwards appears in the debit of link.
In specific implementation process, the means that detecting unit 422 detects link failure include but not limited to said method, can expand according to actual needs.
Preferably, sending module 42 can further include:
Transmitting element 424 is used for linkdown notification message is carried at the other end that detection control message sends to link.
Preferably, transmitting element 424 may further include:
Revise subelement 4242, the value that is used for detecting the diagnosis field of control message is revised as the predetermined value corresponding to linkdown notification message.
Reorganization sends subelement 4244, is used for reorganizing detecting the control message, and is sent to the other end of institute's link.
Preferably, the span of above-mentioned diagnosis field can be 9~31 arbitrary values.
The Diag field is a value of statistical indicant in the detection control message, be used to indicate the reason that the last session status of local BFD system changes, detect in the controlling packet structure in existing two-way forwarding, the scope of this field value is 0-31, wherein 0-8 has had definition, X can be a self-defining value among the 9-31, i.e. 9<=X<=31.
From above description, as can be seen, by technical scheme provided by the invention, can be under link single-pass situation, a feasible end that at first detects link failure is notified the opposite end link failure as early as possible, avoids remote alarm to postpone, the assurance quick perception link failure in opposite end is alarmed immediately, has avoided alarm to postpone and the other problem of deriving.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the storage device and carry out by calculation element, and in some cases, can carry out step shown or that describe with the order that is different from herein, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a bidirectional forwarding detection (BFD) method is characterized in that, comprising:
One end of link sends linkdown notification message to the other end of described link when detecting the link failure that the debit makes progress;
The other end of described link receives described linkdown notification message, and initiates alarm.
2. method according to claim 1 is characterized in that, an end of described link comprises at the detection link failure that the debit makes progress:
When one end of described link does not receive the session detection messages that the other end of described link sends in predetermined sense cycle, judge that link failure upwards appears in the debit of described link.
3. method according to claim 1 is characterized in that, an end of described link comprises to the other end transmission linkdown notification message of described link:
One end of described link is carried at described linkdown notification message and detects the other end that sends to described link in the control message.
4. method according to claim 3 is characterized in that, an end of described link is carried at the other end that sends to described link in the detection control message with described linkdown notification message and comprises:
One end of described link is revised as predetermined value corresponding to described linkdown notification message with the value of the diagnosis field in the described detection control message;
One end of described link reorganizes described detection control message, and is sent to the other end of described link.
5. method according to claim 4 is characterized in that, the span of described diagnosis field is 9~31.
6. a two-way forwarding checkout gear is characterized in that, comprising:
Sending module is used for when detecting the link failure that the link debit makes progress, and sends linkdown notification message to the other end of described link;
Receiver module is used to receive the linkdown notification message that the other end of described link sends, and initiates alarm.
7. device according to claim 6 is characterized in that, described sending module comprises:
Detecting unit when being used for not receiving the session detection messages that the other end of described link sends in predetermined sense cycle, judges that link failure upwards appears in the debit of described link.
8. device according to claim 6 is characterized in that, described sending module comprises:
Transmitting element is used for described linkdown notification message is carried at the other end that detection control message sends to described link.
9. device according to claim 8 is characterized in that, described transmitting element comprises:
Revise subelement, be used for value with the diagnosis field of described detection control message and be revised as predetermined value corresponding to described linkdown notification message;
Reorganization sends subelement, is used to reorganize described detection control message, and is sent to the other end of described link.
10. device according to claim 9 is characterized in that, the span of described diagnosis field is 9~31.
CN2010105973080A 2010-12-20 2010-12-20 Bidirectional forwarding detection method and device Pending CN102035695A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105973080A CN102035695A (en) 2010-12-20 2010-12-20 Bidirectional forwarding detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105973080A CN102035695A (en) 2010-12-20 2010-12-20 Bidirectional forwarding detection method and device

Publications (1)

Publication Number Publication Date
CN102035695A true CN102035695A (en) 2011-04-27

Family

ID=43888060

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105973080A Pending CN102035695A (en) 2010-12-20 2010-12-20 Bidirectional forwarding detection method and device

Country Status (1)

Country Link
CN (1) CN102035695A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102355335A (en) * 2011-09-13 2012-02-15 中兴通讯股份有限公司 Unidirectional link detection result notification method and device
CN106341245A (en) * 2015-07-06 2017-01-18 中兴通讯股份有限公司 State information synchronization method and device of static tunnel
WO2017054547A1 (en) * 2015-09-28 2017-04-06 中兴通讯股份有限公司 Bidirectional forwarding detection method and apparatus
CN107547619A (en) * 2017-06-19 2018-01-05 新华三技术有限公司 A kind of timer parameter machinery of consultation and device
CN109327383A (en) * 2017-07-31 2019-02-12 北京华为数字技术有限公司 A kind of fault handling method and equipment
CN110959272A (en) * 2017-06-01 2020-04-03 中兴通讯股份有限公司 Defect detection in IP/MPLS network tunnels
US11792099B2 (en) 2020-03-11 2023-10-17 Huawei Technologies Co., Ltd. Troubleshooting method, device, and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1681254A (en) * 2004-04-08 2005-10-12 华为技术有限公司 Maintaining method of Ethernet link state
CN1913457A (en) * 2005-08-10 2007-02-14 华为技术有限公司 Method for fault detection of two-way conversion link
CN101183902A (en) * 2007-12-27 2008-05-21 杭州华三通信技术有限公司 One-way broken fiber detecting method, device and component

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1681254A (en) * 2004-04-08 2005-10-12 华为技术有限公司 Maintaining method of Ethernet link state
CN1913457A (en) * 2005-08-10 2007-02-14 华为技术有限公司 Method for fault detection of two-way conversion link
CN101183902A (en) * 2007-12-27 2008-05-21 杭州华三通信技术有限公司 One-way broken fiber detecting method, device and component

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102355335A (en) * 2011-09-13 2012-02-15 中兴通讯股份有限公司 Unidirectional link detection result notification method and device
CN106341245A (en) * 2015-07-06 2017-01-18 中兴通讯股份有限公司 State information synchronization method and device of static tunnel
CN106341245B (en) * 2015-07-06 2020-02-18 中兴通讯股份有限公司 State information synchronization method and device of static tunnel
WO2017054547A1 (en) * 2015-09-28 2017-04-06 中兴通讯股份有限公司 Bidirectional forwarding detection method and apparatus
CN110959272A (en) * 2017-06-01 2020-04-03 中兴通讯股份有限公司 Defect detection in IP/MPLS network tunnels
CN110959272B (en) * 2017-06-01 2021-11-02 中兴通讯股份有限公司 Defect detection in IP/MPLS network tunnels
CN107547619A (en) * 2017-06-19 2018-01-05 新华三技术有限公司 A kind of timer parameter machinery of consultation and device
CN107547619B (en) * 2017-06-19 2020-11-06 新华三技术有限公司 Timer parameter negotiation method and device
CN109327383A (en) * 2017-07-31 2019-02-12 北京华为数字技术有限公司 A kind of fault handling method and equipment
US11792099B2 (en) 2020-03-11 2023-10-17 Huawei Technologies Co., Ltd. Troubleshooting method, device, and readable storage medium

Similar Documents

Publication Publication Date Title
CN102035695A (en) Bidirectional forwarding detection method and device
US7660236B2 (en) System and method of multi-nodal APS control protocol signaling
US8179788B2 (en) Protection switching method and apparatus for use in ring network
CN105978735A (en) Protection method and device for serial bus communication network
CN100454880C (en) Method and system of realizing rig network protection
CN101212366A (en) Failure detection method, system, and main node in Ethernet loop network
CN104301146A (en) Link switching method and device in software defined network
CN101247270A (en) System and method for implementing bidirectional forwarding detection
CN102055658B (en) Method and equipment for realizing failure protection in rapid ring protection protocol single-ring networking
CN102780615B (en) Link backup method and routing forwarding device
CN102970157A (en) Link failure processing method, intelligent resilient framework (IRF) member device and data communication device
CN102891769A (en) Link fault informing method and apparatus
CN102255757A (en) Link switching method and device
WO2016095344A1 (en) Link switching method and device, and line card
CN103227725A (en) Method and device for dual-server backup of firewall
CN102130912B (en) Rapid ring protection protocol (RRPP)-based multiple virtual local area network (VLAN) register protocol (MVRP) realization method and equipment
CN101834759A (en) Detection method of binding link and distributed equipment
CN102932183A (en) Double-up link failure processing method and device
CN102082678A (en) Processing method and equipment of port discarding OAM (Operation, Administration and Maintenance) protocol
CN101924661A (en) Alarm processing method and device
CN101547131A (en) EAPS looped network single-channel fault location and protection method
CN104243199A (en) Data transmission method and protection device of packet transport network
CN103220201B (en) A kind of method and device of detection and protection of ring network faults
CN104935581A (en) Ethernet OAM and BFD dual-stack processing engine realization method and device
CN101980478A (en) Method and device for detecting and processing equipment failures and network equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20110427