Summary
- BGP Roles let adjacent networks compare provider, customer, peer and route-server expectations before any route moves; a confirmed mismatch can stop the eBGP session from forming at all.
- OTC carries a propagation boundary with the route, but it cannot authenticate the commercial relationship, replace explicit import and export policy, or capture a relationship that shifts prefix by prefix.
A route leak is a wrong turn, not a wrong address
A route leak is the networking equivalent of a parcel that reaches the right house by way of three wrong cities. The destination is correct. The journey is not. RFC 7908 defines the failure precisely: propagation beyond intended scope. A route can name the right prefix and still slide from one provider to another, or from a peer toward a provider, in a direction the surrounding relationships never meant to allow. The damage lives in the chain of handoffs, not in the address.
For decades that chain rested on local belief. One operator labelled a neighbour a customer, a provider or a peer, built route maps around the label, and hoped the other side told the same story. The session itself never had to compare the two accounts. A typo, a missing filter, an automation slip—and a local mistake became someone else's accepted route.
The handshake that happens before the routes
RFC 9234 inserts a small, consequential exchange ahead of the traffic. The BGP OPEN message can carry a Role Capability. The permitted roles are Provider, Customer, Route Server, Route Server Client and Peer. When both sides advertise, the pair must make sense: Provider faces Customer, Route Server faces Route Server Client, Peer faces Peer. An incompatible pair is rejected with a Role Mismatch notification.
Read that for what it is—a protocol consistency check, not a commercial oracle. A router does not read a transit agreement, an invoice or a traffic commitment. Two operators can configure a matching but false role and the session will happily come up. They can also run a relationship that changes by prefix, service or geography; RFC 9234 calls such an arrangement complex and says Roles must not be configured on that session. Split it into separate normal relationships with separate sessions where you can; where you cannot, per-prefix policy still does the real work.
OTC: a leash that travels with the route
The second mechanism acts after the session is up. Only to Customer—OTC—is an optional transitive path attribute, type code 35, whose four-octet value carries an autonomous system number. Once a route has crossed toward a customer, a peer or a route-server client, OTC marks the path so it should continue only toward customers.
The rules are deliberately directional. A route carrying OTC that arrives from a customer or route-server client is a leak and becomes ineligible. A peer route is rejected when the OTC value conflicts with the peer's ASN in the way the RFC specifies. On export, a route already carrying OTC must not be sent to providers, peers or route servers. The attribute can therefore stop a local leak and expose one several hops later—a leash that keeps its tension long after the first boundary is gone.
What the protocol cannot know
Partial deployment still pays. When a route arrives from a provider, peer or route server without OTC, a compliant receiver can add it. The RFC frames this as an early-adopter benefit: protection does not require every earlier AS on the path to have implemented the mechanism. But the attribute is not cryptographically protected. An on-path AS can strip or alter it, and a wrong mark can suppress legitimate propagation just as easily as it blocks a real leak.
Backward compatibility forces another choice. If one neighbour advertises a Role and the other stays silent, the default is to keep using the locally configured role. An operator may demand strict mode and reject the unlabelled neighbour. RFC 9234 warns against making strict mode the default, because a routine software update could leave a session unable to establish. The safety gain is real; so is the reachability bill.
RFC 8212 is still the floor
None of this retires the basics. RFC 8212 remains the foundation: do not import or export on eBGP without explicit policy. BGP Roles and OTC do not make a permissive policy safe, do not validate the origin, and do not replace prefix and path controls. They add shared relationship evidence to a system that still runs on local authorization.
The IANA registry confirms the wire assignments—OTC is Path Attribute 35, Role Mismatch is OPEN Message Error subcode 11—but it does not tell you who has deployed them. So this article makes no claim about a named network, a vendor release or a prevented incident. The honest summary is structural: the protocol lets two neighbours put their assumptions on the table and lets a marked route carry its boundary downstream. The authority to say who is truly a customer still belongs to the operators and the agreements they signed—not to the label on the wire.
Sources
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.






