×

Data link layer in OSI model

This article will help you in getting a good understanding of the topic called the Data link layer in the OSI model.

It is the second bottom most layer in the OSI model. It is the most complicated layer among all layers in the OSI model and it involves many complex functioning procedures and methodologies.

The data link layer works between two hosts which are having a direct connection. Here the direct connection is either point-to-point or broadcast type. The data link consists of two sub-layers which are given below:

  1. Logical link control
  2. Media access control

a) Logical Link Control: This sub-layer deals with various aspects like protocols, flow, and error control.

b) Media Access control: This sub-layer deals with the original control of media.

The main purpose of the data link layer is to make sure that transferred information is error-free. From the network layer, the data link layer gets information in the form of packets and divides those packets into frames. These frames are bit-by-bit transferred to the physical layer from the data link layer. Functions of the data link layer are error control, flow control, addressing, frame synchronization, access control, providing service to the network layer, and reliable delivery.

The packets which are sent by the network layer are broken down into frames based on the Network Interface CARD(NIC) and the frame size. This layer stores or preserves the MAC address of the sender and receiver in the header.

MAC (Media Access Control) address is a 12-digit address that is used to uniquely identify a network device in the network.

For example:
32-04-2C-27-G5
is having 6 octets of which the first 3 represent the OUI and the next three octets represent the NIC).

The MAC address of the receiver can be found or identified by using Address Resolution Protocol(ARP) request onto the wire for asking the question “ whose IP address is this?”. The host will be responding to this question by sending the MAC address.

Functionality of Data Link Layer

  • Error control: The main functionality of  data link layer in the OSI model is error control. This layer needs to identify errors and correct them by using techniques. Due to several reasons, data can be corrupted. To make the data error-free, the data link layer uses techniques like error detection and correction. Error detection checks whether the error occurred or not, and error corrections find out the exact number of corrupted bits and their location.
  • Flow control: If the speed of the sender is slower than the receiver, overflow occurs, and some of the frames will be lost in this process. The data link layer allows the sender and receiver to transfer data simultaneously such that no overflow will occur in the transfer of data. There are 2 types of flow control processes they are \
    • Stop and wait for flow control
    • Sliding window

a. Stop and wait for flow control: It pushes the sender after sending the data to stop and wait by the receiver.

b. Sliding Window: It is the process in which both the sender and receiver decide the number of frames after which the acknowledgment should be given. This process consumes less time as it uses few resources.

  • Addressing: The data link layer binds the source and destination physical addresses (MAC addresses) at the header of each frame to verify delivery. A physical address is always a unique address that is given to the system at the time of manufacturing, and it will not be changed.
  • Framing: The data link layer receives the packet from the network layer and divides that packet into frames, adding some bits to the header and also at the end of the frame, after which it will be transferred to the physical layer. Framing is the way of connecting two devices and also sending bit by bit meaningful data to the receiver.
  • Providing service to the network layer: It provides an interface to the network layer for transferring the data packets. Acknowledged connectionless services, unacknowledged connectionless services, and acknowledged connection-oriented services are the various services which are provided by the data link layer.

This is all about the Data link layer of the OSI model. Hope you understood this topic.


Related Topics

Computer Network Switching

Switching Many numbers of connected devices are called the network. Whenever a company has multiple devices, there has a problem of how to connected them to make the one to one...

5 minutes read.

Mesh Topology Diagram in Computer Network

Topology in simple terms can be defined asthe arrangement of a computer network, which is further divided into logical and physical arrangements. Logical arrangement refers to how the data flow...

4 minutes read.

Disadvantages of Computer Network

What is Computer Network? A computer network is a collection of interconnected devices that can communicate and exchange data with each other. Networks allow devices to share resources such as printers...

3 minutes read.

4G Mobile Communication Technology

What is 4G? 4G is a fourth-generation wireless or mobile communication system, succeeding 3G (third generation) wireless communication and preceding 5G (fifth generation) communication. It is based on the capabilities defined by...

4 minutes read.

Define Framing in Computer Network

Framing is a function of the data link layer, which provides a way for a sender to transmit a set of bits that should be meaningful to the user. The...

7 minutes read.

APIPA: Automatic Private IP Addressing

What is APIPA? APIPA stands for Automatic Private IP Addressing. It is a word used by Microsoft to describe address auto configuration, which enables a Local Area Network (LAN) computer to...

3 minutes read.

Classification of Routing Algorithms

Introduction Before going to the classification of routing algorithms, we must find out what routing is. So, routing can be defined as the process of establishing the paths that the data...

3 minutes read.

FTP: File Transfer Protocol

File Transfer Protocol File transfer protocol is commonly called FTP. The most popular service of the Internet is to download the files. In other words, it is to transfer the files...

3 minutes read.

Transmission Mode (Data Flow)

Introduction The exchange of information between two people via a wired or wireless medium is referred to as communication. The OSI (Open System Interconnection) model of computer networks consists of seven...

6 minutes read.

Process-to-Process Delivery

Process-to-Process Delivery: A transport-layer protocol's first task is to perform process-to-process delivery. A process is an entity of the application layer which uses the services of the transport layer. Two...

2 minutes read.

Transmission Media

Transmission Media: The physical layer directly controls transmission media. A transmission medium is a way which transmits the data from one place to another. It carries the data from source...

5 minutes read.

Computer Network Architecture

Computer network architecture is a design in which all the computers are organized in a computer network. The architecture defines how computers must communicate with each other to obtain maximum...

4 minutes read.

Domain Name System in Computer Network

Domain Name System Domain Name System is also called DNS. DNS was introduced by Paul Mockapetris and Jon Postel in 1983. DNS is an internet service that converts Domain names to...

2 minutes read.

Working of ARP

The majority of computer programmes and applications send and receive messages using logical addresses (IP addresses), but the actual communication takes place over physical addresses (MAC addresses), which is found...

4 minutes read.

Session Layer in OSI Model

This article will help you in getting a better understanding of the Session layer in the OSI model. The session layer is the fifth layer from the bottom in the OSI...

4 minutes read.

Fiber Optics and its Types

Fiber Optics is a type of technology that is used to transfer data through the cable with the speed of light. The metal wire is preferred for the transmission of...

3 minutes read.

Digital Transmission

Line Coding Digital signal is converted in the digital data that process is known as the Line Coding. That data is stored in the computer in the form of text, audio,...

4 minutes read.

Stream Control Transmission Protocol

Stream Control Transmission Protocol: SCTP stands for Stream Control Transmission Protocol. SCTP was developed by the Internet Engineering Task Force (IETF). It is a reliable message-oriented protocol of the transport...

3 minutes read.

Integrated Services Digital Network (ISDN)

Integrated Services Digital Network (ISDN): ISDN means Integrated Services Digital Network. ISDN was developed by ITU-T in the 1980s. These are digital telephony and data transport services offered by regional...

3 minutes read.

Data Link Layer Protocols

 Data Link Layer Protocols Bluetooth Low EnergyZ-WaveZigBee Smart EnergyLoRaWANWirelessHARTLTE-A  1. Bluetooth Low Energy Bluetooth Low Energy or Bluetooth is a short-range communication protocol with the physical layer and medium access control layer. It is widely used in IoT...

3 minutes read.