OSPF (Open Shortest Path First) and RIP (Routing Information Protocol) are routing protocols. They exchange information with connected routers, so that all routers can navigate packets across a network.
A routing protocol specifies how routers communicate with each other, distributing information that enables them to select routes between any two nodes on a computer network. Routing algorithms determine the specific choice of route. Each router has a priori knowledge only of networks attached to it directly. A routing protocol shares this information first among immediate neighbors, and then throughout the network. This way, routers gain knowledge of the topology of the network.
Although there are …