Open In App

Data Link Layer in OSI Model

Last Updated : 22 Apr, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

The data link layer is the second layer from the bottom in the OSI (Open System Interconnection) network architecture model. It is responsible for the node-to-node delivery of data within the same local network. Its major role is to ensure error-free transmission of information. DLL is also responsible for encoding, decoding, and organizing the outgoing and incoming data.

This is considered the most complex layer of the OSI model as it hides all the underlying complexities of the hardware from the other above layers. In this article, we will discuss Data Link Layer in Detail along with its functions, and sub-layers.

30
Data Link Layer in OSI Model

The data link layer is further divided into two sub-layers, which are as follows:

This sublayer of the data link layer deals with multiplexing, the flow of data among applications and other services, and LLC is responsible for providing error messages and acknowledgments as well. 

Media Access Control (MAC)

MAC sublayer manages the device's interaction, responsible for addressing frames, and also controls physical media access. The data link layer receives the information in the form of packets from the Network layer, it divides packets into frames and sends those frames bit-by-bit to the underlying physical layer. 

There are various benefits of data link layers s let's look into it.

To read in detail about services offered by this layer, refer to Data Link Layer Services.

There are various protocols in the data link layer, which are as follows:

1.Switch

  • A switch is a key device in the Data Link Layer.
  • It uses MAC addresses to forward data frames to the correct device within a network.
  • Works in local area networks (LANs) to connect multiple devices.

2. Bridge

  • A bridge connects two or more LANs, creating a single, unified network.
  • Operates at the Data Link Layer by forwarding frames based on MAC addresses.
  • Used to reduce network traffic and segment a network.

3. Network Interface Card (NIC)

  • A NIC is a hardware component in devices like computers and printers.
  • Responsible for adding the MAC address to frames and ensuring proper communication with the network.
  • Operates at the Data Link Layer by preparing and sending frames over the physical medium.

4. Wireless Access Point (WAP)

  • A WAP allows wireless devices to connect to a wired network.
  • Operates at the Data Link Layer by managing wireless MAC addresses.
  • Uses protocols like Wi-Fi (IEEE 802.11) to communicate with devices.

5. Layer 2 Switches

  • These are specialized switches that only operate at Layer 2, unlike multi-layer switches.
  • Responsible for frame forwarding using MAC address tables.
  • Limited Scope: It operates only within a local network and cannot handle end-to-end communication across different networks.
  • Increased Overhead: Adding headers, trailers, and redundant data (for error correction) increases the size of transmitted data.
  • Error Handling Dependency: While it can detect and correct some errors, it relies on upper layers for handling more complex issues.
  • No Routing Capability: The Data Link Layer cannot make routing decisions. It only ensures delivery within the same network segment.
  • Resource Usage: Flow control and error correction mechanisms may consume extra processing power and memory
  • Local Area Networks (LANs): Enables reliable communication between devices within a local network using protocols like Ethernet (IEEE 802.3).
  • Wireless Networks (Wi-Fi): Manages communication between devices in wireless networks via protocols like IEEE 802.11 hence, handling media access and error control.
  • Switches and MAC Addressing: Facilitates the operation of switches by using MAC addresses to forward data frames to the correct device within the network.
  • Point-to-Point Connections: Used in protocols like PPP (Point-to-Point Protocol) to establish and manage direct communication between two nodes.

Below questions have been asked in previous GATE exam on above topic:

GATE | GATE-CS-2003 | Question 90

GATE | GATE-CS-2005 | Question 74

GATE | GATE CS 2013 | Question 65

GATE | GATE CS 2015 Set 3 | Question 65

GATE | GATE-CS-2007 | Question 68

GATE | GATE CS 2009 | Question 48


Next Article

Similar Reads