F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Appendix Protocol Reference-6PW100
33
• Notification—BGP sends a Notification message upon detecting an error and immediately closes
the connection.
BGP path attributes
BGP uses the following path attributes in update messages for route filtering and selection:
• ORIGIN
The ORIGIN attribute identifies the origin of routing information (how a route became a BGP route).
This attribute has the following types:
{ IGP—Has the highest priority. Routes generated in the local AS have the IGP attribute.
{ EGP—Has the second highest priority. Routes obtained through EGP have the EGP attribute.
{ INCOMPLETE—Has the lowest priority. The source of routes with this attribute is unknown. The
routes redistributed from other routing protocols have the INCOMPLETE attribute.
• AS_PATH
The AS_PATH attribute identifies the ASs through which a route has passed. Before advertising a
route to another AS, BGP adds the local AS number into the AS_PATH attribute, so the receiver can
determine ASs to route the message back.
The AS_PATH attribute has the following two types:
{ AS_SEQUENCE—Arranges AS numbers in sequence. As shown in Figure 23, the number of the
AS closest to the receiver's AS is the first one listed in the AS_PATH.
{ AS_SET—Arranges AS numbers randomly.
Figure 23 AS_PATH attribute
BGP uses the AS_PATH attribute to implement the following functions:
{ Avoid routing loops—A BGP router does not receive routes containing the local AS number to
avoid routing loops.
{ Affect route selection—BGP gives priority to the route with the shortest AS_PATH length if other
factors are the same. As shown in Figure 23,
the BGP router in AS50 gives priority to the route