System and method for providing bidirectional forwarding detection with performance routing measurements

By adopting the BFD echo request packet sending strategy in master/slave mode on low-bandwidth links, the problem of high BFD overhead on low-bandwidth links is solved, efficient performance measurement and detection is achieved, and resource consumption is reduced.

CN114080790BActive Publication Date: 2024-09-10CISCO TECHNOLOGY INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202080050064.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-11-06
Filing Date
2020-07-15
Publication Date
2024-09-10
Estimated Expiration
2040-07-15

AI Technical Summary

Technical Problem

On low-bandwidth links, Bidirectional Forwarding Detection (BFD) and Performance Routing Measurement (PFR) can cause significant overhead, especially in communications between data centers and branches, resulting in wasted resources.

Method used

By establishing a master/slave mode between devices, only the master device sends BFD echo request packets, and other devices rely on echo request packets to detect link activity, loss, delay, and jitter to avoid unnecessary echo responses.

Benefits of technology

It effectively reduces BFD overhead, reduces bandwidth consumption, and enables efficient performance measurement and detection on low-bandwidth links. Specifically, it reduces BFD overhead by 50%, providing greater benefits to SDWAN customers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114080790B_ABST
    Figure CN114080790B_ABST
Patent Text Reader

Abstract

Disclosed is a first device and a second device each sending a BFD echo request packet in an initial stage of establishing communication between the two devices. A method may include: determining that a specific mode, such as a low bandwidth mode, is detected. The method may be implemented by one or both of the devices or a separate network controller. Based on detecting the specific mode or the communication link being in the specific mode, the method includes: the first device or the second device is selected as a master device or a slave device. After determining that one of the devices is the master device and the other device is the slave device, only the master device will send a BFD echo request packet.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Priority declaration

[0002] This application claims the benefit of and priority to U.S. non-provisional patent application No. 16 / 675,465, filed on November 6, 2019, entitled SYSTEMS AND METHODS FOR PROVIDINGBIDIRECTIONAL FORWARDING DETECTION WITH PERFORMANCE ROUTING MEASUREMENTS, which in turn claims the benefit of U.S. provisional patent application No. 62 / 877,997, filed on July 24, 2019, entitled SYSTEMS AND METHODS FOR PROVIDING BIDIRECTIONAL FORWARDING DETECTION WITH PERFORMANCE ROUTING MEASUREMENTS, the entire contents of which are incorporated herein by reference. Technical Field

[0003] The disclosed subject matter relates to bidirectional forwarding detection with performance routing measurements, particularly for low bandwidth links. Background Art

[0004] On low bandwidth links or links that use a pay-as-you-go model such as LTE, any link detection and performance routing (PFR) measurement probes will add a lot of overhead. For example, if a branch is connected to two data center routers, each with two WAN links, Bidirectional Forwarding Detection (BFD) with a packet size of 100B running at 1 second intervals will consume 2GB worth of data in a month. This means a huge overhead for the end user. BFD requests and responses just add a lot of overhead.

[0005] FIG. 1 illustrates a current method 100 between a data center 102 and a branch 104. A first BFD echo request 108 is sent from the data center 102 to the branch 104. In response, a BFD echo reply 112 is sent. The branch 104 also sends a BFD echo request 114, where the data center 102 provides a BFD echo reply 116. The time flow of the requests and generated responses is shown as feature 106 of the data center 102 and feature 110 of the branch 104. FIG. 1 illustrates a high level overhead of various BFD echo requests and replies. BRIEF DESCRIPTION OF THE DRAWINGS

[0006] In order to describe the manner in which the above and other advantages and features of the present disclosure can be obtained, the principles briefly described above will be described in more detail by reference to specific embodiments shown in the accompanying drawings. It should be understood that these drawings depict only exemplary embodiments of the present disclosure and are not therefore to be considered limiting of its scope. The principles of the present invention are described and explained with additional specificity and detail through the use of the accompanying drawings, in which:

[0007] Figure 1 shows a BFD session between a data center and a branch;

[0008] Figure 2A A BFD session showing a unidirectional connectivity loss;

[0009] Figure 2B A BFD session showing complete connectivity loss;

[0010] Figure 2C shows a BFD session and a method for measuring loss;

[0011] Figure 2D shows a BFD session and measuring delay and jitter;

