Internet-Draft | VRP Notation | July 2023 |
Bruijnzeels, et al. | Expires 11 January 2024 | [Page] |
This document defines a human readable notation for Validated ROA Payloads (VRP, RFC 6811) based on ABNF (RFC 5234) for use with RPKI tooling and documentation.¶
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 11 January 2024.¶
Copyright (c) 2023 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 (https://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 Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
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.¶
This informational document defines a human readable notation for Validated ROA Payloads (VRPs) [RFC6811].¶
We provide this notation because it can can help to create consistency between RPKI Relying Party software output, making it easier for operators to compare results. It can also be used by RPKI Certificate Authorities (CA) command line interfaces and/or configuration. E.g. allowing a CA to provide a listing of intended VRPs which can be easily compared to RP output. Our final goal is that this will be helpful for documentation.¶
That said, this document is informational. Implementations can choose to use their own notation styles instead of, or in addition to this.¶
This specification uses ABNF syntax specified in [RFC5234].¶
notation = vrp-prefix separator origin-asn vrp-prefix = v4-vrp-prefix / v6-vrp-prefix v4-vrp-prefix = v4-cidr ["-" max-length-v4] v4-cidr = v4-address "/" v4-pfx-length v4-address = v4-byte "." v4-byte "." v4-byte "." v4-byte v4-byte = %d0-255 v4-pfx-length = %d0-32 v4-max-length = %d0-32 v6-vrp-prefix = v6-cidr ["-" v6-max-length] v6-cidr = v6-address "/" v6-pfx-length v6-address = (v6-un / v6-no-0 / v6-l-0 / v6-m-0 / v6-t-0) v6-un = "::" v6-no-0 = v6-bytes 7*7(":" v6-bytes) v6-l-0 = ":" 1*7(":" v6-bytes) v6-m-0 = 1*6(v6-bytes ":") ":" 1*6(":" v6-bytes) v6-t-0 = 1*7(v6-bytes ":") ":" v6-bytes = %x0-FFFF v6-pfx-length = %d0-128 v6-max-length = %d0-128 separator = " => " origin-asn = ["AS"] uint32 uint32 = %d0-4294967295¶
This field denotes a single Validated ROA Prefix (VRP) as defined in section 2 of [RFC6811]. VRPs consist of either an IPv4 or an IPv6 prefix using CIDR prefix notation, optionally followed by a max-length value.¶
Unfortunately we could not find pre-existing formal ABNF syntax specifications for IPv4 and IPv6 CIDR prefix notation. The fairly basic specifications defined above cover the notation of valid CIDR prefixes, but it should be noted that they also allow for the notation of invalid IPv6 addresses, and allow for prefix length values that are not applicable to the base IP address. Rather than trying to define these rule in detail here we refer to section 3.1 of [RFC4632] for guidelines on IPv4 CIDR notation and section 2.3 of [RFC4291] for IPv6.¶
If the max-length is specified then its value needs to be the same as or longer than the length of the prefix within the bounds applicable to the address family of the prefix. If it is omitted then the effective max-length for the VRP will be the same as the VPR prefix length.¶
This field can optionally be prepended with the string "AS" followed by a decimal value of a 32 bit Autonomous System Number using the asplain presentation as specified in [RFC5396]. Decimal values MUST be used, and values MUST be part of the range 0-4294967295.¶
192.0.2.0/24 => AS65000 192.0.2.0/24-24 => AS65000 192.0.2.0/24-32 => AS65000 192.0.2.0/32 => AS65000 2001:db8::/32 => 65000, 2001:db8::/32-32 => 65000, 2001:db8::/32-128 => 65000, 2001:db8::/128 => 65000,¶
This document has no IANA actions.¶
TBD¶