Analysis of BGP Prepending in the LAC Region in 2024

09/10/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.

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)

(Free access, no subscription required)

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

Scope

  • We work with prefixes managed by any of the RIRs
  • The AS_PATH must contain at least one AS from the LACNIC service region

Tools to Be Used for This Study

  • Python3
  • JupyterLabs
  • BGP tables in “show ip bgp” format in Cisco IOS

Findings

Total number of prefixes in the routing table

The data below shows the number of prefixes in the DFZ (Default Free Zone) at the time this analysis was performed (snapshot of the routing table taken on 22 August 2024).

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

Subscribe
Notify of

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments