BGP Path Attributes and BGP Best Path Algorithm:
.
BGP uses different path attributes to calculate the best path to a certain destination
But, they can also be used for a variety of things other than best path calculation such as AS_PATH attribute for loop-detection, …
Each path-attribute describes something about the path
The most common bgp path attributes are: