Question: how ospf routing protocol works?
Answer: OSPF is a routing protocol. Two routers speaking OSPF to each other exchange information about the routes they know about and the cost for them to get there. ... OSPF routers rely on cost to compute the shortest path through the network between themselves and a remote router or network destination.