RPKI and IRR – Frequently Asked Questions

15/09/2023

RPKI and IRR – Frequently Asked Questions

Erika Vega, Guillermo Cicileo, Nicolás Antoniello

Typically, LACNIC events include RPKI (Public Resource Key Infrastructure) and IRR (Internet Routing Registry) tutorials in which we review the theory and technical aspects of best practices related to traffic exchange and peering routing security. In addition, the LACNIC 39 event held in Mérida also included a consultation session on secure routing and tools, where a series of questions were raised which we have consolidated in this document.

Who should create the ROA, the organization to which the IP address block has been delegated or the organization to which the autonomous system has been delegated?

Route Origin Attestations (ROAs) are digitally signed objects that describe a link between a set of prefixes (IPv4 or IPv6) and the autonomous system authorized to originate them in BGP announcements (in RPKI, this is known as ‘origin validation’ of a route or prefix). Therefore, the ROA must be created by the holder of the address block (the organization to which LACNIC has delegated the use of the prefix) and can be associated with any autonomous system, regardless of whether it is held by the same organization or by a third party.

What is the maximum length that should be used when creating an ROA?

When creating ROAs, we must take into account the maximum length of the prefixes we are advertising in BGP. As a general rule, we should only create ROAs that cover our advertisements. It is essential that the maximum length specified in an ROA is not shorter than that of a published prefix, because, for example, if the ROA allows /22 prefixes but we announce a /24, that announcement will not be allowed by the ROA and therefore both will be invalidated.

In certain cases, if we know we are going to deaggregate blocks from a larger block, we could use this maximum length to avoid having to create an ROA for each advertised prefix. However, this practice is generally not recommended, as it would enable potential origin spoofing attacks. For more information, see RFC 9319.

(Free access, no subscription required)

How do we create or define our ROAs if we have more than one provider?

For prefixes delegated by LACNIC, two different cases are possible: when an Autonomous System Number (ASN) is available and when an ASN is not available.

  1. If the advertisements originate from our own ASN:

    In this case, the ROAs must be generated with our own ASN as the origin autonomous system. It is important to consider how we are publishing BGP advertisements and to properly generate the ROAs so that the authorized prefix lengths match our advertisements.
  2. If the advertisements originate from our Internet access providers’ ASNs:

If the prefixes originate from the autonomous system of one or more providers, we must generate an ROA with each prefix and each of their origin autonomous systems. RPKI validation will determine that a BGP advertisement is valid if it is covered by at least one ROA; in other words, it doesn’t matter if there are contradicting ROAs provided that there is at least one ROA that corresponds to the BGP advertisement.

Subscribe
Notify of

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments