The short version

  • RFC 5065 lets one administration carve a large BGP domain into Member-ASes while external peers see a single Confederation Identifier.
  • The wall hides topology, not responsibility: every member must speak the extension, internal path and attribute rules still decide what wins, and sloppy design can duplicate routes, stall convergence or oscillate indefinitely.

One street address, many floors

Every network that grows past a certain size hits the same awkward moment. The routing domain that was easy to reason about at forty sessions becomes a small bureaucracy at four hundred. BGP offers two exits. Route reflection keeps one undivided AS and hands redistribution to a handful of reflectors. A confederation does something stranger and more interesting: it splits the AS itself.

RFC 5065 defines an AS Confederation as a collection of autonomous systems advertised to the outside as one AS number. That public number is the AS Confederation Identifier. Behind it, each subdivision carries a Member-AS Number visible only to its siblings.

The naming is not decoration. A member MUST use the Confederation Identifier in every transaction with a non-member, and its Member-AS Number with peers inside the group. As an update crosses from one Member-AS to the next, an AS_CONFED_SEQUENCE records the ordered internal traversal. When the route finally leaves, every confederation path segment is stripped and the Confederation Identifier is dropped into the ordinary AS path in its place.

So the external peer gets the building's street address and never sees the floor plan. What it also never sees is the argument over who gets the freight elevator. Those decisions still happen; they are simply made by the operator who now answers for all of them under one number.

Two bouncers, one door

Loop protection runs on both sides of the wall. A speaker that finds its own Confederation Identifier in the ordinary AS path treats the route exactly as it would a path containing its own AS number. Inside the confederation, a speaker does the same when AS_CONFED_SEQUENCE contains its own Member-AS Number.

The external boundary is strict. A speaker MUST NOT transmit AS_CONFED_SEQUENCE or AS_CONFED_SET to a non-member, and a confederation peer has to present the expected confederation sequence at the front of the path. Membership therefore lives in configuration, not in reachability: a router is not a member because it managed to bring up a session, and a path is not safe because the public Confederation Identifier looks familiar.

Every participating speaker must understand the confederation extensions. External speakers need not. That compatibility asymmetry is where the scaling benefit comes from, and it is also the deployment constraint: the abstraction only works if the internal estate agrees on what it means before the outside is allowed to stay ignorant.

RFC 9774 took away the unordered branch

RFC 5065 shipped with two path types: AS_CONFED_SEQUENCE, the ordered list of Member-ASes a route walked through, and AS_CONFED_SET, an unordered set that aggregation could produce. RFC 9774, published in 2025, retired the second. Unless an operator deliberately configures a transition exception, a BGP speaker MUST NOT advertise an AS_CONFED_SET and must apply treat-as-withdraw when one arrives in AS_PATH or AS4_PATH.

Read that carefully, because plenty of operational folklore reads it wrong. The update kills the unordered set. It does not kill confederations, and it does not touch AS_CONFED_SEQUENCE. The ordered sequence still carries internal traversal, while RFC 6793 separately forbids confederation segments in AS4_PATH. An implementation plan that reproduces every 2007 path type as though nothing had moved is not conservative — it is out of date.

Where the risk actually moves

Between neighbouring Member-ASes, RFC 5065 loosens the usual border discipline. NEXT_HOP and MED may pass through unchanged, and the ordinary ban on carrying LOCAL_PREF across an AS boundary is lifted. It also defines special comparison behaviour: confederation segments are skipped for certain MED comparisons, are not counted toward AS-path length, and routes learned elsewhere in the same confederation count as internal for the internal-versus-external decision.

That is the trade in one sentence. You get to preserve internal intent across internal borders, and in exchange topology and policy stop being reviewable as separate objects. RFC 5065 itself warns that improper configuration can duplicate routing information, waste memory and CPU, cause route flaps and delay convergence. It also points at the nastier failure: permanent route oscillation, when confederations or route reflectors hand different decision points different candidate sets and MED or another tie-breaker keeps flipping the answer.

Note what the standards do and do not claim. They describe a design hazard, not a prophecy about any named network. Whether a given confederation oscillates depends on its topology, its advertisements and its policy. The only durable control is to make those dependencies explicit while the single public AS number still lets you see them from the inside.

What the documents prove, and what they don't

RFC 5065 defines the identities, the path handling, the loop rules, the compatibility requirements and the documented deployment risks. RFC 9774 supplies the current prohibition on ordinary AS_CONFED_SET advertisement and the treat-as-withdraw handling. RFC 6793 fixes the AS4_PATH boundary, RFC 4456 defines route reflection as the distinct alternative, RFC 3345 analyses persistent oscillation conditions, and RFC 4271 remains the base specification underneath all of it.

None of these documents names a network size at which confederations become the right answer, reports current adoption, or quantifies savings for any particular operator. Claims about accountability, beneficiaries and ownership of operational risk are analysis derived from the standards, not quotations from them. And one thing deserves saying plainly: hiding Member-AS numbers from external peers is an abstraction, not a confidentiality guarantee and not cryptography. Your internal topology is unadvertised, not secret.

Sources