Title of Invention

A TECHNIQUE FOR EFFICIENTLY AND DYNAMICALLY MAINTAINING BIDIRECTIONAL FORWARDING DETECTION ON A BUNDLE OF LINKS

Abstract A method for efficiently and dynamically maintaining bidirectional forwarding detec¬ tion (BFD) on a bundle of links in a computer network, the method comprising: establishing one or more standby BFD sessions on one or more corresponding line cards (LCs), the one or more LCs having one or more links of the bundle (bundle links); and selecting one of the one or more standby BFD sessions as an active BFD session based on an activity of one of the one or more bundle links of the corresponding LC.
Full Text

A TECHNIQUE FOR EFFICIENTLY AND DYNAMICALLY MAINTAINING BIDIRECTIONAL FORWARDING DETECTION
ON A BUNDLE OF LINKS
BACKGROUND OF THE INVENTION
Field of the Invention
The present invention relates to computer networks and more particularly to maintaining bidirectional forwarding detection (BFD) on a bundle of links in a computer network.
Background Information
A computer network is a geographically distributed collection of interconnected subnetworks, such as local area networks (LAN) that transport data between network nodes. As used herein, a network node is any device adapted to send and/or receive data in the computer network. Thus, in this context, "node" and "device" may be used inter¬changeably. The network topology is defined by an arrangement of network nodes that communicate with one another, typically through one or more intermediate nodes, such as routers and switches. In addition to intra-network communications, data also may be exchanged between neighboring (i.e., adjacent) networks. To that end, "edge devices" located at the logical outer-bound of the computer network may be adapted to send and receive inter-network cornmunications. Both inter-network and intra-network communi¬cations are typically effected by exchanging discrete packets of data according to prede¬fined protocols. In this context, a protocol consists of a set of rules defining how network nodes interact with each other.
Each data packet typically comprises "payload" data prepended ("encapsulated") by at least one network header formatted in accordance with a network communication protocol. The network headers include information that enables network nodes to effi¬ciently route the packet through the computer network. Often, a packet's network head-

srs include a data-link (layer 2) header, an internetwork (layer 3) header and a transport [layer 4) header as defined by the Transmission Qontrol Protocol/ Internet Protocol (TCP/IP) Reference Model. The TCP/IP Reference Model is generally described in more detail in Section 1.4.2 of the reference book entitled Computer Networks, Fourth Edition, by Andrew Tanenbaum, published 2003, which is hereby incorporated by reference as hough fully set forth herein. A data packet may originate at a source node and subse¬quently "hop" from node to node along a logical data path until it reaches its addressed destination node. The network addresses defining the logical data path of a data flow are most often stored as Internet Protocol (IP) addresses in the packet's internetwork header.
A computer network may contain smaller groups of one or more subnetworks which may be managed as separate routing domains. As used herein, a routing domain is broadly construed as a collection of interconnected network nodes under a common ad¬ministration. Often, a routing domain is managed by a single administrative entity, such as a company, an academic institution or a branch of government Such a centrally-managed routing domain is sometimes referred to as an "autonomous system." In gen¬eral, a routing domain may operate as an enterprise network, a service provider or any other type of network or subnetwork. Further, the routing domain may contain one or more edge devices having "peer" connections to edge devices in adjacent routing do¬mains.
Network nodes within a routing domain are typically configured to forward data using predetermined paths from "interior gateway" routing protocols, such as conven¬tional link-state protocols and distance-vector protocols. These interior gateway proto¬cols (IGPs) define the manner with which routing information and network-topology in¬formation are exchanged and processed in the routing domain. The routing information exchanged (e.g., by IGP messages) typically includes destination address prefixes, i.e., the portions of destination addresses used by the routing protocol to render routing ("next hop") decisions. Examples of such destination addresses include IP version 4 (IPv4) and version 6 (IPv6) addresses. As such, each intermediate node receives a consistent "view" of the domain's topology. Examples of link-state and distance-vectors protocols known in the art, such as the Open Shortest Path First (OSPF) protocol and Routing Information Protocol (RIP), are described in Sections 12.1-12.3 of the reference book entitled Inter-

connections, Second Edition, by Radia Permian, published January 2000, which is hereby incorporated by reference as though fully set forth herein.
The Border Gateway Protocol (BGP) is usually employed as an "external gate¬way" routing protocol for routing data between autonomous systems. BGP is well known and generally described in Request for Comments (RFC) 1771, entitled A Border Gate¬way Protocol 4 (BGP-4), by Y. Rekhter et al., published March 1995, which is publicly available through the Internet Engineering Task Force (IETF) and is hereby incorporated by reference in its entirety. BGP generally operates over a reliable transport protocol, such as TCP, to establish a TCP connection/BGP session. BGP also may be extended for compatibility with services other than standard Internet connectivity. For instance, Multi-Protocol BGP (MP-BGP) supports various address family identifier (AFI) fields that permit BGP messages to transport multi-protocol information.
A network node within a routing domain may detect a change in the domain's to¬pology. For example, the node may become unable to communicate with one of its neighboring nodes, e.g., due to a link failure between the nodes or the neighboring node failing, such as going "offline," etc. If the detected node or link failure occurred within the routing domain, the detecting node may advertise the intra-dornain topology change to other nodes in the domain using IGP messages. Similarly, if an edge device detects a node or link failure that prevents communications with a neighboring routing domain, the edge device may disseminate the inter-domain topology change to other edge devices within its routing domain (e.g., using BGP messages). In either case, propagation of the network-topology change occurs within the routing domain and nodes in the domain thus converge on a consistent view of the new network topology, i.e., without the failed node or link.
As those skilled in the art will understand, it is desirable to quickly detect the fail¬ure of a node or link so that minimal traffic is lost Conventionally, since a BGP session is often employed between the two inter-domain devices, BGP KEEPALIVE messages may be used to determine whether the peers are reachable (e.g., for link or node failure). For instance, BGP may specify a Hold Time interval, the expiration of which indicating mat an error has occurred within the BGP session (e.g., at least three seconds). Each

