So OSPF calculates and adds the best route to its routing table. The best route is the one with the smallest metric - cost.
However, how does an OSPF enabled router know the cost of the interfaces that are between it and some destination?
In this case, how would R1 know what cost do routers R2 and R3 have associated with their interfaces?
I thought, at first, that its because of the Shortest Path First algorithm that it uses to calculate the routes based on the received LSA's, however, then why is there a "metric" field in a LSU message? Can someone give me some clarity on this? Thank you in advance.