RFC 8207

BGPsec Operational Considerations

πŸ“… published September 2017, from ietf

BGPsec Operational Considerations πŸŽ€

Okay bestie, this one is a Best Current Practice (BCP 211) πŸ’… written by R. Bush from Internet Initiative Japan, dated September 2017. It's a Category: Best Current Practice doc, and it's on the ISSN 2070-1721 list. The title block doesn't list any Obsoletes or Updates entries, so it's not replacing or patching any other RFC. πŸ¦‹


Abstract ✨

Okay so, deploying BGPsec comes with a LOT of operational considerations 😭 This doc tries to gather up the most critical and universal ones into one place. Operational practices are expected to evolve as BGPsec gets formalized and rolled out, so think of this as a snapshot, not a final answer 🌸

Status of This Memo πŸ’œ

This memo documents an Internet Best Current Practice.

This document is a product of the Internet Engineering Task Force (IETF). It represents the consensus of the IETF community. It has received public review and has been approved for publication by the Internet Engineering Steering Group (IESG). Further information on BCPs is available in Section 2 of RFC 7841.

Information about the current status of this document, any errata, and how to provide feedback on it may be obtained at http://www.rfc-editor.org/info/rfc8207.

Copyright (c) 2017 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
  1.1.  Requirements Language . . . . . . . . . . . . . . . . . .   3
2.  Suggested Reading . . . . . . . . . . . . . . . . . . . . . .   3
3.  RPKI Distribution and Maintenance . . . . . . . . . . . . . .   3
4.  AS/Router Certificates  . . . . . . . . . . . . . . . . . . .   3
5.  Within a Network  . . . . . . . . . . . . . . . . . . . . . .   4
6.  Considerations for Edge Sites . . . . . . . . . . . . . . . .   4
7.  Routing Policy  . . . . . . . . . . . . . . . . . . . . . . .   5
8.  Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . .   7
9.  Security Considerations . . . . . . . . . . . . . . . . . . .   7
10. IANA Considerations . . . . . . . . . . . . . . . . . . . . .   7
11. References  . . . . . . . . . . . . . . . . . . . . . . . . .   8
  11.1.  Normative References . . . . . . . . . . . . . . . . . .   8
  11.2.  Informative References . . . . . . . . . . . . . . . . .   8
Acknowledgements  . . . . . . . . . . . . . . . . . . . . . . . .  10
Author's Address  . . . . . . . . . . . . . . . . . . . . . . . .  10

1. Introduction πŸ¦‹

Okay so origin validation based on the Resource Public Key Infrastructure (RPKI) [RFC6811] is still in its early phases 🌸 BGPsec [RFC8205] may require larger memory and/or more modern CPUs, so it expected to be deployed incrementally over a longer time span. BGPsec is a brand-new protocol with a lot of operational considerations, and this doc tries to describe them. As with most operational practices, they will likely change over time πŸ’–

BGPsec relies on widespread propagation of the RPKI [RFC6480]. How the RPKI is distributed and maintained globally and within an operator's infrastructure may be different for BGPsec than for origin validation. πŸ‘‘

BGPsec needs to be spoken only by an Autonomous System's (AS's) eBGP-speaking border routers. It is designed so that it can be used to protect announcements that are originated by resource-constrained edge routers. This has special operational considerations, see Section 6. ✨

Different prefixes may have different timing and replay protection considerations. 🌈

1.1. 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. πŸŽ€

2. Suggested Reading πŸ“š

It is assumed that the reader understands BGP [RFC4271], BGPsec [RFC8205], the RPKI [RFC6480], the RPKI Repository Structure [RFC6481], and Route Origin Authorizations (ROAs) [RFC6482]. 🧠

3. RPKI Distribution and Maintenance 🌸

The considerations for RPKI objects (Certificates, Certificate Revocation Lists (CRLs), manifests [RFC6481], and Ghostbusters Records [RFC6493]), Trust Anchor Locators (TALs) [RFC7730], cache behaviors of synchronization, and validation from the section on RPKI Distribution and Maintenance of [RFC7115] apply. Specific considerations relating to ROA objects do not apply to this document. πŸ™ˆ

4. AS/Router Certificates πŸ”