BGP message received at a device resets the Hold Time. A BGP KEEPALIVE message may be exchanged between the devices of the BGP session to reset the Hold Time. As such, the interval between exchanged KEEPALIVE messages must be often enough as not to cause the Hold Timer to expire. Conventionally, a reasonable maximum time be¬tween KEEPALIVE messages would be one third of the Hold Time interval. However, according to the BGP standard set forth in RFC 1771, the KEEPALIVE messages must not be sent more frequently than one per second, e.g., in order to minimize traffic be¬tween the BGP devices. Notably, in the event the Hold Time has expired, the devices may "break" (i.e., tear down or close) the BGP session. Similarly, as those skilled in the art will understand, IGP nodes within a network may exchange IGP HELLO messages to determine whether internal peers (intradomain nodes) are reachable.
Because of the increasing need for faster network response time and convergence, administrators often require the ability of individual network devices to quickly detect failures. Bidirectional Forwarding Detection (BFD) provides rapid failure detection times between devices, while maintaining low overhead. For instance, BFD failure de¬tection may be as fast as 50 milliseconds (ms), while the BGP (and IGP) method de¬scribed above is on the order of seconds (e.g.} three seconds). BFD verifies connectivity between two devices based on the rapid transmission of BFD control packets between the two devices (e.g., little to no BFD holdtime, as will be understood by those skilled in the art). Notably, BFD also provides a single, standardized method of link/device/protocol failure detection at any protocol layer and over any media. A secondary benefit of BFD, in addition to fast failure detection, is that it provides network administrators with a con¬sistent method of detecting failures. Thus, one availability methodology could be used, regardless of the protocol (e.g., IGP, BGP, etc.) or the topology of the network. BFD is further described in Kate, et al. Bidirectional Forwarding Detection , Internet Draft, October, 2005, the contents of which are hereby incorporated by . reference as though fully set forth herein. Generally, BFD sessions may be established between network nodes (e.g., routers) in order to monitor connectivity of the nodes over a particular link between the nodes.
> Often, users organize links as a group or "bundle" for a variety of reasons known
to those skilled in the art. For example, link groups may be used for redundancy, load

balancing, and/or increasing the available bandwidth between two points in the network, e.g., by combining multiple smaller/slower links into a single group of links that produces a greater bandwidth value than the smaller/slower links individually. Various forms of link bundles include link bonding/aggregation, EmerChannel, and multilink point-to-point protocol (PPP), which is described in RFC 1990, entitled The PPP Multilink Proto¬col (MP), published August 1996, etc. Other examples of link bundles will be under¬stood by those skilled in the art, and those mentioned herein are merely examples. For instance, links of VLANs (Virtual LANs, or a group of network devices/elements on dif¬ferent physical LAN segments operating as though they were on the same physical LAN segment) may also be bundled.
Just as BFD may be used to very rapidly determine connectivity between two nodes, it may also be desirable to rapidly determine the maintained operation (i.e., con¬nectivity) of a link bundle between two nodes (or more, as will be understood by those skilled in the art). A BFD session on a link bundle should remain active while the bundle is active, i.e., still able to transmit traffic. In other words, so long as one or more (config¬urable) links of the bundle ("bundle links") are operational, the bundle, and hence the BFD session, should remain active. Accordingly, none of the following events should cause the BFD session on the bundle to fail if other links of the bundle are still opera¬tional: failure of a bundle link; online insertion and removal (OIR) of a line card (LC) that hosts one or more bundle links; addition of a link to the bundle; removal of a bundle link; shutdown of a bundle link; failure of a centralized route processor (RP) or control card of a node (RP failover); etc.
One solution that offers BFD for link bundles is a centralized BFD session, such as an RP-based BFD session. In a centralized BFD session, the RP (or control card) monitors the status of the BFD session and each of the bundle links. BFD messages may be sent on each bundle link so that while at least one bundle link is operational, so is the bundle, and consequently so is the centralized BFD session. In many situations, how¬ever, the large number of BFD messages sent between the nodes may violate various BFD parameters, such as, e.g., maximum packet transmissions or time between packets ) as agreed upon during BFD session initialization (negotiation). Also, two nodes at either end of a link bundle, e.g., routers (layer 3), may be separated by one or more intermediate

switches (layer 2). The one or more switches may receive a plurality of BED messages from one router, but based on routing/forwarding decisions at the switch (e.g., layer 2 hashing algorithms), the switch may only continue the transmission of BED messages over a single bundle link, leaving the other bundle links unmonitored. Furthermore, the two routers may be connected to the switch by a different number of links (e.g., a link bundle from each router terminates at the switch), so a one-to-one mapping of BFD mes¬sages on individual links is not possible.
Alternatively, to address some of the limitations of sending BFD messages over all bundle links, the centralized BFD session may instead send and receive BFD mes¬sages over a single link. While the BFD messages are received by that single link, the link bundle is still operational. "When BFD messages are no longer received on that link, the centralized BFD session must select a different link of the bundle to send and receive BFD messages.
A major disadvantage to operating a centralized BFD session for link bundles is that if the RP (control card) fails, the centralized BFD session also fails, resulting in a false indication of link bundle failure where at least one LC hosting the link bundle is still operational. Clearly, for many applications, the centralized BFD session approach is un¬reliable. Further disadvantages include poor scalability for multiple link bundles, and decreased performance. For instance, the RP is often tasked with many different opera¬tions of the node, such as updating routing tables, generating advertisement messages, etc., as will be understood by those skilled in the art As such, the time dedicated to the BFD session may be less than necessary to maintain the high-demand reaction time of the BFD protocol (i.e., sub-second failure detection). To compensate for the centralized BFD session's potentially slower reaction time (e.g., for selecting new links during single-link BFD sessions), it may be necessary to use longer timeout values (hold timers) to allow the RP to adjust to changes in the network. There remains a need, therefore, for a tech¬nique that efficiently maintains BFD on a bundle of links to address the problems men¬tioned above.

