Internet-Draft Inbound BGP Maximum Prefix Limits February 2023
Snijders, et al. Expires 8 August 2023 [Page]
Workgroup:
Inter-Domain Routing
Internet-Draft:
draft-sas-idr-maxprefix-inbound-05
Updates:
4271 (if approved)
Published:
Intended Status:
Standards Track
Expires:
Authors:
J. Snijders
Fastly
M. Aelmans
Juniper Networks
M. Stucchi
Independent

Inbound BGP Maximum Prefix Limits

Abstract

This document describes two threshold types to consider when receiving BGP address prefixes from adjacent systems in order to limit the negative impact of route leaks or resource exhaustion in BGP implementations.

Requirements Language

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.

Status of This Memo

This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.

Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.

Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any 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 8 August 2023.

Table of Contents

1. Introduction

This document updates [RFC4271] and describes a revision of the control mechanism which helps limit the negative impact of route leaks [RFC7908] and/or resource exhaustion in Border Gateway Protocol (BGP) implementations. While [RFC4271] described the concept of automatically tearing down BGP sessions or discarding UPDATES after the configured maximum number of prefixes received threshold has been exceeded, operational experience suggests it to be beneficial to recognize two distinct subtypes of this threshold. This document introduces a differentiation between Pre-Policy and Post-Policy maximum prefix limits.

2. Changes to RFC4271 Section 6

This section updates [RFC4271] to specify what events can result in AutomaticStop (Event 8) in the BGP FSM.

The following paragraph replaces the second paragraph of Section 6.7 (Cease), which starts with "A BGP speaker MAY support..." and ends with "... The speaker MAY also log this locally.":

Table 1
Subcode Symbolic Name
1 Threshold exceeded: Maximum Number of Prefixes Received

3. Changes to RFC4271 Section 8

This section updates Section 8 [RFC4271], the paragraph that starts with "One reason for an AutomaticStop event is ..." and ends with "... The local system automatically disconnects the peer." is replaced with:

4. Changes to RFC4271 Section 9

This section updates [RFC4271] by adding a subsection after Section 9.4 (Originating BGP routes) to specify various events that can lead up to AutomaticStop (Event 8) in the BGP FSM.

5. Security Considerations

Maximum Prefix Limits are an essential tool for routing operations and are RECOMMENDED be used to increase stability for the global routing ecosystem. See [RFC7454] section 8 for more guidance.

6. IANA Considerations

This memo requests that IANA updates the name of subcode "Maximum Number of Prefixes Reached" to "Threshold exceeded: Maximum Number of Prefixes Received" in the "Cease NOTIFICATION message subcodes" registry under the "Border Gateway Protocol (BGP) Parameters" group.

7. Acknowledgments

The authors would like to thank Saku Ytti, John Heasley, Jeff Haas, Colby Barth, John Scudder, Martijn Schmidt, Teun Vink, Sabri Berisha, Martin Pels, Steven Bakker, Aftab Siddiqui, Yu Tianpeng, Ruediger Volk, Robert Raszuk, Jakob Heitz, Warren Kumari, Ben Maddison, Randy Bush, Brian Dickson, and Gyan Mishra for their support, insightful reviews, and comments.

8. Implementation status - RFC EDITOR: REMOVE BEFORE PUBLICATION

This section records the status of known implementations of the protocol defined by this specification at the time of posting of this Internet-Draft, and is based on a proposal described in RFC7942. The description of implementations in this section is intended to assist the IETF in its decision processes in progressing drafts to RFCs. Please note that the listing of any individual implementation here does not imply endorsement by the IETF. Furthermore, no effort has been spent to verify the information presented here that was supplied by IETF contributors. This is not intended as, and must not be construed to be, a catalog of available implementations or their features. Readers are advised to note that other implementations may exist.

The below table provides an overview (as of the moment of writing) of which vendors have produced implementation of inbound prefix limits. Each table cell shows the applicable configuration keywords if the vendor implemented the feature.

Table 2: Maximum prefix limits capabilities per implementation
Vendor Type A Pre-Policy Type B Post-Policy
Cisco IOS XR maximum-prefix
Cisco IOS XE maximum-prefix
Juniper Junos OS prefix-limit accepted-prefix-limit, or prefix-limit combined with 'keep none'
Nokia SR OS prefix-limit
NIC.CZ BIRD 'import keep filtered' combined with 'receive limit' 'import limit' or 'receive limit'
OpenBSD OpenBGPD max-prefix
Arista EOS maximum-routes maximum-accepted-routes
Huawei VRPv5 peer route-limit
Huawei VRPv8 peer route-limit peer route-limit accept-prefix

First presented by Snijders at [RIPE77]

9. Appendix: Implementation Guidance

TBD

10. References

10.1. Normative References

[RFC2119]
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, , <https://www.rfc-editor.org/info/rfc2119>.
[RFC4271]
Rekhter, Y., Ed., Li, T., Ed., and S. Hares, Ed., "A Border Gateway Protocol 4 (BGP-4)", RFC 4271, DOI 10.17487/RFC4271, , <https://www.rfc-editor.org/info/rfc4271>.
[RFC8174]
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, , <https://www.rfc-editor.org/info/rfc8174>.

10.2. Informative References

[RFC7454]
Durand, J., Pepelnjak, I., and G. Doering, "BGP Operations and Security", BCP 194, RFC 7454, DOI 10.17487/RFC7454, , <https://www.rfc-editor.org/info/rfc7454>.
[RFC7908]
Sriram, K., Montgomery, D., McPherson, D., Osterweil, E., and B. Dickson, "Problem Definition and Classification of BGP Route Leaks", RFC 7908, DOI 10.17487/RFC7908, , <https://www.rfc-editor.org/info/rfc7908>.
[RIPE77]
Snijders, J., "Robust Routing Policy Architecture", , <https://ripe77.ripe.net/wp-content/uploads/presentations/59-RIPE77_Snijders_Routing_Policy_Architecture.pdf>.

Authors' Addresses

Job Snijders
Fastly
Amsterdam
Netherlands
Melchior Aelmans
Juniper Networks
Boeing Avenue 240
1119 PZ Schiphol-Rijk
Netherlands
Massimiliano Stucchi
Independent