CN101087211B - A method and system for realizing echo function in BFD mechanism and its function entity - Google Patents

A method and system for realizing echo function in BFD mechanism and its function entity Download PDF

Info

Publication number
CN101087211B
CN101087211B CN2007101301701A CN200710130170A CN101087211B CN 101087211 B CN101087211 B CN 101087211B CN 2007101301701 A CN2007101301701 A CN 2007101301701A CN 200710130170 A CN200710130170 A CN 200710130170A CN 101087211 B CN101087211 B CN 101087211B
Authority
CN
China
Prior art keywords
message
echo
functional entity
echo message
module
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
CN2007101301701A
Other languages
Chinese (zh)
Other versions
CN101087211A (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 CN2007101301701A priority Critical patent/CN101087211B/en
Publication of CN101087211A publication Critical patent/CN101087211A/en
Priority to PCT/CN2008/071542 priority patent/WO2009012684A1/en
Application granted granted Critical
Publication of CN101087211B publication Critical patent/CN101087211B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to method, device and entity to realize the echo function in BFD mechanism. In example of invention, the source end of IP head of echo message and the target end address are set as the IP address of interface to send echo message, and set the distinguishing parameters for echo message, and the finished echo message is sent to remote end; the echo message for receiving remote loop processes the message according to distinguishing parameter of message to realize the bilateral transmitting mechanism echo function, and ensure the link failure can be detected timely.

Description

A kind of method and system and functional entity of realizing echo function in the BFD mechanism
Technical field
The present invention relates to communication technical field, relate in particular to the method and system and the functional entity of echo function in a kind of BFD of realization mechanism.
Background technology
BFD (two-way forwarding detection) is a kind of fast detection mechanism, can carry out fault detect on any kind passage between the system, and these passages comprise direct physical link, virtual circuit, and the tunnel, the multi-hop routing channel, and non-direct passage etc.
BFD can be abstracted into a simple service, and the service that it provides comprises, detects network reachability, provides reachability status information (UP/DOWN information) for application layer simultaneously.
BFD is similar to " Hello " agreement, and after the BFD session was set up, both sides periodically sent the BFD message to the other side, and the form of BFD message can be as shown in Figure 1.BFD also can periodically detect the situation that the other side's message arrives on the link that adopts BFD simultaneously, if do not receive the BFD message from far-end in certain intervals, can think that then network breaks down, and reaches the purpose that fault is found fast with this.
BFD can be operated in asynchronous mode, perhaps under the query pattern.Under asynchronous mode, after reaching an agreement, periodically send the BFD controlling packet mutually between the system, if the BFD control message that far-end is sent is not received by certain system in the detection time of agreement, just announce that session is Down; Under query pattern, suppose each system after reaching an agreement all have one independently method be used for confirming that it is connected to other system, so in a single day, after BFD session is set up, system stops to send BFD control message, unless certain system needs explicitly checking connectivity, then system sends the BFD controlling packet of a short series, if in the detection time of agreement, do not receive the message that returns, system just announces that session is Down, if receive the back message using of far-end, agreement is kept silent once more.
The BFD session is being used under the asynchronous detection pattern, two ends router (RouterA, RouterB) frequently sends BFD control message to far-end simultaneously, described situation as shown in Figure 2, to keep the real-time detection of BFD, but under the bigger situation of network traffics, the quick asynchronous detection message of BFD of big flow will impact to the smoothness of network; If use query pattern to detect, can cause again system can't real-time perception to the fault of link, cause losing of data.
At present, the above-mentioned defective at BFD exists has proposed a kind of bypassing method, can realize ECHO (echo) function of auxiliary detection.The ECHO function uses short and small ECHO message and far-end router not handle method of message, send a series of BFD ECHO messages at local system, far end system is returned their loopbacks by its forwarding passage, thereby has reduced the load of network and router cpu.
In realizing process of the present invention, the inventor finds in the prior art, does not spell out and how to realize the ECHO function, like this, just might cause those skilled in the art can't correctly use the ECHO function.
Summary of the invention
The technical problem underlying that the embodiment of the invention will solve provides the method and system and the functional entity of echo function in a kind of BFD of realization mechanism, thereby has guaranteed the correct use of echo function in the BFD mechanism.
The embodiment of the invention provides the method for echo function in a kind of BFD of realization mechanism, and described method comprises:
Source end in the echo message IP head and far-end address are set to send the IP address of the interface of echo message, and the discrimination parameter that the echo message is set, and the echo message that setting is finished is sent to far-end, the described discrimination parameter that the echo message is set comprises the position Your Discriminator parameter after the transposing mutually that is set to My Discriminator and YourDiscriminator parameter in the echo message, perhaps when the reception of echoes message, be set to the My Discriminator of echo message, when receiving common BFD message, be set to the Your Discriminator parameter of common BFD message;
Receive the echo message of remote loopback,, the echo message of described loopback is carried out analyzing and processing according to the discrimination parameter in the echo message of described loopback.
The embodiment of the invention also provides the system of echo function in a kind of BFD of realization mechanism, and described system comprises first functional entity and second functional entity, wherein:
First functional entity, be used for the IP address that the source end of echo message IP head and far-end address are set to send the interface of echo message, and the discrimination parameter that the echo message is set, and the echo message that setting is finished is sent to second functional entity, the described discrimination parameter that the echo message is set comprises the position YourDiscriminator parameter after the transposing mutually that is set to My Discriminator and Your Discriminator parameter in the echo message, perhaps when the reception of echoes message, be set to the MyDiscriminator of echo message, when receiving common BFD message, be set to the YourDiscriminator parameter of common BFD message;
Second functional entity is used to receive the echo message that first functional entity sends, and with echo message loopback to the first functional entity that receives;
Described first functional entity also is used to receive the echo message of the second functional entity loopback, according to the discrimination parameter in the echo message of described loopback, the echo message of described loopback is carried out analyzing and processing.
The embodiment of the invention also provides the device of echo function in a kind of BFD of realization mechanism, and described device comprises:
Sending module is set, be used for the IP address that the source end of echo message IP head and far-end address are set to send the interface of echo message, and the discrimination parameter that the echo message is set, and the echo message that setting is finished is sent to other functional entity of network side, the described discrimination parameter that the echo message is set comprises the position Your Discriminator parameter after the transposing mutually that is set to My Discriminator and Your Discriminator parameter in the echo message, perhaps when the reception of echoes message, be set to the MyDiscriminator of echo message, when receiving common BFD message, be set to the YourDiscriminator parameter of common BFD message;
Analysis and processing module is used to receive the echo message of other functional entity loopback of network side, according to the discrimination parameter in the echo message of described loopback, the echo message of described loopback is carried out analyzing and processing.
The embodiment of the invention also provides the device of echo function in a kind of BFD of realization mechanism, and described device comprises receiver module, redirection module and loopback module, wherein:
Receiver module is used to receive the echo message that the network side functional entity sends, and after receiving the echo message, triggers redirection module;
Redirection module is used under the triggering of receiver module, starts the Internet Control Message Protocol redirection function, and the echo message that receiver module is received carries out redirect operation;
The loopback module is used for the echo message loopback after the redirection module processing to the network side functional entity.
The embodiment of the invention also provides the device of echo function in a kind of BFD of realization mechanism, and described device comprises receiver module, and first judges trigger module, and second judges that trigger module and echo function start module, wherein:
Receiver module is used to receive the message that the network side functional entity sends;
First judges trigger module, is used to judge whether the message that receiver module receives is the echo function negotiation packet, and when definite described message is the echo function negotiation packet, triggers second and judge trigger module;
Second judges trigger module, be used for judging under the trigger module triggering first, judge first judges whether the echo function negotiation packet that trigger module is determined satisfies filtering rule, and when described echo function negotiation packet satisfies rule, trigger echo function and start module;
Echo function starts module, is used for judging under the triggering of trigger module first, starts echo function in the two-way forwarding testing mechanism.
The technical scheme that is provided by the invention described above embodiment as can be seen, in the embodiment of the invention, with source end in the echo message IP head and destination address setting is the IP address that sends the interface of echo message, and the discrimination parameter that the echo message is set, and the echo message that setting is finished is sent to far-end; Receive the echo message of remote loopback,, message carried out analyzing and processing according to the discrimination parameter in the described message, thus simple, correct realization echo function in the two-way forwarding testing mechanism, guaranteed timely discovery to link failure.
Description of drawings
Fig. 1 is the form of BFD message in the prior art;
Fig. 2 is the testing process schematic diagram of BFD in the prior art;
The method principle schematic of the realization BFD ECHO function that Fig. 3 provides for the embodiment of the invention one;
The method specific implementation flow chart that Fig. 4 provides for the embodiment of the invention one;
The ECHO function on decision flow chart that Fig. 5 provides for the embodiment of the invention one;
The structural representation one of the system of the realization BFD ECHO function that Fig. 6 provides for the embodiment of the invention two;
The structural representation two of the system of the realization BFD ECHO function that Fig. 7 provides for the embodiment of the invention two;
The functional entity structural representation that Fig. 8 provides for the embodiment of the invention three;
The functional entity structural representation that Fig. 9 provides for the embodiment of the invention four;
The functional entity structural representation that Figure 10 provides for the embodiment of the invention five.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with accompanying drawing.
The embodiment of the invention one provides a kind of BFD of realization (two-way forwarding detection) ECHO (echo) method of function, in this method, can be by the IP leading address and the discrimination parameter of ECHO message be set, and the ECHO message that setting is finished is sent to far-end, receive the ECHO message of remote loopback then, according to the discrimination parameter in the described message, message is carried out analyzing and processing, thereby simple, correct realization BFD ECHO auxiliary detection function, guaranteed timely discovery to link failure.
Need to prove, what BFD ECHO message in fact detected is the forwarding passage of far-end, message does not need to be uploaded to the BFD module of far-end, but the forwarding plane of far-end directly the message loopback to transmitting terminal, what really the ECHO message is detected is the end that sends of ECHO message.
Based on above principle, in the present embodiment, send end and source end (being transmitting terminal) in the ECHO message IP head and destination (being far-end) address unification are arranged to send the interface IP address of ECHO message, like this, when message is sent to far-end, because destination address and far-end address do not match, thereby the redirection function of the ICMP (Internet Control Message Protocol) of triggering far-end sends end with ECHO message loopback to message.
When the ECHO message by after remote loopback is returned, sending end need be separated to the ECHO packet in the correct BFD session according to the information in the message.The My Discriminator of session sets up because the incidence relation of BFD message and session is based on, based on this point, we are on the basis of original message format, the ECHO message that sends has been carried out special processing, with the My Disc riminator and the location swap of YourDiscriminator in message of session.Like this, send end after receiving the ECHO message that loopback is returned, it can be handled as the message that far-end sends over, kept the normal detection of sending end.The implementation procedure of above-mentioned principle as shown in Figure 3.
In the present embodiment, transmitting terminal can be RouterA (router-A), and far-end can be RouterB (router B).
As shown in Figure 4, realize realization that the embodiment of the invention one provides the handling process of method of BFD ECHO function specifically can comprise:
Step 41, judge whether to start ECHO auxiliary detection function.
In the present embodiment, can be at session establishment phase, the message that far-end is sent filters, thereby realizes only enabling the ECHO function on specific link, and then uses various detecting patterns more flexibly, to reach best detection effect.
Below, be example to adopt ACL (Access Control List (ACL)) mechanism, this process is described in detail, as shown in Figure 5, this process specifically can comprise:
The negotiation packet that step 41A, reception far-end send.
Whether the message that step 41B, judgement receive is the ECHO negotiation packet.
If the message that receives is the ECHO negotiation packet, then execution in step 41C;
If the message that receives is not the ECHO negotiation packet, then carry out asynchronous or inquiry detection negotiation, because this process covering scope no longer of the present invention, so, repeat no more here.
Whether the ECHO negotiation packet that step 41C, judgement receive satisfies acl rule.
After determining that the message that receives is the ECHO negotiation packet, judge whether this ECHO negotiation packet satisfies acl rule.
The a series of sequential rule that above-mentioned acl rule can be made up of permit | deny clauses, these rules wait according to source address, destination address, the port numbers of packet and describe.
According to the purposes of ACL, ACL can be divided into 3 types, shown in the table specific as follows.
The ACL type Serial Number Range
ACL (I nterface-based AC L) based on interface 1000~1999
Basic ACL (Basic ACL) 2000~2999
Advanced ACL (Advanced ACL) 3000~3999
With the Serial Number Range of ACL is 2000~2999 to be example, promptly is Basic ACL.Basic ACL uses the element of source address information as the definition acl rule.
In view of the Basic ACL rule can be filtered message at source address information, so, by disposing corresponding acl rule, can realize only specific link being used ECHO function auxiliary detection.
Therefore, satisfy acl rule as if the ECHO negotiation packet that receives, then execution in step 41D;
If the ECHO negotiation packet that receives does not satisfy acl rule, then carry out asynchronous or inquiry detection negotiation.
Here need to prove, in the present embodiment, be not limited in and adopt acl rule that the ECHO negotiation packet that receives is filtered, also can adopt Else Rule that the ECHO negotiation packet is filtered, thereby realize only using the ECHO function to detect specific link.
Step 41D, startup ECHO measuring ability.
If the ECHO negotiation packet that receives satisfies acl rule, then start the ECHO measuring ability, execution in step 42.
Step 42, the IP leading address and the discrimination parameter of ECHO message are set, and the ECHO message that setting is finished is sent to far-end.
In view of principle as shown in Figure 3, the source end (being transmitting terminal) in the ECHO message I P leading address and destination (being far-end) address unification are arranged to send the interface IP address of ECHO message.And the position of My Discriminator in the ECHO message and Your Discriminator parameter is changed mutually.
After finishing above-mentioned the setting, the ECHO message is sent to RouterB.
In the present embodiment, do not design the form of ECHO message in addition, only existing BFD control message format is made amendment satisfying the needs that ECHO detects, thereby reduced impact, reduce the complexity that agreement realizes existing procedure.
Step 43, remote loopback ECHO message.
RouterB receive that RouterA sends, through the ECHO message of resetting after, the ECHO message is left intact, just trigger the redirection function of ICMP, the ECHO message is redirected, at forwarding plane with ECHO message loopback to RouterA.
The ECHO message of step 44, reception remote loopback according to the discrimination parameter in the described message, carries out analyzing and processing to message.
RouterA receives the ECHO message of RouterB loopback, obtains ECHO message YourDiscriminator parameter, and according to this parameter, message is carried out analyzing and processing.
Because the My Discriminator in this ECHO message and the position of Your Discriminator parameter be transposing mutually, so, RouterA is considered as the message that RouterB sends with it and carries out analyzing and processing, judges whether fault of link, thereby has kept the normal detection of RouterA.
The process of in this step the ECHO message that receives being carried out analyzing and processing is specifically as follows: according to the discrimination parameter in the message, can determine the affiliated session of this message, and then can determine whether the affiliated session of this message is normal condition, can determine further whether the employed link of this session is normal condition.
In actual applications, if local system (as RouterA), in to official hour, several ECHO messages all do not receive under the situation continuously, and session under the ECHO message is declared as Down.The number of above-mentioned official hour of mentioning and ECHO message can be consulted to determine by local system (as RouterA) and far end system (as RouterB) at the beginning of session is set up.
The method of the realization BFD ECHO function that the embodiment of the invention provides, can use together with two kinds of existing detecting patterns of BFD, also can use this method to replace the detection task of BFD control message, can reduce the transmission cycle (under the asynchronous mode) of control message like this, perhaps fully phase out BFD control message (under the query pattern).
The method of the realization BFD ECHO function that provides in view of the invention described above embodiment is concrete, the technical characterictic of objective reality; the method of the realization BFD ECHO function that the embodiment of the invention provides also can be used as a kind of link failure detection method, becomes the object of patent protection.In concrete application process, the specific implementation flow process of the method for the realization BFD ECHO function that can provide according to the embodiment of the invention is operated, and by receiving the ECHO message of remote loopback, and then whether the transmission link that session is being used under definite ECHO message is normal condition, and when finding that there is fault in this transmission link, this situation is reported.
Need to prove that above-mentioned processing procedure in concrete application process, also can be omitted step 41 for realizing the preferred version of the described method of present embodiment, directly execution in step 42 is not carried out the judgement whether particular link starts the ECHO function.In addition, in concrete application process, also can not change the position of MyDiscriminator and YourDiscriminator parameter, but earlier different (ECHO message port numbers is 3785 according to the port numbers of ECHO message and common BFD message, the port numbers position 3784 of common BFD message), which kind of message distinguishes the message that receives is, and when the message that receives is the ECHO message, search the My Discriminator parameter of ECHO message, when the message that receives is common BFD message, search the Your Discriminator parameter of common BFD message, thereby definite discrimination parameter that need obtain, and message is carried out analyzing and processing according to discrimination parameter, judge whether link exists fault.
The method of the realization BFD ECHO function that present embodiment provides, the clear and definite testing mechanism of BFD ECHO function, and provide a kind of simple judgment mechanism, make and only on particular link, use the ECHO function to become possibility, thereby use various detecting patterns more flexibly, solve complicated networking requirement.
The embodiment of the invention two provides a kind of BFD of realization (two-way forwarding detection) ECHO (echo) system of function, and described system comprises first functional entity and second functional entity, wherein:
1) first functional entity, the source end and the destination address setting that are used for ECHO message IP head are the IP address that sends the interface of echo message, and the discrimination parameter that the ECHO message is set, and the ECHO message that setting is finished is sent to second functional entity; First functional entity can also be used to receive the ECHO message of the second functional entity loopback, and the discrimination parameter according in this ECHO message carries out analyzing and processing to the ECHO message.
Specifically can comprise in first functional entity:
A, sending module is set, the source end and the destination address setting that are used for echo message IP head are the IP address that sends the interface of echo message, and the discrimination parameter that the echo message is set, and the ECHO message that setting is finished is sent to intrasystem second functional entity.
Be provided with in the sending module and specifically can comprise:
A1, the unit is set, is used for the source end of echo message IP head and destination address setting IP address for the interface that sends the echo message, and the discrimination parameter that the echo message is set.
Be provided with the unit specific operation process can for:
Source end (being transmitting terminal) in the ECHO message IP leading address and destination (being far-end) address unification are arranged to send the interface IP address of ECHO message;
The position of My Discriminator in the ECHO message and Your Discriminator parameter is changed mutually.
A2, transmitting element are used for finishing the ECHO message of setting and being sent to intrasystem second functional entity the unit is set.
B, analysis and processing module are used for the ECHO message of the second functional entity loopback in the receiving system, and according to the discrimination parameter in the ECHO message, the ECHO message are carried out analyzing and processing.
Analysis and processing module specifically can comprise:
B1, receiving element are used for the ECHO message of the second functional entity loopback in the receiving system.
Analysis and processing module is specifically as follows the process that the ECHO message that receives carries out analyzing and processing: according to the discrimination parameter in the message, can determine the affiliated session of this message, and then can determine whether the affiliated session of this message is normal condition, can determine further whether the employed link of this session is normal condition.
In the present embodiment, first functional entity is specifically as follows router, perhaps other functional entity.
2) second functional entity is used to receive the echo message that first functional entity sends, and with echo message loopback to the first functional entity that receives.
Second functional entity behind the ECHO message that first functional entity sends, triggers ICMP (Internet Control Message Protocol) redirection function, with ECHO message loopback to the first functional entity that receives in the system of receiving.
Specifically can comprise receiver module, redirection module and loopback module in second functional entity, wherein:
C, receiver module are used for the ECHO message that first functional entity sends in the receiving system, and after receiving the ECHO message, trigger redirection module.
D, redirection module are used under the triggering of receiver module, start the ICMP redirection function, and the ECHO message that receiver module is received carries out redirect operation.
E, loopback module, the echo message loopback after being used for redirection module handled first functional entity to the system.
In the present embodiment, second functional entity is specifically as follows router, perhaps other functional entity.
In order only specific link to be carried out the ECHO function, the system that present embodiment provides can also comprise:
3) the 3rd functional entity is used to receive the message that network side sends, and judges whether the message that receives satisfies rule; Satisfy at the message that receives under the situation of rule, trigger first functional entity.
The 3rd functional entity specifically can comprise receiver module, and first judges trigger module, and second judges that the trigger module and first functional entity start module, wherein:
F, receiver module are used to receive the message that the network side functional entity sends.
G, first judges trigger module, is used to judge whether the message that receiver module receives is ECHO capability negotiation message, and when definite this message is ECHO capability negotiation message, triggers second and judge trigger module.
If first judges that the message that trigger module judges that receiver module receives is not an ECHO capability negotiation message, then it is considered as invalid packet, do not handle.
H, second judges trigger module, be used for judging under the trigger module triggering first, judge first judges whether the ECHO capability negotiation message that trigger module is determined satisfies filtering rule, and when this ECHO capability negotiation message satisfies rule, trigger first functional entity and start module.
If second judges that the ECHO capability negotiation message that trigger module judges that the first judgement trigger module is determined does not meet filtering rule, then it is considered as invalid packet, do not handle.
Second judges that trigger module specifically can adopt ACL (Access Control List (ACL)) mechanism as its filtering rule, and at the beginning of network system makes up, the filtering rule of ACL is set.Present embodiment also can adopt similar Else Rule or mechanism that the message that receives is carried out filtration treatment.
I, first functional entity start module, are used for judging under the triggering of trigger module first functional entity in the start-up system second.
What further specify is, in the system that present embodiment provides, the 3rd functional entity can independently be arranged in the system, perhaps is arranged in intrasystem other functional entity, such as being arranged in first functional entity, thereby make first functional entity possess the concrete operations function of the 3rd functional entity.
The specific implementation structural representation such as the accompanying drawing 6 or shown in Figure 7 of the system of the realization BFDECHO function that present embodiment provides.
The system of the realization BFD ECHO function that present embodiment provides, the clear and definite testing mechanism of BFD ECHO function, and a kind of simple mechanism is provided, make and only on particular link, use the ECHO function to become possibility, thereby use various detecting patterns more flexibly, solve complicated networking requirement.
The embodiment of the invention three provides a kind of functional entity, it is the IP address that sends the interface of ECHO message that this functional entity is used for the source end of ECHO message IP head and destination address setting, and the discrimination parameter that the ECHO message is set, and the ECHO message that setting is finished is sent to other functional entity of network side; This functional entity can also be used to receive the ECHO message of other functional entity loopback of network side, and the discrimination parameter according in this ECHO message carries out analyzing and processing to the ECHO message.As shown in Figure 8, this functional entity specifically can comprise:
J, sending module is set, the source end and the destination address setting that are used for ECHO message IP head are the IP address that sends the interface of ECHO message, and the discrimination parameter that the ECHO message is set, and the ECHO message that setting is finished is sent to other functional entity of network side.
Be provided with in the sending module and specifically can comprise:
J1, the unit is set, is used for the source end of ECHO message IP head and destination address setting IP address for the interface that sends the ECHO message, and the discrimination parameter that the ECHO message is set.
Be provided with the unit specific operation process can for:
Source end (being transmitting terminal) in the ECHO message IP leading address and destination (being far-end) address unification are arranged to send the interface IP address of ECHO message;
The position of My Discriminator in the ECHO message and Your Discriminator parameter is changed mutually.
J2, transmitting element are used for finishing the ECHO message of setting and being sent to other functional entity of network side the unit is set.
K, analysis and processing module are used to receive the ECHO message of other functional entity loopback of network side, and according to the discrimination parameter in the ECHO message, the ECHO message are carried out analyzing and processing.
Analysis and processing module specifically can comprise:
K1, receiving element are used to receive the ECHO message of other functional entity loopback of network side.
Analysis and processing module is specifically as follows the process that the ECHO message that receives carries out analyzing and processing: according to the discrimination parameter in the message, can determine the affiliated session of this message, and then can determine whether the affiliated session of this message is normal condition, can determine further whether the employed link of this session is normal condition.
The functional entity that present embodiment provides is specifically as follows router, perhaps other functional entity.
It is functional entity that present embodiment provides, and the clear and definite testing mechanism of BFD ECHO function by the analyzing and processing to discrimination parameter in the ECHO message of loopback, thereby judges in time, accurately whether transmission link exists fault.
The embodiment of the invention four provides a kind of functional entity, be used for after receiving the ECHO message that other functional entity of network side sends, triggering the ICMP redirection function, with the ECHO message loopback that receives to other functional entity of network side.As shown in Figure 9, specifically can comprise receiver module, redirection module and loopback module in this functional entity, wherein:
L, receiver module are used to receive the ECHO message that other functional entity of network side sends, and after receiving the ECHO message, trigger redirection module.
M, redirection module are used under the triggering of receiver module, start the ICMP redirection function, and the ECHO message that receiver module is received carries out redirect operation.
N, loopback module are used for the echo message loopback after the redirection module processing to other functional entity of network side.
The functional entity that present embodiment provides is specifically as follows router, perhaps other functional entity.
The functional entity that present embodiment provides, the clear and definite testing mechanism of BFD ECHO function, thus judge in time, accurately whether transmission link exists fault.
The embodiment of the invention five provides a kind of functional entity, is used to receive the message that network side sends, and judges whether the message that receives satisfies rule, and satisfies at the message that receives under the situation of rule, triggers the ECHO function.As shown in Figure 10, this functional entity comprises receiver module, and first judges trigger module, and second judges that trigger module and echo function start module, wherein:
O, receiver module are used to receive the message that the network side functional entity sends.
P, first judges trigger module, is used to judge whether the message that receiver module receives is the echo function negotiation packet, and when definite described message is the echo function negotiation packet, triggers second and judge trigger module.
If first judges that the message that trigger module judges that receiver module receives is not an ECHO capability negotiation message, then it is considered as invalid packet, do not handle.
Q, second judges trigger module, be used for judging under the trigger module triggering first, judge first judges whether the echo function negotiation packet that trigger module is determined satisfies filtering rule, and when described echo function negotiation packet satisfies rule, trigger echo function and start module.
If second judges that the ECHO capability negotiation message that trigger module judges that the first judgement trigger module is determined does not meet filtering rule, then it is considered as invalid packet, do not handle.
Second judges that trigger module specifically can adopt ACL (Access Control List (ACL)) mechanism as its filtering rule, and at the beginning of network system makes up, the filtering rule of ACL is set.Present embodiment also can adopt similar Else Rule or mechanism that the message that receives is carried out filtration treatment.
R, echo function start module, are used for judging under the triggering of trigger module first startup BFDECHO function.
What further specify is that the functional entity that present embodiment provides can independently be arranged at network side, perhaps is arranged in other functional entity of network side, thereby makes other functional entity of network side possess the concrete operations function of this functional entity.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (18)

