Posts

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.

BGP AS_PATH Attribute on the Wire: AS_SET and AS4_PATH

Image
At 04:08 UTC this morning the RouteViews collector in Oregon held four copies of 94.176.176.0/22. Each one had an AS path of 258 or 259 autonomous systems, 255 of them the same number, AS205624. The router marked all four maxas-limit and printed no best path : the prefix was in the table and yet unreachable from there. A few lines of the BGP AS_PATH attribute decided that. AS_PATH is the list of networks a route has crossed. It stops loops, it is the first real tie-breaker after LOCAL_PREF, and it is the attribute most people touch with prepending. This part of the series goes below the show ip bgp line: how the list is encoded byte by byte, why 4-byte AS numbers needed a second attribute (AS4_PATH) and a fake AS number (23456), what changed for AS_SET in 2025, and what a GoBGP lab and 5.6 million real Internet paths show.

Weekly BGP Table Watch: Prefix and ASN Changes — 2026-11-30

The global BGP table keeps moving every day. This weekly BGP Table Watch snapshot tracks IPv4 prefixes, IPv6 prefixes, visible ASNs and the largest routing-table changes reported during the last week. The goal is not to alarm on every change. BGP is noisy by design. The goal is to build a simple operational habit: watch the size of the routing table, notice large origin-AS changes, and keep an eye on where new ASNs and route withdrawals appear. X Follow @ipexptobe

BGP ORIGIN Attribute: Lab Tests and Who Rewrites It

Image
At 00:27 UTC tonight the RouteViews collector in Oregon held fifteen paths to 105.32.0.0/12. Eight of them had the same AS_PATH length, seven hops, and six of those eight ended in Origin incomplete . The router threw those six away and picked a path through Lumen (AS3356) that ended in Origin IGP . Every copy that came straight from Cogent said INCOMPLETE; the copies that crossed Lumen or Vocus said IGP. One byte, changed by a network in the middle of the path, decided the route. The BGP ORIGIN attribute is that byte. It records how the route first entered BGP: IGP, EGP or INCOMPLETE, the i , e and ? at the end of every show ip bgp line. This is part 6 of our 26-part BGP Deep Dive and the first of the one-attribute-per-article parts. It covers the definition and the bytes, the history from EGP to RFC 4271, how each vendor sets the value, where ORIGIN sits in best-path selection, a GoBGP lab in which ORIGIN wins, loses and gets rewritten, broken ORIGIN values, and fresh RIPE RIS ...

The Four Categories of BGP Path Attributes

Image
At 04:06 UTC this morning we asked the RouteViews collector at the University of Oregon for the route to 1.1.1.0/24. The best path came through AS 57866, and under the usual Origin IGP, metric 0, localpref 100 line the router printed something less usual: unknown transitive attribute: flag 0xE0 type 0x20 length 0x3C . Type 0x20 is 32, the Large Community attribute standardised in 2017. This router does not implement it, yet it still accepted the route and kept the 60 unknown bytes. That works because of one byte that comes before every attribute. BGP path attributes are the data BGP uses to describe a route and to choose between routes, and their four categories decide what a router must do with an attribute it has never seen. This is part 5 of our 26-part BGP Deep Dive and the overview for the ten attribute articles that follow. It covers the four categories, the flags byte bit by bit, the type codes, the error rules of RFC 4271 and RFC 7606, a GoBGP lab in which we sent known, u...

BGP Neighbor States: How the Finite State Machine Works

Image
On the RouteViews collector at the University of Oregon, one BGP neighbor has been in the Active state for one year and 28 weeks, and another has sat in Active since early October with its log line reading Last reset 7w5d, due to Active open failed . Neither will ever send a route unless someone fixes the TCP connection under it. BGP neighbor states are usually the first thing an engineer checks, and they say a lot if you know what each one means. This is part 4 of our 26-part BGP Deep Dive . We go through the finite state machine (FSM) of RFC 4271 state by state, with its events, timers and error paths. Then we build a GoBGP 4.11 lab where five sessions fail in five different ways, and read the exact state changes, timers and NOTIFICATIONs from the logs.

BGP Message Types: OPEN, UPDATE, NOTIFICATION Byte by Byte

Image
A new peering session reaches OpenSent , drops back to Idle , and the log says only NOTIFICATION 2/2 . Another session has been fine for months and then dies at 03:00 with 4/0 . A third one never fails, but after every policy change someone types clear ip bgp * soft and hopes. All three cases come down to the five BGP message types : OPEN, UPDATE, KEEPALIVE, NOTIFICATION and ROUTE-REFRESH. This is part 3 of our 26-part BGP Deep Dive . Here we read each message byte by byte from real captures: a 2000 sample, Cisco IOS from 2008, an NTT shutdown message from 2016 and FRRouting from 2022. Then we build a GoBGP 4.11 lab with a hand-written Python BGP speaker and break the session on purpose to see exactly which NOTIFICATION comes back.

