N4N071: BGP Path Selection Algorithm Part 1 artwork

N4N071: BGP Path Selection Algorithm Part 1

The Fat Pipe - All Packet Pushers Pods

December 3, 2026

Previous episodes have covered how Open Shortest Path First (OSPF) computes the fastest path. Today the focus is on Border Gateway Protocol (BGP) path selection.

0:07

Ethan Banks

Welcome to N is for Networking. I'm Ethan Banks with Holly Podberlak. Together, Holly and I talk through the complexities of networking in a way that anyone can understand. If you're a college student studying networking, maybe you're working on your CCNA, or perhaps you find yourself in sales and marketing at a networking company for the very first time. Hey, this is your show. Connect with me and Holly via LinkedIn or the Packet Pushers Community Slack group, or if you don't like that social stuff, send us a message via packetpushers.net/follow up. NS4 Networking comes to you ad free and sponsor free because of Meter. The Packet Pushers Podcast Network, including NS4 Networking, is part of the Meter family. On today's episode, we talk more about Border Gateway Protocol, BGP. Specifically, we're going to discuss how BGP decides which path is the best one. Well, we're going to set us up for that, Holly, because in fairness, there's so much information to cover that we're going to do two parts on the BGP Best Path Algorithm. This will be part one, and then we're going to get into the specifics of the Best Path Algorithm in part two, which should publish as our next show. So Holly, let me set this up for all of us here. We have talked on NS4Networking about how OSPF computes the fastest path, right? It's a cost metric. Each possible link that a packet might traverse has a cost in the world of OSPF. There's a number that's been assigned to that link, and you add up all the costs and you add up the total cost for the path and the least expensive path is the fastest path. And that's the one that's installed into the FIV, the Forwarding Information Base. And it's more or less pretty simple. Now, I know we did several podcasts on OSPF, so there's more to it than that. But as far as how we compute what the best path is, it's in principle, it's pretty simple.

Well, what about BGP?

Yeah, there is more to the story than adding up link costs. In fact, link cost is one of the least important parts of the BGP best path algorithm. Most of the time, link cost doesn't even matter.

So, Holly, I don't know how, how in to BGP in figuring out how it does, what it does, have you gotten into? You've got a million certs, so there's gotta be, you must have run into it somewhere.

2:12

Holly Podberlak

Yeah, I think my problem with BGP is that I never got to actually deploying it.

And like, sure, I've configured it in like a lab environment, but I never ran into it in production, mostly just because I was always there. You know, I was never doing that kind of a thing. So, I knew a lot about BGP from taking certs.

From then to now, I know a lot less about BGP. It definitely exists in my brain somewhere. Like, it's there. But this episode and the next one are definitely going to be refreshes that I 100% need. And I'm pretty sure there might be quite a few questions.

2:55

Ethan Banks

It was a bit of a refresh for me. I mean, I took BGP all the way up to the CCIE level. But never as a service provider, always as with more of an enterprise focus. So there is a lot of what we're going to cover in today's episode and in the next episode is going to be more service provider focused and that a lot of these features, you will see in use more if you're a service provider as opposed to being an enterprise person.

So if you're wondering how much of what we cover in the next two episodes, do you need to know for your certs and so on? The answer is all of it. But the difference is how much of this would you care about in real life as an enterprise network engineer versus a service provider engineer versus a cloud networking engineer and so on. And then the answer varies a bit, how much of this you would be using day to day.

In this episode, Holly, I want us to do some reviews, some fun and some review and, but not things we've talked about all in one place. And some of this stuff, I'm not even sure we've talked about at all, but I thought, but to get through the BGP best path algorithm, we need to talk through a whole bunch of stuff so that you're prepared to get through the best path algorithm itself and have the background of why some of the stuff we'll talk about when we get there, the next episode matters. So all right, Holly, you know the very, very basics for sure. BGP stands for what and what do we do with it?

Read the other 41 minutes of this episode here.

$15 gets you this episode and 99 more. Credits never expire. After checkout, one link brings you back here to read it.

Not what you expected? Full refund within 14 days.

Thousands of transcripts fetched by people building searchable podcast archives

Fetch transcripts with code

The same credits work from a script or an AI agent. The demo key returns a sample episode in full, no card needed:

request
curl -H "x-api-key: pt_demo" \
  https://spoken.md/transcripts/1000651996090

Markdown with the speakers named, for your notes, your knowledge base, or anything that makes HTTP calls.

From $0.10 per transcript. No subscription. Credits never expire. Prices exclude VAT, added at checkout for EU customers. Not what you expected? Email us within 14 days with 20 or fewer credits used and we refund the pack in full.

Using your own key:

request
curl -H "x-api-key: YOUR_KEY" \
  https://spoken.md/transcripts/1000805547892