Framing in Data Link Layer (original) (raw)

Last Updated : 23 Dec, 2025

A frame is the basic unit of data transmission at the Data Link Layer, consisting of a structured group of bits that carries data along with control information.

1

Data Link layer services

**Note: Framing is crucial in techniques like Time Division Multiplexing (TDM), where data is sent in fixed time slots. Data Link Layer technologies such as Ethernet, Token Ring, and Frame Relay use well-defined frame formats to ensure proper data identification and reliable communication.

Purpose of Framing

Framing serves several purposes in the Data Link Layer:

**Note: The framing and reassembly process is handled entirely by the Data Link Layer and remains transparent to the user.

Types of Framing

1. Fixed-Size Framing

2

DLL - Upper to Lower Level

2. Variable-Size Framing

Variable-size framing uses explicit frame boundary indicators to identify the start and end of a frame.

To resolve delimiter ambiguity, **stuffing techniques are applied:

****(a) Character/Byte Stuffing**

**Example: If ED = ,anddatacontains, and data contains ,anddatacontains, it becomes \O$.
**Disadvantage: High processing overhead and obsolete in modern systems.

****(b) Bit Stuffing**

3

Bit Stuffing

**Example Problem: Data = 011100011110, ED = 0111, After bit stuffing -> 011010001101100
**Another Example: Data = 110001001, ED = 1000, After bit stuffing -> 11001010011

Problems in Framing

Framing in computer networks faces several challenges: