Internet Engineering Task Force (IETF) N. AkiyaInternet-DraftRequest for Comments: 7419 M. Binderberger Updates:RFC5880 (if approved)5880 Cisco SystemsIntended status:Category: Informational G. MirskyExpires: April 17, 2015ISSN: 2070-1721 EricssonOctober 14,December 2014 Common Interval Support in Bidirectional Forwarding Detectiondraft-ietf-bfd-intervals-05Abstract Bidirectional Forwarding Detection (BFD) requires that messagesarebe transmitted at regular intervals and provides a way to negotiate the interval used by BFD peers. Some BFD implementations may be restricted to only support several interval values. When such BFD implementations speak to each other, there is a possibility of two sides not being able to find a common value for the interval to run BFD sessions. This document updates RFC 5880 by defining a small set of interval values for BFD that we call "CommonIntervals",Intervals" and recommends implementations to support the defined intervals. This solves the problem of finding an interval value that both BFD speakers can support while allowing a simplified implementation as seen for hardware-based BFD. It does not restrict an implementation from supporting more intervals in addition to the Common Intervals. Status of This Memo ThisInternet-Draftdocument issubmitted in full conformance with the provisions of BCP 78 and BCP 79. Internet-Drafts are working documentsnot an Internet Standards Track specification; it is published for informational purposes. This document is a product of the Internet Engineering Task Force (IETF).Note that other groups may also distribute working documents as Internet-Drafts. The listIt represents the consensus ofcurrent Internet- Drafts is at http://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents validthe IETF community. It has received public review and has been approved for publication by the Internet Engineering Steering Group (IESG). Not all documents approved by the IESG are amaximumcandidate for any level of Internet Standard; see Section 2 of RFC 5741. Information about the current status ofsix monthsthis document, any errata, and how to provide feedback on it may beupdated, replaced, or obsoleted by other documentsobtained atany time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." This Internet-Draft will expire on April 17, 2015.http://www.rfc-editor.org/info/rfc7419. Copyright Notice Copyright (c) 2014 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License. Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2 2. TheproblemProblem withfew supported intervalsFew Supported Intervals . . . . . . . . . . 3 3.Well-defined,Well-Defined, Common Intervals . . . . . . . . . . . . . . . 3 4.IANA Considerations . . . . . . . . . . . . . . . . . . . . . 4 5.Security Considerations . . . . . . . . . . . . . . . . . . . 46. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . 5 7.5. References . . . . . . . . . . . . . . . . . . . . . . . . .5 7.1.4 5.1. Normative References . . . . . . . . . . . . . . . . . . 57.2.5.2. Informative References . . . . . . . . . . . . . . . . . 5 Appendix A. Whysome values areSome Values Are in the Common IntervalsetSet . . .56 Appendix B. TimeradjustmentAdjustment withnon-identical interval setsNon-identical Interval Sets . 6Authors' Addresses . . . . .Appendix C. Acknowledgments . . . . . . . . . . . . . . . . . . 8 1. Introduction The Bidirectional Forwarding Detection (BFD) standard [RFC5880] describes how to calculate the transmission interval and the detection time.ItHowever, it does not make any statementthoughabout how to solve a situation where one BFD speaker cannot support the calculated value. Inpracticepractice, this may not been a problem as long as software- implemented timers have been used and as long as the granularity of such timers was small compared to the interval values being supported,i.e.i.e., as long as the error in the timer interval was small compared to 25 percent jitter. In themeantimemeantime, requests exist for very fast interval values, down to3.3msec3.3 msec forMPLS-TP.the MPLS Transport Profile (MPLS-TP). At the sametimetime, the requested scale for the number of BFD sessions is increasing. Both requirements have driven vendors to use Network Processors (NP),FPGAsField Programmable Gate Arrays (FPGAs), or other hardware-based solutions to offload the periodic packet transmission and the timeout detection in the receive direction. A potential problem with this hardware-based BFD is the granularity of the interval timers. Depending on theimplementationimplementation, only a few intervals may be supported, which can cause interoperability problems. This document proposes a set of interval values that should be supported by all implementations. Details are laid out in the following sections. 2. TheproblemProblem withfew supported intervalsFew Supported Intervals Let's assume vendor "A" supports10msec, 100msec10 msec, 100 msec, and1sec1 sec interval timers inhardware. Vendorhardware, and vendor "B" supports every value from20msec20 msec onward, with a granularity of1msec.1 msec. For a BFDsessionsession, "A" tries to set up the session with10msec10 msec while "B" uses20msec20 msec as the value for RequiredMinRxInterval and DesiredMinTxInterval. [RFC5880] describes that the negotiated value for Rx and Tx is20msec. But20 msec, but system "A" is not able to support this. Multiple ways exist to resolve thedilemmadilemma, but none of them is without problems. a. Realizing that it cannot support20msec,20 msec, system "A" sends out a new BFDpacket,packet advertising the next larger interval of100msec100 msec with RequiredMinRxInterval and DesiredMinTxInterval. The new negotiated interval between "A" and "B"thenis100msec,then 100 msec, which is supported by both systems.TheHowever, the problemthoughis that we moved from the10/20msec10/20 msec range to100msec,100 msec, which has far deviated from operator expectations. b. System "A" could violate [RFC5880] and use the10msec10 msec interval for the Tx direction. In the receivedirectiondirection, it could use an adjusted multiplier value M' = 2 * M to match the correct detection time.Now besideNow, in addition to the fact that we explicitly violate[RFC5880][RFC5880], there may be the problem that system "B" drops up to 50% of the packets; this could be the case when "B" uses an ingress rate policer to protect itself and the policer would be programmed with an expectation of20msec20 msec receive intervals. The example above could be worse when we assume that system "B" can only support a few timer values itself. Let's assume "B" supports"20msec", "300msec"20 msec, 300 msec, and"1sec".1 sec. If both systems would adjust their advertised intervals, then the adjustment ends at1sec.1 sec. The example above could even be worse when we assume that system "B" can only support"50msec", "500msec"50 msec, 500 msec, and"2sec".2 sec. Even if both systems walk their supported intervals, the two systems will never be able to agree onaan interval to run any BFD sessions. 3.Well-defined,Well-Defined, Common Intervals The problem can be reduced by defining interval values that are supported by all implementations.ThenThen, the adjustment mechanism could find a commonly supported interval without deviating too much from the original request. In technicaltermsterms, the requirement is as follows: a BFD implementation should support all values in the set of Common Interval valueswhichthat are equal to or larger than thefastest, i.e. lowest,fastest (i.e., lowest) interval the particular BFD implementation supports. This document defines the set of Common Interval values to be:3.3msec, 10msec, 20msec, 50msec, 100msec3.3 msec, 10 msec, 20 msec, 50 msec, 100 msec, and1sec.1 sec. Inadditionaddition, support for10secthe 10 sec interval together with multiplier values up to 255 is recommended to support graceful restart. The adjustment is always towardslarger, i.e. slower,larger (i.e., slower) interval values when the initial interval proposed by the peer is not supported. This document is not adding new requirements with respect to the precision with which a timer value must be implemented. Supporting an interval value meansto advertiseadvertising this value in the DesiredMinTxInterval and/or RequiredMinRxInterval field of the BFD packets andto provideproviding timers that are reasonably close. [RFC5880] defines safety margins for the timers by defining a jitter range. How is the"Common Interval"Common Interval set used exactly? In the example above, vendor "A" has a fastest interval of10msec10 msec and thus would be required to support all intervals in the Common Interval set that are equal or larger than10msec, i.e.10 msec, i.e., it would support10msec, 20msec, 50msec, 100msec, 1sec.10 msec, 20 msec, 50 msec, 100 msec, and 1 sec. Vendor "B" has a fastest interval of20msec20 msec and thus would need to support20msec, 50msec, 100msec20 msec, 50 msec, 100 msec, and1sec.1 sec. As long as this requirement is met for the common set of values, then both vendor "A" and "B" are free to support additional values outside of the Common Interval set. 4.IANA Considerations RFC Ed.: RFC-editor please remove this section No request to IANA. 5.Security Considerations This document does not introduce any additional security concerns. The security considerations described in the BFD documents, [RFC5880] and others, apply to devices implementing the BFD protocol, regardless of whether or not the Common Interval set is implemented.7.5. References7.1.5.1. Normative References [RFC5880] Katz, D. and D. Ward, "Bidirectional Forwarding Detection (BFD)", RFC 5880, June2010. 7.2.2010, <http://www.rfc-editor.org/info/rfc5880>. 5.2. Informative References [G.8013_Y.1731]ITU-T G.8013/Y.1731, "ITU-T OAMInternational Telecommunications Union, "OAM functions and mechanisms for Ethernet basednetwork",networks", ITU-T Recommendation G.8013/Y.1731, November 2013. [GR-253-CORE] Telcordia Technologies, Inc., "Synchronous Optical Network (SONET) Transport Systems: Common Generic Criteria", GR- 253-CORE Issue 05, October 2009. Appendix A. Whysome values areSome Values Are in the Common IntervalsetSet The list of Common Interval values is trying to balance various objectives. The list should not contain too manyvaluesvalues, as more timers may increase the implementation costs. On the otherhand lesshand, fewer values produces larger gaps and adjustment jumps. More values in the lower interval rangeisare thus seen as critical to support customer needs for fast detection in setups with multiple vendors. o3.3msec:3.3 msec: required by MPLS-TP, adopting the detection time of10msec10 msec from [GR-253-CORE]. o10msec:10 msec: general consensus is to support10msec.10 msec. Multiple vendors plan to or do already implement10msec.10 msec. o20msec:20 msec: basically avoids a larger gap in this critical interval region. Still allows50-60msec50-60 msec detect and restore (with multiplier of 2) and covers existing software-based implementations. o50msec:50 msec: widely deployed interval. Supporting this value reflects the reality of many BFD implementations today. o100msec:100 msec: similar to10msec10 msec, this value allows the reuse of [G.8013_Y.1731] implementations, especially hardware. It allows to support large scale of 9 x100msec100 msec setups and would be a replacement for 3 x300msec300 msec configurations used by customers to have a detection time slightly below1sec1 sec forVoIPVoice over IP (VoIP) setups. o1sec:1 sec: as mentioned in [RFC5880]. While the interval for Down packets can be1sec1 sec orlargerlarger, thisdraftdocument recommendstouse of exactly1sec1 sec to avoid interoperability issues. The recommended value for large intervals is10sec,10 sec, allowing for a timeout of 42.5 minutes with a multiplier of 255. This value is kept outside the Common Intervalsetset, as it is not required for normal BFDoperations, whichoperations that occur in the sub-second range.InsteadInstead, the expected usage is for graceful restart, if needed. Appendix B. TimeradjustmentAdjustment withnon-identical interval setsNon-identical Interval Sets [RFC5880] implicitly assumes that a BFD implementation can support any timer value equal to or above the advertised value. When a BFD speaker starts apoll sequencePoll Sequence, then the peer must reply with the Final (F) bit set and adjust the transmit and detection timers accordingly. With contiguous software-basedtimerstimers, this is a valid assumption. Even in the case of a small number of supported intervalvaluesvalues, this assumption holds when both BFD speakers support exactly the same interval values. But what happens when both speakers support intervals that are not supported by the peer? An example is router "A" supporting the Common Interval set plus200msec200 msec, while router "B"supportsupports the Common Intervals plus300msec.300 msec. Assume both routers are configured and run at50msec. Now50 msec. Now, router A is configured for200msec.200 msec. We know the result must be that both BFDspeakerspeakers use1sec timers1 sec timers, but how do they reach this endpoint?FirstFirst, router Ais sendingsends a packet with200msec.200 msec. The P bit is set according to [RFC5880]. The Tx timer stays at50msec,50 msec, the detection timer is 3 *200msec:200 msec: (A) DesiredTx:200msec,200 msec, MinimumRx:200msec,200 msec, P-bit Tx:50msec ,50 msec, Detect: 3 *200msec200 msec Router B now must reply with an F bit. The problem is B is confirming timer valueswhichthat it cannot support. The only setting to avoid a session flap would be (B) DesiredTx:300msec,300 msec, MinimumRx:300msec,300 msec, F-bit Tx:50msec ,50 msec, Detect: 3 *300msec300 msec immediately followed by a P-bitpacketpacket, as the advertised timer values have been changed: (B) DesiredTx:300msec,300 msec, MinimumRx:300msec,300 msec, P-bit Tx:50msec ,50 msec, Detect: 3 *300msec300 msec This is not exactly what Section 6.8.7 of [RFC5880] statesin section 6.8.7about the transmission rate. On the otherhandhand, as we willseesee, this state does not last for long. Router A would adjust its timers based on the received Finalbitbit: (A) Tx:200msec ,200 msec, Detect: 3 *1sec1 sec Router A is not supporting the proposed300msec300 msec and would use1sec1 sec instead for the detection time. It would then respond to the received PollsequenceSequence from routerB,B using1sec1 sec, as router A does not support theMax(200msec, 300msec):Max(200 msec, 300 msec): (A) DesiredTx:1sec,1 sec, MinimumRx:1sec,1 sec, F-bit Tx:200msec ,200 msec, Detect: 3 *1sec1 sec followed by its own PollsequenceSequence, as the advertised timer values have been changed: (A) DesiredTx:1sec,1 sec, MinimumRx:1sec,1 sec, P-bit Tx:200msec ,200 msec, Detect: 3 *1sec1 sec Router B would adjust its timers based on the received Final (B) Tx:300msec300 msec , Detect: 3 *1sec1 sec and would then reply to the PollsequenceSequence from router A: (B) DesiredTx:300msec,300 msec, MinimumRx:300msec,300 msec, F-bit Tx:1sec ,1 sec, Detect: 3 *1sec1 sec which finally makes router Aadjustingadjust its timers: (A) Tx:1sec ,1 sec, Detect: 3 *1sec1 sec In otherwordswords, router A and B go through multiplepoll sequencesPoll Sequences until they reach a commonly supported interval value. Reaching such a value is guaranteed by thisdraft.document. Appendix C. Acknowledgments We would like to thank Sylvain Masse and Anca Zamfir for bringing up the discussion about the Pollsequence,Sequence, and Jeffrey Haashelped findingfor helping find the fine line between "exact" and "pedantic". Authors' Addresses Nobo Akiya Cisco SystemsEmail:EMail: nobo@cisco.com Marc Binderberger Cisco SystemsEmail:EMail: mbinderb@cisco.com Greg Mirsky EricssonEmail:EMail: gregory.mirsky@ericsson.com