Skip to content
ipaddress.tr
Routing2 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.tr

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. Türk Telekom (AS9121), for example, announces 78.160.0.0/17. 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):

78.160.0.0/17    via   AS64500 AS64501 AS9121

That is: go via two transit networks to Türk Telekom (AS9121), 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: “AS9121 may originate prefixes of 78.160.0.0/11 up to /24”. Networks that validate drop routes that contradict it. How many routes from Turkish networks are covered by a valid ROA — about 98 % on 7 November 2026 — is shown on Türkiye in numbers. Not every network has signed yet: Middle East Technical University’s 144.122.0.0/16 had no ROA on that day.

Explore it yourself

  • Routing2 min read

    What is an ISP (internet service provider)?

    What your provider actually does, where it gets IP addresses, why a lookup may show another name than the brand you pay, and what it can see.

  • Internet in Türkiye2 min read

    Internet providers in Türkiye, from our own data

    Türk Telekom, Turkcell Superonline, Turkcell, Vodafone, Türksat, TurkNet and others: how much address space each network announces, and where IPv6 and RPKI stand.