×

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

Address Mapping

Address Mapping: Internet is made of a combination of physical networks connected together by internetworking devices such as routers. A logical address is an internetwork address. A physical address is...

4 minutes read.

Advantages and Disadvantages of LAN

Before we move to advantages and disadvantages of LAN, first we discuss about what is LAN. Local area network is referred to by its abbreviation, LAN. A system that connects PCs...

3 minutes read.

Star Topology in Computer Networks

Star topology comes from or is a part of the network topology which was invented by Dr.Howard Frank. It is also to be known as star network because of its...

4 minutes read.

Basic Networking Devices

Introduction Physical components, or network devices, allow hardware on a computer network to link and convey with one another. Network equipment such as switches, routers, gateways, hubs, repeaters, bridges, and routers...

6 minutes read.

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.

TCP vs UDP

Transmission Control Protocol (TCP) and User Datagram Protocol are the two most popular Internet protocols (IPs). TCP is a connection-oriented protocol, which means that once a connection has been made,...

4 minutes read.

Differences between IPv4 and IPv6

Introduction In this tutorial, we will discuss the basic differences between IPv4 and IPv6 protocols. Definition of Internet Protocols Vint Cerf and Bob Kahn's initial Transmission Control Program had a connectionless datagram service...

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.

Decoding in Communication Process

The use of codes is necessary for all forms of communication. The sender, transmitter, and receiver are the three major components of more conventional communication paradigms. The sender is in...

4 minutes read.

Controlled Access Protocols in Computer Networks

In this tutorial, we will discuss Controlled Access Protocols in Computer Networks. Introduction On a shared platform, it is a strategy to minimise data frame collision. As in controlled access technique, every...

7 minutes read.

Error Correction and Error Detection

Error Correction and Error Detection Error correction and error detection techniques are work on the data-link layer. The data link layer ensures the frames are sent from the sender to the...

16 minutes read.

What is Computer Network?

 A computer network is a collection of interconnected devices, such as computers, servers, routers, and switches, that are connected together to share resources and exchange data. These devices use a...

6 minutes read.

IPv4 vs IPv6

What is an IP? The process or protocol used to transmit data from one computer to another over the internet is known as Internet Protocol (IP). Every computer connected to the...

5 minutes read.

Types of Computer Network: LAN, MAN, WAN and PAN

PAN: Personal Area Network PAN stands for Personal Area Network. It is designed for a very short distance (1 to10 m), such as a single room. This type of network can...

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.

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.

Network Layer in OSI Model

This article will help you in getting a good understanding of the Network Layer in the OSI model. The network layer is the third layer of the OSI Model from the...

4 minutes read.

Computer Network Topology: Bus, Star, Ring, Tree and Hybrid

Network Topology: The Computer network topology refers to the layout of connected devices on a network. The network topology is the combination by which computer or network devices interconnected to...

4 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.

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.