[0012] Figure 3 An example method is shown;

[0013] Figure 4 Another example method is shown;

[0014] Figure 5 Yet another example method is shown;

[0015] Figure 6 An example network device according to various examples is shown;

[0016] Figure 7 An example computing device architecture according to some examples is shown. DETAILED DESCRIPTION

[0017] Various embodiments of the present disclosure are discussed in detail below. Although specific implementations are discussed, it should be understood that this is for illustrative purposes only. Those skilled in the relevant art will recognize that other components and configurations may be used without departing from the spirit and scope of the present disclosure.

[0018] Overview

[0019] Various aspects of the invention are set out in the independent claims and preferred features are set out in the dependent claims. Features of one aspect may be applicable to each aspect alone or in combination with other aspects.

[0020] Additional features and advantages of the present disclosure will be set forth in the subsequent description, and in part will be apparent from the description, or may be learned by the practice of the principles disclosed herein. The features and advantages of the present disclosure may be realized and obtained by the means and combinations particularly pointed out in the appended claims. These and other features of the present disclosure will become more apparent from the following description and the appended claims, or may be learned by the practice of the principles set forth herein.

[0021] The present disclosure provides a solution to the problem of bidirectional forwarding described above. In a normal BFD session, a BFD echo request packet is sent by both routers or devices, and each corresponding router replies with a BFD echo response packet. This means that four packets will flow on the link during each configured time interval. The proposed solution will enable the devices of each party to operate in master / slave mode, and only one device will send a BFD echo request packet. The slave device will rely on the echo request packet to detect activity, loss, delay, and jitter.

[0022] A method includes: a first device and a second device each sending a BFD echo request packet in an initial stage of establishing communication. The method includes: determining that a specific mode is detected, such as a low bandwidth mode. Based on detecting the specific mode or the communication link is in a specific mode, the method includes: selecting the first device or the second device as a master device or a slave device. After determining that one of the devices is the master device and the other device is the slave device, only the master device will send a BFD echo request packet. Considering that only the master device sends the BFD echo request packet, there are multiple methods to measure performance, delay, jitter or detect activity in this case.

[0023] Description of Example Embodiments

[0024] Disclosed herein are systems, methods, and computer-readable media for innovations focused on the ability to improve the use of available bandwidth in a particular mode (e.g., a low bandwidth mode in which a first device communicates with a second device). Other modes may also apply, such as where a user should get more bandwidth or have a higher priority than other users according to a protocol. The methods disclosed herein provide improvements to the use of bidirectional forwarding detection (BFD) echo request packets.

[0025] A method aspect of the present disclosure includes: a first device and a second device each send a BFD echo request packet in an initial stage of establishing communication between the two devices. The method may include: determining that a specific mode is detected, such as a low bandwidth mode. Any mode or event may also trigger a master / slave interaction between the devices. The method may be implemented by one or both of the devices or a separate network controller. Based on detecting a specific mode or a communication link being in a specific mode, the method includes: the first device or the second device is selected as a master device or a slave device. After determining that one of the devices is a master device and the other is a slave device, only the master device will send a BFD echo request packet. The trigger for the device to be selected as a master device or a slave device may also be other parameters or events, such as trends in data flows or predicted events, such as an expected imminent start of a specific mode. Any parameter or condition may trigger the selection of one of the devices as a master device and the other as a slave device. The triggering event may be a network condition (more bandwidth is needed) or a prediction of future bandwidth needs, node downtime in the network, etc. Customers may pay more for higher bandwidth, which may trigger the selection and processing disclosed herein. For example, this mode may be implemented by streaming video or in response to network congestion or the need for large files.

[0026] Figure 2A An aspect of the present disclosure 200 is shown, which relates to detecting an activity failure on a slave device when complete connectivity is lost. A master device 202 and a slave device 204 are established. Over time 206, the master device 202 can send a BFD echo request 208 to the slave device 204. The slave device 204 can provide a BFD echo reply 210. The slave device 204 can maintain a wait time (time-out) for up to an interval X. The wait time can also be a multiple of another wait time value. Whenever the device 204 receives a BFD echo request packet 212, 214, 216, the wait time can be reset. If no packet is received within the wait time period, the BFD state will be converted from open (up) to shut down (down) 218, 220. In this way, bandwidth is saved because only one BFD echo reply 210 is sent.