SUMMARY OF THE INVENTION
The present invention is directed to a technique for efficiently and dynamically maintaining bidirectional forwarding detection (BFD) on a bundle of links in a computer network. According to the novel technique, one or more "standby" BFD sessions may be established on one or more corresponding line cards (LCs), the LCs having one or more links of the bundle (bundle links). Once established, one of the standby BFD sessions may be selected as an "active" BFD session based on activity of one of the bundle links of the corresponding LC. For example, the active BFD session may be selected in re¬sponse receiving a BFD message on a bundle link of the corresponding LC. Also, BFD messages may be transmitted from one of the bundle links of the active BFD session, e.g., the link receiving BFD messages. In response to inactivity of the transmitting link (e.g., failure, removal, etc.), the active BFD session may switch to another available ac¬tive bundle link, and if no other active bundle links are available to the active BFD ses¬sion, one of the standby BFD sessions is selected as the new active BFD session, ha the event no other standby BFD sessions exist, the link bundle is determined to have failed.
Advantageously, the novel technique efficiently and dynamically maintains BFD on a bundle of links in a computer network. By alternating between one or more standby BFD sessions on corresponding LCs as the active BFD session for a bundle of links, the novel technique provides greater performance, scalability, and reliability over a central¬ized BFD session. For instance, the BFD sessions on LCs may continue to operate re¬gardless of a failure of a centralized process (e.g., a route processor, RP) managing the LCs. Also, by mamtaining standby BFD sessions, more rapid handling of link and/or LC failure is possible, thus moire aggressive BFD timeouts may be used. Further, the dy¬namic nature of the novel technique (e.g., selecting the active BFD session) alleviates the need for cumbersome manual configuration.
BRIEF DESCRIPTION OF THE DRAWINGS
The above and further advantages of the invention may be better understood by referring to the following description in conjunction with the accompanying drawings in

which like reference numerals indicate identically or fttnctkraally similar elements, of which:
Fig. 1 is a schematic block diagram of an exemplary computer network that may N be advantageously used with the present invention;
Fig. 2 is a schematic block diagram of an exemplary node that may be advanta¬geously used with the present invention;
Fig. 3 is a schematic block diagram of an exemplary BFD message that may be used in accordance with the present invention;
Fig. 4 is a flowchart illustrating a procedure for establishing BFD sessions for a bundle of links in accordance with the present invention;
Fig. 5 is a flowchart illustrating a procedure for use with punting received BFD messages in accordance with the present invention;
Fig. 6 is a flowchart illustrating a procedure for switching active BFD sessions based on received BFD messages in accordance with the present invention;
Fig. 7 is a flowchart illustrating a procedure for responding to a determined possi¬ble bundle link failure in accordance with the present invention; and
Fig. 8 is a schematic block diagram of an exemplary computer network having a link bundle between three nodes that may be advantageously used with the present inven¬tion.
DETAILED DESCRIPTION OF AN DLLTJSTRATIVE
EMBODIMENT
Fig. 1 is a schematic block diagram of an exemplary computer network 100 com¬prising a plurality of nodes A-C, such as routers, switches, or other network devices, in¬terconnected as shown. For instance, node A may be connected to node C via a plurality of links arranged as a first bundle interface (link bundle), and node B may be connected to node C via a plurality of links arranged as a second link bundle. Illustratively, nodes A and B may be embodied as routers (layer 3), while node C may be embodied as a switch

(layer 2). As such, the link bundles may appear to each of the routers A and B as a single link bundle (layer 3) from A to B, as will be understood by those skilled in the art. The nodes may be a part of one or more autonomous systems, routing domains, or other net¬works or subnetworks. These examples are merely representative. Those skilled in the art will understand that any number of routers, switches, nodes, links, etc. may be used in the computer network 100 and connected in a variety of ways, and that the view shown herein is for simplicity. For example, the nodes may be configured with connections em¬bodied as virtual local area networks (VLANs), as will be understood by those skilled in the art.
Data packets may be communicated by the nodes A-C using predefined network communication protocols such as the Transmission Control Protocol/Internet Protocol (TCP/IP), User Datagram Protocol (UDP), Asynchronous Transfer Mode (ATM) proto¬col, Frame Relay protocol, Internet Packet Exchange (IPX) protocol, etc. Routing deci¬sions within a particular network may rely on predetermined "interior" gateway protocols (IGPs), such as conventional link-state or distance-vector protocols. In addition, data packets containing network topology information maybe exchanged among networks using "external" gateway protocols, such as the Border Gateway Protocol (BGP). Those skilled in the art will understand that other communication protocols may be used within and among the networks, and that those mentioned above are merely representative.
Fig. 2 is a schematic block diagram of an exemplary node 200 that may be advan¬tageously used with the present invention, such as a router. The node comprises a plural¬ity of network interfaces 210 (e.g., line cards, LCs), a processor 220, and a memory 240 interconnected by a system bus 250. The network interfaces 210 contain the mechanical, electrical and signaling circuitry for communicating data over one or more physical links coupled to the network 100. The network interfaces may be further configured to trans¬mit and/or receive data using a variety of different communication protocols, including, inter alia, TCP/IP, UDP, ATM, synchronous optical networks (SONET), wireless proto¬cols, Frame Relay, Ethernet, Fiber Distributed Data Interface (FDD1), etc. Notably, a physical network interface 210 may also be used to implement one or more virtual net¬work interfaces, such as for VPN access, known to those skilled in the art.

The memory 240 comprises a plurality of storage locations that are addressable by the processor 220 (e.g^ a route processor, RP) and the network interfaces 210 for storing software programs and data structures associated with the present invention. The proces¬sor 220 may comprise necessary elements or logic adapted to execute the software pro¬grams and manipulate the data structures, such as routing tables or virtual routing tables (not shown). A router operating system 242 (e.g., the Internetworking Operating System, or lOS™, of Cisco Systems, Inc.), portions of which are typically resident in memory 240 and executed by the processor, functionally organizes the router by, inter alia, invok¬ing network operations in support of software processes and/or services executing on the routerl These software processes and/or services may comprise routing services 247, bidirectional forwarding detection (BFD) services 244 (e.g., a centralized BED service), and Inter-Interface Relationships (IIR) module 249. It will be apparent to those skilled in the art that other processor and memory means, including various computer-readable me¬dia, may be used to store and execute program instructions pertaining to the inventive technique described herein.
Routing services 247 contain computer executable instructions executed by proc¬essor 220 to perform functions provided by one or more routing protocols, such as OSPF, IS-IS, BGP, etc. These functions may be configured to manage a forwarding information database (not shown) containing, e.g., data used to make forwarding decisions. Routing services 247 may also perform functions related to virtual routing protocols, such as maintaining virtual routing/forwarding (VRF) instances (not shown), etc., as will be un¬derstood by those skilled in the art.
IIR module 249 (or a "bundle membership service") contains computer executa¬ble instructions executed by processor 220 to exchange and interpret information regard¬ing bundles for which the node 200 hosts one or more bundle links. For instance, routers A and B may exchange HR. notifications to respectively inform each other of bundle-related events, such as link creation, link deletion, and state change (e.g., active, inactive) of a link within the bundle (i.e. link integrity control messages). The nodes hosting one or more bundle links may synchronize their information by exchanging notifications (similar to IGP and/or BGP notifications) that may comprise, e.g., interface handles, in¬terface states, interface types, member bandwidths, member identifiers (IDs), etc., as will

