The International Standards Organization (ISO) has defined a standard model for describing communications across a network, called the OSI model, for Open Systems Interconnect (reference model).
The OSI model is seven layered monster. It does not have to be taken literally - it might not be natural to separate all of these parts in every single program - but it is useful as a way of discussing the logically distinct parts of network communication. The layers are described as follows.
At the lowest level, the sending of data between two machine takes place
by manipulating voltages along wires. This means we need a device driver
for the signaller, and something to receive the data at the other end -
a way of converting the signals into bytes; then we need a way of structuring
the data so that they make sense. Each of these elements is achieved by
a different level of abstraction.
It is an Internet Engineering Task Force (IETF) standard link-state routing protocol used for routing IP. OSPF is a more sophisticated routing protocol than RIP, offering faster routing algorithm convergence. The service's OSPF implementation is a result of collaborative effort between Microsoft and Bay Networks, a leading provider of internetworking systems.
Developed in response to the inability of RIP to serve large, heterogeneous internetworks, OSPF is a link-state protocol based on the Shortest Path First (SPF) algorithm. This algorithm computes the shortest path between one source node and the other nodes in the network. Various industry sources indicate that about 35% to 40% of the routed networks in place today make use of OSPF and this number is growing.
Instead of exchanging distances to destinations like RIP routers do, OSPF routers maintain a "map" of the network that is updated after any change in the network topology. This map, called the link-state database, is used to compute the network routes, which must be computed again after any change in the topology. From this computation, the router derives the next hop for the destination, that is, the next router to which the data should be sent and the link that should be used for reaching this next router. Network changes are propagated or flooded across the entire network to ensure that each copy of the database is accurate at all times.
Because OSPF routers keep an overview of the network from the perspective of any router, some of the problems that are inherent in RIP (such as loops) are eliminated.