[0027] Another aspect of the present disclosure 200 is Figure 2B, which relates to detecting an activity failure on a slave device 204 when unidirectional connectivity is lost. A data center master device 202 and a slave device 204 are established. As described above, the establishment of a master / slave relationship can be triggered based on any number of factors. The master device 202 sends a BFD echo request 230 to the slave device 204. A first echo reply 232 is provided. A second BFD echo request 234 is sent to the slave device 204. In this case, the BFD echo response packet 236 sent by the slave device 204 to the master device 202 will not be received and the wait will first occur on the master device side 206. Thereafter, the BFD echo request packet 246 sent by the master device 202 will have a local state shutdown 248, forcing the slave device 204 to also transition to the shutdown state 250. In this case, the BFD echo replies 236, 240, 244 are not received at the master device 202. These replies are sent in response to BFD echo requests 234, 238, 242, respectively.

[0028] Another aspect of the present disclosure is Figure 2C 252. The loss measurement may be based on a combination of two methods. In a system 200 having a master 202 and a slave 204, the master / slave selection process for establishing a BFD "on" state remains the same 252. In this method, the system uses a loss value sent from the master 202 to the slave 204. First, a BFD echo request 254 is sent from the master 202 to the slave 204. The BFD echo reply 256 is lost and not received at the master 202. The loss value or parameter 258 is established and the data is provided as part of the next BFD echo request 260. For example, if this is the first lost echo reply 256, a "loss = 1" value may be added to the BFD echo request 260. If the echo reply packet is dropped, this is important or essential. The slave 204 may take this data and use this information to increment a counter 262 or a BFD performance (PFR) database 264. The slave 204 may then provide a BFD echo reply 266.

[0029] Assume that master device 202 then sends a BFD echo request 268, which is not received at slave device 204. Slave device 204 may again increment loss database 264 by 1 in feature 270. Master device 202 will send another BFD echo request 272, which is not received by slave device 204. Slave device 204 again increments the loss count in database 264 via feature 274.

[0030] Then assume that master device 202 sends a BFD echo request 276 to slave device 204. BFD echo request 276 may include an indication of the amount of loss, which in this example is equal to 2 because two echo replies were not received at master device 202 because neither echo request 268 nor echo request 272 were received at slave device 204. The data sent to loss database 264 may be represented as feature 278, which indicates that the loss is zero when echo request 276 is received by slave device 204. In one aspect, the loss at this stage may be the received loss count (in this case 2) minus the previous consecutive loss count (i.e., 2), resulting in a loss value of zero.

[0031] This method may be based on local time or based on measuring each interval in which no BFD echo request is received from device 204. For example, if two echo request packets are dropped (268, 272), then slave device 204 may increase the loss value by 2, and then the third echo request packet 276 will also have a loss of 2, as shown in FIG. Figure 2C To avoid double counting of this loss, the slave device 204 will subtract the previous loss count seen before packet 278.

[0032] exist Figure 2D In another example shown, the method 200 disclosed herein can provide the ability to measure the delay and / or jitter between the master device 202 and the slave device 204. In this case, the master-slave selection and setup process 252 remains the same. The master device 202 sends 206 a BFD echo request 282. The slave device 204 sends a BFD echo reply 284. The delay or jitter 280 is determined at the master device 202. The process of determining the delay or jitter will be known to those skilled in the art. The data can be updated on the slave device 204 based on what the master device 202 measures or detects. The next echo request packet 286 can include delay and / or jitter data in microseconds or some other frame, and the slave device 204 can use the data to update 288 its PFR database 290. In other words, the process can include inserting the delay and / or jitter data into the BFD echo request packet and the slave device 204 can receive the delay and / or jitter data and update the database.

[0033] Figure 2D A BFD echo reply 292 is shown, which may also have an associated delay or jitter 282. This data is provided in a BFD echo request 294 sent to slave device 204. Slave device 204 reports 297 this data to database 290. In this example, assume that BFD echo reply 296 is not received at all at master device 202. In this case, BFD echo request 298 will include data identifying a missing value of 1. This missing value is also reported 299 to BFD performance database 290.

[0034] Figure 3 The method aspects of the present disclosure are shown from the perspective of a master node. A method includes: establishing a communication link between a first device and a second device, wherein each of the first device and the second device sends a two-way forwarding detection echo request packet (302), determining that a specific pattern or condition is detected with respect to the communication link or other factors (304), selecting a master device and a slave device between the first device and the second device based on the detection of the specific pattern or condition (306), and when it is determined that one of the first device and the second device is a master device and the other of the first device and the second device is a slave device, only sending a two-way forwarding detection echo request packet (308) from the master device to the slave device. If the master node 202 does not receive a reply to, for example, more than two echo requests, the master node 202 can consider the communication mode to be shut down. The last step (308) can be expanded to include: managing the sending of a two-way forwarding detection echo request packet from the master device 202 to the slave device 204 so that a reply to each corresponding echo request is not sent. As shown, for example, in Figure 2A In the example, the reply 210 is sent only once. This may also mean that the sending and processing of the two-way forward detection echo request packets is managed in a specific way after the setup phase is completed.

[0035] The method may also include determining a missing value at the master device based on whether an expected echo reply message in response to the echo request message is received, and adding the missing value to a subsequent echo request message. The slave device 204 may record the missing value in a database. On the other hand, the method may include determining a shutdown state after a predetermined interval of no echo reply message being received at the master device, and sending the shutdown state from the master device to the slave device in an echo request message.

[0036] Determining the shutdown state after a predetermined interval of not receiving an echo reply message at the master device may also include not receiving at least two echo reply messages at the master device before determining the shutdown state.

[0037] Figure 4Another method aspect is shown from the perspective of a slave node 204. A method includes: establishing a communication link between a first device and a second device, wherein each of the first device and the second device sends a bidirectional forward detection echo request packet (402), determining that a specific pattern or condition is detected with respect to the communication link or other factors (404), selecting a master device and a slave device between the first device and the second device based on detecting the specific pattern or condition (406), and upon determining that one of the first device and the second device is the master device and the other of the first device and the second device is the slave device, not sending a bidirectional forward detection echo request packet from the slave device to the master device (408). In one example, if the slave device 204 fails to receive, for example, more than two echo requests from the master device 202, the slave device 204 may consider the communication channel between the two devices to be shut down 220. In other words, the system establishes a mode in which only the master device sends BFD echo request packets, and the device considered to be a slave device no longer sends BFD echo request packets.

[0038] On the other hand, slave device 204 may send a BFD echo request packet only based on a specific criterion (eg, every third time interval or several time intervals in which a BFD echo request packet is not received from master device 202 ).

[0039] Figure 5 A method is shown that involves utilizing the processes described herein to identify or infer one or more parameters associated with communications between a master device 202 and a slave device 204. For example, utilizing this basic method may enable tracking of lost packets, delays or jitter, and determining when an outage condition occurs. Figure 2C and 2D The ability to incrementally track loss and / or delay / jitter with a database associated with slave device 204 utilizing the basic methods described herein is shown.

[0040] An example method includes establishing a communication link between a first device and a second device, wherein each of the first device and the second device sends a two-way forward detection echo request packet (502), determining that a particular pattern or condition is detected with respect to the communication link or other factors (504), selecting a master device and a slave device between the first device and the second device based on the detection of the particular pattern or condition (506), upon determining that one of the first device and the second device is the master device and the other of the first device and the second device is the slave device, sending a two-way forward detection echo request packet only from the master device to the slave device (508), and determining one or more of loss associated with the communication or delay / jitter associated with the communication based on the two-way forward detection echo request packet sent from the master device and the echo reply packet sent from the slave device and based on whether the respective packets are received at respective destination devices (510).

[0041] Usually, for Figure 2C and 2D From device 204, Figure 5 The method described in may include providing data regarding loss or delay / jitter to a database 290 associated with the slave device 204. However, the master device 202 may also store data regarding loss and / or delay / jitter.

[0042] Figure 6 An example network device 600 suitable for implementing aspects of the present disclosure is shown. In some examples, the control plane 310 and / or SVP 318 can be implemented according to the configuration of the network device 600. The network device 600 includes a central processing unit (CPU) 604, an interface 602, and a connection 610 (e.g., a PCI bus). When acting under the control of appropriate software or firmware, the CPU 604 is responsible for performing packet management, error detection, and / or routing functions. The CPU 604 preferably completes all these functions under the control of software including an operating system and any appropriate application software. The CPU 604 may include one or more processors 608, such as processors from the INTEL X86 series of microprocessors. In some cases, the processor 608 may be specially designed hardware for controlling the operation of the network device 600. In some cases, a memory 606 (e.g., non-volatile RAM, ROM, etc.) also forms a part of the CPU 604. However, there are many different ways to couple the memory to the system.

