Path attributes
Well-known mandatory
Well-known discretionary
Optional transitive
可选的递移
Per RFC 4271, well-known attributes must be recognized by all BGP implementations. Well-known mandatory attributes must be included with every prefix advertisement, while well-known discretionary attributes may or may not be included.
Optional attributes do not have to be recognized by all BGP implementations. Optional attributes can be set to be transitive and stay with the route advertisement from AS to AS. Other PAs are nontransitive and cannot be shared from AS to AS. BGP PAs are summarized in the following table.
Path Attribute |
Description |
Characteristics |
AS_PATH |
Lists ASNs through which the route has been advertised. |
Well-known mandatory |
NEXT_HOP |
Lists the next-hop IP address used to reach an NLRI. |
Well-known mandatory |
LOCAL_PREF |
Used to communicate a BGP router degree of preference for an advertised route. Used only in updates between internal BGP peers. |
Well-known discretionary |
MULTI_EXIT_DISc |
Known as the MED, used to influence incoming traffic only in EBGP updates. Allows an AS to inform another AS of its preferred ingress point. |
可选的递移 |
AGGREGATOR |
Lists the RouterId and ASN of the router that created the summary NLRI and indicates where the Aggregation occurred. |
Optional transitive |
ATOMIC_AGGREGATOR |
Tags a summary NLRI as being a summary and indicates that a loss of path information has occurred. |
Well-known discretionary |
ORIGIN |
Describes where the route was imported into BGP; i (IGP), e (EGP), or ? (incomplete information). |
Well-known mandatory |
COMMUNITY |
Identifies a destination as a member of some community of destinations that share one or more common properties. Used to simplify policy enforcement. |
Optional transitive |
ORIGINATOR_ID |
所使用的路由反射器(RRs) to denote the router-id of the iBGP neighbor that injected the NLRI into the AS |
可选的递移 |
CLUSTER_LIST |
所使用的路由反射器(RRs) to list a sequence of route reflection cluster IDs through which the route has passed in order to prevent loops. |
可选的递移 |
MP_REACH_NLRI |
Carries the set of reachable destinations together with the next hop information to be used for forwarding to these destinations. |
可选的递移 |
MP_UNREACH_NLRI |
Used to withdraw unreachable routes. |
可选的递移 |