FUTURE INSTITUE OF TECHNOLOGY
240, Garia Boral Main Road, Kolkata - 700154 West Bengal
(Affiliated To MAKAUT)
Detailed Report on
Data Encoding Types for Line Encoding
Submitted as CA2 in
Computer Networks
(PCCCS602)
for
the partial fulfilment of
B. Tech in
Computer Science and Engineering (AI & ML)
Submitted by:
Eshika Giri
(34230822009)
Submitted on: 9th of March, 2025
Contents
1. Abstract
2. Introduction
3. Types of Line Encoding
3.1. Unipolar Encoding
NRZ (Non-Return-to-Zero)
3.2. Polar Encoding
Polar NRZ (Non-Return-to-Zero)
NRZ-L (Non-Return-to-Zero-Level)
NRZ-I (Non-Return-to-Zero-Inverted)
Return-to-Zero (RZ)
Manchester Encoding
Differential Manchester Encoding
4. Conclusion
5. References
Abstract
Line encoding is a technique in computer networks used to convert digital data into a format
suitable for transmission. This report focuses on two primary types: Unipolar and Polar
encoding. Unipolar encoding represents binary data using a single voltage level, leading to
high DC components and synchronization issues. In contrast, Polar encoding utilizes both
positive and negative voltage levels, offering better synchronization and reduced DC bias.
Various polar encoding schemes such as NRZ-L, NRZ-I, RZ, Manchester, and Differential
Manchester encoding are discussed, highlighting their advantages and disadvantages.
Introduction
In computer networks, line encoding is an essential technique for converting digital data into
a form suitable for transmission over a communication medium. It determines how binary
bits (0s and 1s) are represented as electrical signals, impacting factors like signal
synchronization, bandwidth efficiency, and error detection. Different encoding methods offer
varying levels of efficiency, power consumption, and resistance to noise.
Proper selection of a line encoding technique is crucial for optimizing communication
systems. Unipolar encoding, being the simplest, suffers from synchronization issues and a
high DC component. On the other hand, Polar encoding methods utilize both positive and
negative voltage levels to improve transmission reliability. Various polar encoding schemes
such as NRZ-L, NRZ-I, Return-to-Zero (RZ), Manchester, and Differential Manchester
encoding help in achieving better performance in terms of synchronization and noise
immunity.
Types of Line Encoding
Line encoding can be broadly classified into two major categories: Unipolar and Polar
Encoding.
1. Unipolar Encoding
Unipolar encoding is the simplest form of line encoding, where one voltage level represents
binary '1' and another represents binary '0'.
Non-Return-to-Zero (NRZ):
o Binary '1' is represented by a
positive voltage, and binary '0' is
represented by zero voltage.
o The signal does not return to zero
between bits, making it simple but
inefficient.
o For example: Data =10110.
Advantages:
o Simple implementation
o Requires minimal bandwidth
Disadvantages:
o High DC component, making it difficult to transmit over long distances
o Lack of synchronization due to long sequences of identical bits
o No inherent error detection
2. Polar Encoding
Polar encoding uses both positive and negative voltage levels to represent binary data,
reducing the DC component compared to unipolar encoding. It provides better
synchronization and improved noise immunity.
Polar NRZ (Non-Return-to-Zero):
o NRZ-L (Non-Return-to-Zero-Level):
Binary '1' is represented by a positive voltage, and binary '0' by a
negative voltage.
The voltage level remains constant during the entire bit duration.
Example: Data=01001110
Advantages:
Simple implementation
Requires less bandwidth compared to RZ encoding
Disadvantages:
Difficult to maintain synchronization due to long sequences of
identical bits
No inherent error detection capability
o NRZ-I (Non-Return-to-Zero-Inverted):
A transition occurs for a binary '1', and no change for a binary '0'.
Ensures better synchronization compared to NRZ-L.
Example: Data = 01001110.
Advantages:
Reduces long sequences of identical bits, improving
synchronization
More reliable for data transmission compared to NRZ-L
Disadvantages:
Still susceptible to baseline wander (DC component
accumulation)
Difficult to decode without additional clocking mechanisms
Polar RZ (Return-to-Zero):
o Uses three voltage levels: positive for '1', negative for '0', and zero as a neutral
state between bits.
o Advantages:
Provides synchronization
Lower DC component compared to NRZ
o Disadvantages:
Requires more bandwidth
Less power efficient
Manchester Encoding:
o A transition occurs in the middle of each bit; binary '1' has a high-to-low
transition, and binary '0' has a low-to-high transition.
o Example: 010011
o Advantages:
Self-clocking (no need for an additional clock signal)
Better synchronization
Improved error detection
o Disadvantages:
Requires higher bandwidth
Differential Manchester Encoding:
o A transition at the start of each bit ensures clock synchronization.
o The encoding is based on transitions rather than absolute voltage levels,
making it more noise-resistant.
o Example: 010011
o Advantages:
Self-synchronizing
Higher immunity to noise and interference
o Disadvantages:
Requires more bandwidth than NRZ
Conclusion
Line encoding is a fundamental aspect of digital communication, ensuring reliable data
transmission. Unipolar encoding is simple but inefficient due to its high DC component and
lack of synchronization. Polar encoding techniques like NRZ-I, Manchester, and Differential
Manchester improve transmission reliability, reduce DC components, and offer better
synchronization. The choice of encoding depends on factors such as bandwidth efficiency,
synchronization requirements, and noise resistance.
References
1. TutorialsPoint. (n.d.). "Line Encoding Techniques." : [Link]
2. GeeksforGeeks. (n.d.) "Data Encoding in Computer Networks." :
[Link]
3. StudyTonight. (n.d.). “Line Coding in Digital Communication” :
[Link]