With link-state routing protocols such as OSPF, a link is an interface on a router.
Information about the state of those links is known as link-states. All link-state routing protocols apply Dijkstra’s algorithm to calculate the best path route.
The algorithm is commonly referred to as the shortest path first (SPF) algorithm.
This algorithm uses accumulated costs along each path, from source to destination, to determine the total cost of a route