[0043] Interface 602 is usually provided as a modular interface card (sometimes referred to as a "line card"). Typically, they control the sending and receiving of data packets through the network, and sometimes support other peripheral devices used with network device 600. Interfaces that can be provided include Ethernet interfaces, frame relay interfaces, cable interfaces, DSL interfaces, token ring interfaces, etc. In addition, various ultra-high-speed interfaces such as fast token ring interfaces, wireless interfaces, Ethernet interfaces, Gigabit Ethernet interfaces, ATM interfaces, HSSI interfaces, POS interfaces, FDDI interfaces, WiFi interfaces, 3G / 4G / 5G cellular interfaces, CAN BUS, LoRA, etc. can be provided. Typically, these interfaces may include ports suitable for communicating with appropriate media. In some cases, they may also include independent processors, and in some cases, volatile RAM. Independent processors can control communication-intensive tasks such as packet switching, media control, signal processing, cryptographic processing, and management. By providing separate processors for communication-intensive tasks, these interfaces allow CPU 604 to effectively perform routing calculations, network diagnostics, security functions, etc.

[0044] Although Figure 6The system shown is a specific network device of the present technology, and it is by no means the only network device architecture that can implement the present technology. For example, an architecture with a single processor that handles communications as well as routing calculations, etc. is often used. In addition, other types of interfaces and media can also be used with network device 600.

[0045] Regardless of the configuration of the network device, it can use one or more memories or memory modules (including memory 606) that are configured to store program instructions for general network operations and mechanisms for roaming, route optimization, and routing functions described herein. For example, program instructions can control the operation of an operating system and / or one or more applications. One or more memories can also be configured to store tables such as mobile bindings, registrations, and association tables. Memory 606 can also store various software containers and virtualized execution environments and data.

[0046] Network device 600 may also include an application specific integrated circuit (ASIC) that may be configured to perform routing and / or switching operations. The ASIC may communicate with other components in network device 600 via connection 610 to exchange data and signals and coordinate various types of operations of network device 600, such as routing, switching, and / or data storage operations.

[0047] Figure 7 An example computing device architecture 700 of an example computing device that may implement the various techniques described herein is shown. The components of the computing device architecture 700 are shown in electrical communication with each other using a connection 705, such as a bus. The example computing device architecture 700 includes a processing unit (CPU or processor) 710 and a computing device connection 705 that couples various computing device components including computing device memory 715 (e.g., read-only memory (ROM) 720 and random access memory (RAM) 725) to the processor 710.

[0048] The computing device architecture 700 may include a cache of high-speed memory that is directly connected, close to the processor 710, or integrated as part thereof. The computing device architecture 700 may copy data from the memory 715 and / or the storage device 730 to the cache 712 for quick access by the processor 710. In this way, the cache may provide a performance improvement that avoids delays in the processor 710 while waiting for data. These and other modules may control or be configured to control the processor 710 to perform various actions. Other computing device memories 715 may also be used. The memory 715 may include a variety of different types of memory with different performance characteristics. The processor 710 may include any general purpose processor and hardware or software services, such as service 1 732, service 2 734, and service 3 736 stored in the storage device 730, configured to control the processor 710 as well as a dedicated processor, where the software instructions are incorporated into the actual processor design. The processor 710 may essentially be a self-contained system, including multiple cores or processors, buses, memory controllers, caches, etc. Multi-core processors may be symmetric or asymmetric.

[0049] To enable a user to interact with the computing device architecture 700, the input device 745 can represent any number of input mechanisms, such as a microphone for voice, a touch-sensitive screen for gesture or graphic input, a keyboard, a mouse, motion input, voice, and the like. The output device 735 can also be one or more of a variety of output mechanisms known to those skilled in the art, such as a display, a projector, a television, a speaker device, and the like. In some cases, a multi-modal computing device can enable a user to provide multiple types of input to communicate with the computing device architecture 700. The communication interface 740 can generally govern and manage user input and computing device output. There is no limitation on the operation of any particular hardware configuration, so the basic features here can be easily replaced with improved hardware or firmware configurations developed.

