Data Link Layer Services (original) (raw)

Last Updated : 5 Jan, 2026

Data Link Layer is the second layer of seven-layer Open System Interconnection (OSI) reference model of computer networking and lies just above Physical Layer. It is responsible for receiving and getting data bits usually from Physical Layer and then converting these bits into groups, known as data link frames so that it can be transmitted further. It is also responsible to handle errors that might arise due to transmission of bits.

The data link layer provides various services as given below :

Framing

The data link layer organizes raw bits from the physical layer into structured data units called frames. It ensures proper synchronization between sender and receiver by adding headers and trailers to the data. Framing helps in identifying the beginning and end of a data packet and hence, preventing data loss or corruption.

There are two types of framing:

  1. Fixed size
  2. Variable size

2-14

Framing

Read more about Framing in Data Link Layer.

Error Detection

To detect errors, some common methods include:

**1. Simple Parity Check :

detect12

Even Parity Checking

Read about LRC(2-D Parity Check).

**2. Checksum:

file

Checksum

Read in detail about Checksum.

**3. CRC (Cyclic Redundancy Check):

If the data word of length n and divisor of length k is given then,

Length of CRC bits=k-1 bits

Length of Code word = n+k-1 bits

Example: Let’s data word be 1010000 and divisor in the form of polynomial is x3+1. CRC method discussed below.

crc

CRC

Read more about CRC and it's Implementation.

Error Correction

Error correction involves techniques to correct errors that may occur during data transmission between two nodes in a network. Common error-correction methods include:

**Automatic Repeat Request (ARQ): This technique uses a feedback mechanism to ensure data is received correctly. If an error is detected, the receiver sends a request for the sender to retransmit the data. Common ARQ types include:

**Forward Error Correction (FEC): It involves adding redundant data (error-correcting codes) to the transmission so that the receiver can detect and correct certain types of errors without needing retransmission. Examples include:

Flow Control

It is a method to manage the rate of data transmission between sender and receiver in order to prevent buffer overflow or congestion. Flow control methods include:

Addressing

Addressing at the Data Link Layer is used for identifying devices within a local network or link. It uses physical or MAC (Media Access Control) addresses to ensure that data is delivered to the correct device.

**Which is the main device used in the data link layer?

A **switch is a main device used in the Data Link Layer to direct data packets between devices on a network based on their MAC addresses.

**What are common protocols used in Data Link Layer?

Common protocols in Data Link Layer include:

**What is the difference between Logical Link Control (LLC) and Media Access Control (MAC)?

LLC manages error control and flow control, while MAC determines how devices access the network and handles physical addressing (MAC addresses)