Posts

BGP Inbound Traffic Engineering: Why Prepending Often Fails

Image
You add three prepends toward the backup ISP, wait for the graphs, and the backup link is still full. You add three more. Nothing changes. Prepending is not broken; it is simply the weakest signal in the decision of a router you do not control. BGP inbound traffic engineering is the art of influencing how other networks send traffic to your prefixes, and unlike outbound traffic (part 17), it is never fully your decision: every remote router picks its own best path with its own LOCAL_PREF first. This part goes through the four tools you actually have (AS_PATH prepending, MED, selective more-specific announcements and provider TE communities), tests each one in a six-router GoBGP lab with two ISPs that apply real customer/peer policy, and then checks the claims on the real Internet: a full RIPE RIS table dump with 5.6 million routes and RIPEstat's global looking glass.

BGP Outbound Traffic Engineering: Where Your Traffic Leaves

Image
You buy a second transit link, configure two eBGP sessions, and a week later the graphs show most of the traffic on the old ISP and the new one almost idle. Nothing is broken. BGP picked one path per prefix, and for most prefixes the decision came down to which session came up first. BGP outbound traffic engineering is the part of routing policy that decides where your traffic leaves your network, and it is the one part of Internet routing that is 100% your decision: you control it with import policy on your own routers, mainly LOCAL_PREF, weight and the choice of which routes you accept at all. This part of the series turns that into designs you can deploy: primary/backup, load sharing by destination, cost- and latency-based exits, default versus partial versus full tables. We test five import policies on a real GoBGP router with two upstreams, and we check the assumptions against a real 1.07-million-prefix table from RIPE RIS.

BGP Best Path Selection: Every Tie-Breaker in Order

Image
Fifteen routers hand the RouteViews route server a path to 8.8.8.0/24, ten of them equally short, and the router picks path number 12, via AS 101. Not the path from the lowest router ID, not the first one in the list, and nothing in the output says why. BGP best path selection is the ordered list of tie-breakers that a BGP speaker walks through until only one path is left: weight, LOCAL_PREF, locally originated, AS_PATH length, ORIGIN, MED, eBGP over iBGP, IGP cost, the age of the path, router ID and finally the neighbor address. Every network engineer has seen that list. What it hides is where the vendors differ, which steps the RFC actually defines, and the late tie-breakers that decide most real Internet routes. In this part we take the algorithm apart step by step, compare RFC 4271 with Cisco IOS, IOS XR, Junos, FRR and GoBGP, prove each step in a GoBGP lab with hand-built UPDATEs, read real IOS XR outputs, and replay the decision on 63 real paths from a public route server.

BGP CLUSTER_LIST: How Route Reflector Clusters Avoid Loops

Image
Two route reflectors, two clients, and one prefix that disappears after a pair of BGP sessions go down, even though every router still has a working path to its neighbours. Or the opposite: two route reflectors that keep a prefix alive for minutes after its only originator has withdrawn it. Both stories come down to one attribute, the BGP CLUSTER_LIST , and to the cluster IDs written into it. CLUSTER_LIST is to route reflection what AS_PATH is to eBGP: every route reflector prepends its cluster ID, every route reflector refuses a route that already carries one of its own IDs, and a shorter list wins a late tie-break in best-path selection. This article takes the attribute apart byte by byte, follows it through a real Cisco IOS XR route reflector whose cluster ID is changed on the fly, and tests every rule in a four-phase GoBGP lab with a two-level reflector hierarchy, redundant reflectors with the same and with different cluster IDs, malformed attributes and a ghost route.

BGP ORIGINATOR_ID: How Route Reflectors Stop Loops

Image
Give two route reflector clients the same router ID and nothing breaks loudly. The BGP sessions stay up, no NOTIFICATION is sent, the logs stay quiet, and yet each client never learns the other's prefixes. The reason is a 7-byte attribute that most engineers only notice as one line in show bgp : the BGP ORIGINATOR_ID . A route reflector writes it to say "this route was originated inside our AS by router X", and every router that receives a route carrying its own router ID in that field throws the route away. This part takes the attribute apart byte by byte, follows it through a real Cisco IOS XR route reflector that sends a client its own route back, and tests every rule in a GoBGP lab: who sets it, who must never overwrite it, what happens at the AS boundary, how it replaces the router ID in best-path selection, and how malformed copies are handled.

Monthly BGP Table Watch: Prefix and ASN Trends — 30 days to 2026-12-03

This monthly BGP Table Watch report summarizes how the public routing table changed over roughly the last 30 days, using the latest public Potaroo/CIDR Report samples available on 2026-12-03. The goal is to provide a slower, more useful view than the daily snapshots: month-over-month prefix growth, IPv6 movement, visible ASN changes, and the route-churn areas worth watching. X Follow @ipexptobe