[0050] The storage device 730 is a non-volatile memory and can be a hard disk or other type of computer-readable medium that can store data accessible by a computer, such as a magnetic tape, a flash memory card, a solid-state storage device, a digital versatile disk, a cassette tape, a random access memory (RAM) 725, a read-only memory (ROM) 720, and a mixture thereof. The storage device 730 may include services 732, 734, 736 for controlling the processor 710. Other hardware or software modules are contemplated. The storage device 730 may be connected to the computing device connection 705. In one aspect, a hardware module that performs a particular function may include a software component stored in a computer-readable medium and the necessary hardware components, such as the processor 710, the connection 705, the output device 735, etc., to perform the function.

[0051] For clarity of explanation, in some cases, the present technology may be presented as including separate functional blocks including functional blocks, including devices, device components, steps or routines in a method embodied in software or a combination of hardware and software.

[0052] The present disclosure provides a proposed BFD low-bandwidth implementation that can reduce BFD overhead by up to 50%, which will provide great benefits to SDWAN (Software Defined Networking in Wide Area Networks) customers.

[0053] In summary, a first device and a second device each send a BFD echo request packet in an initial stage of establishing communication between the two devices. A method may include: determining that a specific mode is detected, such as a low bandwidth mode. The method may be implemented by one or both of the devices or a separate network controller. Based on detecting the specific mode or the communication link is in a specific mode, the method includes: the first device or the second device is selected as a master device or a slave device. After determining that one of the devices is the master device and the other device is the slave device, only the master device will send a BFD echo request packet.

[0054] In some embodiments, computer-readable storage devices, media, and memories may include cables or wireless signals containing bit streams, etc. However, when referred to, non-transitory computer-readable storage media explicitly excludes media such as energy, carrier signals, electromagnetic waves, and signals themselves.

[0055] The method according to the above example can be implemented using computer executable instructions stored or otherwise available from a computer readable medium. Such instructions may include, for example, instructions and data that cause or otherwise configure a general-purpose computer, a special-purpose computer, or a special-purpose processing device to perform a specific function or functional group. The part of the computer resources used can be accessed through a network. Computer executable instructions can be, for example, binary, intermediate format instructions (such as assembly language), firmware, or source code. Examples of computer readable media that can be used to store instructions, information used, and / or information created during the method according to the described examples include disks or optical disks, flash memory, USB devices provided with non-volatile memory, network storage devices, etc.

[0056] Devices implementing methods according to these disclosures may include hardware, firmware, and / or software, and may take any of a variety of form factors. Some examples of such form factors include general-purpose computing devices, such as servers, rack-mounted devices, desktop computers, laptop computers, etc., or general-purpose mobile computing devices, such as tablet computers, smartphones, personal digital assistants, wearable devices, etc. The functionality described herein may also be embodied in peripheral devices or add-in cards. As a further example, such functionality may also be implemented between different chips on a circuit board or on different processes executed in a single device.

[0057] Instructions, media for transmitting such instructions, computing resources for executing them, and other structures for supporting such computing resources are means for providing the functionality described in these disclosures.

[0058] Although various examples and other information are used to explain various aspects within the scope of the appended claims, limitations to the claims should not be implied based on specific features or arrangements in such examples, as ordinary technicians will be able to use these examples to derive a variety of implementations. In addition, although some subjects may have been described in language specific to examples of structural features and / or method steps, it should be understood that the subject matter defined in the appended claims is not necessarily limited to these described features or actions. For example, such functions may be distributed differently or performed in components other than those identified herein. Instead, the described features and steps are disclosed as examples of components of systems and methods within the scope of the appended claims.

[0059] Claim language that recites “at least one of a set…” means that one member of the set or multiple members of the set satisfy the claim. For example, claim language that recites “at least one of A and B” means A, B, or A and B.

Claims

