Skip to content
ipaddress.ee
Routing1 min read

What is BGP routing?

The protocol that ties networks together: prefixes, AS paths, how traffic finds its way, and why RPKI makes the internet safer.

By ipaddress.ee

BGP (Border Gateway Protocol) is how the networks of the internet tell each other which addresses they can deliver traffic to. Without it, a customer of one provider couldn’t reach a server in another provider’s network.

Prefixes and AS paths

Every autonomous system announces the address blocks (prefixes) it originates. Telia Eesti (AS3249), for example, announces 90.190.0.0/15. Neighbours pass the announcement on and add their own AS number to the AS path. A router elsewhere might see something like this (the transit networks here use documentation AS numbers, RFC 5398):

90.190.0.0/15    via   AS64500 AS64501 AS3249

That is: go via two transit networks to Telia Eesti (AS3249), the origin. The last AS in the path is always the origin.

How a path is chosen

A router chooses among possible paths by rules and policy: first the most specific route (a /24 beats a /16), then local preference (customers before peers before transit), shortest AS path and several tie-breakers. There is no central control; every network decides for itself.

When it goes wrong

BGP trusts what neighbours say by default, which leads to two well-known problems:

  • Route leaks: a network passes on routes it shouldn’t, and traffic takes a detour.
  • Route hijacks: someone announces a prefix that isn’t theirs, or a more specific prefix inside it, and draws the traffic.

RPKI: route origin validation

With RPKI, the holder of an address block can publish a signed ROA: “AS3249 may originate 90.190.0.0/15” (here with a maximum length of /15, so more-specific announcements would be invalid). Networks that validate drop routes that contradict it. How many routes from Estonian networks are covered by a valid ROA — about 92 % on 9 November 2026, with none invalid — is shown on Estonia in numbers.

Explore it yourself

What Is BGP? Routing Between Networks Explained · ipaddress.ee