Posts

Showing posts from December, 2026

BGP Local Preference: Primary/Backup and Transit Tiers

Image
Two transit providers, one bill you would rather not pay, and traffic that keeps leaving through the wrong one: that is the day most engineers meet BGP local preference . LOCAL_PREF is the knob that decides where traffic leaves your autonomous system. It is set by you, on your own border routers, and it is shared by every router in the AS, so they all agree on the exit. It beats AS_PATH length, ORIGIN and MED, which is why it carries most of the routing policy of the Internet: customer routes before peer routes before transit routes. This part of the series covers the attribute itself (bytes, defaults, error handling), then the three designs operators actually build with it, tested in a GoBGP lab and compared with what large transit networks publish today.

BGP NEXT_HOP Attribute: How eBGP and iBGP Change It

Image
Every BGP engineer meets this one early: the route is in show ip bgp , the AS path looks fine, and yet nothing is installed and traffic goes nowhere. Very often the problem is the BGP next hop attribute . NEXT_HOP is the address a router has to forward packets to, and BGP itself only carries it: the IGP has to make it reachable. The rules for who rewrites it are short but full of exceptions. eBGP rewrites it, iBGP keeps it, route reflectors must not touch it, IXP route servers pass someone else's address on purpose, and IPv6 adds a second, link-local address in a different attribute. This part of the series goes through each rule with the RFC text, real bytes from a GoBGP lab, and 7 million real routes from an Internet exchange.