In the previous part (link), we divided all the layers of the seven-layer OSI model into two groups. We examined the first four layers that form the 'Host Layers' group. In this post, we will look closer at the second, or 'Media Layers' group, which includes the three lower levels of the network model.
The 'Network Layer' routes blocks of data (packets or messages) through complex composite networks. To solve this primary task, the network layer protocol must define the structure of network layer addresses, the format of data blocks, and the type of services (with or without establishing the connection) it provides to the underlying transport layer. The protocol must have built-in mechanisms for requesting and ensuring the required quality of services offered and functions for managing the congestion of the communication channel.
The network layer's complexity determines the transport layer's ease of implementation. If the network layer protocol is connection-oriented, then there is no need to build into the transport layer mechanisms for ordering data blocks and error control, which means it is simpler.
However, connection-oriented network protocols must include descriptions of the procedures for establishing, maintaining, and terminating a connection instead of connectionless protocols. This complexity pays off because connection establishment provides greater control over its quality.
The type of network protocol used depends on the type of network traffic. Network traffic can be divided into two types: error-sensitive and latency-tolerant and latency-sensitive and error-tolerant. The first type includes almost all general-purpose data, and the second type includes all voice and video communications.
In connection-oriented networks, nodes forward messages according to the virtual connection number. Moreover, messages (with the exception of those sent when setting up a logical connection) do not contain information about the connection's final destination.
Each packet contains all the necessary information about its destination in connectionless networks. The router decides where to forward this packet next. The routing process consists of two operations: building a routing table and forwarding individual packets.
Today's most popular one is the 'Internet Protocol' (IP). In conditions of traffic convergence, when IP protocol packets must carry multimedia data in one stream (voice and video over IP technologies), its most significant drawback is the lack of traffic prioritization. Therefore, the primary efforts in developing the IP protocol aim to introduce an appropriate mechanism to give it some typical properties of a connection-oriented protocol, allowing it to successfully transport both main types of network traffic. It is proposed that the 'Multiprotocol Label Switching' (MPLS) method be used to adapt the IP protocol to modern requirements.
The 'Data Link' layer must ensure error-free data delivery to the network layer. Thus, its primary purpose is to identify and eliminate physical layer errors. Unlike the one at the physical level, information at the link level is transmitted in a structured form, i.e., frames. How the link layer corrects errors depends on the type of physical link. Direct correction is based on additional information in the frame. This method is usually used for transmission channels with numerous errors (subscriber network access lines) or high latency (satellite channels). Some modern link-layer protocols do not correct the errors per se but just detect and discard corrupted frames. Errors are resolved with higher-level protocols. Protocols that use this method are designed for high-quality physical channels with a low probability of errors, particularly fiber optic cables.
The data link layer must provide the following services:
It should be noted that as the quality of the physical layer improves, the need for all link layer functions decreases. In these circumstances, it is reasonable to leave the control of late-frame delivery to the end nodes. Restoring lost frames can be assigned to higher layers (for example, the transport one).
Perhaps the most common direct link layer protocol is the 'Point-to-Point Protocol' (PPP). This protocol for interacting with peer-to-peer systems involves a full-duplex physical channel, dedicated or switched. It is interesting that considering the new realities of the physical layer, it only provides error checking by the CRC procedure but does not include error correction. The PPP protocol simply drops erroneous frames and does not deal with frame ordering, relying on the physical layer.
The 'Physical' layer carries out the transfer of data bits. Its main difference from the other OSI model layers is that it is both necessary and sufficient for the exchange of data between two points.
The physical level is characterized by several important features.
The DTE-DCE and DSU-CSU interfaces are two popular physical layer interfaces.
Hi! I'm Kevin! I am a very curious engineer :))
I'm the website founder and author of many posts.
I invite you to follow exciting experiments, research, and challenges.
Let's go on to new knowledge and adventures!