| Internet-Draft | MOA Profile | November 2026 |
| Xie, et al. | Expires 29 May 2027 | [Page] |
This document proposes a new approach by leveraging Resource Public Key Infrastructure (RPKI) architecture to verify the authenticity of the mapping origin of an IPv4 address block. MOA is a newly defined cryptographically signed object that provides a means for the address holder to authorize an IPv6 mapping prefix to originate mapping for one or more IPv4 prefixes. When receiving the MOA objects from the relying parties, PE devices can verify and discard invalid address mapping announcements from unauthorized IPv6 mapping prefixes to prevent IPv4 prefix hijacking.¶
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 29 May 2027.¶
Copyright (c) 2026 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.¶
This document defines a security enhancement for the address mapping announcement in multi-domain IPv6-only underlay networks [I-D.ietf-v6ops-framework-md-ipv6only-underlay]. For IPv4 service delivery in an IPv6-only network, IPv6 mapping prefixes are configured at the PE devices to identify the location of IPv4 address blocks, for any given IPv4 address block, its corresponding IPv6 mapping prefix is considered as the mapping origin. In [I-D.ietf-idr-mpbgp-extension-4map6], a PE device at the edge of the IPv6-only network distributes the mapping between an IPv4 address block and its mapping origin through 4map6 extension of MP-BGP. Based on the obtained mapping data, the ingress PE can statelessly transform the incoming IPv4 packets into IPv6 ones and send them to the correct egress PE.¶
From the above, it can be seen that the correctness of transmitting IPv4 service data in an IPv6-only network lies on the authenticity of the address mapping relationship. This can be further explained by the case where if an attacker maps an IPv4 address block using a fake IPv6 mapping prefix, IPv4 service data will be sent to the wrong egress PE, resulting in a situation of IPv4 prefix hijacking. In a small-scale controlled network, this problem may not be too serious. However, as the scale of IPv6-only deployment increases and there is interconnection among multiple operators, it is necessary to guarantee the authenticity of mapping relationship. This document proposes a new approach by leveraging Resource Public Key Infrastructure (RPKI) architecture to verify the authenticity of the mapping origin of an IPv4 address block. RPKI is a security framework by which network owners can validate and secure the critical route updates or BGP announcements between public Internet networks [RFC6480]. For the scenario discussed, a new object, namely Mapping Origin Authorization (MOA), under the RPKI framework is defined in this document. MOA is a cryptographically signed mapping object between an IPv4 address block and its right mapping origin that is allowed to be declared in the announcement of MP-BGP. With this architecture, a legitimate holder of IPv4 address block, e.g. an ISP, can authorize an IPv6 mapping prefix to map IPv4 address block.¶
A distributed repository system stores and disseminates the data objects that comprise the RPKI, as well as other signed objects necessary for improved mapping data and routing security. When receiving MOA objects from the relying parties, the PE routers can use them for Mapping Origin Validation (MOV) of IPv4 address blocks: verifying and discarding "invalid" address mapping announcements to prevent IPv4 prefix hijacking in an IPv6 network.¶
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.¶
The content-type for a MOA is defined as MappingOriginAuthz and has the numerical value of 1.2.840.113549.1.9.16.1.TBD1. TBD1 is assigned by IANA as described in Section 7.¶
This OID MUST appear both within the eContentType in the encapContentInfo object and in the content-type signed attribute in the signerInfo object (see [RFC6488]).¶
A MOA is an RPKI signed object and MUST conform to the signed object template specified in [RFC6488]. The end-entity (EE) certificate contained in a MOA MUST conform to [RFC6487].¶
A MOA identifies a single IPv6 mapping prefix that has been authorized by the address holder to originate mappings for one or more IPv4 prefixes. If the address holder needs to authorize multiple IPv6 mapping prefixes to map the same set of IPv4 prefixes, the holder issues multiple MOAs, one per IPv6 mapping prefix. A MOA is formally defined as:¶
MappingOriginAttestation ::= SEQUENCE {
version [0] INTEGER DEFAULT 0,
mapping MOAIPMapping }
MOAIPMapping ::= SEQUENCE {
v6MappingPrefix MOAIPAddressFamily,
v4Prefixes MOAIPAddressFamily }
MOAIPAddressFamily ::= SEQUENCE {
addressFamily OCTET STRING (SIZE (2..3)),
addresses SEQUENCE (SIZE (1..MAX)) OF IPAddress }
IPAddress ::= BIT STRING
¶
The MOAIPAddressFamily structure follows the addressFamily element defined in Section 2.2.3.3 of [RFC3779] and is modelled on ROAIPAddressFamily in [RFC9582]. The addressFamily element carries a two-octet AFI and, optionally, a one-octet SAFI, so that the address family and the subsequent address family of every resource in the MOA are explicit.¶
The v6MappingPrefix element carries an addressFamily of 0002 (hexadecimal), i.e., the IPv6 AFI, and MUST NOT carry a SAFI. Its addresses element MUST contain exactly one IPAddress.¶
The v4Prefixes element carries an addressFamily of 0001 (hexadecimal), i.e., the IPv4 AFI, followed by the one-octet SAFI value registered for 4map6. Its addresses element MUST contain one or more IPAddresses.¶
The 4map6 SAFI is carried by the eContent only. The EE certificate contained in a MOA is a resource certificate as profiled in [RFC6487], and, per Section 4.8.10 of that document, its IP address delegation extension does not carry a SAFI. It is the eContent that binds the IPv4 resources of the EE certificate to the 4map6 use.¶
Each IPAddress MUST be encoded as specified in Section 2.1.1 of [RFC3779], that is, as a left-justified DER BIT STRING in which all unused bits are set to zero.¶
Note that this content appears as the eContent within the encapContentInfo object (see [RFC6488]).¶
The version number of the MappingOriginAttestation MUST be 0. Because 0 is the default value of the version element, it is absent from the DER encoding. A MOA that carries a version element with any other value is malformed.¶
The mapping element encodes a single authorization: the IPv6 mapping prefix in v6MappingPrefix is authorized to originate mappings for the set of IPv4 prefixes in v4Prefixes. A MOA that contains more than one MOAIPMapping is malformed.¶
Within the MOAIPMapping structure, the v6MappingPrefix element contains the IPv6 prefix that is used to originate mappings for a set of IPv4 prefixes. Prefix lengths of 40, 48, 56, 64 and 96 are RECOMMENDED for deployment.¶
The v4Prefixes element represents the IPv4 prefixes that the IPv6 mapping prefix is authorized to map, encoded as a sequence of IPAddress values.¶
The addresses element in v4Prefixes MUST be sorted as specified in Section 2.2.3.6 of [RFC3779]. It MUST NOT contain duplicate entries, entries that are equal to or contained within another entry, or adjacent entries that can be combined into a single entry. A MOA that violates any of these requirements is malformed.¶
The MOAIPAddressFamily structure MUST NOT use the "inherit" element and MUST NOT use the addressRange alternative; only address prefixes are used in a MOA.¶
This section specifies how a relying party validates a MOA and how it applies the result to a received mapping announcement.¶
Before a relying party can use a MOA to validate a mapping announcement, the relying party MUST first validate the MOA. To validate a MOA, the relying party MUST perform all the validation checks specified in [RFC6488] as well as the following additional MOA-specific validation checks:¶
A MOA that fails any of these checks MUST be considered invalid and MUST NOT be used for Mapping Origin Validation.¶
A relying party, typically an ingress PE, applies MOV to a received 4map6 route, that is, a BGP route whose AFI/SAFI is 2/4map6 and whose Network Layer Reachability Information (NLRI) carries an IPv6 mapping prefix P and an IPv4 prefix A [I-D.ietf-idr-mpbgp-extension-4map6].¶
The route is "Valid" if there exists at least one MOA that has been validated as specified in Section 5.1 and that contains a v6MappingPrefix equal to P and a v4Prefixes entry equal to A.¶
The route is "Invalid" if at least one validated MOA contains a v4Prefixes entry equal to A, but no validated MOA that contains A also authorizes P.¶
Otherwise, the route is "NotFound".¶
Comparison is by exact prefix value and exact prefix length. A MOA does not carry a maxLength equivalent, so a less specific entry does not authorize a more specific route. How these outcomes are used in route selection is a matter of local policy and is out of scope of this document.¶
There is no assumption of confidentiality for the data in a MOA; it is anticipated that MOAs will be stored in repositories that are accessible to all ISPs, and perhaps to all Internet users. There is no explicit authentication associated with a MOA, since the PKI used for MOA validation provides authorization but not authentication.¶
Although the MOA is a signed, application-layer object, there is no intent to convey non-repudiation via a MOA.¶
The purpose of a MOA is to convey authorization for an IPv6 mapping prefix to originate a mapping to the prefix(es) in the MOA. Thus, the integrity of a MOA MUST be established. The MOA specification makes use of the RPKI signed object format; thus, all security considerations in [RFC6488] also apply to MOAs. Additionally, the signed object profile uses the CMS signed message format for integrity; thus, MOAs inherit all security considerations associated with that data structure.¶
The right of the MOA signer to authorize the target IPv6 mapping prefix to originate mappings to the prefix(es) is established through use of the address space PKI described in [RFC6480]. Specifically, one MUST verify the signature on the MOA using an X.509 certificate issued under this PKI, and check that the prefix(es) in the MOA match those in the certificate's address space extension.¶
A MOA does not assert that its signer holds the IPv6 mapping prefix. The signer authorizes another party's IPv6 mapping prefix to map its own IPv4 block, so the legitimacy of that IPv6 mapping prefix is established by IPv6 ROA validation and not by the MOA itself. This is why the EE certificate of a MOA carries IPv4 resources only, as required in Section 5.1.¶
As mentioned in [I-D.ietf-idr-mpbgp-extension-4map6], the 4map6 extension is mainly used for controlled IPv6-only networks operated by a single or multiple ISPs. In this scenario, as the IPv6 mapping prefix indicates the direction of IPv4 service data transmission in the IPv6-only network, and MOA is used to validate the mapping origin of an IPv4 address block, there is no need to use IPv4 ROAs for the validation of IPv4 BGP announcements. On the other hand, as the operation of MOA depends on the authenticity of address authorization in the underlying IPv6 network, if the IPv6 address prefix is maliciously originated by a third-party AS, even if the IPv4 address block is legitimately authorized to its corresponding IPv6 mapping prefix, traffic hijacking may occur due to the malicious announcement of the IPv6 mapping prefix. Therefore, it is RECOMMENDED to also deploy IPv6 ROA validation where MOA is deployed.¶
With this document, IANA is requested to allocate a code for MOA in the "RPKI Signed Objects" registry. In addition, two OIDs need to be assigned by IANA, one for the module identifier (TBD2) and one for the content type (TBD1). The codes will use this document as the reference.¶
The SAFI value used in the addressFamily of the v4Prefixes element is the value registered for 4map6 in the "Subsequent Address Family Identifiers (SAFI) Parameters" registry by [I-D.ietf-idr-mpbgp-extension-4map6]. This document requests no IANA action for that registry.¶
The authors would like to express sincere thanks to Russ Housley and Job Snijders for their review, suggestions and contributions. Thanks are also given to Nan Geng, Lancheng Qin, Jie Dong, Linda Dunbar, Jiankang Yao, Sriram Kotikalapudi, Giuseppe Fioccola, Yu Fu, Shunwan Zhuang, Aijun Wang, Shengnan Yue and Cong Li for their review and comments.¶
This normative appendix provides an ASN.1 module that specifies the MOA content in ASN.1 syntax.¶
RPKIMappingOriginAuthz-2024
{ iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1)
pkcs9(9) smime(16) mod(0) TBD2 }
DEFINITIONS EXPLICIT TAGS ::= BEGIN
IMPORTS
CONTENT-TYPE
FROM CryptographicMessageSyntax-2009
{ iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1)
pkcs9(9) smime(16) modules(0) id-mod-cms-2004-02(41) };
ct-MappingOriginAuthz CONTENT-TYPE ::=
{ TYPE MappingOriginAttestation
IDENTIFIED BY id-ct-MappingOriginAuthz }
id-ct-MappingOriginAuthz OBJECT IDENTIFIER ::=
{ iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1)
pkcs9(9) smime(16) ct(1) TBD1 }
MappingOriginAttestation ::= SEQUENCE {
version [0] INTEGER DEFAULT 0,
mapping MOAIPMapping }
MOAIPMapping ::= SEQUENCE {
v6MappingPrefix MOAIPAddressFamily,
v4Prefixes MOAIPAddressFamily }
MOAIPAddressFamily ::= SEQUENCE {
addressFamily OCTET STRING (SIZE (2..3)),
addresses SEQUENCE (SIZE (1..MAX)) OF IPAddress }
IPAddress ::= BIT STRING
END
¶
In this example, the address holder authorizes the IPv6 mapping prefix 2001:db8:100::/48 to originate mappings for the IPv4 prefixes 192.0.2.0/24 and 198.51.100.0/24. The value 04 is used as a placeholder for the one-octet SAFI value that IANA registers for 4map6.¶
The DER encoding of the eContent is 42 octets:¶
30 28 30 26 30 0f 04 02 00 02 30 09 03 07 00 20 01 0d b8 01 00 30 13 04 03 00 01 04 30 0c 03 04 00 c0 00 02 03 04 00 c6 33 64¶
The Base64 encoding of the same eContent is:¶
MCgwJjAPBAIAAjAJAwcAIAENuAEAMBMEAwABBDAMAwQAwAACAwQAxjNk¶
Decoding the structure gives:¶
SEQUENCE (40 octets)
SEQUENCE (38 octets) -- MOAIPMapping
SEQUENCE (15 octets) -- v6MappingPrefix
OCTET STRING: 00 02 -- AFI 2, no SAFI
SEQUENCE (9 octets)
BIT STRING: unused=0 value=20 01 0d b8 01 00
-- 2001:db8:100::/48
SEQUENCE (19 octets) -- v4Prefixes
OCTET STRING: 00 01 04 -- AFI 1, SAFI 4map6
SEQUENCE (12 octets)
BIT STRING: unused=0 value=c0 00 02
-- 192.0.2.0/24
BIT STRING: unused=0 value=c6 33 64
-- 198.51.100.0/24
¶
The version element does not appear in the encoding, because its value is the default value 0.¶
The IP address delegation extension of the EE certificate that validates this MOA carries the two IPv4 prefixes without a SAFI. Its DER encoding is 39 octets:¶
30 25 06 08 2b 06 01 05 05 07 01 07 01 01 ff 04 16 30 14 30 12 04 02 00 01 30 0c 03 04 00 c0 00 02 03 04 00 c6 33 64¶
Here 2b 06 01 05 05 07 01 07 is the OID 1.3.6.1.5.5.7.1.7 (id-pe-ipAddrBlocks), 01 01 ff marks the extension critical, and the extnValue contains an IPAddrBlocks structure with a single IPAddressFamily whose addressFamily is 00 01 and whose addressesOrRanges holds the two prefixes shown above. The containment check of Section 5.1 therefore succeeds.¶
The following cases MUST be treated as described below.¶