A Much-Needed BGP RFC: AS Path Prepending

01/02/2024

A Much-Needed BGP RFC: AS Path Prepending

By Alejandro Acosta, R+D Coordinator at LACNIC

Introduction

The Border Gateway Protocol (BGP) plays a critical role in building and maintaining Internet routing tables, so much so that it is considered the “glue” that holds the Internet together. In this context, a long-standing and very popular technique known as ‘AS Path Prepending’ has been devised as a key strategy for influencing route selection and optimizing an AS’s inbound and outbound traffic.

In this document, we will navigate through the IETF draft titled “AS Path Prepending” [1], which includes several ideas and concepts that are of great value to the community.

About draft-ietf-grow-as-path-prepending

This draft has been under discussion within the Global Routing Operation (GROW) Working Group since 2020 and is currently on version 10. The document has seven co-authors: M. McBride, D. Madory, J. Tantsura, R. Raszuk, H. Li., J. Heitz, and G. Mishra. It predominantly received support on the discussion list (including my own). You can read the draft here.

What is AS Path Prepending?

(Free access, no subscription required)

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 therefore artificially “lengthening the path” to a prefix on the Internet.

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

Additional reading:

Why is AS Path Prepending used and what is it used for?

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

Subscribe
Notify of

1 Comentarios
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Hanis Irfan
8 months ago

As someone who just got into BGP traffic engineering, I’ve been taught that the only way to influence incoming traffic is by doing AS path prepending. My upcoming routing setup will consist of 2 transit provider and 1 IX. The first transit will have 1 AS prepend, the second transit will have 2 AS prepends and for the IX, there will be no AS prepend. We planned to maximize the IX link since it has higher bandwidth overall. MED might not work for our use case. But well, prepended AS might also not work due to some providers might striped it away.