BGP Fundamentals: eBGP vs iBGP, Full Mesh and Synchronization

Image
A new iBGP session comes up, every router shows Established , and yet one edge router has no Internet routes at all. Nothing is broken: BGP is following one of its oldest rules. BGP fundamentals are full of rules like that. They explain why iBGP needs a full mesh, why eBGP sessions die when you peer between loopbacks, and why old configurations carry a no synchronization line. This is part 2 of our 26-part BGP Deep Dive . We go through the autonomous system and its number, path-vector routing, eBGP vs iBGP, TCP port 179, the three RIBs, the iBGP full mesh and the retired synchronization rule. Every rule is quoted from RFC 4271 or a vendor document, and checked on a real five-router GoBGP lab. We also captured the UPDATE bytes that the lab routers sent.

IS-IS, Segment Routing, SRv6 and SD-WAN: The Series

IS-IS is a locomotive that can pull any wagons you attach: IPv4, IPv6, MAC reachability for fabrics, and the attributes Segment Routing needs. This guide goes from IS-IS fundamentals through SR-MPLS, TI-LFA, SR-TE, Flex-Algo, SRv6 and SD-WAN, one detailed article at a time. Every part includes original diagrams, configuration examples, real output and a FAQ, and this page lists them all in reading order.

MPLS and EVPN in 26 Parts: From Labels to EVPN Fabrics

MPLS and EVPN carry most service-provider and data-center traffic today. This guide covers label forwarding, LDP, RSVP-TE, fast reroute, L3VPN, inter-AS options, pseudowires, VPLS, EVPN route types, multihoming, IRB, VXLAN fabrics and troubleshooting, one detailed article at a time. Every part includes original diagrams, configuration examples, real output and a FAQ, and this page lists them all in reading order.

BGP in 26 Parts: From EGP to EVPN

BGP is the protocol that holds the Internet together, and it is still the most important routing protocol a network engineer can master. This guide walks through BGP from its history to every path attribute, best-path selection, traffic engineering, route reflectors, confederations, filtering, monitoring, safe policy changes and MP-BGP/EVPN, one detailed article at a time, with real lab output. Every part includes original diagrams, configuration examples, real output and a FAQ, and this page lists them all in reading order.

MPLS Fundamentals: From Tag Switching to the Label Stack

Image
Ask engineers why MPLS exists and many will say "because label lookups are faster than IP lookups". That answer is about 25 years out of date, and it hides the things you actually need to understand to run an MPLS network: why the label sits where it sits, why the egress router advertises a label that never appears on the wire, why your customer's traceroute shows (or hides) your core, and why the label stack, not the label, is the real invention. These are the MPLS fundamentals , and this first part of our 26-part MPLS & EVPN Deep Dive covers them from the original RFCs, with real labeled frames captured in March 2000 that we decode byte by byte. We go from the ATM problem that started it (tag switching, 1996-1997) to the 32-bit label stack entry, the vocabulary (LSR, edge LSR/LER, FEC, LSP, FTN, ILM, NHLFE, LFIB), the three label operations, penultimate hop popping, explicit null and TTL handling, and end with why MPLS is still in every service provider backbon...

BGP History: From EGP and the Napkins to BGP-4 Today

Image
Every packet that crosses the Internet today follows a route chosen by a protocol that two engineers sketched on lunch napkins in January 1989. BGP history is not just trivia: almost every odd rule you meet when you configure BGP (the AS_PATH loop check, the attribute flags, the OPEN capabilities, the empty-policy behaviour) is the answer to a specific problem from the last 37 years. This first part of our 26-part BGP Deep Dive follows the protocol from the ARPANET's EGP, through the napkins and BGP-1 to BGP-4, to the incidents that changed how we run it. Every step is backed by the original RFCs, and we add real data: RIPE RIS history of two famous incidents, today's RouteViews table and a GoBGP lab whose OPEN message we decode byte by byte.

IS-IS History, Levels and NET Addresses

Image
Open the routing table of a large service-provider backbone and the interior routes very often carry an i L2 tag, not O . The IS-IS protocol was written for an OSI network stack that hardly anyone runs any more, its addresses look like 49.0001.0000.0000.0001.00 , and its standard is written in what Dave Katz called "arcane ISOspeak". [5] Yet it became the IGP that big ISPs choose, and every major routing extension of the last 20 years (traffic engineering, IPv6, multi-topology, Segment Routing, Flex-Algo, SRv6) was defined for it. This first part of our 26-part series explains where IS-IS came from, how its architecture works, and why providers love it, using a real packet capture decoded byte by byte.