As described in [KEY], BGPsec-speaking routers are capable of generating their own public/private key-pairs and having their certificates signed and published in the RPKI by the RPKI Certification Authority (CA) system, and/or are given public/private key-pairs by the operator. πŸ—οΈ

A site/operator may use a single certificate/key in all their routers, one certificate/key per router, or any granularity in between. πŸ“

A large operator, concerned that a compromise of one router's key would make other routers vulnerable, may deploy a more complex certificate/key distribution burden to reduce this exposure. 🫢

At the other end of the spectrum, an edge site with one or two routers may choose to use a single certificate/key. 🧚

In anticipation of possible key compromise, a prudent operator SHOULD pre-provision each router's 'next' key in the RPKI so that there is no propagation delay for provisioning the new key. πŸ”₯

5. Within a Network 🏑

BGPsec is spoken by edge routers in a network, specifically those that border other networks/ASes. 🌐

In an AS where edge routers speak BGPsec and, therefore, inject BGPsec paths into the iBGP (internal BGP), Route Reflectors (RRs) MUST have BGPsec enabled if and only if there are eBGP (external BGP) speakers in their client cone, i.e., an RR client or the transitive closure of a client's customers. πŸ‘‘

A BGPsec-capable router MAY use the data it receives to influence local policy within its network, see Section 7. In deployment, this policy should fit into the AS's existing policy, preferences, etc. This allows a network to incrementally deploy BGPsec-enabled border routers. πŸ’œ

eBGP speakers that face more critical peers or upstreams or downstreams would be candidates for early deployment. Both securing one's own announcements and validating received announcements should be considered in partial deployment. ✨

An operator should be aware that BGPsec, as any other policy change, can cause traffic shifts in their network. And, as with normal policy shift practice, a prudent operator has the tools and methods to predict, measure, modify, etc. πŸ“ˆ

On the other hand, an operator wanting to monitor router loading, shifts in traffic, etc., might deploy incrementally while watching those and similar effects. πŸ‘€

BGPsec does not sign over communities, so they are not formally trustable. Additionally, outsourcing verification is not a prudent security practice. Therefore, an eBGP listener SHOULD NOT strongly trust unsigned security signaling, such as communities, received across a trust boundary. 🚨

7. Routing Policy πŸ›£οΈβœ¨

okay so BGPsec-signed paths can't traverse non-BGPsec topology, which means partial deployment makes islands of assured paths 🏝️. As islands grow until they touch each other, they become bigger islands 🌊.

Unlike origin validation based on the RPKI, BGPsec marks a received announcement as Valid or Not Valid. There is no explicit NotFound state πŸ™…β€β™€οΈ. In a way, an unsigned BGP4 path is the equivalent of NotFound. How this gets used in routing is up to the operator's local policy, kind of like origin validation as in [RFC6811] πŸ’….

As BGPsec gets rolled out over years and doesn't allow for intermediate non-signing edge routers, coverage is going to be spotty for a long time 😩. This makes a dilemma. Should a router evaluating an inbound BGPsec_PATH as Not Valid be super strict and discard it? Or, it might be the only path to that prefix, and a very low local-preference would mean it only gets used and propagated if there's no alternative. Either choice is reasonable, but we recommend dropping, because of the next point πŸ€“.

Operators should be aware that accepting Not Valid announcements, no matter the local preference, will often be the same as treating them as fully Valid πŸ’€. Local preference only affects routes to the same set of destinations. Picture this: a Valid announcement from neighbor V for prefix 10.0.0.0/16, and a Not Valid announcement for 10.0.666.0/24 from neighbor I. If local policy on the router isn't set to discard the Not Valid announcement from I, then longest match forwarding will send packets to neighbor I no matter what the value of local preference is πŸ™ˆ.

Validation of signed paths is usually deployed at the eBGP edge πŸšͺ.

Local policy on the eBGP edge MAY convey the validation state of a BGP-signed path through normal local policy mechanisms, e.g., setting a BGP community for internal use, or modifying a metric value such as local-preference or Multi-Exit Discriminator (MED). Some may choose to use the large Local-Pref hammer πŸ”¨. Others may choose to let AS path rule and set their internal metric, which comes after AS path in the BGP decision process πŸ‘‘.