1. realize that two-way forwarding detects the method for echo function in (BFD) mechanism, is characterized in that described method comprises for one kind:
Source end in the echo message IP head and far-end address are set to send the IP address of the interface of echo message, and the discrimination parameter that the echo message is set, and the echo message that setting is finished is sent to far-end, the described discrimination parameter that the echo message is set comprises the position Your Discriminator parameter after the transposing mutually that is set to My Discriminator and YourDiscriminator parameter in the echo message, perhaps when the reception of echoes message, be set to the My Discriminator of echo message, when receiving common BFD message, be set to the Your Discriminator parameter of common BFD message;
Receive the echo message of remote loopback,, the echo message of described loopback is carried out analyzing and processing according to the discrimination parameter in the echo message of described loopback.
2. method according to claim 1 is characterized in that, described method also comprised before the processing of echo message is set:
Receive the negotiation packet that far-end sends;
Whether the negotiation packet of judging described reception is the echo negotiation packet;
If described negotiation packet is the echo negotiation packet, judge then whether described echo negotiation packet satisfies filtering rule;
If described echo negotiation packet satisfies filtering rule, then startup is provided with the operation of echo message.
3. method according to claim 2 is characterized in that, described filtering rule is an Access Control List (ACL) mechanism.
4. method according to claim 1 is characterized in that, described method also comprises in echo message processing procedure is set: with parameter My Discriminator in the echo message and the location swap of YourDiscriminator.
5. method according to claim 1 is characterized in that, described method also comprises: far-end triggers the Internet Control Message Protocol redirection function after receiving described echo message, with the echo message loopback that receives.
6. realize that two-way forwarding detects the system of echo function in (BFD) mechanism for one kind, it is characterized in that described system comprises first functional entity and second functional entity, wherein:
First functional entity, be used for the IP address that the source end of echo message IP head and far-end address are set to send the interface of echo message, and the discrimination parameter that the echo message is set, and the echo message that setting is finished is sent to second functional entity, the described discrimination parameter that the echo message is set comprises the position YourDiscriminator parameter after the transposing mutually that is set to My Discriminator and Your Discriminator parameter in the echo message, perhaps when the reception of echoes message, be set to the MyDiscriminator of echo message, when receiving common BFD message, be set to the YourDiscriminator parameter of common BFD message;
Second functional entity is used to receive the echo message that first functional entity sends, and with echo message loopback to the first functional entity that receives;
Described first functional entity also is used to receive the echo message of the second functional entity loopback, according to the discrimination parameter in the echo message of described loopback, the echo message of described loopback is carried out analyzing and processing.
7. system according to claim 6 is characterized in that, described system also comprises:
The 3rd functional entity is used to receive the message that far-end sends, and judges whether the message that receives satisfies rule; Satisfy at the message that receives under the situation of rule, trigger first functional entity.
8. system according to claim 7 is characterized in that, described the 3rd functional entity independently is arranged at network side; Perhaps be arranged in first functional entity.
9. system according to claim 6 is characterized in that, described second functional entity triggers the Internet Control Message Protocol redirection function behind the echo message that receives the transmission of first functional entity, with echo message loopback to the first functional entity that receives.
10. according to each described system of claim 6-9, it is characterized in that described first functional entity is specially: router; Described second functional entity is specially: router.
11. realize that two-way forwarding detects the device of echo function in (BFD) mechanism, is characterized in that described device comprises for one kind:
Sending module is set, be used for the IP address that the source end of echo message IP head and far-end address are set to send the interface of echo message, and the discrimination parameter that the echo message is set, and the echo message that setting is finished is sent to other functional entity of network side, the described discrimination parameter that the echo message is set comprises the position Your Discriminator parameter after the transposing mutually that is set to My Discriminator and Your Discriminator parameter in the echo message, perhaps when the reception of echoes message, be set to the MyDiscriminator of echo message, when receiving common BFD message, be set to the YourDiscriminator parameter of common BFD message;
Analysis and processing module is used to receive the echo message of other functional entity loopback of network side, according to the discrimination parameter in the echo message of described loopback, the echo message of described loopback is carried out analyzing and processing.
12. device according to claim 11 is characterized in that, the described sending module that is provided with specifically comprises:
The unit is set, the source end and the destination address setting that are used for echo message IP head are the IP address that sends the interface of echo message, the described discrimination parameter that the echo message is set comprises the position YourDiscriminator parameter after the transposing mutually that is set to My Discriminator and Your Discriminator parameter in the echo message, perhaps when the reception of echoes message, be set to the MyDiscriminator of echo message, when receiving common BFD message, be set to the YourDiscriminator parameter of common BFD message;
Transmitting element is used for finishing other functional entity that the echo message of setting is sent to network side with the unit is set.
13. device according to claim 11 is characterized in that, described analysis and processing module comprises:
Receiving element is used to receive the echo message of other functional entity loopback of network side.
14. device according to claim 11 is characterized in that, described device also comprises:
Judge trigger module: be used to receive the message that network side sends, and judge whether the message that receives satisfies rule; Satisfy at the message that receives under the situation of rule, trigger the described sending module that is provided with.
15. realize that two-way forwarding detects the device of echo function in (BFD) mechanism for one kind, it is characterized in that described device comprises receiver module, redirection module and loopback module, wherein:
Receiver module is used to receive the echo message that the network side functional entity sends, and after receiving the echo message, triggers redirection module;
Redirection module is used under the triggering of receiver module, starts the Internet Control Message Protocol redirection function, and the echo message that receiver module is received carries out redirect operation;
The loopback module is used for the echo message loopback after the redirection module processing to the network side functional entity.
16. realize that two-way forwarding detects the device of echo function in (BFD) mechanism for one kind, it is characterized in that described device comprises receiver module, first judges trigger module, second judges that trigger module and echo function start module, wherein:
Receiver module is used to receive the message that the network side functional entity sends;
First judges trigger module, is used to judge whether the message that receiver module receives is the echo function negotiation packet, and when definite described message is the echo function negotiation packet, triggers second and judge trigger module;
Second judges trigger module, be used for judging under the trigger module triggering first, judge first judges whether the echo function negotiation packet that trigger module is determined satisfies filtering rule, and when described echo function negotiation packet satisfies rule, trigger echo function and start module;
Echo function starts module, is used for judging under the triggering of trigger module first, starts echo function in the two-way forwarding testing mechanism.
17. device according to claim 16 is characterized in that, described second judges that the filtering rule that trigger module adopts is an Access Control List (ACL) mechanism.
18. device according to claim 17 is characterized in that, described device independently is arranged at network side; Perhaps be arranged in other functional entity of network side.
CN2007101301701A 2007-07-20 2007-07-20 A method and system for realizing echo function in BFD mechanism and its function entity Active CN101087211B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2007101301701A CN101087211B (en) 2007-07-20 2007-07-20 A method and system for realizing echo function in BFD mechanism and its function entity
PCT/CN2008/071542 WO2009012684A1 (en) 2007-07-20 2008-07-03 A method, system and function entity for achieving the echo function of the bfd mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101301701A CN101087211B (en) 2007-07-20 2007-07-20 A method and system for realizing echo function in BFD mechanism and its function entity

