WO2009012684A1 - A method, system and function entity for achieving the echo function of the bfd mechanism - Google Patents

A method, system and function entity for achieving the echo function of the bfd mechanism Download PDF

Info

Publication number
WO2009012684A1
WO2009012684A1 PCT/CN2008/071542 CN2008071542W WO2009012684A1 WO 2009012684 A1 WO2009012684 A1 WO 2009012684A1 CN 2008071542 W CN2008071542 W CN 2008071542W WO 2009012684 A1 WO2009012684 A1 WO 2009012684A1
Authority
WO
WIPO (PCT)
Prior art keywords
echo
packet
message
functional entity
module
Prior art date
Application number
PCT/CN2008/071542
Other languages
French (fr)
Chinese (zh)
Inventor
Lina Wu
Wei Zhang
Yuting Wang
Zuliang Wang
Peng Wang
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.
Publication of WO2009012684A1 publication Critical patent/WO2009012684A1/en

Links

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

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method, system, and functional entity for implementing an echo function in a BFD mechanism.
  • BFD Bidirectional Forwarding Detection
  • BFD can be abstracted into a simple service, which provides services such as detecting network reachability and providing reachability status information (UP/DOWN information) for the application layer.
  • UP/DOWN information reachability status information
  • BFD is similar to the "Hello" protocol. After a BFD session is established, the two parties periodically send BFD packets to the peer. The format of the BFD packets is as shown in Figure 1. A peer BFD can also periodically detect the arrival of the other party's packets on the BFD-enabled link. If the BFD packet from the remote end is not received within a certain interval, the network can be considered faulty. The purpose of rapid fault detection.
  • BFD can work in asynchronous mode, or in query mode.
  • the BFD control packets are periodically sent to each other. If a system does not receive the BFD control packet from the remote end within the agreed detection time, the system announces the session as In the query mode, it is assumed that each system after the agreement has an independent method to confirm that it is connected to other systems, so that once a BFD session is established, the system stops sending BFD control messages unless If the system needs to explicitly verify the connectivity, the system sends a short sequence of BFD control packets. If the returned packets are not received within the agreed detection interval, the system announces that the session is Down. In response to the message, the agreement remains silent again.
  • the two routers In the asynchronous detection mode, the two routers (R OU terA, Router B) send BFD control packets to the remote end.
  • the situation is as shown in Figure 2 to maintain the BFD detection.
  • the BFD fast asynchronous detection packets of large traffic will impact the smoothness of the network. If the query mode is used for detection, the system cannot detect the link. The failure caused the loss of data.
  • ECHO echo
  • the ECHO function uses a short ECHO message and a method in which the remote router does not process the message, and sends a series of BFDs in the local system.
  • the remote system loops back through its forwarding channel, reducing the load on the network and the router CPU.
  • the main technical problem to be solved by the embodiments of the present invention is to provide a method, system and functional entity for implementing the echo function in the BFD mechanism, thereby ensuring the correct use of the echo function in the BFD mechanism.
  • An embodiment of the present invention provides a method for implementing an echo function in a BFD mechanism, where the method includes: sending an echo message to a remote end, where a source address and a destination address in the IP header of the echo message are sent echoes IP address of the interface of the packet;
  • the echo message is analyzed and processed according to the authentication parameter in the echo message of the remote loopback.
  • the embodiment of the present invention further provides a system for implementing an echo function in a BFD mechanism, where the system includes a first functional entity and a second functional entity, where:
  • the first function entity is configured to send the echo message to the second function entity, where the source end and the destination end address in the IP header of the echo message are the IP address of the interface that sends the echo message;
  • a second function entity configured to receive an echo message sent by the first function entity, and loop the received echo message back to the first functional entity
  • the first functional entity is further configured to receive an echo message of the loopback of the second functional entity, and analyze and process the packet according to the authentication parameter in the packet.
  • An embodiment of the present invention further provides a functional entity, where the functional entity includes:
  • the sending module is configured to set the source and destination addresses in the IP header of the echo packet to the IP address of the interface that sends the echo packet, and send the configured echo message to other functional entities on the network side.
  • the processing module is configured to receive an echo message of the loopback of other functional entities on the network side, and analyze and process the packet according to the authentication parameter in the packet.
  • the receiving module is configured to receive an echo message sent by the network side functional entity, and trigger the redirection module after receiving the echo message;
  • the redirection module is configured to: when triggered by the receiving module, start an internet protocol message protocol redirection function, and perform a redirection operation on the echo message received by the receiving module;
  • the loopback module is configured to loop back the echo packets processed by the redirection module to the network side functional entity.
  • the embodiment of the present invention further provides a functional entity, where the functional entity includes a receiving module, a first determining triggering module, a second determining triggering module, and an echo function starting module, where:
  • a receiving module configured to receive a packet sent by a network side functional entity
  • the first determining triggering module is configured to determine whether the packet received by the receiving module is an echo function negotiation packet, and trigger the second determining triggering module after determining that the packet is an echo function negotiation packet;
  • the echo function startup module is configured to start the echo function in the bidirectional forwarding detection mechanism under the trigger of the first judgment trigger module.
  • the source end and the destination end address in the IP header of the echo packet are set as the IP address of the interface that sends the echo packet, and Set the authentication parameters of the echo packets, and send the echo packets that have been set to the remote end.
  • Receive the echo packets of the remote loopback and analyze and process the packets based on the authentication parameters in the packets.
  • the echo function in the two-way forwarding detection mechanism is correctly implemented, and the detection of the link failure is ensured.
  • Figure 1 shows the format of a BFD packet in the prior art
  • FIG. 2 is a schematic diagram of a detection process of BFD in the prior art
  • FIG. 5 is a flowchart of determining an ECHO function startup according to Embodiment 1 of the present invention
  • FIG. 6 is a schematic structural diagram 1 of a system for implementing a BFD ECHO function according to Embodiment 2 of the present invention
  • FIG. 9 is a schematic structural diagram of a functional entity according to Embodiment 4 of the present invention.
  • FIG. 10 is a schematic structural diagram of a functional entity according to Embodiment 5 of the present invention.
  • the first embodiment of the present invention provides a method for implementing a BFD (bidirectional forwarding detection) ECHO (echo) function, in which the IP header address and the authentication parameter of the ECHO packet can be set, and the setting is completed.
  • the ECHO packet is sent to the remote end, and then the remote loopback ECHO packet is received, and the packet is analyzed and processed according to the authentication parameter in the packet, thereby simply and correctly implementing the BFD ECHO auxiliary detection function to ensure The discovery of link failures.
  • the ECHO packet actually detects the remote forwarding channel.
  • the packet does not need to be uploaded to the remote BFD module.
  • the remote forwarding layer directly loops the packet back to the sending end.
  • the ECHO packet is actually sent.
  • the origin of the ECHO message is detected.
  • the originating end uniformly sets the source end (ie, the transmitting end) and the destination end (ie, the far end) address in the IP head of the ECHO packet to the IP address of the interface that sends the ECHO packet, so that The packet is sent to the remote end.
  • the destination address is not matched with the remote address. This triggers the remote ICMP (Internet Control Message Protocol) redirection function and loops the ECHO packet back to the packet originating end.
  • ICMP Internet Control Message Protocol
  • the originator needs to separate the ECHO packet into the correct BFD session according to the information in the packet. Because the association between BFD packets and sessions is session-based.
  • the embodiment of the present invention performs special processing on the issued ECHO message based on the original message format, and the session's My Discriminator and Your
  • the sending end may be Router A (Router A), and the remote end may be Router B.
  • the processing flow of the method of the ECHO function may specifically include:
  • Step 41 Determine whether to activate the ECHO auxiliary detection function.
  • the packet sent by the remote end may be filtered during the session establishment phase, so that the ECHO function is enabled only on a specific link, and the detection modes are more flexibly used. Achieve the best detection results.
  • the ACL Access Control List
  • the process may specifically include:
  • Step 41A Receive the negotiation packet sent by the remote end.
  • Step 41B Determine whether the received packet is an ECHO negotiation packet.
  • step 41C If the received message is an ECHO negotiation message, step 41C is performed;
  • Step 41C Determine whether the received ECHO negotiation packet meets the ACL rule.
  • a series of ordered rules consisting of statements based on the source address, destination address, port number, etc. of the packet.
  • ACLs can be divided into three types, as shown in the following table.
  • the ACL uses the source address information as an element that defines the ACL rule.
  • the basic ACL rule can filter the packets based on the source address information. Therefore, by configuring the corresponding ACL rules, you can use the ECHO function to detect only the specific links.
  • step 41D if the received ECHO negotiation message satisfies the ACL rule, step 41D is performed;
  • the ACH rule is not limited to the received ECH.
  • the ECHO negotiation packet can be filtered by other rules to implement detection only by using the ECHO function for a specific link.
  • Step 41D Start ECHO detection function.
  • step 42 If the received ECHO negotiation packet satisfies the ACL rule, the ECHO detection function is enabled, and step 42 is performed.
  • Step 42 Set the IP header address and authentication parameters of the ECHO packet, and send the configured ECHO packet to the remote end.
  • the source end (ie, the sender end) and the destination end (ie, the far end) address in the IP header address of the ECHO packet are uniformly set to the interface IP address of the ECHO packet. And the positions of the My Discriminator and Your Discriminator parameters in the ECHO message are exchanged.
  • the format of the ECHO packet is not separately designed, and only the existing BFD control packet format is modified to meet the needs of the ECHO detection, thereby reducing the impact on the existing process and reducing the protocol implementation. the complexity.
  • Step 43 Remotely loop back ECHO messages.
  • RouterB After receiving the ECHO packet sent by RouterA, RouterB does not process the ECHO packet. It only triggers the ICMP redirection function, redirects the ECHO packet, and sends the ECHO packet at the forwarding level. Wenhuan returns to RouterA.
  • Step 44 Receive an ECHO packet of the remote loopback, and analyze and process the packet according to the authentication parameter in the packet.
  • Router A receives the ECHO packet from Router B and obtains the ECHO packet.
  • the Discriminator parameter is used to analyze and process the packet according to the parameter.
  • Router A considers the packet sent by Router B as the packet to analyze whether the link is faulty, thus maintaining the normal detection of Router A.
  • the process of analyzing the received ECHO packet in this step may be: according to the authentication parameter in the packet, the session to which the packet belongs may be determined, and then the session to which the packet belongs may be determined to be a normal state. Further, it can be determined whether the link used by the session is in a normal state.
  • the session to which the ECHO message belongs is declared Down.
  • the number of specified diurnal and ECHO messages mentioned above may be determined by the local system (such as Ro uterA) and the remote system (such as Router B) at the beginning of the session establishment.
  • the method of the ECHO function can be used together with the two existing detection modes of the BFD. This method can also be used instead of the detection task of the BFD control packet. This can reduce the transmission period of the control packet (in asynchronous mode) or completely cancel the BFD. Control message (in query mode).
  • the ECHO function method can also be used as a link fault detection method and becomes the object of patent law protection.
  • the BFD can be implemented according to the embodiment of the present invention.
  • the specific implementation process of the method of the ECHO function is performed, and the ECHO packet of the remote loopback is received, and then the transmission link that the session to which the ECHO packet belongs is determined to be in a normal state, and the transmission link is found to be faulty. Hey, report the situation.
  • step 41 may be omitted, and step 42 may be directly performed, and whether the ECHO function is enabled on a specific link is not performed. Judgment. In addition, you can also not change My in the specific application process.
  • the location of the discriminator parameter is different from the port number of the common BFD packet.
  • the port number of the ECHO packet is 3785, and the port number of the common BFD packet is 3784.
  • the packet is received according to the received packet, and the received packet is the ECHO packet.
  • the discriminator parameter is used to find the local discriminator parameter of the common BFD packet, and then determine the authentication parameter to be obtained, and analyze the packet according to the authentication parameter to determine whether the link is faulty. .
  • a system for implementing a BFD (Bidirectional Forwarding Detection) ECHO (Echo) function comprising a first functional entity and a second functional entity, wherein:
  • the first functional entity is configured to set the source and destination addresses in the IP header of the ECHO packet to the IP address of the interface that sends the echo message, and set the authentication parameter of the ECHO packet, and set the The completed ECH 0 packet is sent to the second functional entity.
  • the first functional entity is further configured to receive the ECHO packet that is looped back by the second functional entity, and analyze and process the ECHO packet according to the authentication parameter in the ECHO packet. .
  • the first functional entity may specifically include:
  • [89] A. Set the sending module, which is used to set the source and destination addresses in the IP header of the echo packet to the IP address of the interface that sends the echo message, and set the authentication parameters of the echo message, and complete the setting.
  • the ECHO message is sent to the second functional entity in the system.
  • Setting the sending module can include:
  • [91] Al setting unit, used to set the source and destination addresses in the IP header of the echo packet to the IP address of the interface that sends the echo message, and the authentication parameter of the echo message.
  • the specific operation procedure of the setting unit can be:
  • the address of the source (ie, the sender) and the destination (that is, the remote) in the IP header address of the ECHO packet are uniformly set to the IP address of the interface that sends the ECHO packet.
  • the sending unit is configured to send the ECHO message that is set by the setting unit to the second functional entity in the system.
  • An analysis processing module configured to receive an ECHO message of a loopback of a second functional entity in the system, and according to E
  • the analysis processing module may specifically include:
  • the receiving unit is configured to receive an ECHO packet that is looped back by the second functional entity in the system.
  • the process of analyzing and processing the received ECHO packet by the analysis processing module may be: according to the authentication parameter in the packet, the session to which the packet belongs may be determined, and then the session to which the packet belongs may be determined to be a normal state. Further, it can be determined whether the link used by the session is in a normal state.
  • the first functional entity may be a router or other functional entity.
  • the second function entity is configured to receive the echo message sent by the first function entity, and loop back the received echo message to the first functional entity.
  • the redirection function loops the received ECHO packet back to the first functional entity.
  • the second functional entity may include a receiving module, a redirection module, and a loopback module, where: 104: C.
  • the receiving module is configured to receive an ECHO packet sent by the first functional entity in the system, and receive the E
  • the redirection module is triggered.
  • the D.Redirecting module is configured to enable the ICMP redirection function to perform the redirection operation on the ECHO packet received by the receiving module.
  • the loopback module is configured to loop back the echo message processed by the redirection module to the first functional entity in the system.
  • the second functional entity may be a router or other functional entity.
  • the system provided by the embodiment of the present invention may further include: 109) 3)
  • the third function entity is configured to receive the packet sent by the network side, and determine whether the received packet is The rule is satisfied; when the received message satisfies the rule, the first functional entity is triggered.
  • the third functional entity may specifically include a receiving module, a first determining triggering module, a second determining triggering module, and a first functional entity starting module, where:
  • the receiving module is configured to receive a packet sent by a network side functional entity.
  • the first judgment triggering module is configured to determine whether the packet received by the receiving module is an ECHO function negotiation message, and trigger the second judgment triggering module after determining that the message is an ECHO function negotiation message. [113] If the first judgment triggering module determines that the message received by the receiving module is not an ECHO function negotiation message, it is regarded as an invalid message and is not processed.
  • the second judgment triggering module is configured to determine, by the first judgment triggering module, whether the ECHO function negotiation packet determined by the first judgment triggering module meets the filtering rule, and the ECHO function negotiation packet satisfies the rule. ⁇ , trigger the first functional entity to start the module.
  • the second judgment triggering module determines that the ECHO function negotiation message determined by the first judgment triggering module does not meet the filtering rule, it is regarded as an invalid message and is not processed.
  • the second judgment triggering module may specifically adopt an ACL (Access Control List) mechanism as its filtering rule, and set the filtering rule of the ACL at the beginning of the network system construction.
  • ACL Access Control List
  • the embodiment of the present invention may also filter the received message by using other similar rules or mechanisms.
  • the first functional entity starting module is configured to start the first functional entity in the system under the trigger of the second determining triggering module.
  • the third functional entity may be independently disposed in the system, or may be disposed in other functional entities in the system, for example, in the first functional entity, thereby The first functional entity has the specific operational functions of the third functional entity.
  • FIG. 6 A schematic diagram of a specific implementation structure of the ECHO function system is shown in FIG. 6 or FIG.
  • the detection mechanism of the ECHO function provides a simple mechanism to enable the use of E CHO functions only on specific links, thereby making it more flexible to use various detection modes to solve complex networking requirements.
  • the third embodiment of the present invention provides a functional entity, which is used to set the source and destination addresses in the IP header of the ECHO packet to the IP address of the interface that sends the ECHO packet, and set the ECHO report.
  • the authentication parameter of the text, and the set ECHO message is sent to other functional entities on the network side; the functional entity can also be used to receive the ECHO message looped back by other functional entities on the network side, according to the authentication parameter in the ECHO message. , Analyze and process ECHO messages.
  • the functional entity may specifically include:
  • the sending module is configured to set the source and destination addresses in the IP header of the ECHO packet to the IP address of the interface that sends the E CHO packet, and set the authentication parameter of the ECHO packet, and set the Completed E
  • the CHO message is sent to other functional entities on the network side.
  • Setting the sending module can include:
  • the setting unit is configured to set the source and destination addresses in the IP header of the ECHO packet to the IP address of the interface that sends the ECHO packet, and set the authentication parameter of the ECHO packet.
  • the specific operation procedure of the setting unit can be:
  • the address of the source (ie, the sender) and the destination (that is, the remote) in the IP header address of the ECHO packet are uniformly set to the IP address of the interface that sends the ECHO packet.
  • the sending unit is configured to send the ECHO message that is set by the setting unit to other functional entities on the network side.
  • the authentication parameters in the CHO message analyze and process the ECHO message.
  • Kl receiving unit, configured to receive ECHO packets looped back by other functional entities on the network side.
  • the process of analyzing and processing the received ECHO packet by the analysis processing module may be: according to the authentication parameter in the packet, the session to which the packet belongs may be determined, and then the session to which the packet belongs may be determined to be a normal state. Further, it can be determined whether the link used by the session is in a normal state.
  • the functional entity provided by the embodiment of the present invention may be a router or other functional entity.
  • Embodiments of the present invention provide a functional entity that clarifies BFD
  • the embodiment of the present invention provides a functional entity, which is configured to trigger an ICMP redirection function after receiving an ECHO packet sent by another functional entity on the network side, and loop back the received ECHO packet to the network side.
  • Functional entity may specifically include a receiving module, a redirecting module, and a loopback module, where:
  • the receiving module is configured to receive an ECHO packet sent by another functional entity on the network side, and receive the E
  • the redirection module is triggered.
  • M redirection module, used to trigger ICMP redirection function under the trigger of the receiving module, The ECHO packet received by the module is redirected.
  • the loopback module is used to loop back the echo packets processed by the redirection module to other functional entities on the network side.
  • the functional entity provided by the embodiment of the present invention may specifically be a router or other functional entity.
  • the detection mechanism of the ECHO function is used to determine whether the transmission link is faulty or not.
  • the ninth embodiment of the present invention provides a functional entity, which is configured to receive a packet sent by the network, determine whether the received packet satisfies the rule, and trigger the ECHO function if the received packet satisfies the rule.
  • the functional entity includes a receiving module, a first determining triggering module, a second determining triggering module, and an echo function starting module, where:
  • the receiving module is configured to receive a packet sent by a network side functional entity.
  • the first judgment triggering module is configured to determine whether the packet received by the receiving module is an echo function negotiation message, and trigger the second judgment triggering module after determining that the packet is an echo function negotiation message.
  • the first judgment triggering module determines that the packet received by the receiving module is not an ECHO function negotiation message, it is regarded as an invalid message and is not processed.
  • the second determining triggering module is configured to determine, by the first determining triggering module, whether the echo function negotiation packet determined by the first determining triggering module meets the filtering rule, and the echoing function negotiation message is satisfied. Rule ⁇ , triggers the echo function to start the module.
  • the second judgment triggering module determines that the ECHO function negotiation packet determined by the first judgment triggering module does not meet the filtering rule, it is regarded as an invalid packet and is not processed.
  • the second judgment triggering module may specifically adopt an ACL (Access Control List) mechanism as its filtering rule, and set the filtering rule of the ACL at the beginning of the network system construction.
  • ACL Access Control List
  • the embodiment of the present invention may also filter the received message by using other similar rules or mechanisms.
  • the functional entity provided by the embodiment of the present invention may be independently set on the network side or in other functional entities on the network side, so that other functional entities on the network side have the specific operations of the functional entity.

