9.2 Basic BGP Operation  
  9.2.6 Path attributes  
Much of the work in configuring BGP focuses on path attributes. Each route has its own set of defined attributes that can include path information, route preference, next hop, and aggregation information. Administrators use these values to enforce routing policy. Based on attribute values, BGP can be configured to filter routing information, prefer certain paths, or otherwise customize its behavior. Many of these attributes and policy configurations are explored later in this module, in the section "The BGP Routing Process".

Every update message has a variable length sequence of path attributes in the form <attribute type, attribute length, attribute value>.

Because path attributes will be used extensively when configuring routing policy, note that not all vendor implementations of BGP recognize the same attributes. The following are the four different attribute types:

  • Well-known mandatory – An attribute that must exist in the BGP update packet. It must be recognized by all BGP implementations. If a well-known attribute is missing, a notification error will be generated. This ensures that all BGP implementations agree on a standard set of attributes. An example of a well-known mandatory attribute is the AS_Path attribute.
  • Well-known discretionary – An attribute that is recognized by all BGP implementations, but may or may not be sent in the BGP update message. An example of a well-known discretionary attribute is the LOCAL_PREF attribute.
  • Optional transitive – An attribute that may or may not be recognized by all BGP implementations, therefore, it is optional. Because the attribute is transitive, BGP should accept and advertise the attribute even if it is not recognized.
  • Optional nontransitive – An attribute that may or may not be recognized by all BGP implementations. Whether or not the receiving BGP router recognizes the attribute, it is nontransitive and is not passed along to other BGP peers.

Each individual attribute is identified by its type and attribute code. Figure lists the attribute codes that are currently defined.

Several of these attributes are discussed later in this module. Attributes 11, 12, and 13 are not implemented by Cisco because they do not add functionality and will not be covered.

 

Interactive Media Activity

Point and Click: Classify the Attribute

Upon completion of this activity, the student will be able to identify the different BGP attribute types.