As the mildly stochastic timing of RPKI propagation may cause version skew across routers, an AS Path that does not validate at router R0 might validate at R1 πŸŒ€. Therefore, signed paths that are Not Valid and yet propagated (because they are chosen as best path) MUST NOT have signatures stripped, and MUST be signed if sent to external BGPsec speakers 🫢.

This implies that updates which a speaker judges to be Not Valid MAY be propagated to iBGP peers. Therefore, unless local policy ensures otherwise, a signed path learned via iBGP may be Not Valid. If needed, the validation state should be signaled by normal local policy mechanisms such as communities or metrics πŸŽ€.

On the other hand, local policy on the eBGP edge might preclude iBGP or eBGP announcement of signed AS Paths that are Not Valid 🚫.

A BGPsec speaker receiving a path SHOULD perform origin validation per [RFC6811] and [RFC7115] πŸ”.

A route server is usually 'transparent', i.e., it does not insert an AS into the path, so it doesn't increase the AS hop count and mess with downstream path choices πŸ¦‹. But with BGPsec, a client router R needs to be able to validate paths that are forward signed to R. The sending router can't generate signatures for all the possible clients, though 😭. So a BGPsec-aware route server needs to validate the incoming BGPsec_PATH and forward updates that can be validated by clients, which means those clients must know the route server's AS. This implies that the route server creates signatures per client, including its own AS in the BGPsec_PATH, forward signing to each client AS (see [RFC8205]). The route server uses a pCount of 0 so it doesn't increase the effective AS hop count, which keeps the intent of 'transparency' intact 🧚.

If it's known that a BGPsec neighbor is a transparent route server, or otherwise may validly use a pCount of 0 (e.g., see [RFC8206]), the router SHOULD be configured to accept and process a received pCount of 0. Routers MUST disallow a pCount of 0 by default 🚧.

To prevent exposure of the internals of the BGP confederations [RFC5065], a BGPsec speaker exporting to a non-member removes all intra-confederation Secure_Path Segments. So signing within the confederation won't cause external confusion, even if non-unique private ASes are used 🌸.


8. Notes πŸ“

For protection from attacks replaying BGP data that's a day or longer old, rekeying routers with new keys (previously) provisioned in the RPKI is sufficient ⏳. For one approach, see [ROLLOVER].

A router that once negotiated (and/or sent) BGPsec should not be expected to always do so πŸ€·β€β™€οΈ.

Like the DNS, the Global RPKI presents only a loosely consistent view, depending on timing, updating, fetching, and so on. So one cache or router may have different data about a particular prefix or router than another cache or router. There's no 'fix' for this. It's just the nature of distributed data with distributed caches 🌐.

Operators who manage certificates SHOULD have RPKI Ghostbuster Records (see [RFC6493]), signed indirectly by end entity certificates, for those certificates on which others' routing depends for certificate and/or ROA validation πŸ‘».

Operators should be aware of impending algorithm transitions, which will be rare and slow-paced (see [RFC6916]). They should work with their vendors to make sure new algorithms are supported πŸ”.

As a router has to evaluate certificates and ROAs that are time dependent, routers' clocks MUST be correct to a tolerance of approximately an hour ⏰. The common approach is for operators to deploy servers that provide time service, such as [RFC5905], to client routers πŸ•°οΈ.

If a router has reason to believe its clock is seriously incorrect, e.g., it has a time earlier than 2011, it SHOULD NOT attempt to validate incoming updates. It SHOULD defer validation until it believes it is within a reasonable time tolerance πŸ™…β€β™€οΈβ³.


9. Security Considerations πŸš¨πŸ”

This document describes operational considerations for the deployment of BGPsec. The security considerations for BGPsec are described in [RFC8205]. Security is a whole main-character moment here, so go read that one too πŸ’œ.


10. IANA Considerations πŸ“‹

This document does not require any IANA actions βœ….


11. References πŸ“š

11.1. Normative References

11.2. Informative References


Acknowledgements 🫢

The author wishes to thank Thomas King, Arnold Nipper, Alvaro Retana, and the BGPsec design group. Big thank-yous, bestie πŸ’–.

Author's Address πŸ¦‹

Randy Bush Internet Initiative Japan 5147 Crystal Springs Bainbridge Island, Washington 98110 United States of America

Email: randy@psg.com

πŸ“¦ where this page comes from