Abstract

A method, system and function entity for achieving the echo function of the BFD mechanism includes: setting the source address and the destination address in the IP head of an echo packet to be the IP address of the port which sends the echo packet, the identification parameter of the echo packet is also setted, and then sending the echo packet to the far end; after receiving the echo packet, the far end analyzes and processes the echo packet according to the identification parameter. The echo function of the bidirectional forwarding detection mechanism is simply and accurately achieved, and link faults are discovered in time.

Description

一种实现 BFD机制中回声功能的方法及系统及功能实体  Method, system and functional entity for realizing echo function in BFD mechanism
[1] 技术领域  [1] Technical field
[2] 本发明涉及通信技术领域, 尤其涉及一种实现 BFD机制中回声功能的方法及系 统及功能实体。  [2] The present invention relates to the field of communications technologies, and in particular, to a method, system, and functional entity for implementing an echo function in a BFD mechanism.
[3] 发明背景 [3] Background of the invention
[4] BFD (双向转发检测) 是一种快速检测机制, 能够在系统之间的任何类型通道 上进行故障检测, 这些通道包括直接的物理链路、 虚电路、 隧道、 多跳路由通 道、 以及非直接的通道等。  [4] BFD (Bidirectional Forwarding Detection) is a fast detection mechanism that enables fault detection on any type of channel between systems, including direct physical links, virtual circuits, tunnels, multi-hop routing channels, and Indirect channels, etc.
[5] BFD可以抽象成一个简单的服务, 它提供的服务包括, 检测网络可达性, 同吋 为应用层提供可达性状态信息 (UP/DOWN信息) 。  [5] BFD can be abstracted into a simple service, which provides services such as detecting network reachability and providing reachability status information (UP/DOWN information) for the application layer.
[6] BFD类似于 "Hello"协议, 当 BFD会话建立之后, 双方周期性地向对方发送 BFD 报文, BFD报文的格式可以如附图 1所示。 同吋 BFD也可以在釆用 BFD的链路上 , 周期性检测对方报文到达的情况, 如果在一定间隔内没有收到来自远端的 BFD 报文, 则可以认为网络出现故障, 以此达到故障快速发现的目的。  [6] BFD is similar to the "Hello" protocol. After a BFD session is established, the two parties periodically send BFD packets to the peer. The format of the BFD packets is as shown in Figure 1. A peer BFD can also periodically detect the arrival of the other party's packets on the BFD-enabled link. If the BFD packet from the remote end is not received within a certain interval, the network can be considered faulty. The purpose of rapid fault detection.
[7] BFD可以工作在异步模式, 或者査询模式下。 在异步模式下, 系统之间在达成 协议后, 相互周期性地发送 BFD控制包, 如果某个系统在约定的检测吋间内没有 收到远端发来的 BFD控制报文, 就宣布会话为 Down; 在査询模式下, 假定达成 协议后的每个系统都有一个独立的方法用来确认它连接到其他系统, 这样一旦 一个 BFD会话建立起来以后, 系统停止发送 BFD控制报文, 除非某个系统需要显 式地验证连接性, 则系统发送一个短序列的 BFD控制包, 如果在约定的检测吋间 内没有收到返回的报文, 系统就宣布会话为 Down, 如果收到远端的回应报文, 协议再次保持沉默。  [7] BFD can work in asynchronous mode, or in query mode. In the asynchronous mode, after the agreement is reached between the systems, the BFD control packets are periodically sent to each other. If a system does not receive the BFD control packet from the remote end within the agreed detection time, the system announces the session as In the query mode, it is assumed that each system after the agreement has an independent method to confirm that it is connected to other systems, so that once a BFD session is established, the system stops sending BFD control messages unless If the system needs to explicitly verify the connectivity, the system sends a short sequence of BFD control packets. If the returned packets are not received within the agreed detection interval, the system announces that the session is Down. In response to the message, the agreement remains silent again.
BFD会话在使用异步检测模式下, 两端路由器 (ROUterA、 RouterB) 同吋向远 端频繁发送 BFD控制报文, 所述情况如附图 2所示, 以维持 BFD的实吋检测, 但 在网络流量比较大的情况下, 大流量的 BFD快速异步检测报文将会对网络的畅通 性造成冲击; 如果使用査询模式进行检测, 又会导致系统无法实吋感知到链路 的故障, 造成数据的丢失。 In the asynchronous detection mode, the two routers (R OU terA, Router B) send BFD control packets to the remote end. The situation is as shown in Figure 2 to maintain the BFD detection. When the network traffic is relatively large, the BFD fast asynchronous detection packets of large traffic will impact the smoothness of the network. If the query mode is used for detection, the system cannot detect the link. The failure caused the loss of data.
目前, 针对 BFD存在的上述缺陷, 提出了一种规避方法, 即可实现辅助检测的 ECHO (回声) 功能。 ECHO功能使用短小的 ECHO报文以及远端路由器不处理 报文的方法, 在本地系统发送一系列 BFD  At present, in view of the above defects of BFD, an evasive method is proposed to realize the ECHO (echo) function of auxiliary detection. The ECHO function uses a short ECHO message and a method in which the remote router does not process the message, and sends a series of BFDs in the local system.
ECHO报文, 远端系统通过它的转发通道将它们环回回来, 从而减少了网络以及 路由器 CPU的负荷。  ECHO messages, the remote system loops back through its forwarding channel, reducing the load on the network and the router CPU.
在实现本发明的过程中, 发明人发现现有技术中, 并没有明确指出如何实现 E CHO功能, 这样, 就有可能导致本领域技术人员无法正确使用 ECHO功能。 发明内容  In the process of implementing the present invention, the inventors have found that the prior art does not explicitly indicate how to implement the E CHO function, and thus, it is possible to cause the skilled person to use the ECHO function correctly. Summary of the invention
本发明实施例要解决的主要技术问题是提供一种实现 BFD机制中回声功能的方 法及系统及功能实体, 从而确保了 BFD机制中回声功能的正确使用。  The main technical problem to be solved by the embodiments of the present invention is to provide a method, system and functional entity for implementing the echo function in the BFD mechanism, thereby ensuring the correct use of the echo function in the BFD mechanism.
本发明实施例提供了一种实现 BFD机制中回声功能的方法, 所述方法包括: 发送回声报文至远端, 所述回声报文的 IP头中的源端地址和目的端地址为发送 回声报文的接口的 IP地址;  An embodiment of the present invention provides a method for implementing an echo function in a BFD mechanism, where the method includes: sending an echo message to a remote end, where a source address and a destination address in the IP header of the echo message are sent echoes IP address of the interface of the packet;
根据远端环回的所述回声报文中的鉴别参数, 对所述回声报文进行分析处理。 本发明实施例还提供了一种实现 BFD机制中回声功能的系统, 所述系统包括第 一功能实体和第二功能实体, 其中:  The echo message is analyzed and processed according to the authentication parameter in the echo message of the remote loopback. The embodiment of the present invention further provides a system for implementing an echo function in a BFD mechanism, where the system includes a first functional entity and a second functional entity, where:
第一功能实体, 用于将回声报文发送至第二功能实体, 所述回声报文的 IP头中 的源端和目的端地址为发送回声报文的接口的 IP地址;  The first function entity is configured to send the echo message to the second function entity, where the source end and the destination end address in the IP header of the echo message are the IP address of the interface that sends the echo message;
第二功能实体, 用于接收第一功能实体发送的回声报文, 并将接收的回声报文 环回至第一功能实体;  a second function entity, configured to receive an echo message sent by the first function entity, and loop the received echo message back to the first functional entity;
所述第一功能实体还用于接收第二功能实体环回的回声报文, 根据所述报文中 的鉴别参数, 对报文进行分析处理。  The first functional entity is further configured to receive an echo message of the loopback of the second functional entity, and analyze and process the packet according to the authentication parameter in the packet.
本发明实施例还提供了一种功能实体, 所述功能实体包括:  An embodiment of the present invention further provides a functional entity, where the functional entity includes:
设置发送模块, 用于将回声报文 IP头中的源端和目的端地址设置为发送回声报 文的接口的 IP地址, 并将设置完成的回声报文发送至网络侧的其它功能实体; 分析处理模块, 用于接收网络侧其它功能实体环回的回声报文, 根据所述报文 中的鉴别参数, 对报文进行分析处理。 [23] 本发明实施例还提供了一种功能实体, 所述功能实体包括接收模块, 重定向模 块以及环回模块, 其中: The sending module is configured to set the source and destination addresses in the IP header of the echo packet to the IP address of the interface that sends the echo packet, and send the configured echo message to other functional entities on the network side. The processing module is configured to receive an echo message of the loopback of other functional entities on the network side, and analyze and process the packet according to the authentication parameter in the packet. [23] The embodiment of the present invention further provides a functional entity, where the functional entity includes a receiving module, a redirecting module, and a loopback module, where:
[24] 接收模块, 用于接收网络侧功能实体发送的回声报文, 并在接收到回声报文后 , 触发重定向模块;  [24] The receiving module is configured to receive an echo message sent by the network side functional entity, and trigger the redirection module after receiving the echo message;
[25] 重定向模块, 用于在接收模块的触发下, 启动网际控制报文协议重定向功能, 对接收模块接收的回声报文进行重定向操作;  [25] The redirection module is configured to: when triggered by the receiving module, start an internet protocol message protocol redirection function, and perform a redirection operation on the echo message received by the receiving module;
[26] 环回模块, 用于将重定向模块处理后的回声报文环回至网络侧功能实体。 [26] The loopback module is configured to loop back the echo packets processed by the redirection module to the network side functional entity.
[27] 本发明实施例还提供了一种功能实体, 所述功能实体包括接收模块, 第一判断 触发模块, 第二判断触发模块及回声功能启动模块, 其中: [27] The embodiment of the present invention further provides a functional entity, where the functional entity includes a receiving module, a first determining triggering module, a second determining triggering module, and an echo function starting module, where:
[28] 接收模块, 用于接收网络侧功能实体发送的报文; [28] a receiving module, configured to receive a packet sent by a network side functional entity;
[29] 第一判断触发模块, 用于判断接收模块接收的报文是否为回声功能协商报文, 并在确定所述报文为回声功能协商报文吋, 触发第二判断触发模块;  [29] The first determining triggering module is configured to determine whether the packet received by the receiving module is an echo function negotiation packet, and trigger the second determining triggering module after determining that the packet is an echo function negotiation packet;
[30] 第二判断触发模块, 用于在第一判断触发模块触发下, 判断第一判断触发模块 确定的回声功能协商报文是否满足过滤规则, 并在所述回声功能协商报文满足 规则吋, 触发回声功能启动模块; [30] The second judgment triggering module is configured to: determine, by the first judgment triggering module, whether the echo function negotiation packet determined by the first judgment triggering module satisfies the filtering rule, and the negotiation message satisfies the rule in the echo function. , triggering the echo function to activate the module;
[31] 回声功能启动模块, 用于在第一判断触发模块的触发下, 启动双向转发检测机 制中回声功能。 [31] The echo function startup module is configured to start the echo function in the bidirectional forwarding detection mechanism under the trigger of the first judgment trigger module.
[32] 由上述本发明实施例提供的技术方案可以看出, 本发明实施例中, 将回声报文 IP头中的源端和目的端地址设置为发送回声报文的接口的 IP地址, 以及设置回声 报文的鉴别参数, 并将设置完成的回声报文发送至远端; 接收远端环回的回声 报文, 根据所述报文中的鉴别参数, 对报文进行分析处理, 从而简单、 正确的 实现了双向转发检测机制中回声功能, 确保了对链路故障的及吋发现。  [32] According to the technical solution provided by the foregoing embodiment of the present invention, in the embodiment of the present invention, the source end and the destination end address in the IP header of the echo packet are set as the IP address of the interface that sends the echo packet, and Set the authentication parameters of the echo packets, and send the echo packets that have been set to the remote end. Receive the echo packets of the remote loopback, and analyze and process the packets based on the authentication parameters in the packets. The echo function in the two-way forwarding detection mechanism is correctly implemented, and the detection of the link failure is ensured.
[33] 附图简要说明  [33] BRIEF DESCRIPTION OF THE DRAWINGS
[34] 图 1为现有技术中 BFD报文的格式;  [34] Figure 1 shows the format of a BFD packet in the prior art;
[35] 图 2为现有技术中 BFD的检测过程示意图;  [35] FIG. 2 is a schematic diagram of a detection process of BFD in the prior art;
[36] 图 3为本发明实施例一提供的实现 BFD ECHO功能的方法原理示意图;  FIG. 3 is a schematic diagram of a method for implementing a BFD ECHO function according to Embodiment 1 of the present invention; FIG.
[37] 图 4为本发明实施例一提供的方法具体实现流程图;  4 is a flowchart of a specific implementation of a method according to Embodiment 1 of the present invention;
[38] 图 5为本发明实施例一提供的 ECHO功能启动判断流程图; [39] 图 6为本发明实施例二提供的实现 BFD ECHO功能的系统的结构示意图一;FIG. 5 is a flowchart of determining an ECHO function startup according to Embodiment 1 of the present invention; FIG. 6 is a schematic structural diagram 1 of a system for implementing a BFD ECHO function according to Embodiment 2 of the present invention;
[40] 图 7为本发明实施例二提供的实现 BFD ECHO功能的系统的结构示意图二;FIG. 7 is a schematic structural diagram 2 of a system for implementing a BFD ECHO function according to Embodiment 2 of the present invention; FIG.
[41] 图 8为本发明实施例三提供的功能实体结构示意图; FIG. 8 is a schematic structural diagram of a functional entity according to Embodiment 3 of the present invention; FIG.
[42] 图 9为本发明实施例四提供的功能实体结构示意图;  FIG. 9 is a schematic structural diagram of a functional entity according to Embodiment 4 of the present invention; FIG.
[43] 图 10为本发明实施例五提供的功能实体结构示意图。  FIG. 10 is a schematic structural diagram of a functional entity according to Embodiment 5 of the present invention.
[44] 实施本发明的方式  [44] Mode for carrying out the invention
[45] 为使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图对本发明作进 一步地详细描述。  The present invention will be further described in detail below with reference to the accompanying drawings.
[46] 本发明实施例一提供了一种实现 BFD (双向转发检测) ECHO (回声) 功能的 方法, 该方法中, 可以通过设置 ECHO报文的 IP头地址以及鉴别参数, 并将设置 完成的 ECHO报文发送至远端, 然后接收远端环回的 ECHO报文, 根据所述报文 中的鉴别参数, 对报文进行分析处理, 从而简单, 正确的实现了 BFD ECHO 辅助检测功能, 确保了对链路故障的及吋发现。  [46] The first embodiment of the present invention provides a method for implementing a BFD (bidirectional forwarding detection) ECHO (echo) function, in which the IP header address and the authentication parameter of the ECHO packet can be set, and the setting is completed. The ECHO packet is sent to the remote end, and then the remote loopback ECHO packet is received, and the packet is analyzed and processed according to the authentication parameter in the packet, thereby simply and correctly implementing the BFD ECHO auxiliary detection function to ensure The discovery of link failures.
[47] 需要说明的是, BFD  [47] It should be noted that BFD
ECHO报文事实上检测的是远端的转发通道, 报文并不需要上传至远端的 BFD模 块, 而是远端的转发层面直接把报文环回至发送端, 真正对 ECHO报文进行检测 的是 ECHO报文的发出端。  The ECHO packet actually detects the remote forwarding channel. The packet does not need to be uploaded to the remote BFD module. The remote forwarding layer directly loops the packet back to the sending end. The ECHO packet is actually sent. The origin of the ECHO message is detected.
基于以上原理, 本发明实施例中, 发出端将 ECHO报文 IP头中的源端 (即发送 端) 和目的端 (即远端) 地址统一设置成发送 ECHO报文的接口 IP地址, 这样, 报文送达远端吋, 因为目的端地址与远端地址不匹配, 从而触发远端的 ICMP ( 网际控制报文协议) 的重定向功能, 将 ECHO报文环回至报文发出端。  Based on the above principle, in the embodiment of the present invention, the originating end uniformly sets the source end (ie, the transmitting end) and the destination end (ie, the far end) address in the IP head of the ECHO packet to the IP address of the interface that sends the ECHO packet, so that The packet is sent to the remote end. The destination address is not matched with the remote address. This triggers the remote ICMP (Internet Control Message Protocol) redirection function and loops the ECHO packet back to the packet originating end.
当 ECHO报文被从远端环回回来之后, 发出端需要根据报文中的信息将 ECHO 数据包分离到正确的 BFD会话上。 因为 BFD报文与会话的关联关系是基于会话的 My  After the ECHO packet is returned from the remote loop, the originator needs to separate the ECHO packet into the correct BFD session according to the information in the packet. Because the association between BFD packets and sessions is session-based.
Discriminator建立的, 基于这点, 本发明实施例在原有报文格式的基础上, 对发 出的 ECHO报文进行了特殊处理, 将会话的 My Discriminator和 Your  Based on this, the embodiment of the present invention performs special processing on the issued ECHO message based on the original message format, and the session's My Discriminator and Your
Discriminator在报文中的位置互换。 这样, 发出端在收到环回回来的 ECHO报文 后, 会将其作为远端发送过来的报文进行处理, 维持了发出端的正常检测。 上 述原理的实现过程如附图 3所示。 The position of the Discriminator in the message is interchanged. In this way, after receiving the ECHO message returned by the loopback, the sending end will process the packet as the remote end, and maintain the normal detection of the sending end. On The implementation process of the principle is shown in Figure 3.
[50] 在本发明实施例中, 发送端可以为 RouterA (路由器 A) , 远端可以为 RouterB In the embodiment of the present invention, the sending end may be Router A (Router A), and the remote end may be Router B.
(路由器 B) 。  (Router B).
[51] 如附图 4所示, 实现本发明实施例一提供的实现了 BFD  [51] As shown in FIG. 4, the implementation of the first embodiment of the present invention implements BFD
ECHO功能的方法的处理流程具体可以包括:  The processing flow of the method of the ECHO function may specifically include:
[52] 步骤 41、 判断是否启动 ECHO辅助检测功能。 [52] Step 41. Determine whether to activate the ECHO auxiliary detection function.
[53] 本发明实施例中, 可以在会话建立阶段, 对远端发送的报文进行过滤, 从而实 现仅在特定的链路上使能 ECHO功能, 进而更灵活的使用各种检测模式, 以达到 最佳的检测效果。  In the embodiment of the present invention, the packet sent by the remote end may be filtered during the session establishment phase, so that the ECHO function is enabled only on a specific link, and the detection modes are more flexibly used. Achieve the best detection results.
[54] 下面, 以釆用 ACL (访问控制列表) 机制为例, 对该过程进行详细描述, 如附 图 5所示, 该过程具体可以包括:  [54] In the following, the ACL (Access Control List) mechanism is used as an example to describe the process in detail. As shown in FIG. 5, the process may specifically include:
[55] 步骤 41A、 接收远端发送的协商报文。 [55] Step 41A: Receive the negotiation packet sent by the remote end.
[56] 步骤 41B、 判断接收的报文是否为 ECHO协商报文。 [56] Step 41B: Determine whether the received packet is an ECHO negotiation packet.
[57] 若接收的报文是 ECHO协商报文, 则执行步骤 41C; [57] If the received message is an ECHO negotiation message, step 41C is performed;
[58] 若接收的报文不是 ECHO协商报文, 则进行异步或査询检测协商, 由于此过程 不再本发明涵盖范围, 所以, 这里不再赞述。  [58] If the received message is not an ECHO negotiation message, asynchronous or query detection negotiation is performed. Since this process is no longer covered by the present invention, it is not mentioned here.
[59] 步骤 41C、 判断接收的 ECHO协商报文是否满足 ACL规则。  [59] Step 41C: Determine whether the received ECHO negotiation packet meets the ACL rule.
[60] 当确定接收的报文为 ECHO协商报文后, 判断该 ECHO协商报文是否满足 ACL 规则。  [60] After determining that the received packet is an ECHO negotiation packet, it is determined whether the ECHO negotiation packet satisfies the ACL rule.
[61] 上述 ACL规则可以是由 permit I deny  [61] The above ACL rule can be enforced by permit I deny
语句组成的一系列有顺序的规则, 这些规则根据数据包的源地址、 目的地址、 端口号等来描述。  A series of ordered rules consisting of statements based on the source address, destination address, port number, etc. of the packet.
[62] 按照 ACL的用途, ACL可以分为 3种类型, 具体如下表所示。  [62] According to the purpose of ACL, ACLs can be divided into three types, as shown in the following table.
[63]  [63]
ACL类型 编号范围  ACL type number range
基于接口的 ACL (interface-based ACL) 1000〜 1999 基本 ACL (Basic ACL) 2000〜2999 高级 ACL (Advanced ACL) 3000〜3999 [64] 以 ACL的编号范围为 2000~2999为例, 即是 Basic ACL。 Basic Interface-based ACL 1000~ 1999 Basic ACL 2000~2999 Advanced ACL 3000~3999 [64] The ACL number ranges from 2000 to 2999, which is the Basic ACL. Basic
ACL使用源地址信息作为定义 ACL规则的元素。  The ACL uses the source address information as an element that defines the ACL rule.
[65] 鉴于基本 ACL规则可以针对源地址信息对报文进行过滤, 所以, 通过配置相应 的 ACL规则, 可以实现仅对特定的链路使用 ECHO功能辅助检测。 [65] The basic ACL rule can filter the packets based on the source address information. Therefore, by configuring the corresponding ACL rules, you can use the ECHO function to detect only the specific links.
[66] 因此, 若接收的 ECHO协商报文满足 ACL规则, 则执行步骤 41D ; [66] Therefore, if the received ECHO negotiation message satisfies the ACL rule, step 41D is performed;
[67] 若接收的 ECHO协商报文不满足 ACL规则, 则进行异步或査询检测协商。 [67] If the received ECHO negotiation packet does not satisfy the ACL rule, asynchronous or query detection negotiation is performed.
[68] 这里需要说明的是, 本发明实施例中, 并不仅限于釆用 ACL规则对接收的 ECH[68] It should be noted that, in the embodiment of the present invention, the ACH rule is not limited to the received ECH.
0协商报文进行过滤, 也可以釆用其它规则对 ECHO协商报文进行过滤, 从而实 现仅对特定的链路使用 ECHO功能进行检测。 If the negotiation packet is filtered, the ECHO negotiation packet can be filtered by other rules to implement detection only by using the ECHO function for a specific link.
[69] 步骤 41D、 启动 ECHO检测功能。 [69] Step 41D, Start ECHO detection function.
[70] 若接收的 ECHO协商报文满足 ACL规则, 则启动 ECHO检测功能, 执行步骤 42  [70] If the received ECHO negotiation packet satisfies the ACL rule, the ECHO detection function is enabled, and step 42 is performed.
[71] 步骤 42、 设置 ECHO报文的 IP头地址以及鉴别参数, 并将设置完成的 ECHO报 文发送至远端。 [71] Step 42: Set the IP header address and authentication parameters of the ECHO packet, and send the configured ECHO packet to the remote end.
[72] 鉴于如附图 3所示的原理, 将 ECHO报文 IP头地址中的源端 (即发送端) 和目的 端 (即远端) 地址统一设置成发送 ECHO报文的接口 IP地址。 并且将 ECHO报文 中 My Discriminator和 Your Discriminator参数的位置互相调换。  [72] In view of the principle shown in FIG. 3, the source end (ie, the sender end) and the destination end (ie, the far end) address in the IP header address of the ECHO packet are uniformly set to the interface IP address of the ECHO packet. And the positions of the My Discriminator and Your Discriminator parameters in the ECHO message are exchanged.
[73] 在完成上述设置后, 将 ECHO报文发送至 RouterB。  [73] After completing the above settings, send ECHO packets to RouterB.
[74] 本发明实施例中, 不另外设计 ECHO报文的格式, 仅对现有 BFD控制报文格式 进行修改以满足 ECHO检测的需要, 从而降低了对现有流程的冲击, 减少协议实 现的复杂度。  In the embodiment of the present invention, the format of the ECHO packet is not separately designed, and only the existing BFD control packet format is modified to meet the needs of the ECHO detection, thereby reducing the impact on the existing process and reducing the protocol implementation. the complexity.
[75] 步骤 43、 远端环回 ECHO报文。  [75] Step 43: Remotely loop back ECHO messages.
[76] RouterB在接收到 RouterA发送的、 经过重新设置的 ECHO报文后, 对 ECHO报 文不做任何处理, 只是触发 ICMP的重定向功能, 将 ECHO报文重新定向, 在转 发层面将 ECHO报文环回至 RouterA。  [76] After receiving the ECHO packet sent by RouterA, RouterB does not process the ECHO packet. It only triggers the ICMP redirection function, redirects the ECHO packet, and sends the ECHO packet at the forwarding level. Wenhuan returns to RouterA.
[77] 步骤 44、 接收远端环回的 ECHO报文, 根据所述报文中的鉴别参数, 对报文进 行分析处理。 [77] Step 44: Receive an ECHO packet of the remote loopback, and analyze and process the packet according to the authentication parameter in the packet.
[78] RouterA接收 RouterB环回的 ECHO报文, 获取 ECHO报文 Your Discriminator参数, 并根据该参数, 对报文进行分析处理。 [78] Router A receives the ECHO packet from Router B and obtains the ECHO packet. The Discriminator parameter is used to analyze and process the packet according to the parameter.
[79] 由于该 ECHO报文中的 My Discriminator和 Your [79] Due to My Discriminator and Your in the ECHO message
Discriminator参数的位置已经互相调换, 所以, RouterA将其视为 RouterB发送的 报文进行分析处理, 判断链路是否故障, 从而维持了 RouterA的正常检测。  The position of the discriminator parameter has been changed. Therefore, Router A considers the packet sent by Router B as the packet to analyze whether the link is faulty, thus maintaining the normal detection of Router A.
[80] 在此步骤中对接收的 ECHO报文进行分析处理的过程具体可以为: 根据报文中 的鉴别参数, 可以确定该报文所属会话, 进而可以确定该报文所属会话是否为 正常状态, 更进一步可以确定该会话所使用的链路是否为正常状态。 [80] The process of analyzing the received ECHO packet in this step may be: according to the authentication parameter in the packet, the session to which the packet belongs may be determined, and then the session to which the packet belongs may be determined to be a normal state. Further, it can be determined whether the link used by the session is in a normal state.
[81] 在实际应用中, 如果本地系统 (如 RouterA) , 在对规定的吋间内, 连续若干 个 ECHO报文都没有接收到情况下, 将 ECHO报文所属会话宣布为 Down。 上述提 及的规定的吋间及 ECHO报文的个数, 可以在会话建立之初, 由本地系统 (如 Ro uterA) 与远端系统 (如 RouterB) 协商确定。 [81] In the actual application, if the local system (such as RouterA) does not receive any consecutive ECHO packets within the specified time interval, the session to which the ECHO message belongs is declared Down. The number of specified diurnal and ECHO messages mentioned above may be determined by the local system (such as Ro uterA) and the remote system (such as Router B) at the beginning of the session establishment.
[82] 本发明实施例提供的实现 BFD The implementation of the BFD provided by the embodiment of the present invention
ECHO功能的方法, 可以和 BFD现存的两种检测模式一起使用, 也可以使用本方 法代替 BFD控制报文的检测任务, 这样可以降低控制报文的发送周期 (异步模式 下) , 或者完全取消 BFD控制报文 (査询模式下) 。  The method of the ECHO function can be used together with the two existing detection modes of the BFD. This method can also be used instead of the detection task of the BFD control packet. This can reduce the transmission period of the control packet (in asynchronous mode) or completely cancel the BFD. Control message (in query mode).
[83] 鉴于上述本发明实施例提供的实现 BFD [83] In view of the above implementation of the embodiment of the present invention, the implementation of BFD
ECHO功能的方法所具体的、 客观存在的技术特征, 本发明实施例提供的实现 BF Specific and objective technical features of the method of the ECHO function, the implementation of the BF provided by the embodiment of the present invention
DD
ECHO功能的方法也可以作为一种链路故障检测方法, 成为专利法保护的客体。 在具体应用过程中, 可以按照本发明实施例提供的实现 BFD The ECHO function method can also be used as a link fault detection method and becomes the object of patent law protection. In a specific application process, the BFD can be implemented according to the embodiment of the present invention.
ECHO功能的方法的具体实现流程来操作, 并通过接收远端环回的 ECHO报文, 进而确定 ECHO报文所属会话正在使用的传输链路是否为正常状态, 并在发现该 传输链路存在故障吋, 将该情况进行上报。  The specific implementation process of the method of the ECHO function is performed, and the ECHO packet of the remote loopback is received, and then the transmission link that the session to which the ECHO packet belongs is determined to be in a normal state, and the transmission link is found to be faulty. Hey, report the situation.
[84] 需要说明的是, 上述处理过程为实现本发明实施例所述方法的优选方案, 在具 体应用过程中, 也可以省略步骤 41, 直接执行步骤 42, 不进行特定链路是否启 动 ECHO功能的判定。 另外, 在具体应用过程中, 也可以不调换 My [84] It should be noted that the foregoing process is a preferred solution for implementing the method in the embodiment of the present invention. In a specific application process, step 41 may be omitted, and step 42 may be directly performed, and whether the ECHO function is enabled on a specific link is not performed. Judgment. In addition, you can also not change My in the specific application process.
Discriminator禾口 Your  Discriminator and your mouth
Discriminator参数的位置, 而是先按照 ECHO报文与普通 BFD报文的端口号不同 (ECHO报文端口号为 3785, 普通 BFD报文的端口号位 3784) , 区分接收的报文 为何种报文, 并在接收的报文为 ECHO报文吋, 査找 ECHO报文的 My The location of the discriminator parameter is different from the port number of the common BFD packet. (The port number of the ECHO packet is 3785, and the port number of the common BFD packet is 3784.) The packet is received according to the received packet, and the received packet is the ECHO packet.
Discriminator参数, 在接收的报文为普通 BFD报文吋, 査找普通 BFD报文的 Your Discriminator参数, 从而确定需要获取的鉴别参数, 并根据鉴别参数对报文进行 分析处理, 判断链路是否存在故障。  The discriminator parameter is used to find the local discriminator parameter of the common BFD packet, and then determine the authentication parameter to be obtained, and analyze the packet according to the authentication parameter to determine whether the link is faulty. .
本发明实施例提供的实现 BFD ECHO功能的方法, 明确了 BFD  The method for implementing the BFD ECHO function provided by the embodiment of the present invention clarifies the BFD
ECHO功能的检测机制, 并且提供了一种简单的判断机制, 使仅在特定链路上使 用 ECHO功能成为可能, 从而更灵活的使用各种检测模式, 解决复杂的组网要求 本发明实施例二提供了一种实现 BFD (双向转发检测) ECHO (回声) 功能的 系统, 所述系统包括第一功能实体和第二功能实体, 其中:  The detection mechanism of the ECHO function, and provides a simple judgment mechanism, which makes it possible to use the ECHO function only on a specific link, thereby more flexibly using various detection modes and solving complex networking requirements. A system for implementing a BFD (Bidirectional Forwarding Detection) ECHO (Echo) function is provided, the system comprising a first functional entity and a second functional entity, wherein:
[87] 1) 第一功能实体, 用于将 ECHO报文 IP头中的源端和目的端地址设置为发送回 声报文的接口的 IP地址, 以及设置 ECHO报文的鉴别参数, 并将设置完成的 ECH 0报文发送至第二功能实体; 第一功能实体还可以用于接收第二功能实体环回的 ECHO报文, 根据该 ECHO报文中的鉴别参数, 对 ECHO报文进行分析处理。  [87] 1) The first functional entity is configured to set the source and destination addresses in the IP header of the ECHO packet to the IP address of the interface that sends the echo message, and set the authentication parameter of the ECHO packet, and set the The completed ECH 0 packet is sent to the second functional entity. The first functional entity is further configured to receive the ECHO packet that is looped back by the second functional entity, and analyze and process the ECHO packet according to the authentication parameter in the ECHO packet. .
[88] 第一功能实体内具体可以包括:  [88] The first functional entity may specifically include:
[89] A、 设置发送模块, 用于将回声报文 IP头中的源端和目的端地址设置为发送回 声报文的接口的 IP地址, 以及设置回声报文的鉴别参数, 并将设置完成的 ECHO 报文发送至系统内的第二功能实体。  [89] A. Set the sending module, which is used to set the source and destination addresses in the IP header of the echo packet to the IP address of the interface that sends the echo message, and set the authentication parameters of the echo message, and complete the setting. The ECHO message is sent to the second functional entity in the system.
[90] 设置发送模块内具体可以包括:  [90] Setting the sending module can include:
[91] Al、 设置单元, 用于将回声报文 IP头中的源端和目的端地址设置为发送回声报 文的接口的 IP地址, 以及设置回声报文的鉴别参数。  [91] Al, setting unit, used to set the source and destination addresses in the IP header of the echo packet to the IP address of the interface that sends the echo message, and the authentication parameter of the echo message.
[92] 设置单元具体操作过程可以为: [92] The specific operation procedure of the setting unit can be:
[93] 将 ECHO报文 IP头地址中的源端 (即发送端) 和目的端 (即远端) 地址统一设 置成发送 ECHO报文的接口 IP地址;  [93] The address of the source (ie, the sender) and the destination (that is, the remote) in the IP header address of the ECHO packet are uniformly set to the IP address of the interface that sends the ECHO packet.
[94] 将 ECHO报文中 My Discriminator和 Your Discriminator参数的位置互相调换。 [94] Interchange the positions of the My Discriminator and Your Discriminator parameters in the ECHO message.
[95] A2、 发送单元, 用于将设置单元完成设置的 ECHO报文发送至系统内的第二功 能实体。 [96] B、 分析处理模块, 用于接收系统内第二功能实体环回的 ECHO报文, 并根据 E[95] A2. The sending unit is configured to send the ECHO message that is set by the setting unit to the second functional entity in the system. [96] B. An analysis processing module, configured to receive an ECHO message of a loopback of a second functional entity in the system, and according to E
CHO报文中的鉴别参数, 对 ECHO报文进行分析处理。 The authentication parameters in the CHO message analyze and process the ECHO message.
[97] 分析处理模块具体可以包括: [97] The analysis processing module may specifically include:
[98] Bl、 接收单元, 用于接收系统内的第二功能实体环回的 ECHO报文。  [98] The receiving unit is configured to receive an ECHO packet that is looped back by the second functional entity in the system.
[99] 分析处理模块对接收的 ECHO报文进行分析处理的过程具体可以为: 根据报文 中的鉴别参数, 可以确定该报文所属会话, 进而可以确定该报文所属会话是否 为正常状态, 更进一步可以确定该会话所使用的链路是否为正常状态。 [99] The process of analyzing and processing the received ECHO packet by the analysis processing module may be: according to the authentication parameter in the packet, the session to which the packet belongs may be determined, and then the session to which the packet belongs may be determined to be a normal state. Further, it can be determined whether the link used by the session is in a normal state.
[100] 本发明实施例中, 第一功能实体具体可以为路由器, 或者其它功能实体。 In the embodiment of the present invention, the first functional entity may be a router or other functional entity.
[101] 2) 第二功能实体, 用于接收第一功能实体发送的回声报文, 并将接收的回声 报文环回至第一功能实体。 [101] 2) The second function entity is configured to receive the echo message sent by the first function entity, and loop back the received echo message to the first functional entity.
[102] 第二功能实体在接收到系统内, 第一功能实体发送的 ECHO报文后, 触发 ICMP [102] The second functional entity triggers ICMP after receiving the ECHO packet sent by the first functional entity in the system.
(网际控制报文协议) 重定向功能, 将接收的 ECHO报文环回至第一功能实体。 103] 第二功能实体内具体可以包括接收模块、 重定向模块及环回模块, 其中: 104] C、 接收模块, 用于接收系统内第一功能实体发送的 ECHO报文, 并在接收到 E (Internet Control Message Protocol) The redirection function loops the received ECHO packet back to the first functional entity. The second functional entity may include a receiving module, a redirection module, and a loopback module, where: 104: C. The receiving module is configured to receive an ECHO packet sent by the first functional entity in the system, and receive the E
CHO报文后, 触发重定向模块。 After the CHO message, the redirection module is triggered.
105] D、 重定向模块, 用于在接收模块的触发下, 启动 ICMP重定向功能, 对接收模 块接收的 ECHO报文进行重定向操作。  The D.Redirecting module is configured to enable the ICMP redirection function to perform the redirection operation on the ECHO packet received by the receiving module.
106] E、 环回模块, 用于将重定向模块处理后的回声报文环回至系统内第一功能实 体。  106. E. The loopback module is configured to loop back the echo message processed by the redirection module to the first functional entity in the system.
107] 本发明实施例中, 第二功能实体具体可以为路由器, 或者其它功能实体。  In the embodiment of the present invention, the second functional entity may be a router or other functional entity.
108] 为了仅对特定的链路进行 ECHO功能, 本发明实施例提供的系统还可以包括: 109] 3) 第三功能实体, 用于接收网络侧发送的报文, 并判断接收的报文是否满足 规则; 在接收的报文满足规则的情况下, 触发第一功能实体。  In order to perform the ECHO function only for a specific link, the system provided by the embodiment of the present invention may further include: 109) 3) The third function entity is configured to receive the packet sent by the network side, and determine whether the received packet is The rule is satisfied; when the received message satisfies the rule, the first functional entity is triggered.
110] 第三功能实体具体可以包括接收模块, 第一判断触发模块, 第二判断触发模块 及第一功能实体启动模块, 其中:  The third functional entity may specifically include a receiving module, a first determining triggering module, a second determining triggering module, and a first functional entity starting module, where:
111] F、 接收模块, 用于接收网络侧功能实体发送的报文。  111. F. The receiving module is configured to receive a packet sent by a network side functional entity.
112] G、 第一判断触发模块, 用于判断接收模块接收的报文是否为 ECHO功能协商 报文, 并在确定该报文为 ECHO功能协商报文吋, 触发第二判断触发模块。 [113] 若第一判断触发模块判断接收模块接收的报文不是 ECHO功能协商报文, 则将 其视为无效报文, 不进行处理。 The first judgment triggering module is configured to determine whether the packet received by the receiving module is an ECHO function negotiation message, and trigger the second judgment triggering module after determining that the message is an ECHO function negotiation message. [113] If the first judgment triggering module determines that the message received by the receiving module is not an ECHO function negotiation message, it is regarded as an invalid message and is not processed.
[114] H、 第二判断触发模块, 用于在第一判断触发模块触发下, 判断第一判断触发 模块确定的 ECHO功能协商报文是否满足过滤规则, 并在该 ECHO功能协商报文 满足规则吋, 触发第一功能实体启动模块。 [114] H. The second judgment triggering module is configured to determine, by the first judgment triggering module, whether the ECHO function negotiation packet determined by the first judgment triggering module meets the filtering rule, and the ECHO function negotiation packet satisfies the rule.吋, trigger the first functional entity to start the module.
[115] 若第二判断触发模块判断第一判断触发模块确定的 ECHO功能协商报文不符合 过滤规则, 则将其视为无效报文, 不进行处理。 [115] If the second judgment triggering module determines that the ECHO function negotiation message determined by the first judgment triggering module does not meet the filtering rule, it is regarded as an invalid message and is not processed.
[116] 第二判断触发模块具体可以釆用 ACL (访问控制列表) 机制作为其过滤规则, 并在网络系统构建之初, 对 ACL的过滤规则进行设定。 本发明实施例也可以釆 用类似的其它规则或机制对接收的报文进行过滤处理。 [116] The second judgment triggering module may specifically adopt an ACL (Access Control List) mechanism as its filtering rule, and set the filtering rule of the ACL at the beginning of the network system construction. The embodiment of the present invention may also filter the received message by using other similar rules or mechanisms.
[117] I、 第一功能实体启动模块, 用于在第二判断触发模块的触发下, 启动系统内 的第一功能实体。 [117] I. The first functional entity starting module is configured to start the first functional entity in the system under the trigger of the second determining triggering module.
[118] 进一步说明的是, 本发明实施例提供的系统中, 第三功能实体可以独立设置于 系统内, 或者设置于系统内的其它功能实体内, 比如设置于第一功能实体内, 从而使第一功能实体具备了第三功能实体的具体操作功能。  [118] Further, in the system provided by the embodiment of the present invention, the third functional entity may be independently disposed in the system, or may be disposed in other functional entities in the system, for example, in the first functional entity, thereby The first functional entity has the specific operational functions of the third functional entity.
[119] 本发明实施例提供的实现 BFD  [119] The implementation of the BFD provided by the embodiment of the present invention
ECHO功能的系统的具体实现结构示意图如附图 6或图 7所示。  A schematic diagram of a specific implementation structure of the ECHO function system is shown in FIG. 6 or FIG.
[120] 本发明实施例提供的实现 BFD ECHO功能的系统, 明确了 BFD  [120] The system for implementing the BFD ECHO function provided by the embodiment of the present invention clarifies the BFD
ECHO功能的检测机制, 并且提供了一种简单的机制, 使仅在特定链路上使用 E CHO功能成为可能, 从而更灵活的使用各种检测模式, 解决复杂的组网要求。  The detection mechanism of the ECHO function, and provides a simple mechanism to enable the use of E CHO functions only on specific links, thereby making it more flexible to use various detection modes to solve complex networking requirements.
[121] 本发明实施例三提供了一种功能实体, 该功能实体用于将 ECHO报文 IP头中的 源端和目的端地址设置为发送 ECHO报文的接口的 IP地址, 以及设置 ECHO报文 的鉴别参数, 并将设置完成的 ECHO报文发送至网络侧其它功能实体; 该功能实 体还可以用于接收网络侧其它功能实体环回的 ECHO报文, 根据该 ECHO报文中 的鉴别参数, 对 ECHO报文进行分析处理。 如附图 8所示, 该功能实体具体可以 包括:  [121] The third embodiment of the present invention provides a functional entity, which is used to set the source and destination addresses in the IP header of the ECHO packet to the IP address of the interface that sends the ECHO packet, and set the ECHO report. The authentication parameter of the text, and the set ECHO message is sent to other functional entities on the network side; the functional entity can also be used to receive the ECHO message looped back by other functional entities on the network side, according to the authentication parameter in the ECHO message. , Analyze and process ECHO messages. As shown in FIG. 8, the functional entity may specifically include:
[122] J、 设置发送模块, 用于将 ECHO报文 IP头中的源端和目的端地址设置为发送 E CHO报文的接口的 IP地址, 以及设置 ECHO报文的鉴别参数, 并将设置完成的 E CHO报文发送至网络侧其它功能实体。 [122] J. The sending module is configured to set the source and destination addresses in the IP header of the ECHO packet to the IP address of the interface that sends the E CHO packet, and set the authentication parameter of the ECHO packet, and set the Completed E The CHO message is sent to other functional entities on the network side.
[123] 设置发送模块内具体可以包括: [123] Setting the sending module can include:
[124] 、 设置单元, 用于将 ECHO报文 IP头中的源端和目的端地址设置为发送 ECHO 报文的接口的 IP地址, 以及设置 ECHO报文的鉴别参数。  [124], the setting unit is configured to set the source and destination addresses in the IP header of the ECHO packet to the IP address of the interface that sends the ECHO packet, and set the authentication parameter of the ECHO packet.
[125] 设置单元具体操作过程可以为: [125] The specific operation procedure of the setting unit can be:
[126] 将 ECHO报文 IP头地址中的源端 (即发送端) 和目的端 (即远端) 地址统一设 置成发送 ECHO报文的接口 IP地址;  [126] The address of the source (ie, the sender) and the destination (that is, the remote) in the IP header address of the ECHO packet are uniformly set to the IP address of the interface that sends the ECHO packet.
[127] 将 ECHO报文中 My Discriminator和 Your Discriminator参数的位置互相调换。 [127] Change the positions of the My Discriminator and Your Discriminator parameters in the ECHO message.
[128] J2、 发送单元, 用于将设置单元完成设置的 ECHO报文发送至网络侧其它功能 实体。 [128] J2. The sending unit is configured to send the ECHO message that is set by the setting unit to other functional entities on the network side.
[129] K、 分析处理模块, 用于接收网络侧其它功能实体环回的 ECHO报文, 并根据 E [129] K, an analysis processing module, configured to receive ECHO messages looped back by other functional entities on the network side, and according to E
CHO报文中的鉴别参数, 对 ECHO报文进行分析处理。 The authentication parameters in the CHO message analyze and process the ECHO message.
[130] 分析处理模块具体可以包括: [130] The analysis processing module may specifically include:
[131] Kl、 接收单元, 用于接收网络侧其它功能实体环回的 ECHO报文。  [131] Kl, receiving unit, configured to receive ECHO packets looped back by other functional entities on the network side.
[132] 分析处理模块对接收的 ECHO报文进行分析处理的过程具体可以为: 根据报文 中的鉴别参数, 可以确定该报文所属会话, 进而可以确定该报文所属会话是否 为正常状态, 更进一步可以确定该会话所使用的链路是否为正常状态。  [132] The process of analyzing and processing the received ECHO packet by the analysis processing module may be: according to the authentication parameter in the packet, the session to which the packet belongs may be determined, and then the session to which the packet belongs may be determined to be a normal state. Further, it can be determined whether the link used by the session is in a normal state.
[133] 本发明实施例提供的功能实体具体可以为路由器, 或者其它功能实体。 The functional entity provided by the embodiment of the present invention may be a router or other functional entity.
[134] 本发明实施例提供系功能实体, 明确了 BFD [134] Embodiments of the present invention provide a functional entity that clarifies BFD
ECHO功能的检测机制, 通过对环回的 ECHO报文中鉴别参数的分析处理, 从而 及吋、 准确的判断传输链路是否存在故障。  The detection mechanism of the ECHO function, through the analysis and processing of the identification parameters in the ECHO message of the loopback, thereby determining whether the transmission link is faulty or not.
[135] 本发明实施例四提供了一种功能实体, 用于在接收到网络侧其它功能实体发送 的 ECHO报文后, 触发 ICMP重定向功能, 将接收的 ECHO报文环回至网络侧其它 功能实体。 如附图 9所示, 该功能实体内具体可以包括接收模块、 重定向模块及 环回模块, 其中: The embodiment of the present invention provides a functional entity, which is configured to trigger an ICMP redirection function after receiving an ECHO packet sent by another functional entity on the network side, and loop back the received ECHO packet to the network side. Functional entity. As shown in FIG. 9, the functional entity may specifically include a receiving module, a redirecting module, and a loopback module, where:
[136] L、 接收模块, 用于接收网络侧其它功能实体发送的 ECHO报文, 并在接收到 E [136] L. The receiving module is configured to receive an ECHO packet sent by another functional entity on the network side, and receive the E
CHO报文后, 触发重定向模块。 After the CHO message, the redirection module is triggered.
[137] M、 重定向模块, 用于在接收模块的触发下, 启动 ICMP重定向功能, 对接收 模块接收的 ECHO报文进行重定向操作。 [137] M, redirection module, used to trigger ICMP redirection function under the trigger of the receiving module, The ECHO packet received by the module is redirected.
[138] N、 环回模块, 用于将重定向模块处理后的回声报文环回至网络侧其它功能实 体。 [138] N. The loopback module is used to loop back the echo packets processed by the redirection module to other functional entities on the network side.
[139] 本发明实施例提供的功能实体具体可以为路由器, 或者其它功能实体。  The functional entity provided by the embodiment of the present invention may specifically be a router or other functional entity.
[140] 本发明实施例提供的功能实体, 明确了 BFD [140] The functional entity provided by the embodiment of the present invention clarifies the BFD
ECHO功能的检测机制, 从而及吋、 准确的判断传输链路是否存在故障。  The detection mechanism of the ECHO function is used to determine whether the transmission link is faulty or not.
[141] 本发明实施例五提供了一种功能实体, 用于接收网络侧发送的报文, 并判断接 收的报文是否满足规则, 并在接收的报文满足规则的情况下, 触发 ECHO功能。 如附图 10所示, 该功能实体包括接收模块, 第一判断触发模块, 第二判断触发 模块及回声功能启动模块, 其中: The ninth embodiment of the present invention provides a functional entity, which is configured to receive a packet sent by the network, determine whether the received packet satisfies the rule, and trigger the ECHO function if the received packet satisfies the rule. . As shown in FIG. 10, the functional entity includes a receiving module, a first determining triggering module, a second determining triggering module, and an echo function starting module, where:
[142] 0、 接收模块, 用于接收网络侧功能实体发送的报文。 [142] 0. The receiving module is configured to receive a packet sent by a network side functional entity.
[143] P、 第一判断触发模块, 用于判断接收模块接收的报文是否为回声功能协商报 文, 并在确定所述报文为回声功能协商报文吋, 触发第二判断触发模块。  [143] P. The first judgment triggering module is configured to determine whether the packet received by the receiving module is an echo function negotiation message, and trigger the second judgment triggering module after determining that the packet is an echo function negotiation message.
[144] 若第一判断触发模块判断接收模块接收的报文不是 ECHO功能协商报文, 则将 其视为无效报文, 不进行处理。 [144] If the first judgment triggering module determines that the packet received by the receiving module is not an ECHO function negotiation message, it is regarded as an invalid message and is not processed.
[145] Q、 第二判断触发模块, 用于在第一判断触发模块触发下, 判断第一判断触发 模块确定的回声功能协商报文是否满足过滤规则, 并在所述回声功能协商报文 满足规则吋, 触发回声功能启动模块。 [145] The second determining triggering module is configured to determine, by the first determining triggering module, whether the echo function negotiation packet determined by the first determining triggering module meets the filtering rule, and the echoing function negotiation message is satisfied. Rule 吋, triggers the echo function to start the module.
[146] 若第二判断触发模块判断第一判断触发模块确定的 ECHO功能协商报文不符合 过滤规则, 则将其视为无效报文, 不进行处理。 [146] If the second judgment triggering module determines that the ECHO function negotiation packet determined by the first judgment triggering module does not meet the filtering rule, it is regarded as an invalid packet and is not processed.
[147] 第二判断触发模块具体可以釆用 ACL (访问控制列表) 机制作为其过滤规则, 并在网络系统构建之初, 对 ACL的过滤规则进行设定。 本发明实施例也可以釆 用类似的其它规则或机制对接收的报文进行过滤处理。 [147] The second judgment triggering module may specifically adopt an ACL (Access Control List) mechanism as its filtering rule, and set the filtering rule of the ACL at the beginning of the network system construction. The embodiment of the present invention may also filter the received message by using other similar rules or mechanisms.
[148] R、 回声功能启动模块, 用于在第一判断触发模块的触发下, 启动 BFD [148] R, echo function starting module, used to start BFD under the trigger of the first judgment trigger module
ECHO功能。  ECHO function.
[149] 进一步说明的是, 本发明实施例提供的功能实体, 可以独立设置于网络侧, 或 者设置于网络侧的其它功能实体内, 从而使网络侧其它功能实体具备了该功能 实体的具体操作功能。 以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围并不局限于 此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到 的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围 应该以权利要求的保护范围为准。 [149] Further, the functional entity provided by the embodiment of the present invention may be independently set on the network side or in other functional entities on the network side, so that other functional entities on the network side have the specific operations of the functional entity. Features. The above is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or within the technical scope disclosed by the present invention. Alternatives are intended to be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