Post-Quantum Cryptography: Is IPsec Safe? GRE, SD-WAN and Telecom Migration

On 2 December 2026 Amazon, Anthropic, Apple, Cloudflare, Google, Microsoft, OpenAI and Oracle published a rare joint statement : they "strongly support" the U.S. government's guidance to move to the NIST post-quantum cryptography (PQC) standards and "accelerate the migration as soon as possible". It came hours after the NSA warned that AI companies had disclosed "recent discoveries that impact the security" of some encryption systems, while the NSA, CISA and the Office of the National Cyber Director said in a second statement that recent AI advances "do not present an immediate and widespread threat" ( AP , The Verge ). Cloudflare moved its own PQC deadline from 2029 to 2027. Nothing has been broken today. But the timeline just got shorter, and network engineers should ask very concrete questions: what exactly is at risk, is IPsec still safe, what happens to GRE-over-IPsec and SD-WAN overlays, and what does a migration of a telecom network ...

Is Your Fridge in a Botnet? Home Network Security in the Age of AI Bots

Image
Your washing machine, your TV box and the camera above the front door are small computers connected to the internet. Most of them were set up once and never looked at again. At the same time, attacks no longer need a patient human: automated, increasingly AI-assisted bots scan every public address on the internet around the clock and try every door they find. This article explains what they look for, what can go wrong at home, and ten simple steps that close most of the doors – plus what a home network audit can and cannot find for you.

BGP MED: always-compare-med and deterministic-med

Image
Send the same three BGP paths to a router six times, changing nothing but the order in which they arrive, and you would expect the same best path every time. In our lab it picked three different winners, and in two of the runs it chose a path with BGP MED 100 while a path with MED 20 from the same neighbouring AS sat right next to it in the table. That is not a bug in the usual sense. It is how MULTI_EXIT_DISC is defined: a metric that may only be compared between some pairs of paths, so "better than" is not transitive and the result depends on how the router walks its list. This part covers the attribute byte by byte, where it sits in best-path selection, what always-compare-med , deterministic-med and missing-as-worst really change, the oscillation it can cause with route reflectors, and how often the real Internet table carries it.

BGP Communities: Wire Formats and Well-Known Values

Image
Log in to the public route server at RouteViews and ask it for every route tagged NO_EXPORT: show ip bgp community no-export returns nothing. Ask for 65535:666 , the BLACKHOLE community, and you get two aggregates, a /23 and a /22. Ask for 65535:0 , GRACEFUL_SHUTDOWN, and you get 241 prefixes from 104 origin ASes. All three are BGP communities : tags of 4 bytes that routers copy from AS to AS without having to understand them. Some of them have a fixed meaning that every router obeys. Most of them mean only what a network's policy says they mean, and many of them travel much further than their owner intended. This part covers standard communities (RFC 1997), their 8-byte extended and 12-byte large successors, the well-known values, and how operators build a policy language out of them. A GoBGP lab shows what a router really does with each one, and a full RIPE RIS table shows how 7 million real routes use them.

BGP AGGREGATOR Attribute: AS4_AGGREGATOR and AS_TRANS

Image
Look up 100.128.0.0/9 on a public route server and all fifteen paths end in the same AS_PATH tail, 6461 21928 , followed by (aggregated by 65137 10.169.14.171) . AS 65137 is a private AS number, and it appears nowhere in the AS_PATH. That line comes from the BGP AGGREGATOR attribute (type code 7). It is optional and has no effect on routing, but it names the AS and the router that built the summary. Here it also exposes an internal AS that the AS_PATH no longer shows. This part covers the attribute from its RFC definition to the byte level, then its 4-byte twin AS4_AGGREGATOR and AS_TRANS 23456 in real IOS XR captures. Fourteen crafted UPDATEs show how GoBGP handles it, a full RIPE RIS table shows how 533,312 real routes use it, and the Partial bit shows what happens to optional transitive attributes that a router does not understand.

BGP Atomic Aggregate: What It Signals After Summarisation

Image
Run show ip bgp 1.1.1.0/24 on a public route server and every one of the paths ends with the same two words: atomic-aggregate . Most engineers have seen the flag for years without knowing what it promises. The BGP atomic aggregate attribute (ATOMIC_AGGREGATE, type code 6) is the smallest attribute in BGP: three bytes and no value at all. It tells everybody downstream that the route is an aggregate and that some AS numbers of the routes behind it were thrown away. That is a warning about the AS_PATH and a rule for the receiver: do not break the route up into more-specific prefixes. This part follows the attribute from the RFC text to real IOS XR packet captures, a GoBGP lab that sends it broken on purpose, and a full Internet table where 6.4 % of IPv4 prefixes carry it.

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.