AS 0: the number that cannot be a network
Somewhere in a router's memory, a BGP path insists the route arrived through a network that does not exist. The network is AS 0 — reserved, unassignable, and, since August 2015, formally proscribed in five BGP attributes by RFC 7607. The document did not discover the anomaly. It gave operators a citation for it.
That distinction is worth more than it sounds. Every engineer who ever saw a zero in an AS_PATH already knew the path was wrong; what was missing was a clause to point at. RFC 7607, "Codification of AS 0 Processing," supplied the clause. A decade on, RPKI handed the empty number a second and sharper job: an AS0 ROA is the loudest thing a prefix holder can say about a prefix.
What RFC 7607 actually proscribes
RFC 7607 is a Proposed Standard that updates RFC 4271, and its scope is narrow on purpose: it proscribes the use of AS 0 in the BGP OPEN, AS_PATH, AS4_PATH, AGGREGATOR and AS4_AGGREGATOR attributes of the UPDATE message. AS 0 is reserved in the IANA autonomous system number registry, alongside 65535 and 4294967295, so no network may claim it as an origin or spend it as a transit hop. The RFC takes that reservation and applies it to the five places a BGP speaker can put an AS number into a message:
- OPEN — the My AS field, where a speaker declares who it is.
- AS_PATH — the list of autonomous systems a route has traversed, in the 2-byte encoding.
- AS4_PATH — the same list for 4-byte AS numbers, introduced by RFC 6793.
- AGGREGATOR — the AS and router ID of the speaker that formed an aggregate.
- AS4_AGGREGATOR — the 4-byte version of the same.
Read the list again and notice what it admits. Two of the five attributes exist only because the Internet outgrew 16-bit AS numbers. The 4-byte transition did not create the AS 0 problem, but it built it two more rooms to hide in, and the RFC's scope is a map of where the value was leaking.
Why a reserved number breaks a routing table
AS_PATH is not decoration. It is BGP's only inter-domain provenance record — the thing that lets a router say "this prefix reached me through these networks, in this order" — and it doubles as the loop detector, because a speaker that finds its own AS in the path discards the route.
AS 0 defeats both jobs at once. It can never be anyone's own AS, so it never trips loop detection; it simply sits in the path, a hole where a network should be. And because the hole is unfalsifiable — nobody owns zero, so nobody can confirm or deny having been there — the path stops being evidence. Two networks or twenty, the record looks the same: intact in form, empty in substance.
There is a mundane reason zero is the value that leaks. It is what a field contains before anyone assigns it. Default-initialised memory, a placeholder in a translation path, an attribute rewritten by a middlebox that did not know what to put back — all of them produce the same number, and the number means "no network." An AGGREGATOR value of 0 claims an aggregate was formed by a speaker with no AS, which is a polite way of not saying who summarised the route. An OPEN carrying AS 0 announces a speaker that has not declared who it is. None of these values means something wrong. They mean nothing, inserted where something was required.
AS0 ROAs: when the empty number becomes policy
Here the story turns. RFC 6483, which defines route origin validation, gives AS 0 a formal second life: "A ROA with a subject of AS 0 (AS0 ROA) is an attestation by the holder of a prefix that the prefix described in the ROA, and any more specific prefix, should not be used in a routing context."
Follow the mechanics and the elegance is obvious. A Route Origin Authorisation binds a prefix to an origin AS. A validator compares a route's origin against the covering ROA and returns Valid, Invalid or NotFound, as specified in RFC 6811. Set the ROA's origin to AS 0 and no real route can ever match, because no real route can originate from a network that does not exist. Every announcement of that prefix becomes Invalid — not unknown, not unproven, but known bad.
That is a genuinely useful instrument. It lets a holder mark space that should not be routed, park a prefix mid-migration, or convert a hijack from a NotFound shrug into an Invalid that route origin validation can act on. The number that cannot be a network becomes the only AS number whose entire meaning is "no one."
It is also an instruction, not an enforcement. An AS0 ROA bites only where networks validate and drop Invalid routes, which puts the weight of the mechanism on ROV deployment rather than on the elegance of the object. A signed statement nobody checks is a very tidy way of saying nothing.
What the document buys an operator
Three things, none glamorous, all useful.
A filter with a footnote. Reject routes whose AS_PATH contains 0 at the edge, log them, and cite the clause when someone asks why. The rule existed as folklore long before 2015; RFC 7607 made it auditable.
A canary for path rewriting. AS_PATH is a claim, not a proof. A zero in it is the cheapest available test of that claim: if a route arrives with a hole in it, you have learned something about the sender that no peering paperwork would have told you.
A precedent for the harder argument. Origin validation exists because a path is a claim. RPKI is the attempt to turn the first hop of that claim into a signature. AS 0 is the degenerate case that proves the point — the one AS number defined entirely by absence, and therefore the one value that can be checked without trusting anybody.
Codification: the IETF's least glamorous habit, and its most useful
RFC 7607 is a codification document, not an invention. It creates no mechanism, allocates no space, changes no state machine. It writes down what implementations had already converged on, so the next argument about a route with a zero in it ends in a citation rather than a thread. August 2015 was a good month for the habit: RFC 7606 revised BGP UPDATE error handling in the same window, tidying another corner of the protocol where behaviour had drifted.
It is the order of operations Lu Heng describes in his Note on running-code primacy: the running implementation is the source of validity, and the document arrives afterwards to record what already works. The protocol did not become correct in August 2015. It became citable. For an operator staring at a path with a hole in it at three in the morning, citable is the more valuable of the two.
Zero still cannot be a network. It can now be quoted, filtered, signed, and — in the RPKI, where it means "do not route this" — trusted to say nothing at all, very loudly.
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