权利要求书 Claim
[1] 一种实现双向转发检测机制中回声功能的方法, 其特征在于, 包括:  [1] A method for implementing an echo function in a bidirectional forwarding detection mechanism, comprising:
发送回声报文至远端, 所述回声报文的 IP头中的源端地址和目的端地址为 发送回声报文的接口的 IP地址;  Sending an echo packet to the remote end, where the source address and the destination address in the IP header of the echo packet are the IP addresses of the interface that sends the echo packet;
根据远端环回的所述回声报文中的鉴别参数, 对所述回声报文进行分析处 理。  The echo message is analyzed and processed according to the authentication parameter in the echo message of the remote loopback.
[2] 根据权利要求 1所述的方法, 其特征在于, 在发送所述回声报文之前还包括 在会话建立或状态切换过程中, 将所述回声报文 IP头中的源端地址和目的 端地址设置为发送回声报文的接口的 IP地址。  [2] The method according to claim 1, wherein before the sending the echo message, the source address and the destination in the IP header of the echo message are further included in a session establishment or state switching process. The end address is set to the IP address of the interface that sends the echo message.
[3] 根据权利要求 1或 2所述的方法, 其特征在于, 在发送所述回声报文之前还 包括: [3] The method according to claim 1 or 2, further comprising: before sending the echo message:
将所述回声报文中的本地描述符 My Discriminator与远端描述符 Your Discriminator互换位置。  The local descriptor My Discriminator in the echo message is swapped with the remote descriptor Your Discriminator.
[4] 根据权利要求 2所述的方法, 其特征在于, 在对回声报文进行分析处理之前 还包括:  [4] The method according to claim 2, further comprising: before analyzing the echo message:
接收远端发送的协商报文;  Receiving a negotiation packet sent by the remote end;
判断所述接收的报文是否为回声协商报文;  Determining whether the received packet is an echo negotiation packet;
若所述报文为回声协商报文, 则判断所述回声协商报文是否满足过滤规则 若所述回声协商报文满足过滤规则, 则对回声报文进行分析处理。  If the packet is an echo negotiation packet, it is determined whether the echo negotiation packet satisfies the filtering rule. If the echo negotiation packet satisfies the filtering rule, the echo packet is analyzed and processed.
[5] 根据权利要求 4所述的方法, 其特征在于, 所述过滤规则为访问控制列表机 制。 [5] The method according to claim 4, wherein the filtering rule is an access control list mechanism.
[6] 根据权利要求 3所述的方法, 其特征在于, 所述接收远端环回的所述回声报 文, 根据所述回声报文中的鉴别参数, 对所述回声报文进行分析处理包括 根据远端环回报文的端口号, 确定所述远端环回的报文是否回声报文; 若所述远端环回报文为回声报文, 则根据所述回声报文的 My Discriminator鉴别参数, 对所述回声报文进行分析处理。 [6] The method according to claim 3, wherein the receiving the echo message of the remote loopback, analyzing and processing the echo message according to the authentication parameter in the echo message And determining, according to the port number of the remote loop report, whether the packet of the remote loopback is an echo packet; if the remote loopback report is an echo packet, according to the echo packet, The Discriminator identifies parameters and analyzes the echo messages.
[7] 根据权利要求 6所述的方法, 其特征在于, 所述接收远端环回的所述回声报 文, 根据所述回声报文中的鉴别参数, 对所述回声报文进行分析处理还包 括: [7] The method according to claim 6, wherein the receiving the echo message of the remote loopback, analyzing and processing the echo message according to the authentication parameter in the echo message Also includes:
若所述远端环回报文为普通双向转发检测机制报文, 则根据所述普通双向 转发检测机制报文中的 Your  If the remote ring report message is a normal two-way forwarding detection mechanism message, according to the ordinary two-way forwarding detection mechanism message
Discriminator鉴别参数, 对所述回声报文进行分析处理。  The Discriminator identifies parameters and analyzes the echo messages.
[8] 根据权利要求 1或 2所述的方法, 其特征在于, 所述方法还包括: 远端在接 收到所述回声报文后, 触发网际控制报文协议重定向功能, 将接收的回声 报文环回。 [8] The method according to claim 1 or 2, wherein the method further comprises: after receiving the echo message, the remote end triggers an internet protocol message protocol redirection function, and the received echo is received. The message is looped back.
[9] 一种实现双向转发检测机制中回声功能的系统, 其特征在于, 所述系统包 括第一功能实体和第二功能实体, 其中:  [9] A system for implementing an echo function in a bidirectional forwarding detection mechanism, characterized in that the system comprises a first functional entity and a second functional entity, wherein:
第一功能实体, 用于将回声报文发送至第二功能实体, 所述回声报文的 IP 头中的源端和目的端地址为发送回声报文的接口的 IP地址; 第二功能实体, 用于接收第一功能实体发送的回声报文, 并将接收的回声 报文环回至第一功能实体;  The first function entity is configured to send the echo message to the second function entity, where the source end and the destination end address in the IP header of the echo message are the IP address of the interface that sends the echo message; Receiving an echo message sent by the first function entity, and looping the received echo message back to the first functional entity;
所述第一功能实体还用于接收第二功能实体环回的回声报文, 根据所述报 文中的鉴别参数, 对报文进行分析处理。  The first functional entity is further configured to receive an echo message of the loopback of the second functional entity, and analyze and process the packet according to the authentication parameter in the packet.
[10] 根据权利要求 9所述的系统, 其特征在于, 所述系统还包括:  [10] The system of claim 9, wherein the system further comprises:
第三功能实体, 用于接收网络侧发送的报文, 并判断接收的报文是否满足 规则; 在接收的报文满足规则的情况下, 触发第一功能实体。  The third functional entity is configured to receive the packet sent by the network side, and determine whether the received packet satisfies the rule. If the received packet satisfies the rule, the first functional entity is triggered.
[11] 根据权利要求 10所述的系统, 其特征在于, 所述的第三功能实体独立设置 网络侧; 或者设置于第一功能实体内。  [11] The system according to claim 10, wherein the third functional entity is independently set on the network side; or is disposed in the first functional entity.
[12] 根据权利要求 9所述的系统, 其特征在于, 所述第二功能实体在接收到第一 功能实体发送的回声报文后, 触发网际控制报文协议重定向功能, 将接收 的回声报文环回至第一功能实体。  [12] The system according to claim 9, wherein the second functional entity triggers an internet control message protocol redirection function after receiving the echo message sent by the first functional entity, and the received echo is received. The message loops back to the first functional entity.
[13] 根据权利要求 9所述的系统, 其特征在于, 所述第一功能实体还用于将所述 回声报文中的本地描述符 My Discriminator与远端描述符 Your Discriminator互换位置。 [13] The system according to claim 9, wherein the first functional entity is further configured to: use a local descriptor My Discriminator and a remote descriptor in the echo message. Discriminator swap positions.
[14] 根据权利要求 9至 13任一项所述的系统, 其特征在于, 所述第一功能实体具 体为: 路由器; 所述第二功能实体具体为: 路由器。  [14] The system according to any one of claims 9 to 13, wherein the first functional entity is: a router; and the second functional entity is specifically: a router.
[15] 一种功能实体, 其特征在于, 所述功能实体包括:  [15] A functional entity, wherein the functional entity comprises:
设置发送模块, 用于将回声报文 IP头中的源端和目的端地址设置为发送回 声报文的接口的 IP地址, 并将设置完成的回声报文发送至网络侧的其它功 能实体;  The sending module is configured to set the source and destination addresses in the IP header of the echo packet to the IP address of the interface that sends the echo packet, and send the configured echo message to other functional entities on the network side.
分析处理模块, 用于接收网络侧其它功能实体环回的回声报文, 根据所述 报文中的鉴别参数, 对报文进行分析处理。  The analysis processing module is configured to receive echo messages of loopbacks of other functional entities on the network side, and analyze and process the packets according to the authentication parameters in the packets.
[16] 根据权利要求 15所述的功能实体, 其特征在于, 所述的设置发送模块具体 包括:  [16] The functional entity according to claim 15, wherein the setting and sending module specifically includes:
设置单元, 用于将回声报文 IP头中的源端和目的端地址设置为发送回声报 文的接口的 IP地址, 以及设置回声报文的鉴别参数;  a setting unit, configured to set the source end and the destination end address in the IP header of the echo packet to an IP address of an interface for sending the echo message, and set an authentication parameter of the echo message;
发送单元, 用于将设置单元完成设置的回声报文发送至网络侧的其它功能 实体。  The sending unit is configured to send an echo message that is set by the setting unit to other functional entities on the network side.
[17] 根据权利要求 15所述的功能实体, 其特征在于, 所述分析处理模块包括: 接收单元, 用于接收网络侧其它功能实体环回的回声报文。  [17] The functional entity according to claim 15, wherein the analysis processing module comprises: a receiving unit, configured to receive an echo message of a loopback of other functional entities on the network side.
[18] 根据权利要求 15所述的功能实体, 其特征在于, 所述功能实体还包括: 判断触发模块: 用于接收网络侧发送的报文, 并判断接收的报文是否满足 规则; 在接收的报文满足规则的情况下, 触发第一功能实体。  [18] The functional entity according to claim 15, wherein the functional entity further comprises: a determining triggering module: configured to receive a packet sent by the network side, and determine whether the received packet satisfies a rule; In the case where the message satisfies the rule, the first functional entity is triggered.
[19] 一种功能实体, 其特征在于, 所述功能实体包括接收模块, 重定向模块以 及环回模块, 其中:  [19] A functional entity, comprising: a receiving module, a redirecting module, and a loopback module, wherein:
接收模块, 用于接收网络侧功能实体发送的回声报文, 并在接收到回声报 文后, 触发重定向模块;  The receiving module is configured to receive an echo message sent by the network side functional entity, and after receiving the echo message, trigger the redirection module;
重定向模块, 用于在接收模块的触发下, 启动网际控制报文协议重定向功 能, 对接收模块接收的回声报文进行重定向操作;  The redirection module is configured to: when triggered by the receiving module, start an internet protocol message protocol redirection function, and perform a redirection operation on the echo message received by the receiving module;
环回模块, 用于将重定向模块处理后的回声报文环回至网络侧功能实体。  The loopback module is configured to loop back the echo packets processed by the redirection module to the network side functional entity.
[20] 一种功能实体, 其特征在于, 所述功能实体包括接收模块, 第一判断触发 模块, 第二判断触发模块及回声功能启动模块, 其中: [20] A functional entity, wherein the functional entity includes a receiving module, and the first determining trigger Module, second judgment trigger module and echo function startup module, wherein:
接收模块, 用于接收网络侧功能实体发送的报文;  a receiving module, configured to receive a packet sent by a network side functional entity;
第一判断触发模块, 用于判断接收模块接收的报文是否为回声功能协商报 文, 并在确定所述报文为回声功能协商报文吋, 触发第二判断触发模块; 第二判断触发模块, 用于在第一判断触发模块触发下, 判断第一判断触发 模块确定的回声功能协商报文是否满足过滤规则, 并在所述回声功能协商 报文满足规则吋, 触发回声功能启动模块;  The first determining triggering module is configured to determine whether the packet received by the receiving module is an echo function negotiation packet, and trigger the second determining triggering module after determining that the packet is an echo function negotiation packet; the second determining triggering module And determining, by the first judgment triggering module, whether the echo function negotiation packet determined by the first judgment triggering module satisfies the filtering rule, and triggering the echo function starting module after the echo function negotiation packet satisfies the rule;
回声功能启动模块, 用于在第一判断触发模块的触发下, 启动双向转发检 测机制中回声功能。  The echo function starting module is configured to start the echo function in the bidirectional forwarding detection mechanism under the trigger of the first determining triggering module.
[21] 根据权利要求 20所述的功能实体, 其特征在于, 所述第二判断触发模块釆 用的过滤规则为访问控制列表机制。  [21] The functional entity according to claim 20, wherein the filtering rule used by the second determining triggering module is an access control list mechanism.
[22] 根据权利要求 20所述的功能实体, 其特征在于, 所述功能实体独立设置于 网络侧; 或者设置于网络侧其它功能实体内。 [22] The functional entity according to claim 20, wherein the functional entity is independently set on the network side; or is disposed in other functional entities on the network side.
PCT/CN2008/071542 2007-07-20 2008-07-03 A method, system and function entity for achieving the echo function of the bfd mechanism WO2009012684A1 (en)