be understood by those skilled in the art. Those skilled in the art will also understand that the use of an HE. module herein is merely representative, and that other means known to those skilled in the art to obtain link bundle information may be used in accordance with the present invention.
BFD services (or process) 244 contain computer executable instructions executed by processor 220 to verify connectivity between two systems/devices, depending on the transmission of BFD control packets ("BFD messages") between the two devices. As¬sume, for example, that router A wishes to verify its connectivity to router B (i.e., through switch C) using BFD. Router A may transmit a BFD message to router B, and router A verifies connectivity based on a response/non-response from router B, e.g., within a particular time period. If router A does not receive a response from router B within the time period, router A determines that the BFD session has failed or "timed out" (or is "down"), accordingly. (Notably, a more detailed description of this process for link bundles in accordance with the present invention is provided below.)
Fig. 3 illustrates an exemplary BFD message 300 that may be transmitted by BFD nodes/routers 200. Illustratively, the BFD message 300 is a generic BFD message, and those skilled in the art will understand that other BFD messages may comprise other fields accordingly. The message 300 includes an encapsulation protocol header 310, an optional BFD header field 315, a discriminator values (e.g., a "My Discriminator" and/or "Your Discriminator) field 320, and a field for other BFD information 325. As those skilled in the art will understand, BFD messages 300 are sent in an encapsulation appro¬priate to the environment (e.g., TCP/IP, MPLS, etc.). Thus, the encapsulation protocol header 310 contains information standard for the specific type of encapsulation. A source address 312 and destination address 313 within the header may be network addresses for the sending device and receiving device, respectively.
The BFD header field 315 may comprise standard BFD header information, such as, e.g., a BFD version number, a message length, certain flags, etc., or other information (more or less) as configured by the sending device. For example, a state field 316 may be included within the header 315 that indicates a state of the BFD session at the sending node (e.g., UP, DOWN, INIT, or ADMINDOWN, maintained by a BFD state machine of

BFD services 244), which may then be used by the receiving node to update its BFD ses¬sion state accordingly. Because a sending device may have more than one BFD session established at a time (e.g., with the same receiving device, or other receiving devices), the discriminator fields 320 contain sufficient information to demultiplex the BFD messages 300 to the correct BFD session once it has been received by the receiving device. An ex¬ample discriminator may be an opaque value that identifies each BFD session, and which is unique among all BFD sessions at each device. For instance, a "My Discriminator" value must be unique at the sending device, while a "Your Discriminator" value must be unique at the receiving device. Also, the other BFD information field 325 may be used according to the BFD protocol, such as, e.g., timer interval values, authentication, etc. Notably, BFD may operate across any number of links and at any protocol layer, e.g., Physical, Data Link, Network, Virtual, etc., as will be understood by those skilled in the art As mentioned above, the BFD protocol is further described in the above-incorporated Internet Draft entitled Bidirectional Forwarding Detection .
The present invention is directed to a technique for efficiently and dynamically mamtaining BFD on a bundle of links in a computer network. According to the novel technique, one or more "standby" BFD sessions may be established on one or more cor¬responding LCs, the LCs having one or more links of the bundle (bundle links). Once established, one of the standby BFD sessions may be selected as an "active" BFD session based on activity of one of the bundle links of the corresponding LC. For example, the active BFD session may be selected in response receiving a BFD message on a bundle link of the corresponding LC. Also, BFD messages may be transmitted from one of the bundle links of the active BFD session, e.g., the link receiving BFD messages. In re¬sponse to inactivity of the transmitting link (e.g., failure, removal, etc.), the active BFD session may switch to another available active bundle link, and if no other active bundle links are available to the active BFD session, one of the standby BFD sessions is selected as die new active BFD session. In the event no other standby BFD sessions exist, the link bundle is determined to have failed.
In accordance with the present invention, BFD services 244, e.g., a "master" BFD process executing on the RP 220 of a node 200, initiates a link bundle BFD session by

creating one or more "agent" BFD sessions executing on BFD services 212a-n of each LC 2 lOa-n hosting a link of the bundle. For example, router A of Fig. I may wish to monitor connectivity to router B (e.g., either over a link bundle or a bundle VLAN). As such, each LC 210 of router A hosting a link of the bundle connected to router B (e.g., through switch C, as will be understood by those skilled in the art) establishes an agent BFD session. Once the agent BFD sessions are established, BFD responsibilities may be given to those sessions, such that the agent BFD sessions are completely (100%) autono¬mous from the master BFD session. Accordingly, in the event the RP (or control card) fails, is changed, restarted, etc., (i.e., master BFD services 244 is brought "off-line"), the link bundle BFD session remains operational on the BFD services 212 of LCs 210.
Also in accordance with the present invention, a new state, "STANDBY," is added to the states (i.e., UP, DOWN, INIT, and ADMTNDOWN) of the BFD protocol. The novel STANDBY state is an internal state of the BFD state machine of the BFD ses¬sions 212a-n, i.e., the state is not signaled to receiving nodes of the BFD session (e.g., in state field 316 of BFD messages 300). During the establishment of the agent BFD ses¬sions, each agent BFD session is placed in the STANDBY state, i.e., is established as a standby BFD session.
Once established, each of the standby BFD sessions determines whether it should be designated as the active BFD session according to an algorithm used by all of the standby BFD sessions. By using the same algorithm, it can be substantially assured that only one standby BFD session will determine that it is the active BFD session. For ex¬ample, a simple algorithm may consist of selecting the BFD session on an LC having a lowest identifier value (e.g., "1"). Other algorithms may be used to initially select the active BFD session in accordance with the present invention, as will be understood by those skilled in the art. Also, the initial selection algorithm may be a slower algorithm than typically necessary in the high-speed demand of BFD since the BFD session (and the transmission of BFD messages) has yet to be activated (i.e., to be "UP"). Upon de¬termining that it should be the active BFD session, the designated active BFD session may notify the remaining standby BFD sessions of its active status, thus preventing any disagreements (notably, e.g., as a worst case with a "race condition" as will be under¬stood by those skilled in the art). Communication among the active and standby BFD

sessions, e.g., the active status notification above, may be performed by "Notifier" proc¬esses 213a-n of the active and standby BFD sessions. (The master BED session 244 may also have a Notifier process 245 to communicate with the agent (active and/or standby) BFD sessions.) Notably, in the event a new link is added to the link bundle on a new LC, the new LC establishes a standby BFD session accordingly.
Upon selecting the active BFD session (e.g., on LC 210 of router A), the active BFD session may transmit BFD messages 300 to the receiving node (e.g., router B) in accordance with the BFD protocol.' In the event the active BFD session hosts more than one bundle link, a single link is selected as the transmitting link. Those skilled in the art will understand that active (distributing) bundle links may be used with the BFD sessions, unless, however, there are no active links, in which case the BFD sessions may be con¬figured to use inactive (collecting) links (e.g., for a short period of time until an active link becomes available, as will be further understood by those skilled in the art). As men¬tioned above, the state field 316 of the BFD message 300 only contains one of either UP, DOWN, INIT, and ADMINDOWN states. Notably, the state of the active BFD session may be shared with (e.g., by Notifier processes 213) with the standby BED sessions.
Due to the characteristics of link bundles as will be understood by those skilled in the art (e.g., especially two link bundles on either side of a layer 2 switch between two nodes, as in Fig. 1), an asymmetric path may result during the transmission of the BFD messages. In other words, the active BFD session of a node may have selected a trans¬mitting link to send the BFD messages, but the node may receive returned BFD messages on another link, possibly on another LC. In response to this, the present invention may either "punt" (forward) the received BFD messages from the receiving LC to the active (transmitting) LC, or switch the active BFD session to the standby BFD session of the receiving LC.
To punt the received BFD message, the receiving BFD session may quickly for¬ward the received BFD messages to the active BFD session for processing. A more op¬timal approach may be to punt received BFD messages during initial establishment of the link bundle BFD session, but then to only send notification from the receiving standby BFD sessions when a BFD event occurs. For instance, once a standby BFD session be-

gins receiving BFD messages, it may notify fhe active BFD session (e.g., through Noti-fier processes 213) that it is receiving BFD messages. Subsequently, the receiving standby BFD session may only send further notifications to the active BFD session if the received BFD messages stop arriving (i.e., the BFD session times-out).
Alternatively, the standby BFD session receiving the returned BFD messages may select itself as the active BFD session, which may then begin transmitting BFD messages over the same link upon which the returned messages were received. By doing this, the originally asymmetric path may become a symmetric path (at least as seen by the node), transmitting and receiving BFD messages on the same bundle link. Also, by mamtaining a single active BFD session (for both transmitting and receiving), multiple LCs are not required to share information and resources with other LCs. The new active BFD session may notify the other BFD sessions (i.e., standby BFD sessions and the previously active BFD session) that it has assumed the role of the active.BFD session. Also, when a standby BFD session assumes the role as the active BFD session, the previously active BFD session may be configured to continue transmitting BFD messages on the previous bundle link until the new link of the new active BFD session is confirmed as transmitting messages (e.g., learned through a notification fromNotifier process 213). This helps prevent against false failure notification of the link bundle due to any latency involved with switching to a new active BFD session. Further, upon receiving notification that a new active BFD session has been selected, the previously active BFD session enters the STANDBY state, thus becoming a standby BFD session.
Notably, when switching the active BFD session based on received BFD mes¬sages, the peer BFD node (i.e., the node sending the received BFD messages) may change links frequently, e.g., due to a problem or other reason generally unknown to the receiving BFD node. If this happens, the receiving BFD node may regularly re-host the BFD session to a new active BFD session, which is undesirable. Furthermore, should both BFD nodes oscillate in this manner, the BFD session may never synchronize and may never be functional (i.e., UP). To prevent this, an optional timer may be introduced whereby a minimum amount of time must pass prior to switching active sessions in re¬sponse to receiving a BFD message.

With the active BFD session selected and transmitting BED messages 300, possi¬ble link failure may be detected when, a returned BFD message is not received, or by some other internal detection mechanism (i.e., when the link fails internally). Note that a returned BFD message received on another link may also indicate a possible link failure, and may be responded to in the manner described above. In the event of a possible link failure, the active BFD session quickly selects another available bundle link upon which to begin transmitting the BFD messages. If the active BFD session hosts no other bundle links, another standby BFD session quickly assumes the roleof the active BFD session, e.g., as notified by the previously active BFD session, or in response to the standby ses¬sion's own selection algorithm (e.g., after learning of a possible link failure from the ac¬tive BFD session). In this case, as mentioned above, the new active BFD session may notify the other BFD sessions of its state change (e.g., to ensure that there is no dis¬agreement between active BFD sessions). Further, the LC 210 having previously active BFD session 212 may subsequently remove the previously active BFD session, since the LC no longer hosts any links of the bundle. Those skilled in the art will appreciate that an active link's becoming inactive may be treated in the same manner as a link failure, except the inactive link remains associated with the bundle (i.e., is not deleted).
Removal of an LC hosting an active BFD session for one or more bundle links is treated in a manner similar to that of a possible link failure. For instance, notification may generally be sent to other LCs hosting bundle links that an LC has been removed (e.g., online insertion and removal, OIR removal) in order to'mark those removed links as deleted (Le., no longer part of the bundle). If the LC was hosting the active BFD session, the remaining standby BFD sessions must select which among them is to become the new active BFD session. Typically, removal of an LC may be a "graceful" occurrence, where either the removed LC itself or the RP (control card) may send notification to remaining LCs either before removal or quickly thereafter. An LC failure, on'the other hand, re¬quires that the RP quickly inform the other LCs of the failure, else possibly causing false failure detection by the peer BFD node. This may occur more frequently, for example, when an LC is "brain-dead" (non-responsive), since the RP and/or other LCs may be un¬aware of its failure for a time longer than the high-speed BFD time-out period.

Once the active BFD session is switched to a new LC (e.g., in response to link failure, LC removal/failure, etc.), the active BFD session begins transmitting BFD mes¬sages over one of its available bundle links. In response, the received BFD messages no longer utilize the previous LC. If the received messages are received on the LC of the newly active BFD session, a symmetric path has been achieved. Otherwise, where the BFD messages are received at a standby BFD session, an asymmetric path results, which maybe accommodated as described above (e.g., punting messages or switching the active session).
It is important that the peer BFD node also adapt quickly to a link/LC failure or removal. For instance, if the peer BFD node continues to send BFD messages to a failed LC, a false failure detection may result when the active BFD session does not receive a returned BFD message (or notification of a received BFD message at a standby BFD ses¬sion). Also for example, if an LC fails, multiple bundle links may correspondingly be¬come unavailable. Because timing is so important to BFD, it is highly desirable that an up-to-date topology of the link bundle exist at each of the BFD sessions. Otherwise, when switching from one link/LC to another link/LC, non-existent links/LCs may be at¬tempted prior to finding one that exists and may be used appropriately. IIR module 249 (described above) may be used to convey the updated bundle information between peer BFD nodes as quickly as possible. Furthermore, because of the high-speed demands of BFD, prior to adjusting anything in accordance with the present invention described above (e.g., switching links or active BFD sessions) in response to a received EER mes¬sages, the BFD node receiving the IIR message processes all information of the message, i.e., to ensure that multiple events (e.g., multiple links failing) are accounted for during calculations.
In accordance with the present invention, in die event no BFD sessions remain for the link bundle (e.g., no LCs host a bundle link) that may assume the active BFD session role, or no BFD sessions (active or standby) have received a returned BFD message for a configurable time-out period, the active BFD session (e.g., last remaining active BFD session) may determine that the link bundle has failed (i.e., is "down"). As those skilled in the art will understand, various bundle/node protection techniques may then be ap-

plied, routes may be updated, error messages may be generated, etc., in response to the rapid link bundle BFD failure detection.
Fig. 4 is a flowchart illustrating a procedure for establishing BFD sessions for a bundle of links in accordance with the present invention. The procedure 400 starts at step 405, and continues to step 410, where a link bundle is configured on peer BFD nodes, e.g., routers A and B. At step 415, one or morestandby BED sessions are established (e.g., by the RP or .control card of router A) on LCs hosting at least one link of the bun¬dle. Subsequently, one of the standby BFD sessions is selected as an active BFD session, such as, e.g., according to an algorithm as described above. Notably, the active BFD ses¬sion may notify the standby BFD sessions that it is the active BFD session. At step 425, the active BFD session begins transmitting BFD messages from- a particular link of the bundle, e.g., exchanging BFD initialization messages and BFD messages with the peer BFD router (e.g., router B). The procedure 400 to establish the BFD sessions then ends at step 430. Depending upon the. configuration of the BFD node (router A), received BFD messages'may either be punted (Fig. 5), or used to switch the active BFD session (Fig. 6), as described above.
Fig. 5 is a flowchart illustrating a procedure for use with punting received BFD messages in accordance with the present invention. The procedure 500 starts at step 505, and continues to step 510, where the active BFD session (e.g., of router A) transmits BFD messages from a particular link of the bundle. If a BFD message is returned from the peer BFD node (e.g., router B) at step 515 and is received at the active BFD session (e.g., on the transmitting link or other link) in step 520, then the procedure continues to trans¬mit BFD messages from the active BFD session in step 510. In the event, however, a re¬turned BFD message is not received at the active BFD session at step 520, i.e., it is re¬ceived at another (standby) BFD session, the receiving standby BFD session may punt the BFD message to the active BFD session (not shown). As described above, an optimi¬zation to punting begins at step 525, where if the received BFD message at the standby BFD session is the first BFD message received at the standby BFD session (e.g., first ever or first after a time-out), or if the BFD message is part of a BFD initialization mes¬sage exchange, the standby BFD session notifies the active BFD session of the received BFD message (or punts the message to the active BFD session, e.g., for initialization

messages) at step 530. If at step 525 the received BFD message at the standby BFD ses¬sion is not the first BFD message received at the standby BFD session, the procedure 500 continues to step 510 to transmit BFD messages from the active BFD session (i.e., the session has not timed-out).
Further to the optimization for punting BFD messages, if at step 515 a returned BFD message is not received, and the BFD session (e.g., a standby BFD session) had been previously receiving BFD messages at step 535, the BFD session notifies the active BFD session of the BFD time-out at step 540. Notably, the active BFD session may also determine that the BFD session has timed-out at step 540 if the active BFD session was previously receiving the BFD messages. Moreover, if at step 535 the BFD session was not previously receiving BFD messages, no action is taken by that BFD session, and the procedure 500 continues to transmit BFD messages from the active BFD session in step 510. After the time-out notification at step 540, if another BFD session has received a returned BFD message in time at step 545, the procedure 500 continues to transmit BFD messages from the active BFD session in step 510. Otherwise, no BFD sessions (active or standby) have received a returned BFD message at step 545, and the active BFD ses¬sion may determine a possible failure of (at least) the transmitting link at step 550. The procedure 500 ends at step 555, e.g., to respond to the possible failed link as in Fig. 7 be¬low.
Fig. 6 is a flowchart illustrating a procedure for switching active BFD sessions based on received BFD messages in accordance with the present invention. The proce¬dure 600 starts at step 605, and continues to step 610, where the active BFD session (e.g., of router A) transmits BFD messages from a particular link of the bundle. If a BFD mes¬sage is returned from the peer BFD node (e.g., router B) at step 615 and is received on the transmitting link (i.e., at the active BFD session) in step 620, then the procedure con¬tinues to transmit BFD messages from the active BFD session in step 610. If at step 620 the BFD message is not received on the transmitting link, but is received on the LC of the active BFD session at step 625, then the active BFD session configures itself to transmit future BFD messages over the receiving link at step 630, and continues to transmit BFD messages in step 610. If, however, at step 625 the BFD messages are received on an LC of a standby BFD session, the active BFD session changes to a standby BFD session in

step 635, and the receiving standby BFD session changes to the active BFD session in step 640. The new active BFD session configures itself to transmit future BFD messages over the receiving link at step 630, and continues to transmit BFD messages in step 610. If no BFD sessions (active or standby) have received a returned BFD message at step 615 in time, the active BFD session may determine a possible failure of (at least) the transmit¬ting link at step 645. The procedure 600 ends at step 650, e.g., to respond to the possible failed link as in Fig. 7.
Fig. 7 is a flowchart illustrating a procedure for responding to a determined possi¬ble bundle link failure in accordance with the present invention. The procedure 700 starts at step 705, and continues to step 710, where possible link failure is determined, e.g., as in Fig. 5 or Fig. 6 above (or by other internal link failure detection mechanisms). If at step 715 there are other links available at the active. BFD session, the active BFD session configures itself to transmit future BFD messages over another available link at step 630, and the procedure 700 ends at step 750 (e.g., returning to Fig. 5 or Fig. 6 to trans¬mit/process BFD messages). If at step 715 there are no other links available at the active BFD session, the corresponding LC removes the active BFD session (i.e., since the LC no longer hosts operational links of the bundle) at step 725. If there are remaining standby BFD sessions available at step 730, one of the standby sessions is selected as the new ac¬tive BFD session in step 735. The new active BFD session then transmits BFD messages in step 740, and the procedure 700 ends at step 750 (e.g., returning to Fig. 5 or Fig. 6 to transmit/process BFD messages). On the other hand, if at step 730 there are no remain¬ing standby BFD sessions, either the last active BFD session (prior to removal) or the master BFD session (e.g., on the RP) determines that the link bundle has failed in step 745, and the procedure 700 ends as step 750, e.g., for the BFD node to perform node pro¬tection techniques, etc.
Notably, those skilled in the art will understand tiiat while the above description uses conventional BFD messages, the techniques described herein may also be applied to BFD Echo messages (returned to transmitting BFD node without being processed/used by peer node). As described above, however, the Echo messages may not return to the same LC (or BFD session) transmitting the messages, and needs to be dealt with accord¬ingly.

Also, in an alternative embodiment of the present invention, the master BED ses¬sion executing on the RP (control card) may operate as the active BFD session, with at least one other standby BFD session executing on an LC hosting a bundle link. In this manner, RP failover may be treated just as an active BFD session failure/removal as de¬scribed above. This alternative embodiment, however, still utilizes valuable RP resources and may not be optimal in terms of performance and/or scalability. However, in various situations and configurations as will be understood by those skilled in the art, this may provide a beneficial approach.
Advantageously, the novel technique efficiently and dynamically maintains BFD on a bundle of links in a computer network. By alternating between one or more standby BFD sessions on corresponding LCs as the active BFD session for a bundle of links, the novel technique provides greater performance, scalability, and reliability over a central¬ized BFD session. For instance, the BFD sessions on LCs may continue to operate re¬gardless of a failure of a centralized process (e.g., a route processor, RP) managing the LCs. Also, by maintaining standby BFD sessions, more rapid handling of link and/or LC failure is possible, thus more aggressive BFD timeouts may be used. Further, the dy¬namic nature of the novel technique (e.g., selecting the active BFD session) alleviates the need for cumbersome manual configuration.
While there has been shown and described an illustrative embodiment that effi¬ciently and dynamically maintains BFD on a bundle of links in a computer network, it is to be understood that various other adaptations and modifications may be made within the spirit and scope of the present invention. For example, the invention has been shown and described herein for maintaining BFD on a bundle of links between two nodes. However, the invention in its broader sense is not so limited, and may, in fact, apply to link bundles between multiple nodes as well. Fig. 8 shows an exemplary computer net¬work 800 having a link bundle between three nodes, where a node X has a link bundle to both nodes Y and Z as shown. In accordance with the present invention, line cards on both node Y and node Z must rapidly communicate the states of the standby and active BFD sessions as described above, such as via a communication protocol between Notifier processes 245 in both nodes. Those skilled in the art will understand that Fig. 8 is merely

an example of link bundles between three or more nodes, and that other configurations' may be used with the present invention.
Moreover, while the above description with reference to Fig. 1 mentions a switch (switch C) between BFD peers, a switch is not necessary for the present invention, and is merely an example. Those skilled in the art will understand that the present invention may be used for back-to-back nodes (routers) sharing an equal number of bundle links (i.e., a one-to-one link mapping). Those skilled in the art will also understand that while the examples given above refer to interfaces and links generally, both physical and virtual • interfaces and/or links may be used in accordance with the present invention, including, for example, links for bundle VLANs, as described above. Further, while the above ex¬amples refer to routers as the peer BFD nodes, any network node capable of performing BFD services maybe used in accordance with the present invention.
The foregoing description has been directed to specific embodiments of this in¬vention. It will be apparent, however, that other variations and modifications may be made to the described embodiments, with the attainment of some or all of their advan¬tages. For instance, it is expressly contemplated that the teachings of this invention can be implemented as software, including a computer-readable medium having program in¬structions executing on a computer, hardware, firmware, or a combination thereof. Also, • electromagnetic signals may be generated to carry computer executable instructions that implement aspects of the present invention over, e.g., a wireless data link or a data net¬work, such as the Internet. Accordingly this description is to be taken only by way of example and not to otherwise limit the scope of the invention. Therefore, it is the object of the appended claims to cover all such variations and modifications as come within the true spirit and scope of the invention.
What 13 claimed is:


CLAIMS
1. A method for efficiently and dynamically maintaining bidirectional forwarding detec¬
tion (BFD) on a bundle of links in a computer network, the method comprising:
establishing one or more standby BFD sessions on one or more corresponding line cards (LCs), the one or more LCs having one or more links of the bundle (bundle links); and
selecting one of the one or more standby BFD sessions as an active BFD session based on an activity of one of the one or more bundle links of the corresponding LC.
2. The method as in claim 1, further comprising:'
initially selecting the active BFD session from any standby BFD session with an active bundle link.
3. The method as in claim 1, further comprising:
selecting the active BFD session in response receiving a BFD message on a bun¬dle link of the corresponding LC.
4. The method as in claim 1, further comprising:
transmitting BFD messages from one of the one or more bundle links of the active BFD session.
5. The method as in claim 4, further comprising:
selecting the active BFD session in response receiving BFD messages on a bundle link of the corresponding LC; and
transmitting BFD messages from the bundle link receiving BFD messages.

6. The method as in claim 4, further comprising:
in. response to inactivity of the transmitting bundle link, wherein the active BFD session has one or more other active bundle links, transmitting the BFD messages from one of the one or more other active bundle links.
7. The method as in claim 4, further comprising:
in response to inactivity of the transmitting bundle link, wherein the active BFD session has no other active bundle links, selecting one of the one or more standby BFD sessions as the active BFD session.
8. The method as in claim 1, further comprising:
receiving a BFD message on a bundle link of a standby BFD session; and
punting the BFD message from the standby BFD session to the active BFD ses¬sion.
9. The method as in claim 1, further comprising:
configuring the active BFD session as a standby BFD session in response to se¬lecting a new active BFD session.
10. The method as in claim 1, further comprising:
>. removing a BFD session from an LC in response to the LC's having no active
t links for the bundle.
i 11. The method as in claim 10 further comprising:

determining thai the bundle of links has failed in the event no active or standby BFD sessions exist.
12. The method as in claim 1, further comprising:
determining that the bundle of links has failed in the event no active or standby BFD sessions receive BFD messages over bundle links.
13. The method as in claim 1, further comprising:
associating a new link of a new LC to the bundle; and establishing a new standby BFD session on the new LC.
14. The method as in claim 1, further comprising:
configuring a BFD session as a standby BFD session by placing the BFD session in a STANDBY state.
15. The method as in claim 1, further comprising:
considering a bundle link to be inactive in response to an event selected from a group comprising: a bundle link failure, a bundle link removal, a corresponding LC fail¬ure, and a corresponding LC removal.
16. The method as in claim 1, wherein the bundle of links is one of either an Internet Protocol (IF) bundle or a virtual private network (VPN) bundle.
17. An apparatus for efficiently and dynamically maintaining bidirectional forwarding detection (BFD) on a bundle of links in a computer network, the apparatus comprising:

means for establishing one or more standby BFD sessions on one or more corre¬sponding line cards (LCs), the one or more LCs having one or more links of the bundle (bundle links); and
means for selecting one of the one or more standby BFD sessions as an active BFD session based on an activity of one of the one or more bundle links of the corre¬sponding LC.
18. A computer readable medium containing executable program instructions for effi¬
ciently and dynamically maintaining bidirectional forwarding detection (BFD) on a bun¬
dle of links in a computer network, the executable program instructions comprising pro¬
gram instructions for.
establishing one or more standby BFD sessions on one or more corresponding line ' cards (LCs), the one or more LCs having one or more links Of the bundle (bundle links); and
selecting one of the one or more standby BFD sessions as an active BFD session based on an activity of one of the one or more bundle links of the corresponding LC.
19. A node for efficiently and dynamically maintaining bidirectional forwarding detec¬
tion (BFD) on a bundle of links in a computer network, the node comprising:
one or more line cards (LCs) having one of more links of the bundle (bundle links);
one or more processors, each processor coupled to one of the one or more LCs and adapted to execute software processes; and
a memory adapted to store a BFD process executable by each of the processors, the BFD processes of the processors configured collectively to: i) establish one or more ■ standby BFD sessions on one or more corresponding LCs; and ii) select one of the one or more standby BFD sessions as an active BFD session based on an activity of one of the one or more bundle links of the corresponding LC.