Publications (2)

Publication Number Publication Date
CN101087211A CN101087211A (en) 2007-12-12
CN101087211B true CN101087211B (en) 2010-08-11

Family

ID=38937990

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101301701A Active CN101087211B (en) 2007-07-20 2007-07-20 A method and system for realizing echo function in BFD mechanism and its function entity

Country Status (2)

Country Link
CN (1) CN101087211B (en)
WO (1) WO2009012684A1 (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101087211B (en) * 2007-07-20 2010-08-11 华为技术有限公司 A method and system for realizing echo function in BFD mechanism and its function entity
CN101252528B (en) * 2008-04-14 2011-04-13 华为技术有限公司 Method and apparatus for detecting malfunction
CN101399714B (en) * 2008-08-29 2012-09-05 中兴通讯股份有限公司 Transmission method and device for bidirectionally transceiving and detecting packet
CN102377606A (en) * 2010-08-11 2012-03-14 鸿富锦精密工业(深圳)有限公司 Network connection device and port test method thereof
CN102457409B (en) * 2010-11-02 2014-04-30 中兴通讯股份有限公司 Method and system for link failure detection
CN102624584B (en) * 2012-03-01 2018-02-23 中兴通讯股份有限公司 Chain circuit detecting method and device
CN103067220B (en) * 2012-12-19 2016-02-10 中兴通讯股份有限公司 Two-way link forwarding detection (BFD) method and device under parameter update status
CN104468286A (en) * 2014-12-31 2015-03-25 迈普通信技术股份有限公司 Method and system for detecting multi-hop link
CN106209517A (en) * 2016-07-22 2016-12-07 安徽皖通邮电股份有限公司 A kind of method realizing multi-hop BFD single armed echo function
US10541904B2 (en) 2016-12-14 2020-01-21 Hewlett Packard Enterprise Development Lp Establishing a network fault detection session
CN109245961B (en) * 2018-09-29 2020-12-22 优刻得科技股份有限公司 Link quality detection method, device, storage medium and equipment
CN112448877B (en) * 2019-09-05 2022-07-22 华为技术有限公司 SBFD session establishment method, device and system
CN114268561B (en) * 2020-09-15 2023-06-09 烽火通信科技股份有限公司 BFD message sending device and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006128895A1 (en) * 2005-06-02 2006-12-07 Nokia Siemens Networks Gmbh & Co. Kg Method for efficiently treating disturbances in the packet-based transmission of traffic
CN1901468A (en) * 2006-07-19 2007-01-24 华为技术有限公司 Method and network for detecting specific route fault under internet protocol multiple jump condition
CN1905516A (en) * 2005-07-28 2007-01-31 华为技术有限公司 Method of allocating bidirection forwarding detecting conversational authentication code
WO2007016841A1 (en) * 2005-08-05 2007-02-15 Huawei Technologies Co., Ltd. A method for achieving fault detection of ip forwarding plane

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7499395B2 (en) * 2005-03-18 2009-03-03 Cisco Technology, Inc. BFD rate-limiting and automatic session activation
CN100389571C (en) * 2005-03-25 2008-05-21 华为技术有限公司 Method for detecting chain circuit fault between end-to-end notes in mixed network
CN101087211B (en) * 2007-07-20 2010-08-11 华为技术有限公司 A method and system for realizing echo function in BFD mechanism and its function entity

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006128895A1 (en) * 2005-06-02 2006-12-07 Nokia Siemens Networks Gmbh & Co. Kg Method for efficiently treating disturbances in the packet-based transmission of traffic
CN1905516A (en) * 2005-07-28 2007-01-31 华为技术有限公司 Method of allocating bidirection forwarding detecting conversational authentication code
WO2007016841A1 (en) * 2005-08-05 2007-02-15 Huawei Technologies Co., Ltd. A method for achieving fault detection of ip forwarding plane
CN1901468A (en) * 2006-07-19 2007-01-24 华为技术有限公司 Method and network for detecting specific route fault under internet protocol multiple jump condition

Also Published As

Publication number Publication date
CN101087211A (en) 2007-12-12
WO2009012684A1 (en) 2009-01-29

Similar Documents

Publication Publication Date Title
CN101087211B (en) A method and system for realizing echo function in BFD mechanism and its function entity
US7672227B2 (en) Loop prevention system and method in a stackable ethernet switch system
JP4840236B2 (en) Network system and node device
CN101132320B (en) Method for detecting interface trouble and network node equipment
CN101459594B (en) BFD packet transmitting method, link failure detection method and apparatus
CN101521603B (en) Method and system for quickly detecting connectivity of link
RU2517164C2 (en) METHOD OF LIMITING AMOUNT OF NETWORK TRAFFIC REACHING LOCAL NODE OPERATING ACCORDING TO INDUSTRIAL Ethernet PROTOCOL
CN101009661A (en) Method and device for updating stream forward table content based on the stream forward
US8340092B2 (en) Switching system and method in switching system
CN104243239B (en) The condition detection method and device of controller in a kind of SDN clusters
WO2016082588A1 (en) Link connectivity checking method and apparatus
JP2006086889A (en) Provider network for providing l2-vpn service and edge router
CN101471822A (en) Method and system for locating network fault
CN102457402B (en) Method for detecting multiple active equipment conflict and apparatus thereof
JP2006262193A (en) Controller, packet transferring method, and packet processor
WO2007121633A1 (en) A method for rapid rerouting when multiple ports sharing the transmission links
CN105281951B (en) Double primary apparatus conflict detection methods and the network equipment in VSU systems
CN102325079B (en) Message transmission method and egress router
US20090006650A1 (en) Communication device, communication method, communication interface, and program product
US7813303B2 (en) Network fault detection apparatus
CN1859423B (en) Synchronous switching method for host and repeat device
CN101540772A (en) DPI (deep packet inspection) equipment and communication method thereof
CN104104596A (en) Intelligent resilient framework (IRF) split processing method and device
CN101331717B (en) Method and system for transmitting data in packet-based network
EP3291486B1 (en) Selective transmission of bidirectional forwarding detection (bfd) messages for verifying multicast connectivity

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