BGP Origin Attribute Explained

BGP Origin Attribute Explained

Origin is one of the Mandatory attributes of BGP Path Attributes, The origin code tells how BGP learned about the specific route,


The origin attribute informs all autonomous systems how the prefix introduced into BGP
• Three values: IGP, EGP, incomplete:
–  iIGP generated by BGP network statement
e, EGP generated by EGP
?, Incomplete redistributed from another routing protocol

BGP prefers the lowest Origin:

Prefer first ‘i’ IGP (network command) then EGP then ‘?’ incomplete (redistributed routes)


Example of Origin attribute on Cisco router CLI:

In this example, routes were learned via network command ‘i’.

R1#show ip bgp
BGP table version is 3, local router ID is 1.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
              x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>  1.1.1.1/32       0.0.0.0                  0         32768 i
 *   5.5.5.5/32       172.16.30.2                            0 65001 65001 65003 65005 i
 *>                   172.16.20.2                            0 65002 65004 65005 i


Note

Origin informs on how BGP has learned the route, not on how the receiver router learned the BGP route ( Example: route received via EBGP showing as “i” because the route was originated first by a network statement then propagated through EBGP.)

In simple words, ORIGIN tels on how the route was first learned, not how the current router learned it.

Bilel

Bilel

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
Learn Duty
0
Would love your thoughts, please comment.x
()
x