OSPF (Routing Protocol)

For big networks in the internet what we need is a network path which is shorter and best. OSPF is a routing protocol which enables data packets to choose the best path. It is widely popular IGP (Interior Gateway Protocol) which is implemented by most of the major network providers. OSPF stands for open shortest path first, this protocol determines the best path for routing the data traffic. OSPF does routing based on cost calculation, the path with lowest cost always gets the priority. Consider the example below in this network the lowest cost is 10 hence the packet chooses the path with lowest cost to reach the destination.
In the OSPF, whole network (single autonomous system) is divided into smaller areas so that network is optimized. OSPF uses hello packets at first to calculate the neighbors and then the routing table is updated. For smaller network (typically up to 10 routers) single area is sufficient, but for large networks single area is not sufficient. For larger networks OSPF requires multiple areas so that routing information is limited and the routers processing capacity and memory is optimized.
OSPF uses LSA (Link state Advertisement) packets to update the routing table. There are different types of LSA packets and based on these types network is designed. Different types of area for example core area and other area requires different types of routing information. Hence to distinguish these types of network routing information is either limited or maximized.