1. A method for bidirectional forwarding detection, comprising: Establishing a communication link between a first device and a second device, wherein in an initial stage of a bidirectional forwarding session, each of the first device and the second device sends a bidirectional forwarding detection (BFD) echo request packet, and each of the first device and the second device is configured to send a corresponding BFD echo reply packet in response to the received BFD echo request packet; determining that a particular pattern or condition is detected with respect to the communication link or other factors; selecting a master device and a slave device between the first device and the second device based on detecting the specific pattern or condition; and Once it is determined that one of the first device and the second device is a master device and the other of the first device and the second device is a slave device: During the bidirectional forwarding session, sending a subsequently sent BFD echo request packet from the master device to the slave device, wherein the subsequently sent BFD echo request packet includes an indication of at least an amount of loss, the indication being determined based on one or more previously received BFD echo reply packets; as well as In response to determining that the other of the first device and the second device is the slave device, during the remainder of the bidirectional forwarding session in which the other of the first device and the second device is the slave device, facilitating sending of a BFD echo reply packet for the subsequent BFD echo request packet from the slave device to the master device, and suppressing sending of additional BFD echo request packets from the slave device to the master device.

2. The method according to claim 1, further comprising: At the master device, determining a missing value based on whether an expected BFD echo reply message in response to the BFD echo request message is received; as well as The missing value is added to subsequent BFD echo request messages.

3. The method according to claim 2, wherein: The missing value is recorded by the slave device in a database.

4. The method according to any one of claims 1 to 3, further comprising: determining a shutdown state after a predetermined interval of no BFD echo reply message being received at the master device; as well as The shutdown status is sent from the master device to the slave device in a BFD echo request message.

5. The method according to claim 4, wherein: Determining the shutdown state after the predetermined interval of not receiving a BFD echo reply message at the master device further includes: before determining the shutdown state, not receiving at least 2 BFD echo reply messages at the master device.

6. A network controller, comprising: processor; as well as a computer-readable storage device storing instructions that, when executed by the processor, cause the processor to perform operations comprising: establishing a communication link between the network controller and the second device, wherein in an initial stage of a bidirectional forwarding session, each of the network controller and the second device sends a bidirectional forwarding detection (BFD) echo request packet, and each of the network controller and the second device is configured to send a corresponding BFD echo reply packet in response to the received BFD echo request packet; determining that a particular pattern is detected with respect to the communication link; selecting a master device and a slave device between the network controller and the second device based on detecting the specific pattern; and Once it is determined that one of the network controller and the second device is a master device and the other of the network controller and the second device is a slave device: During the bidirectional forwarding session, sending a subsequently transmitted BFD echo request packet from the master device to the slave device, wherein the subsequently transmitted BFD echo request packet includes an indication of at least an amount of loss determined based on one or more previously received BFD echo reply packets; and In response to determining that the other of the network controller and the second device is the slave device, during the remainder of the bidirectional forwarding session in which the other of the network controller and the second device is the slave device, facilitating sending of a BFD echo reply packet for the subsequent BFD echo request packet from the slave device to the master device, and suppressing sending of additional BFD echo request packets from the slave device to the master device.

7. The network controller according to claim 6, further comprising: At the master device, determining a missing value based on whether an expected BFD echo reply message in response to the BFD echo request message is received; as well as The missing value is added to subsequent BFD echo request messages.

8. The network controller according to claim 7, wherein: The missing value is recorded by the slave device in a database.

9. The network controller according to any one of claims 6 to 8, further comprising: determining a shutdown state after a predetermined interval of no echo reply message being received at the master device; as well as The shutdown status is sent from the master device to the slave device in a BFD echo request message.

10. The network controller according to claim 9, wherein: Determining the shutdown state after the predetermined interval of not receiving a BFD echo reply message at the master device further includes: before determining the shutdown state, not receiving at least 2 BFD echo reply messages at the master device.

11. A method for bidirectional forwarding detection, comprising: Establishing a communication link between a first device and a second device, wherein in an initial stage of a bidirectional forwarding session, each of the first device and the second device sends a bidirectional forwarding detection (BFD) echo request packet, and each of the first device and the second device is configured to send a corresponding BFD echo reply packet in response to the received BFD echo request packet; determining that a particular pattern or condition is detected with respect to the communication link or other factors; selecting a master device and a slave device between the first device and the second device based on detecting the specific pattern or condition; and Once it is determined that one of the first device and the second device is a master device and the other of the first device and the second device is a slave device: identifying, at the master device, a condition associated with a BFD echo reply message; During the bidirectional forwarding session, sending a subsequently sent BFD echo request packet from the master device to the slave device, wherein the subsequently sent BFD echo request packet includes an indication of at least an amount of loss determined based on one or more previously received BFD echo reply packets; as well as In response to determining that the other of the first device and the second device is the slave device, during the remainder of the bidirectional forwarding session in which the other of the first device and the second device is the slave device, facilitating sending of a BFD echo reply packet for the subsequent BFD echo request packet from the slave device to the master device, and suppressing sending of additional BFD echo request packets from the slave device to the master device.

