Networking Tech with Fexingo: Internet Infrastructure, Routing, and Network Engineering · Fexingo
Lucas and Luna explore the subtle art of Best Path Selection in Border Gateway Protocol, focusing on how network engineers use metrics like Local Preference and AS Path length to steer global traffic. With internet congestion at record highs in late 2026, understanding why your data takes a specific route—often avoiding the most direct physical path—is crucial for modern network reliability. This episode breaks down the decision tree that keeps the internet moving without collapsing under its own weight. #BGP #InternetRouting #NetworkEngineering #TechInfrastructure #LocalPreference #ASPath #TrafficSteering #FexingoBusiness #BusinessPodcast #LucasAndLuna #Connectivity #DataPaths #ISP #Latency #NetworkOps #DigitalEconomy #TechDeepDive #InternetGovernance Keep every episode free: buymeacoffee.com/fexingo
Lucas: Think about the last time you tried to load a webpage during peak hours and it felt sluggish. You probably blamed your Wi-Fi or your ISP, but the real culprit might be sitting right in the middle of the ocean, waiting for a computer to decide which cable to pick. Luna: Right, because the internet doesn't just send data straight from A to B. It has options, and those options are decided by a very rigid set of rules inside the routers. Lucas: Exactly. We talked earlier about how BGP distributes routes, but today we need to look at what happens after the route arrives. The router receives multiple paths to the same destination, and it has to choose one. That choice is called Best Path Selection, and it is the single most important decision point in global internet routing. Luna: So if there are three different cables reaching New York from London, how does the router know which one to trust? Lucas: It follows a strict hierarchy. Imagine a funnel. At the top of the funnel is Local Preference. This is an internal flag set by the network operator. If I am an ISP in Chicago, I can tell my routers, 'Hey, prefer the path through our partner in Detroit over the path through our competitor in Cleveland.' It’s essentially saying, 'This is our preferred exit door.' Luna: That makes sense for cost control, but what if both paths are equally good in terms of who pays whom? Lucas: Then the router moves down the list. The next criterion is AS Path Length. This is simply the number of networks the data has to jump through. Shorter is better. If Path A goes through two networks and Path B goes through five, the router will instinctively pick Path A because it’s less likely to break. Luna: It’s like choosing the shortest commute, even if the highway looks congested. But isn't that sometimes inefficient? Maybe the longer path is actually faster? Lucas: That’s the classic tension in network engineering. Strictly speaking, BGP doesn’t measure latency or bandwidth in real-time. It measures hop count. So yes, you can end up with a suboptimal path where data travels further just because it passed through fewer autonomous systems. But usually, fewer hops means fewer points of failure. Luna: So it prioritizes stability over raw speed. That feels like a conservative design choice, especially with all the high-frequency trading going on today. Lucas: It is conservative, but it’s also predictable. Predictability keeps the internet from fragmenting. If every router was trying to find the absolute fastest millisecond path dynamically, the routing tables would be in chaos. Instead, they stick to these deterministic rules. Once Local Preference and AS Path are evaluated, the router looks at the Origin code. Luna: Origin code? Is that like the source of the truth for the route? Lucas: Essentially. It tells you how the route was learned. IGP is preferred, meaning it came from within the local network. Then EGP, which is external but structured. And finally, Incomplete, which is often used when a route is redistributed from another protocol. It’s a way of trusting the immediate neighbor more than the distant stranger. Luna: I’m curious about the tie-breakers though. What happens if Local Preference, AS Path, and Origin are all identical? Lucas: Then we get into the weeds of Multi-Exit Discriminator, or MED. This is a hint sent between two neighboring autonomous systems. One network says to another, 'If you’re coming back to me, please enter via this interface rather than that one.' It’s a polite request, not a command, but most routers respect it to balance traffic loads. Luna: Polite requests in networking. I love that. It’s like asking someone to park in the guest spot instead of the driveway. Lucas: Precisely. And if even the MED is a tie, the router finally looks at the actual IP address of the neighbor. It picks the lowest IP address. It’s arbitrary, but it ensures that everyone agrees on the same path. Consistency matters more than perfection here. Luna: But wait, if the router picks one path, what happens to the others? Do they just sit there doing nothing? Lucas: They stay in the table as backup routes. This is critical for resilience. If the primary link fails, the router can instantly failover to the secondary path without having to ask anyone else for directions. That’s why we don’t see the internet go dark every time a fiber cut happens in Jersey. Luna: So it’s not just about efficiency; it’s about survival. The system is designed to assume things will break. Lucas: Always. And with the surge in cloud computing, that backup strategy is getting more complex. Companies aren’t just sending data home anymore; they’re sending it to a dozen different data centers across three continents. The Best Path algorithm has to handle that scale without crashing. Luna: Does that mean your personal browsing is now routed through some random data center in Ohio just because it had a lower IP address? Lucas: It’s possible. If your ISP has peering agreements that make that path technically superior in terms of hop count, yes. But usually, your ISP uses Local Preference heavily to keep you on their own wires as long as possible. They want to maximize their own utilization before handing you off to a transit provider. Luna: So it’s not just technical; it’s economic. Every hop costs money. Lucas: Every single hop. That’s why you see ISPs building massive private backbones. They want to avoid paying other networks for transit whenever possible. It’s a constant game of financial and technical optimization. Luna: It reminds me of how airlines route passengers. They don’t always fly you direct if it’s cheaper for them to connect you through a hub. Lucas: Spot on. hub and spoke models dominate both aviation and internet routing. But unlike airlines, internet packets can take any available road. The difference is that internet routers have to make that decision in microseconds, millions of times a second. Luna: Microseconds. That’s barely enough time for a thought. How do they ensure they’re not making the wrong choice repeatedly? Lucas: They rely on monitoring. While BGP itself is static, modern networks overlay telemetry on top of it. Tools like sr te, Segment Routing Traffic Engineering, allow engineers to explicitly steer traffic away from congested links. It’s a layer of intelligence sitting on top of the basic BGP decision tree. Luna: So BGP is the skeleton, but telemetry is the nervous system? Lucas: That’s a great way to put it. Without the skeleton, you collapse. Without the nervous system, you’re blind. As we move toward 2027, expect to see more integration between these two layers. The internet is becoming smarter, but it still rests on those old, reliable rules. Luna: It’s comforting to know there’s still structure underneath all that digital chaos. Lucas: There is. And for the engineers keeping that structure intact, it’s a job that requires both deep technical knowledge and a strong grasp of economics. You’re basically managing the flow of global commerce one packet at a time. Luna: Next time my video buffers, I’ll try to remember it’s not just bad luck, but a million tiny decisions made by machines. Lucas: It is. And most of the time, they made the right call. Now, if this conversation helped clarify how your data actually moves... Luna: and you found value in breaking down these infrastructure layers, consider supporting the show directly. If today was worth a coffee to you, that's the link — buy me a coffee dot com slash fexingo — that's F. E. X. I. N. G. O. Lucas: Your support keeps these deep dives ad-free and allows us to keep exploring the tech that powers our economy. Thanks for listening. Luna: Absolutely. And as we look ahead to the next wave of network upgrades... Lucas: we’ll see how those upgrades change the game. For now, let’s just appreciate the hidden logic that keeps us connected.