Applications Claiming Priority (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
CN200710130170.1 2007-07-20

Publications (1)

Publication Number Publication Date
WO2009012684A1 true WO2009012684A1 (en) 2009-01-29

Family

ID=38937990

Family Applications (1)

Application Number Title Priority Date Filing Date
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

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114268561A (en) * 2020-09-15 2022-04-01 烽火通信科技股份有限公司 BFD message sending device and method

Families Citing this family (12)

* 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

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060209685A1 (en) * 2005-03-18 2006-09-21 Cisco Technology, Inc. BFD rate-limiting and automatic session activation
CN1838620A (en) * 2005-03-25 2006-09-27 华为技术有限公司 Method for detecting chain circuit fault between end-to-end notes in mixed network
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
CN101087211A (en) * 2007-07-20 2007-12-12 华为技术有限公司 A method and system for realizing echo function in BFD mechanism and its function entity

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1901468A (en) * 2006-07-19 2007-01-24 华为技术有限公司 Method and network for detecting specific route fault under internet protocol multiple jump condition

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060209685A1 (en) * 2005-03-18 2006-09-21 Cisco Technology, Inc. BFD rate-limiting and automatic session activation
CN1838620A (en) * 2005-03-25 2006-09-27 华为技术有限公司 Method for detecting chain circuit fault between end-to-end notes in mixed network
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
CN101087211A (en) * 2007-07-20 2007-12-12 华为技术有限公司 A method and system for realizing echo function in BFD mechanism and its function entity

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114268561A (en) * 2020-09-15 2022-04-01 烽火通信科技股份有限公司 BFD message sending device and method
CN114268561B (en) * 2020-09-15 2023-06-09 烽火通信科技股份有限公司 BFD message sending device and method

Also Published As

Publication number Publication date
CN101087211B (en) 2010-08-11
CN101087211A (en) 2007-12-12

Similar Documents

Publication Publication Date Title
WO2009012684A1 (en) A method, system and function entity for achieving the echo function of the bfd mechanism
WO2007016833A1 (en) An method for the triggering failure detection of bidirectional forwarding detection
WO2008098448A1 (en) Method, apparatus and system for diagnosing route in the network based on diameter protocol
WO2007016841A1 (en) A method for achieving fault detection of ip forwarding plane
WO2006099784A1 (en) A method for detecting link fault between end-to-end nodes in a hybrid network
US6061728A (en) Arrangement for controlling network proxy device traffic on a transparently-bridged local area network using a master proxy device
WO2009056034A1 (en) Method, system and equipment to establish bfd detection for lsp tunnel
WO2009036705A1 (en) Method for detecting interface failure and network node equipment
JP2004515182A (en) Message, control and reporting interface for distributed network access systems
WO2011144158A1 (en) Method and system for independently implementing fault location by intermediate node
WO2012155817A1 (en) Loopback testing method, device and system
WO2007121633A1 (en) A method for rapid rerouting when multiple ports sharing the transmission links
WO2011144068A2 (en) Method and apparatus for reporting network packet-loss information
WO2014176975A1 (en) Method and system for information interaction among systems in the same end in drni
WO2013071801A1 (en) Method, device and system for detecting multi-protocol label switching ring network
US9923995B1 (en) Methods, systems, and computer program products for sharing information for detecting an idle TCP connection
WO2012149862A1 (en) Ring network failover method and apparatus
WO2014019348A1 (en) Method, device and system for operation, management and maintenance of oam configuration
WO2015149353A1 (en) Oam packet processing method, network device and network system
WO2006089490A1 (en) A method for implementing fec bfd
US20110213893A1 (en) Methods, systems, and computer program products for detecting an idle tcp connection
Mizrahi et al. An overview of operations, administration, and maintenance (OAM) tools
WO2015123988A1 (en) Congestion control method, apparatus and device
CN108400911B (en) Device and method for realizing Micro-BFD protocol
WO2012119372A1 (en) Message processing method, device and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 08773102

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 08773102

Country of ref document: EP

Kind code of ref document: A1