BGP
The protocol networks use to tell each other which IP addresses they can reach. The network that announces a proxy's address is the one an IP lookup names.
Updated 19 September 2026 · 12 primary sources
BGP, the Border Gateway Protocol, is how the networks that make up the internet tell each other which addresses they can deliver traffic to. Each network is an autonomous system with its own AS number. It announces the blocks it serves, and its neighbours pass the news on with their own number added. The standard puts the job in one line: to "exchange network reachability information with other BGP systems".
For proxies, BGP decides what a site sees. The network that announces an address's block is the one an IP lookup reports as its ASN. It is also the network a site judges when it sorts an address into residential, mobile or hosting. An address is only as residential as the network that announces it.
How a block gets onto the internet
A network that holds a block announces it to the networks it connects to. Each of them passes the announcement on and adds its own AS number, so every route carries the list of networks it crossed: the AS path. The number at the far end of that list, the network that first announced the block, is its origin.
When a router hears several routes to the same block, its own policy decides first. Among routes it likes equally, it takes the one that crosses the fewest networks. Geography and congestion play no part. BGP itself runs over TCP, on port 179.
Where BGP came from
BGP was sketched over lunch. In 1989, at an IETF meeting, Kirk Lougheed of Cisco and Yakov Rekhter of IBM wrote the design on napkins, which is why it is known as the two-napkin protocol. Photocopies of the napkins survive in Cisco's archive. The napkins themselves ended up in a landfill. The design became RFC 1105 in June 1989, built on experience with the older Exterior Gateway Protocol.
Version 4 arrived in July 1994 and removed the address classes from routing. BGP-4 "eliminates the concept of network 'class' within BGP", which is what let blocks of any size, not only class A, B or C networks, be announced. The current standard, RFC 4271, dates from January 2006.
When routes go wrong
BGP was designed without security checks: any network can announce any block, and the protocol itself verifies nothing. On 24 February 2008 Pakistan Telecom announced 208.65.153.0/24, a slice of YouTube's 208.65.152.0/22, in order to block YouTube at home. An upstream provider passed the announcement on to the rest of the internet. Routers prefer the most specific route, so YouTube traffic from around the world went to Pakistan.
It lasted just over two hours. YouTube answered by announcing two even smaller /25 blocks, which beat the /24, and the upstream provider withdrew the Pakistani route at 21:01 UTC. The opposite failure is a network withdrawing its own routes. On 4 October 2021 a maintenance command cut Facebook's backbone. Its DNS sites then withdrew their BGP announcements, as designed for a broken link, and Facebook's name servers became unreachable "even though they were still operational".
RPKI: who may announce a block
The registries now let a holder sign a route origin authorisation (ROA). It is a signed statement, published in the registries' RPKI system, that a given AS number may originate routes for a block. Since 2013 a standard has defined how networks check routes against it: each route is valid, invalid or not found, and a network can be set to drop the invalid ones.
Coverage is growing but incomplete. On 19 September 2026, 59.0 percent of all delegated IPv4 addresses were covered by a ROA. The range ran from 45.3 percent of ARIN's space to 77.0 percent of the RIPE NCC's, the same figures the registries publish in their daily adoption report.
| Registry | IPv4 addresses delegated | Covered by a ROA |
|---|---|---|
| AFRINIC | 116,148,480 | 57.0% |
| APNIC | 889,247,040 | 66.0% |
| ARIN | 1,644,924,160 | 45.3% |
| LACNIC | 181,930,240 | 65.0% |
| RIPE NCC | 855,538,272 | 77.0% |
| All five | 3,687,788,192 | 59.0% |
BGP and proxies
On our free proxy list, 85.5 percent of the live proxies on 19 September 2026 sat in blocks whose ROA names the network announcing them. Another 13.3 percent sat in blocks with no ROA, and 1.3 percent in blocks whose ROA names other networks. RPKI settles who may announce an address, not what the address is used for.
For ISP proxies the announcing network is the whole point. An address sold as residential has to be announced by an internet provider's network, because that is the ASN an IP lookup reports. Some sellers write that a block can be announced from their own data centre and still show the provider's ASN. Routing data does not work that way: a lookup reports whichever network originates the route.
Public route collectors, such as the RIPE NCC's, show which network announces any block, so a buyer can check before paying.
How HProxy handles it
Our IP lookup shows the AS number and operator of the network announcing an address, and whether it is hosting space. Premium residential lines take an asn field that pins every exit to one announcing network, named by that same number.
Frequently asked questions
What does BGP stand for?
Border Gateway Protocol. A border gateway is a router at the edge of one network that talks to routers of other networks, and BGP is the protocol they use to tell each other which addresses they can reach.
Is BGP TCP or UDP?
TCP. Two BGP routers open a TCP connection on port 179 and exchange their routes over it, which spares BGP from handling lost or reordered messages itself.
How does BGP choose the best path?
By policy first: each network ranks routes by its own preferences. Among routes it likes equally, the one crossing the fewest networks wins, followed by further tie-breakers. Speed, distance and congestion are not measured.
What is the difference between BGP and an ASN?
An ASN, or autonomous system number, names a network. BGP is the protocol those networks use to announce the blocks they serve. Every BGP route lists the AS numbers it passed through. The last one, the network that first announced the block, is the one an IP lookup reports.
What is BGP hijacking?
Announcing a block that belongs to another network, by mistake or on purpose, so that traffic for it goes to the wrong place. A well-documented case is 24 February 2008, when a Pakistani announcement meant to block YouTube at home drew YouTube traffic from around the world for about two hours.
What is RPKI?
The registries' system of signed route origin authorisations, which say which network may originate routes for a block. Networks that check them can drop routes from anyone else. On 19 September 2026 about 59 percent of delegated IPv4 addresses were covered.
Does BGP matter for proxies?
Yes, because the network that announces a proxy's address decides how sites classify it. An ISP proxy is only residential if an internet provider's network announces its block, and a proxy stops working if the route to it is withdrawn.
Sources
- RFC 1105: A Border Gateway Protocol (BGP), IETF, 1989-06.
- RFC 1654: A Border Gateway Protocol 4 (BGP-4), IETF, 1994-07.
- RFC 4271: A Border Gateway Protocol 4 (BGP-4), IETF, 2006-01.
- RFC 6482: A Profile for Route Origin Authorizations (ROAs), IETF, 2012-02.
- RFC 6811: BGP Prefix Origin Validation, IETF, 2013-01.
- The Two-Napkin Protocol, Computer History Museum, 2026-09-19.
- YouTube Hijacking: A RIPE NCC RIS case study, RIPE NCC, 2008-03-17.
- More details about the October 4 outage, Meta Engineering, 2021-10-05.
- RPKI RIR adoption report, NRO, 2026-09-19.
- ROA exports of the five trust anchors, RIPE NCC, 2026-09-19.
- NRO combined delegation file (nro-delegated-stats), NRO, 2026-09-19.
- ROA coverage of 3,335 live proxy addresses and their announcing networks, HProxy measurement, 2026-09-19.
Back to the full glossary.