Analysis of BGP Prepending in the LAC Region in 2024

October 9, 2024

Analysis of BGP Prepending in the LAC Region in 2024

By Alejandro Acosta, R&D Coordinator at LACNIC

Introduction

In this report, we will explore a very specific aspect of BGP tables in our region, focusing on the status of BGP prepends. We will provide a detailed review of both IPv4 and IPv6 BGP tables and share our findings. 

Commonly known as ‘AS Path Prepending,’ BGP prepending is a long-established and very popular technique designed as a key strategy for influencing route selection and optimizing an AS’s inbound and outbound traffic. It is used by all types of network operators. But how effective is this technique? Should it always be used? Are there any other options?

History

As we mentioned a few months ago in our blog post titled A Much-Needed BGP RFC: AS Path Prepending [1], a document titled ‘AS Path Prepending’ [2] is currently being developed within the IETF, and LACNIC had the opportunity to participate and contribute to the draft. The document outlines several considerations for configuring BGP prepending. This raises the question: Are we doing things right in Latin America and the Caribbean? This report will hopefully address several concerns.

(Free access, no subscription required)

What is AS Path Prepending?

AS Path Prepending is a technique that involves repetitively adding one’s autonomous system identifier (ASN) to the list of ASs in a BGP route path (AS_PATH). Its goal is to influence route selection by making certain paths less attractive to inbound/outbound traffic. In other words, it consists of adding our autonomous system to the AS_PATH and thus artificially ‘lengthening the path’ to a prefix on the Internet.

In the image above, without prepends, Router A prefers to reach C via B. However, when three prepends are added by B, router A decides to reach C via D.

Data Sources Used for This Study

https://bgp.potaroo.net/v6/as2.0/bgptable.txt (IPv6)

The views expressed by the authors of this blog are their own and do not necessarily reflect the views of LACNIC.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments