BGP ORIGINATOR_ID: How Route Reflectors Stop Loops
Give two route reflector clients the same router ID and nothing breaks loudly. The BGP sessions stay up, no NOTIFICATION is sent, the logs stay quiet, and yet each client never learns the other's prefixes. The reason is a 7-byte attribute that most engineers only notice as one line in show bgp: the BGP ORIGINATOR_ID. A route reflector writes it to say "this route was originated inside our AS by router X", and every router that receives a route carrying its own router ID in that field throws the route away. This part takes the attribute apart byte by byte, follows it through a real Cisco IOS XR route reflector that sends a client its own route back, and tests every rule in a GoBGP lab: who sets it, who must never overwrite it, what happens at the AS boundary, how it replaces the router ID in best-path selection, and how malformed copies are handled.
- What it is: path attribute type 9, flags
0x80(optional non-transitive), length 4, value = the BGP Identifier of the router that put the route into the AS.[1] - Who writes it: the first route reflector that reflects the route, only if the attribute is absent. It is never overwritten later, and it never leaves the AS.[1][5]
- Loop rule: a router that finds its own router ID in ORIGINATOR_ID ignores the route. Real IOS XR did exactly that, silently, when its route reflector sent it its own prefix.[1][13]
- Best path: for reflected routes the ORIGINATOR_ID replaces the advertising peer's router ID in the tie-break (Cisco, Junos, FRR). GoBGP 4.11 ignores it, which our lab shows in 5 of 5 tests.[1][8][9][11][16]
- Main failure mode: duplicate router IDs. Clients sharing an ID lose each other's routes with no error anywhere.[14][16]
Why route reflection needs an ORIGINATOR_ID
iBGP has no AS_PATH protection inside an AS: a route keeps the same AS_PATH while it moves between iBGP speakers, so a loop between them could not be detected from the path. BGP avoids the problem with a simple rule that part 2 covered: a route learned from an iBGP peer is not advertised to another iBGP peer. That rule is why plain iBGP needs a full mesh, n(n-1)/2 sessions for n routers.[4]
A route reflector (RR) is the controlled exception. RFC 4456 lets it pass a route from one iBGP peer to another: a route from a client goes to all non-clients and to all clients, and a route from a non-client goes to the clients only.[1] Once iBGP routes can be repeated by a third router, the old guarantee is gone, so RFC 4456 section 8 adds two attributes "to detect and avoid routing information loops": ORIGINATOR_ID and CLUSTER_LIST.[1] The definition of the first one is short enough to quote in full:
ORIGINATOR_ID is a new optional, non-transitive BGP attribute of Type code 9. This attribute is 4 bytes long and it will be created by an RR in reflecting a route. This attribute will carry the BGP Identifier of the originator of the route in the local AS. A BGP speaker SHOULD NOT create an ORIGINATOR_ID attribute if one already exists. A router that recognizes the ORIGINATOR_ID attribute SHOULD ignore a route received with its BGP Identifier as the ORIGINATOR_ID.[1]
Three rules hide in those five sentences: create it when reflecting, never overwrite it, and drop a route that names you. A fourth rule lives in section 9 and changes the best-path algorithm. The rest of this article tests each one.
Three RFCs, one subtle change
The attribute has kept type code 9 and its 4-byte format since the first route reflection RFC, but the loop rule moved from the sender to the receiver:
| RFC | Date and status | What it says about the loop |
|---|---|---|
| RFC 1966 | June 1996, Experimental | "A route reflector must never send routing information back to the router specified in ORIGINATOR_ID." Client routes were reflected to "the Client peers other than the originator".[3] |
| RFC 2796 | April 2000 | "A router which recognizes the ORIGINATOR_ID attribute should ignore a route received with its ROUTER_ID as the ORIGINATOR_ID."[2] |
| RFC 4456 | April 2006, Standards Track, obsoletes both | Same receiver rule with SHOULD and "BGP Identifier". Client routes are reflected to "the Client peers" without the "other than the originator" exception, and the references to eBGP routes were removed.[1] |
That history explains why implementations still differ. Some keep a sender-side filter in the spirit of RFC 1966, others rely on the receiver check of RFC 4456, and some do both. We will see all three behaviours below.
BGP ORIGINATOR_ID on the wire
The attribute is always 7 bytes: flags 0x80 (Optional = 1, Transitive = 0, Partial = 0, Extended Length = 0), type 09, length 04 and four bytes of BGP Identifier in network byte order. It has exactly the same flags as MED; the type code is the only difference.[1][4]
The kazulog.info route reflector lab runs five Cisco XRd 26.1.1 routers with R2 as the RR and R1 and R3 as its clients, and publishes a packet capture for every step.[13] We decoded the R1-R2 captures ourselves. In STEP 1, packet No.22 carries the 75-byte UPDATE in which R2 reflects R3's 192.168.3.0/24 to R1. The two route reflector attributes are at the end:
[0x90 14 MP_REACH_NLRI len 13] AFI 1 SAFI 1 NH 10.0.0.3 NLRI ['192.168.3.0/24'] [0x40 1 ORIGIN len 1] IGP [0x40 2 AS_PATH len 0] (empty) [0x80 4 MED len 4] 0 [0x40 5 LOCAL_PREF len 4] 100 [0x80 10 CLUSTER_LIST len 4] 0a000002 raw 80 0a 04 0a 00 00 02 [0x80 9 ORIGINATOR_ID len 4] 10.0.0.3 raw 80 09 04 0a 00 00 03
Three details are worth noticing. The next hop is still R3's 10.0.0.3, because a route reflector SHOULD NOT change NEXT_HOP, AS_PATH, LOCAL_PREF or MED (part 8 showed what that means for reachability).[1] ORIGINATOR_ID is R3's router ID, not R2's. And IOS XR writes type 10 before type 9. RFC 4271 says a sender SHOULD order attributes by ascending type and a receiver MUST accept any order, so this is legal, just unusual; GoBGP sends 9 then 10.[4][16] If you write a parser, do not assume the order.
On the receiving side IOS XR prints the attribute on the last line of the path. Note the difference between the peer that sent the route (from 10.0.0.2) and the router ID in brackets, which already shows the originator:[13]
RP/0/RP0/CPU0:R1#show bgp 192.168.3.0/24 (STEP 1)
BGP routing table entry for 192.168.3.0/24
Paths: (1 available, best #1)
Not advertised to any peer
Path #1: Received by speaker 0
Not advertised to any peer
Local, (received & used)
10.0.0.3 (metric 3) from 10.0.0.2 (10.0.0.3)
Origin IGP, metric 0, localpref 100, valid, internal, best, group-best
Received Path ID 0, Local Path ID 1, version 6
Originator: 10.0.0.3, Cluster list: 10.0.0.2
The four rules in practice
Rule 1: the route reflector creates it, once
The value is the BGP Identifier of the iBGP peer the RR learned the route from, which is the router that injected the route into the AS. FRR does exactly this in its outbound attribute code: when a route goes from iBGP to iBGP and has no ORIGINATOR_ID yet, it sets it to from->remote_id, "before route-map so it can be overridden".[11] GoBGP 4.11 uses the source peer's BGP ID, or its own router ID for a local route.[12] Juniper's documentation says the attribute "is attached only when the route is first reflected".[10]
Rule 2: nobody overwrites it
In a route reflector hierarchy a lower-level RR is a client of a higher-level RR. The upper RR must keep the original ORIGINATOR_ID and only extend CLUSTER_LIST. RFC 4456 section 10 also warns that none of these attributes should be modifiable by configuration on sessions between RRs, clients and non-clients, because a changed value could create a loop.[1]
Rule 3: drop a route that names you
Every BGP speaker that understands the attribute checks it on receipt. The receiver does not need to be a route reflector or even know that one exists: a client compares the value with its own router ID and ignores the route on a match.[1]
Rule 4: replace the router ID in the tie-break
Covered in its own section below, because this is where implementations disagree.
And at the AS boundary: gone
The attribute is non-transitive and describes the inside of one AS, so it is not sent on eBGP sessions. RFC 7606 makes the receive side explicit: "if the ORIGINATOR_ID attribute is received from an external neighbor, it SHALL be discarded using the approach of 'attribute discard'", and if received from an internal neighbour with a length other than 4, the UPDATE is handled as treat-as-withdraw.[5]
Real IOS XR: the route reflector sends a client its own route
RFC 4456 tells an RR to reflect a client's route "to the Client peers", without excluding the client that sent it. Whether the originator actually receives its own route back is an implementation choice, and on IOS XR it depends on update groups: the RR builds one UPDATE per group of peers with the same outbound policy, and sends it to every member.[1][13] The kazulog lab shows both cases.[13]
In STEPs 1 and 2 each client has its own policy names on R2, so each sits in its own update group and R2 advertises four prefixes to R1. In STEP 3 the same policy names are applied to both clients. Nothing else changes and no session is reset, but R2 now advertises five prefixes to R1, and the fifth is R1's own:[13]
RP/0/RP0/CPU0:R2#show bgp neighbors 10.0.0.1 advertised-routes (STEP 3) Network Next Hop From AS Path 192.168.1.0/24 10.0.0.2 10.0.0.1 i 192.168.2.0/24 10.0.0.2 Local i 192.168.3.0/24 10.0.0.3 10.0.0.3 i 192.168.4.0/24 10.3.4.4 10.0.0.3 65002i 192.168.5.0/24 10.3.4.4 10.0.0.3 65002 65003i Processed 5 prefixes, 5 paths
In the capture, packet No.7 of STEP 3 carries the copy: a 75-byte UPDATE with next hop 10.0.0.1, CLUSTER_LIST 10.100.100.1 (the cluster ID set in STEP 2) and ORIGINATOR_ID bytes 80 09 04 0a 00 00 01, i.e. R1's own router ID.[13] R1 ignores it:
RP/0/RP0/CPU0:R1#show bgp 192.168.1.0/24 (STEP 3)
Paths: (1 available, best #1)
Advertised IPv4 Unicast paths to peers (in unique update groups):
10.0.0.2
Path #1: Received by speaker 0
Local
0.0.0.0 from 0.0.0.0 (10.0.0.1)
Origin IGP, metric 0, localpref 100, weight 32768, valid, local, best, group-best
Three things in R1's STEP 3 output are worth knowing for troubleshooting. First, the neighbour counters stay at 4 accepted prefixes and Denied prefixes: 0: a route rejected by the ORIGINATOR_ID check is neither accepted nor counted as denied by policy. Second, R1 runs soft-reconfiguration inbound (Inbound soft reconfiguration allowed (override route-refresh)), and still show bgp neighbors 10.0.0.2 received routes lists only the four other prefixes. The check happens before the copy is stored as received. Third, there is no syslog message.[13] When the update groups split again in STEP 4, R2 sends R1 a 27-byte UPDATE that withdraws 192.168.1.0/24, a route R1 never accepted in the first place.[13]
Other implementations handle the same situation differently. FRR documents that members of one peer group receive routes "sent back to that originating peer with the originator identifier attribute set", but when it builds an update for one specific peer its announce check also skips that peer if its router ID equals the route's ORIGINATOR_ID ("originator-id is same as remote router-id"), and on receipt it counts a dropped copy in a dedicated Originator loop counter with the reason "originator is us;".[11] Ivan Pepelnjak's IOS lab shows the same effect with two route reflectors: PE1 sits in one update group with PE2, receives a reflected copy of its own update and ignores it "because it’s router ID matches the originator attribute".[15] GoBGP filters on the sender side, as the next section shows.
GoBGP lab: every rule tested
IOS XR shows the normal case. To test the edge cases we built a route reflector lab out of real GoBGP 4.11 daemons on loopback addresses and our own raw Python BGP speakers. The raw speakers send hand-built UPDATEs and record every byte the route reflector sends back, which lets us inject values no normal router would produce.[16]
The route reflector configuration is the documented GoBGP one: a route-reflector block on every client neighbour.[12][16]
[global.config]
as = 65001
router-id = "10.0.0.141"
[[neighbors]]
[neighbors.config]
neighbor-address = "127.0.2.143"
peer-as = 65001
[neighbors.route-reflector.config]
route-reflector-client = true
route-reflector-cluster-id = "10.0.0.141"
T1 and T2: create on reflection, strip at the edge
c1 originates 198.51.100.0/24. Here is what the three raw observers receive from rr, with timestamps removed:[16]
I rx type=2 len=62 ORIGIN=2 | AS_PATH= | NH=127.0.2.142 | LP=100 | ORIGINATOR_ID=10.0.0.142 {8009040a00008e} | CLUSTER_LIST=[10.0.0.141] {800a040a00008d} | NLRI 198.51.100.0/24
N rx type=2 len=62 ORIGIN=2 | AS_PATH= | NH=127.0.2.142 | LP=100 | ORIGINATOR_ID=10.0.0.142 {8009040a00008e} | CLUSTER_LIST=[10.0.0.141] {800a040a00008d} | NLRI 198.51.100.0/24
E rx type=2 len=47 ORIGIN=2 | AS_PATH=65001 | NH=127.0.2.141 | NLRI 198.51.100.0/24
Client I and non-client N get the route with ORIGINATOR_ID 10.0.0.142 (c1) and CLUSTER_LIST 10.0.0.141: 62 bytes in total, 14 of them for the two route reflector attributes. The eBGP peer E gets a 47-byte UPDATE with rr's AS prepended, next hop rewritten to rr, and neither attribute.[16] c1 itself does not receive its route back: its adj-in from rr contains only 192.0.2.0/24. A route from non-client N (T2) reaches the clients with ORIGINATOR_ID 10.0.0.145, as RFC 4456 requires.[1][16]
T3: an existing ORIGINATOR_ID is kept
Client I plays a lower-level route reflector and sends 100.64.1.0/24 that already carries ORIGINATOR_ID 10.9.9.9 and CLUSTER_LIST 10.1.1.1:
I tx type=2 len=62 ORIGIN=0 | AS_PATH= | NH=127.0.2.144 | LP=100 | ORIGINATOR_ID=10.9.9.9 {8009040a090909} | CLUSTER_LIST=[10.1.1.1] {800a040a010101} | NLRI 100.64.1.0/24 T3
N rx type=2 len=66 ORIGIN=0 | AS_PATH= | NH=127.0.2.144 | LP=100 | ORIGINATOR_ID=10.9.9.9 {8009040a090909} | CLUSTER_LIST=[10.0.0.141,10.1.1.1] {800a080a00008d0a010101} | NLRI 100.64.1.0/24
rr kept 10.9.9.9 and prepended its own cluster ID, so the list grew to [10.0.0.141, 10.1.1.1] and the attribute length from 4 to 8 bytes (80 0a 08 ...). That is rule 2 working.[1][16]
T4 and T5: the loop check
Next, I sends 100.64.2.0/24 with ORIGINATOR_ID 10.0.0.143, which is c2's router ID. rr installs it (it is not rr's ID) and reflects it to c2. c2 refuses to use it:[16]
c2# gobgp global rib 100.64.2.0/24 -a ipv4
Network not in table
c2# gobgp neighbor 127.0.2.141 adj-in -a ipv4
ID Network Next Hop AS_PATH Age Attrs
0 100.64.1.0/24 127.0.2.144 00:00:04 [{Origin: i} {LocalPref: 100} {Originator: 10.9.9.9} {ClusterList: [10.0.0.141 10.1.1.1]}]
0 100.64.2.0/24 127.0.2.144 00:00:02 [{Origin: i} {LocalPref: 100} {Originator: 10.0.0.143} {ClusterList: [10.0.0.141 10.1.1.1]}]
0 192.0.2.0/24 127.0.2.141 00:00:10 [{Origin: ?} {LocalPref: 100} {Originator: 10.0.0.141} {ClusterList: [10.0.0.141]}]
0 198.51.100.0/24 127.0.2.142 00:00:08 [{Origin: ?} {LocalPref: 100} {Originator: 10.0.0.142} {ClusterList: [10.0.0.141]}]
0 203.0.113.0/24 127.0.2.145 00:00:06 [{Origin: i} {LocalPref: 100} {Originator: 10.0.0.145} {ClusterList: [10.0.0.141]}]
Unlike IOS XR, GoBGP keeps the rejected copy in the Adj-RIB-In and its neighbour statistics show it: Received: 5, Accepted: 4. GoBGP logs the decision ("Originator ID is mine, ignore") only at debug level, so at the default info level nothing appears.[12][16] In T5 the injected ORIGINATOR_ID is rr's own router ID, 10.0.0.141. rr drops the route at once (Network not in table, I's counters move to Received 3, Accepted 2) and nobody else receives it. The check works the same on a route reflector as on a client.[16]
T0: GoBGP marks even its own routes
One difference from IOS XR appeared before any test traffic. When rr originated its own 192.0.2.0/24, its clients received it with ORIGINATOR_ID 10.0.0.141 and CLUSTER_LIST 10.0.0.141, while non-client N received it without either attribute:[16]
I rx type=2 len=62 ORIGIN=2 | AS_PATH= | NH=127.0.2.141 | LP=100 | ORIGINATOR_ID=10.0.0.141 {8009040a00008d} | CLUSTER_LIST=[10.0.0.141] {800a040a00008d} | NLRI 192.0.2.0/24
N rx type=2 len=48 ORIGIN=2 | AS_PATH= | NH=127.0.2.141 | LP=100 | NLRI 192.0.2.0/24
E rx type=2 len=47 ORIGIN=2 | AS_PATH=65001 | NH=127.0.2.141 | NLRI 192.0.2.0/24
In the IOS XR captures R2's own 192.168.2.0/24 is a 61-byte UPDATE with no type 9 or 10 at all.[13] A locally originated route is not reflected, so RFC 4456 does not ask for the attributes; GoBGP 4.11 treats every route it sends to a client as reflected (reflected := ... info.RouteReflectorClient || fromClient in path.go).[12] The effect is harmless here, but it matters for the eBGP case below.
Malformed ORIGINATOR_ID
For each case client I first sent a valid route, then the same prefix with a broken attribute. GoBGP's log for the six UPDATEs:[16]
msg="the received Update message was treated as withdraw" Error="originator id length isn't correct" msg="the received Update message was treated as withdraw" Error="originator id length isn't correct" msg="the received Update message was treated as withdraw" Error="flags are invalid. attribute type: BGP_ATTR_TYPE_ORIGINATOR_ID, expect: OPTIONAL, actual: TRANSITIVE|OPTIONAL" msg="the received Update message was treated as withdraw" Error="flags are invalid. attribute type: BGP_ATTR_TYPE_ORIGINATOR_ID, expect: OPTIONAL, actual: TRANSITIVE" msg="the received Update message was treated as withdraw" Error="originator id length isn't correct" msg="Some attributes were discarded" Error="the path attribute appears twice. Type : 9"
| Case | RFC 7606 | GoBGP 4.11 result |
|---|---|---|
| Length 3, 8 or 0 | treat-as-withdraw (s.7.9) | route withdrawn and a WITHDRAW sent to the other peers |
| Flags 0xC0 or 0x40 (Transitive set) | treat-as-withdraw (s.3 c) | route withdrawn |
| Two ORIGINATOR_ID attributes | keep the first, discard the rest (s.3 g) | first value 10.9.9.9 kept, second (c2's ID) dropped |
| Value 0.0.0.0 | no rule | accepted and reflected unchanged |
The session never reset (Flops = 0) and the neighbour counter shows Discarded: 5, one per treat-as-withdraw.[5][16] The duplicate case is a nice detail: had GoBGP kept the second copy, c2 would have dropped the route.
How ORIGINATOR_ID changes best-path selection
RFC 4271 ends the decision process with two tie-breakers: prefer the route from the peer with the lowest BGP Identifier (step f), then the lowest peer address (step g).[4] RFC 4456 section 9 modifies step f: "If a route carries the ORIGINATOR_ID attribute, then in Step f) the ORIGINATOR_ID SHOULD be treated as the BGP Identifier of the BGP speaker that has advertised the route." It also inserts a new step between f and g: prefer the shorter CLUSTER_LIST, where a route without the attribute has length 0.[1]
The reason becomes clear from a client's point of view. Every reflected path arrives from a route reflector, so without the change the "advertising speaker" would be the RR for all of them and the tie-break would pick paths by the router ID of the reflector rather than of the router that owns the exit. With the substitution, the client breaks ties on the originators, much as it would in a full mesh. The vendors document the same order:
- Cisco: "If a path contains route reflector (RR) attributes, the originator ID is substituted for the router ID in the path selection process", then the minimum cluster list length, then the lowest neighbour address.[8]
- Junos: step 12 "For any path with an originator ID attribute, substitute the originator ID for the router ID during router ID comparison", step 13 shortest cluster list.[9]
- FRR: step 15 compares
originator_idwhen present, otherwise the peer'sremote_id; step 16 compares the cluster list length.[11]
We tested it. Raw clients I and J sent the same prefix to rr with every attribute equal except ORIGINATOR_ID, CLUSTER_LIST and their own BGP Identifiers. To keep the three possible tie-breakers apart, the BGP IDs are inverted against the addresses: I has the lower address (127.0.2.144) but the higher BGP ID (10.0.0.200), J the opposite (127.0.2.147, 10.0.0.100).[16]
rr# gobgp global rib 100.64.11.0/24 -a ipv4
Network Next Hop AS_PATH Age Attrs
*> 100.64.11.0/24 127.0.2.147 00:00:07 [{Origin: i} {LocalPref: 100} {Originator: 10.0.0.250} {ClusterList: [10.2.2.2]}]
* 100.64.11.0/24 127.0.2.144 00:00:08 [{Origin: i} {LocalPref: 100} {Originator: 10.0.0.50} {ClusterList: [10.1.1.1]}]
rr# gobgp global rib 100.64.13.0/24 -a ipv4
Network Next Hop AS_PATH Age Attrs
*> 100.64.13.0/24 127.0.2.147 00:00:03 [{Origin: i} {LocalPref: 100} {Originator: 10.0.0.250} {ClusterList: [10.2.2.2 10.3.3.3 10.4.4.4]}]
* 100.64.13.0/24 127.0.2.144 00:00:04 [{Origin: i} {LocalPref: 100} {Originator: 10.0.0.50} {ClusterList: [10.1.1.1]}]
In T6b I's path carries ORIGINATOR_ID 10.0.0.50 and J's 10.0.0.250, so an RFC 4456 router picks I. GoBGP 4.11 picked J. In T6d J's CLUSTER_LIST has three entries and I's one, and J still won. Reversing the arrival order (T6e) changed nothing. The source explains it: compareByRouterID in GoBGP 4.11 compares path.GetSource().ID, the BGP Identifier from the peer's OPEN message, and the decision process has no cluster list step at all.[12][16] If GoBGP runs next to Cisco, Juniper or FRR routers in one AS, the two can select different exits for the same prefix when everything above the router ID ties. In practice that is rare, because IGP cost and other steps usually decide first, but it is exactly the kind of inconsistency that turns into a forwarding loop between routers that disagree.
The real-world failure: duplicate router IDs
The ORIGINATOR_ID check assumes that a router ID identifies one router. RFC 6286 requires BGP Identifiers to be unique only within an AS.[6] Two failures follow when that assumption breaks.
Two clients, one router ID
In phase B of our lab c2 got c1's router ID, 10.0.0.142. c1 originated 198.51.100.0/24, c2 originated 192.0.2.64/26. rr learned both and reflected both to I, N and J, each with ORIGINATOR_ID 10.0.0.142. But c1 and c2 received nothing from rr:[16]
c2# gobgp global rib -a ipv4
Network Next Hop AS_PATH Age Attrs
*> 192.0.2.64/26 0.0.0.0 00:00:03 [{Origin: ?}]
c2# gobgp neighbor 127.0.2.141 adj-in -a ipv4
Network not in table
rr# gobgp neighbor 127.0.2.143 adj-out -a ipv4
Network not in table
DONE
GoBGP never even sent the routes. Its "do not send a route back to its source" check compares the peer's router ID and AS with those of the route's source, so rr considers c2 to be the source of c1's route.[12] A router that follows RFC 4456 would send the route and let the client drop it. The NSRC BGP troubleshooting workshop shows that version on Cisco IOS, where R1 and R4 had the same router ID; only debug ip bgp updates revealed the reason:[14]
BGP(0): 100.64.0.2 rcv UPDATE w/ attr: nexthop 100.64.0.4, origin i, localpref 100, metric 0, originator 100.64.1.1, clusterlist 100.64.0.2, path , community , extended community BGP(0): 100.64.0.2 rcv UPDATE about 100.64.0.0/16 --DENIED due to: ORIGINATOR is us;
Either way the result is the same: sessions up, prefixes missing, no error. NSRC's advice is not to set router IDs by hand unless you have a plan for it.[14] The opposite advice is equally common, because an automatically chosen router ID can change when interfaces change. What matters is that every iBGP speaker has a unique ID, whichever way it is chosen.
An external router with your router ID
Phase C tests a less obvious case. eBGP peer E opened its session with BGP Identifier 10.0.0.143, the same as client c2, and advertised 100.64.8.0/24. That is legal, since BGP IDs only have to be unique inside one AS. GoBGP 4.11 sends eBGP-learned routes to clients with ORIGINATOR_ID and CLUSTER_LIST, using the eBGP peer's BGP ID as the originator:[16]
E tx type=2 len=47 ORIGIN=0 | AS_PATH=65009 | NH=127.0.2.146 | NLRI 100.64.8.0/24 C1
I rx type=2 len=68 ORIGIN=0 | AS_PATH=65009 | NH=127.0.2.146 | LP=100 | ORIGINATOR_ID=10.0.0.143 {8009040a00008f} | CLUSTER_LIST=[10.0.0.141] {800a040a00008d} | NLRI 100.64.8.0/24
N rx type=2 len=54 ORIGIN=0 | AS_PATH=65009 | NH=127.0.2.146 | LP=100 | NLRI 100.64.8.0/24
c1 installed the route; c2 kept it in its Adj-RIB-In and rejected it (Received 1, Accepted 0). RFC 4456 does not settle this case: its Appendix B notes that the references to eBGP routes in RFC 1966 were removed.[1] Juniper documents the same choice as GoBGP for a router that is both ASBR and route reflector ("Junos OS attaches the ORIGINATOR_ID and CLUSTER_LIST path attributes when reflecting the route to IBGP clients"), while FRR sets ORIGINATOR_ID only on iBGP-to-iBGP reflection.[10][11] We have not tested Junos for the collision itself, so treat it as a possibility to check rather than a confirmed fault.
What a received ORIGINATOR_ID from eBGP does
In T7 the eBGP peer sent 100.64.5.0/24 with ORIGINATOR_ID 10.0.0.143 already attached, as an attacker or a broken router might. rr discarded the attribute (its own RIB entry has only ORIGIN, AS_PATH and NEXT_HOP) and c2 installed the route normally. The same happened with a CLUSTER_LIST containing rr's own cluster ID (T7c). That matches RFC 7606's "attribute discard", and it means a neighbouring AS cannot use these attributes to make one of your routers drop a route.[5][16]
E tx type=2 len=54 ORIGIN=0 | AS_PATH=65009 | NH=127.0.2.146 | ORIGINATOR_ID=10.0.0.143 {8009040a00008f} | NLRI 100.64.5.0/24 T7
N rx type=2 len=54 ORIGIN=0 | AS_PATH=65009 | NH=127.0.2.146 | LP=100 | NLRI 100.64.5.0/24
I rx type=2 len=68 ORIGIN=0 | AS_PATH=65009 | NH=127.0.2.146 | LP=100 | ORIGINATOR_ID=10.0.0.146 {8009040a000092} | CLUSTER_LIST=[10.0.0.141] {800a040a00008d} | NLRI 100.64.5.0/24
FRR goes one step further and will not let you configure path-attribute discard or treat-as-withdraw for ORIGINATOR_ID and CLUSTER_LIST on eBGP sessions, since they are handled by the protocol itself.[11]
The deliberate exception: ACCEPT_OWN
There is one standard case where a router accepts a route that carries its own router ID. RFC 7611 defines the ACCEPT_OWN community for L3VPN designs in which a route reflector changes the route targets of a PE's route and sends it back so that the PE imports it into another VRF. Section 2.1 says a router MAY accept a route whose ORIGINATOR_ID or NEXT_HOP matches its own if processing is enabled by configuration and the route carries ACCEPT_OWN, among other conditions.[7] FRR implements it: with the feature enabled, its receive path calls bgp_accept_own() before applying the "originator is us" rule.[11] Without explicit configuration the normal rule applies.
ORIGINATOR_ID in the real Internet table
Because the attribute is non-transitive and RFC 7606 tells receivers to discard it on eBGP, it should never be visible from outside an AS. We checked two RIPE RIS collectors with our own MRT parser on the 4 December 2026 00:00 UTC dumps: 6,981,373 routes from 20 peers at rrc14 and 40,718,710 routes from 142 peers at rrc12. Not one route carried type 9 or type 10.[17] RIS collectors receive routes over eBGP and may discard these attributes themselves, so the result does not prove that no network ever leaks them; it shows that none survive to a collector's table. For comparison, the same kind of dump showed the optional transitive AGGREGATOR on about 10 % of IPv4 prefixes in part 11.
Configuration and verification
ORIGINATOR_ID itself has no configuration on any platform: you configure route reflection, and the attribute follows. IOS XR, as committed on R2 in the kazulog lab:[13]
router bgp 65001 bgp cluster-id 10.100.100.1 neighbor 10.0.0.1 address-family ipv4 unicast route-reflector-client ! ! neighbor 10.0.0.3 address-family ipv4 unicast route-reflector-client
Adding or removing route-reflector-client on IOS XR reset the session in the lab (Down - RR client configuration changed), and changing the cluster ID did as well (Neighbor moved to a new cluster), so plan these changes for a maintenance window.[13] On Junos, every neighbour in a BGP group that has the cluster statement is a client (configuration example based on Juniper's documentation):[10]
set protocols bgp group rr-clients type internal set protocols bgp group rr-clients local-address 10.0.0.2 set protocols bgp group rr-clients cluster 10.0.0.2 set protocols bgp group rr-clients neighbor 10.0.0.1 set protocols bgp group rr-clients neighbor 10.0.0.3
To verify, look at the reflected route on the client. On IOS and IOS XR the Originator: and Cluster list: line appears under the path, and the router ID in brackets after from is the originator's, not the RR's (see the STEP 1 output above).[13] In GoBGP, gobgp global rib shows {Originator: ...} and {ClusterList: [...]} in the attribute column, and gobgp neighbor <rr> adj-in also lists routes that the loop check rejected.[16]
Common mistakes and troubleshooting
- A reflected route is missing on one client only. On the RR, check
advertised-routestowards that client. If the route is there, compare its Originator with the client's router ID. A match means a duplicate ID or the client's own route.[13][14] - Counters do not help. IOS XR counted the dropped copy neither as accepted nor as denied, and did not list it under received routes even with soft-reconfiguration; GoBGP shows Received 5, Accepted 4. FRR has an explicit
Originator loopcounter.[11][13][16] - No log by default. IOS needs
debug ip bgp updatesto print "DENIED due to: ORIGINATOR is us;". GoBGP logs it only at debug level.[12][14] - Same router ID on routers in different roles. A non-client RR peer, a lower-level RR or a client with the same ID as an originator drops that originator's routes. Audit router IDs across the whole AS, not just within a cluster.[14]
- Changing a router ID. Routes already reflected carry the old ID until they are re-advertised. After a router ID change, a soft clear towards the RRs refreshes them.
- Policy that rewrites the attribute. FRR lets a route-map override the originator ID on purpose (the attribute is set "before route-map so it can be overridden"). RFC 4456 section 10 warns that modifying these attributes can create loops; do not do it without a very specific reason.[1][11]
- Mixed implementations. GoBGP 4.11 ignores ORIGINATOR_ID and CLUSTER_LIST length in the tie-break. In a mixed AS, make sure an earlier step (LOCAL_PREF, IGP cost) decides your important prefixes.[12][16]
FAQ
What is the BGP ORIGINATOR_ID attribute?
ORIGINATOR_ID is BGP path attribute type 9, defined in RFC 4456. It is optional and non-transitive, always 4 bytes long, and carries the BGP Identifier (router ID) of the router that first advertised the route into the local AS. A route reflector adds it when it reflects a route, so that a route can be recognised if it ever comes back to the router that originated it.
Who sets the ORIGINATOR_ID?
The first route reflector that reflects the route. It copies the BGP Identifier of the iBGP peer it learned the route from. RFC 4456 says a BGP speaker SHOULD NOT create the attribute if one already exists, so a second route reflector in a hierarchy keeps the original value and only prepends its own cluster ID to CLUSTER_LIST. Clients and ordinary iBGP speakers never set it.
Why does a router drop a route with its own router ID in ORIGINATOR_ID?
Because the route is either its own route coming back through a route reflector, or another router in the AS uses the same router ID. RFC 4456 section 8 says such a route SHOULD be ignored. In the kazulog IOS XR lab the route reflector sent R1 its own prefix with ORIGINATOR_ID 10.0.0.1; R1 kept only its local path, did not count the copy as accepted or denied, and did not even show it under received routes.
Does ORIGINATOR_ID affect BGP best-path selection?
Yes. RFC 4456 section 9 says that if a route carries ORIGINATOR_ID, it SHOULD be used instead of the advertising peer's BGP Identifier in the lowest-router-ID step, and a shorter CLUSTER_LIST SHOULD be preferred right after that. Cisco, Junos and FRR document this behaviour. GoBGP 4.11 does not do it: in our lab it compared the peers' BGP Identifiers in all five tie-break tests.
Is ORIGINATOR_ID sent to eBGP peers?
No. It is non-transitive and describes the inside of one AS. Our GoBGP route reflector removed types 9 and 10 from every UPDATE it sent to its eBGP peer. RFC 7606 adds that an ORIGINATOR_ID received from an external neighbour SHALL be discarded, and in the RIPE RIS dumps of 4 December 2026 (rrc14 and rrc12, 47.7 million routes) no route carried it.
Can duplicate router IDs break a route reflector design?
Yes, silently. If two clients share a router ID, each one sees the other's routes with ORIGINATOR_ID equal to its own ID and drops them (or, as GoBGP does, the route reflector never sends them). The BGP sessions stay up and no NOTIFICATION or default-level log is produced. Set an explicit, unique router ID on every iBGP speaker and check the Originator field when a reflected route is missing.
What is the difference between ORIGINATOR_ID and CLUSTER_LIST?
ORIGINATOR_ID names the router that injected the route into the AS and is written once. CLUSTER_LIST is a list of cluster IDs that grows by one entry at every route reflector the route passes. ORIGINATOR_ID protects the originating router; CLUSTER_LIST protects the route reflectors and clusters. Part 15 of this series covers CLUSTER_LIST.
Next in the series: part 15 covers CLUSTER_LIST, the other route reflector attribute: how the list grows through a hierarchy, why an RR drops routes that contain its own cluster ID, and whether redundant RRs should share a cluster ID.
Series hub: BGP in 26 Parts: From EGP to EVPN
Previous: BGP MED: always-compare-med and deterministic-med
Next: BGP CLUSTER_LIST Attribute: How Route Reflector Clusters Avoid Loops (coming soon)
References
[1] T. Bates, E. Chen, R. Chandra, RFC 4456: BGP Route Reflection: An Alternative to Full Mesh Internal BGP (IBGP), April 2006: s.6, s.8, s.9, s.10, Appendix B.
[2] T. Bates, R. Chandra, E. Chen, RFC 2796: BGP Route Reflection - An Alternative to Full Mesh IBGP, April 2000.
[3] T. Bates, R. Chandra, RFC 1966: BGP Route Reflection, An alternative to full mesh IBGP, June 1996 (Experimental).
[4] Y. Rekhter, T. Li, S. Hares (Eds.), RFC 4271: A Border Gateway Protocol 4 (BGP-4), January 2006: s.5 (attribute order), s.9.1.2.2.
[5] E. Chen, J. Scudder, P. Mohapatra, K. Patel, RFC 7606: Revised Error Handling for BGP UPDATE Messages, August 2015: s.3 c, s.3 g, s.7.9.
[6] E. Chen, J. Yuan, RFC 6286: Autonomous-System-Wide Unique BGP Identifier for BGP-4, June 2011.
[7] J. Uttaro, P. Mohapatra, D. Smith, R. Raszuk, J. Scudder, RFC 7611: BGP ACCEPT_OWN Community Attribute, August 2015: s.2.1.
[8] Cisco, Select BGP Best-path Algorithm (Document 13753), read 4 December 2026.
[9] Juniper Networks, Understanding BGP Path Selection (Junos OS), steps 12-13, read 4 December 2026.
[10] Juniper Networks, BGP Route Reflectors (Junos OS BGP User Guide): ORIGINATOR_ID and CLUSTER_LIST, cluster statement, route reflection at AS border routers, read 4 December 2026.
[11] FRRouting, BGP documentation (route selection steps, peer groups, path-attribute discard, accept-own) and source bgpd/bgp_route.c and bgp_vty.c, master branch, read 4 December 2026.
[12] GoBGP v4.11.0 source: internal/pkg/table/path.go (UpdatePathAttrs), pkg/server/peer.go (filterPathFromSourcePeer, detectsLoop), destination.go (compareByRouterID); route-reflector.md, read 4 December 2026.
[13] kazulog.info, BGP Route Reflector: Cisco XRd IOS XR 26.1.1 lab, STEP 0-6 show/syslog/commit files and R1-R2 packet captures (STEP 1 No.22, STEP 3 No.7, STEP 4 No.7), downloaded and decoded 4 December 2026.
[14] NSRC, BGP Deployment Troubleshooting (workshop slides): Missing Routes examples I and II, read 4 December 2026.
[15] I. Pepelnjak, Mixed Feelings about BGP Route Reflector Cluster ID, ipSpace.net, 8 February 2022.
[16] Network freak lab: GoBGP 4.11 routers rr (127.0.2.141), c1 (.142), c2 (.143), raw Python BGP speakers I, N, E, J (127.0.2.144-147), phases A, B and C, 4 December 2026, 01:19-01:24 CET. Configs, logs and every captured UPDATE are kept with the article sources.
[17] RIPE NCC, RIS rrc14 and rrc12 bview.20261204.0000.gz, parsed with our own MRT TABLE_DUMP_V2 reader on 4 December 2026.
Figures 1-7: Network freak, drawn from the sources above and our lab.
Try it: BGP Route Lookup: origin AS, AS paths and RPKI check - look up any prefix and see the paths that carry it, free and in your browser.
Related reading
- How BGP Route Reflectors Prevent Loops with CLUSTER_LIST
- BGP Route Reflectors: Scaling iBGP with a Simple Test Diagram
- How BGP Best-Path Selection Picks a Route
- BGP Fundamentals: eBGP vs iBGP, Full Mesh and Synchronization
- BGP NEXT_HOP Attribute: How eBGP and iBGP Change It
- BGP MED: always-compare-med and deterministic-med
Comments
Post a Comment