12. The method according to claim 11, further comprising: The status is added at the master device to a subsequent BFD echo request packet sent to the slave device.

13. The method according to claim 11 or 12, wherein: The condition is related to one or more of: loss, delay value, and jitter value.

14. The method according to claim 11 or 12, wherein: The condition relates to a missing value, and wherein the method further comprises determining, at the master device, the missing value based on whether an expected BFD echo reply message in response to a BFD echo request message is received.

15. The method according to claim 14, wherein: The missing value is recorded by the slave device in a database.

16. The method according to claim 11 or 12, wherein: The condition is related to a delay value, and wherein the method further comprises: determining, at the master device, the delay value based on a BFD echo reply message received in response to the BFD echo request message.

17. The method according to claim 16, wherein: The delay value is recorded in a database by the slave device.

18. The method according to claim 11 or 12, wherein: The condition is related to a jitter value, and wherein the method further comprises: determining, at the master device, the jitter value based on a BFD echo reply message received in response to the BFD echo request message.

19. The method according to claim 18, wherein: The jitter value is recorded in a database by the slave device.

20. A device for bidirectional forwarding detection, comprising: An apparatus for establishing a communication link between a first device and a second device, wherein in an initial stage of a bidirectional forwarding session, each of the first device and the second device sends a bidirectional forwarding detection (BFD) echo request packet, and each of the first device and the second device is configured to send a corresponding BFD echo reply packet in response to the received BFD echo request packet; means for determining that a particular pattern or condition is detected with respect to said communication link or other factors; means for selecting a master device and a slave device between the first device and the second device based on detecting the specific pattern or condition; as well as means for performing the following operations upon determining that one of the first device and the second device is a master device and the other of the first device and the second device is a slave device: During the bidirectional forwarding session, sending a subsequently sent BFD echo request packet from the master device to the slave device, wherein the subsequently sent BFD echo request packet includes an indication of at least an amount of loss determined based on one or more previously received BFD echo reply packets; as well as In response to determining that the other of the first device and the second device is the slave device, during the remainder of the bidirectional forwarding session in which the other of the first device and the second device is the slave device, facilitating sending of a BFD echo reply packet for the subsequent BFD echo request packet from the slave device to the master device, and suppressing sending of additional BFD echo request packets from the slave device to the master device.

21. The apparatus of claim 20, further comprising means for implementing the method of any one of claims 2 to 5.

22. A device for bidirectional forwarding detection, comprising: An apparatus for establishing a communication link between a first device and a second device, wherein in an initial stage of a bidirectional forwarding session, each of the first device and the second device sends a bidirectional forwarding detection (BFD) echo request packet, and each of the first device and the second device is configured to send a corresponding BFD echo reply packet in response to the received BFD echo request packet; means for determining that a particular pattern or condition is detected with respect to said communication link or other factors; means for selecting a master device and a slave device between the first device and the second device based on detecting the specific pattern or condition; as well as means for performing the following operations upon determining that one of the first device and the second device is a master device and the other of the first device and the second device is a slave device: identifying, at the master device, a condition associated with a BFD echo reply message; During the bidirectional forwarding session, sending a subsequently sent BFD echo request packet from the master device to the slave device, wherein the subsequently sent BFD echo request packet includes an indication of at least an amount of loss determined based on one or more previously received BFD echo reply packets; as well as In response to determining that the other of the first device and the second device is the slave device, during the remainder of the bidirectional forwarding session in which the other of the first device and the second device is the slave device, facilitating sending of a BFD echo reply packet for the subsequent BFD echo request packet from the slave device to the master device, and suppressing sending of additional BFD echo request packets from the slave device to the master device.

23. The apparatus of claim 22, further comprising means for implementing the method of any one of claims 12 to 19.

24. A computer readable medium comprising instructions which, when executed by a computer, cause the computer to perform the steps of the method of any one of claims 1 to 5 or 11 to 19.