Documents:

http://ipindiaonline.gov.in/patentsearch/GrantedSearch/viewdoc.aspx?id=fD/yqYHE6OonYApFgZ28Mg==&loc=egcICQiyoj82NGgGrC5ChA==


Patent Number 268996
Indian Patent Application Number 4511/CHENP/2008
PG Journal Number 40/2015
Publication Date 02-Oct-2015
Grant Date 28-Sep-2015
Date of Filing 26-Aug-2008
Name of Patentee CISCO TECHNOLOGY, INC
Applicant Address 170 WEST TASMAN DRIVE, SAN JOSE, CA 95134-1706
Inventors:
# Inventor's Name Inventor's Address
1 SYLVAIN MASSE 73 LYNN STREET, GATINEAU, QUEBEC J9H 1B5
2 RESHAD A. RAHMAN 59 GENTLE GATE CR., OTTAWA, ONTARIO K1T 1Z9
3 DAVID P. TOSCANO 12 OAKBRIAR CRESCENT, OTTAWA, ONTARIO K2J 5E9
4 DAVID D. WARD 33460 LOMA CHIQUITA RD, LOS GATOS, CA 95033
5 NEIL R. KETLEY 2 ROSENESS, 19 SALISBURY AVENUE, HARPENDEN, HERTFORDSHIRE, A15 2QF
PCT International Classification Number H01L21/76
PCT International Application Number PCT/US07/003075
PCT International Filing date 2007-02-06
PCT Conventions:
# PCT Application Number Date of Convention Priority Country
1 11/366,732 2006-03-02 U.S.A.