SlideShare a Scribd company logo
Computer Network
Line Coding Techniques
Line Coding
2
• Converting a string of 1’s and 0’s (digital data) into
a sequence of signals that denote the 1’s and 0’s.
• A data symbol (or element) can consist of a
number of data bits: 1 , 0 or
• 11, 10, 01, ……
• A data symbol can be coded into a single signal
element or multiple signal elements
Need
Errors can be detected easily. Some codes are constructed such that when an error
occurs it can be detected.
There are line encoding techniques that make the transmitted signal “immune” to
noise and interferences.
The more robust and resilient the code, the more complex it is to implement and
the price is often paid in baud rate.
3
Relationship between Data and Signal rate
4
Goal is to increase
the data rate whilst
reducing the baud
rate.
The data rate
defines the
number of bits
sent per sec -
bps. It is often
referred to the
bit rate.
The signal rate is
the number of
signal elements
sent in a second
and is measured in
bauds. It is also
referred to as the
modulation rate.
Line Coding Schemes
Line Coding Schemes
Unipolar
NRZ
Polar
NRZ RZ
Bi phase
Manchester
Manchester
Differential
Manchester
Bipolar
AMI
Pseudoternary
Multilevel
2B/1Q
8B/6T
4D-PAM5
Multi
transition
MLT-3
5
https://www.youtube.com/watch?v=kDptDPGhzJE
Unipolar Scheme-NRZ
6
Uses only one
signal level
All signal levels are on one side of the time axis - either above or below.
Eg: NRZ - Non Return to Zero scheme
In NRZ, signal level does not return to zero during a symbol transmission.
Polar- NRZ
7
• The voltages are on both sides of the time axis.
• Polar NRZ scheme can be implemented with two voltages.
• E.g. +V for 1 and -V for 0.
• There are two versions:
• NZR - Level (NRZ-L) - positive voltage for one symbol and negative for the other
• NRZ - Inversion (NRZ-I) - the change or lack of change in polarity determines the value of a symbol.
E.g. a “1” symbol inverts the polarity a “0” does not.
Polar-RZ
8
• The Return to Zero (RZ) scheme uses three voltage values. +, 0, -.
• Each symbol has a transition in the middle.
• Either from high to zero or from low to zero.
• This scheme has more signal transitions (two per symbol) and therefore requires a
wider bandwidth.
Bipolar- Bi phase Manchester
9
• Manchester coding consists of combining the NRZ-L and RZ schemes. Every symbol
has a level transition in the middle: from high to low or low to high. Uses only two
voltage levels.
Bipolar - Differential Manchester
10
• Differential Manchester coding consists of combining the NRZ-I and RZ schemes.
• Every symbol has a level transition in the middle. But the level at the beginning of the
symbol is determined by the symbol value.
• One symbol causes a level change the other does not.
In Manchester and
differential Manchester
encoding, the transition
at the middle of the bit
is used for
synchronization.
Bipolar – AMI and Pseudoternary
11
• Code uses 3 voltage levels: - +, 0, -, to represent the symbols (note not transitions to zero as in RZ).
• Voltage level for one symbol is at “0” and the other alternates between + and -.
• Bipolar Alternate Mark Inversion (AMI) - the “0” symbol is represented by zero voltage and the “1”
symbol alternates between +V and -V.
Pseudoternary
is the reverse
of AMI.
Multilevel
12
• In these schemes we increase the number of data bits per symbol thereby increasing
the bit rate.
• Since we are dealing with binary data we only have 2 types of data element a 1 or a
0.
• We can combine the 2 data elements into a pattern of “m” elements to create “2m”
symbols.
• If we have L signal levels, we can use “n” signal elements to create Ln signal elements.
Exercise
Problem: What is the Differential Manchester waveform corresponding to the bit
string 1101101
Solution;
The signal level before the first bit is assumed to be high
13
1 1 0 1 1 0 1
Practice Question
Problem: Assume we want to transmit the following binary string 0100001110010:
Show the resulting signal on the one using all line coding techniques
14
Solution
15

More Related Content

Similar to Lec_CodingSchemes.pptx

lec5_13.pptx
lec5_13.pptxlec5_13.pptx
lec5_13.pptx
ShakibAhmed52
 
Data Encoding in Data Communication.pptx
Data Encoding in  Data Communication.pptxData Encoding in  Data Communication.pptx
Data Encoding in Data Communication.pptx
zulhelmanz
 
Line Coding.pptx
Line Coding.pptxLine Coding.pptx
Line Coding.pptx
vishal choudhary
 
Digital Data, Digital Signal | Scrambling Techniques
Digital Data, Digital Signal | Scrambling TechniquesDigital Data, Digital Signal | Scrambling Techniques
Digital Data, Digital Signal | Scrambling Techniques
Biplap Bhattarai
 
Data communications 4 1
Data communications 4 1Data communications 4 1
Data communications 4 1Raymond Pidor
 
Chapter2-PhysicalLayer.ppt
Chapter2-PhysicalLayer.pptChapter2-PhysicalLayer.ppt
Chapter2-PhysicalLayer.ppt
faisalahmed441
 
dataencoding-150701201133-lva1-app6891.pptx
dataencoding-150701201133-lva1-app6891.pptxdataencoding-150701201133-lva1-app6891.pptx
dataencoding-150701201133-lva1-app6891.pptx
AshokRachapalli1
 
Digital to digital
Digital to digitalDigital to digital
Digital to digital
Dr. ABHISHEK K PANDEY
 
Digital Data to Digital Signal Conversion
Digital Data to Digital Signal ConversionDigital Data to Digital Signal Conversion
Digital Data to Digital Signal Conversion
Arafat Hossan
 
Dcn aasignment
Dcn aasignmentDcn aasignment
Data Communication & Computer Networks : Unipolar & Polar coding
Data Communication & Computer Networks : Unipolar & Polar codingData Communication & Computer Networks : Unipolar & Polar coding
Data Communication & Computer Networks : Unipolar & Polar coding
Dr Rajiv Srivastava
 
Line coding
Line codingLine coding
Line coding
SurekhaSunagar
 
line coding techniques, block coding and all type of coding
line coding techniques, block coding and all type of codingline coding techniques, block coding and all type of coding
line coding techniques, block coding and all type of coding
DrZMaryLivinsaProfEC
 
Lec-12-DCN.pptx about digital transmission and conversions
Lec-12-DCN.pptx about digital transmission and conversionsLec-12-DCN.pptx about digital transmission and conversions
Lec-12-DCN.pptx about digital transmission and conversions
az577330
 
Ch05
Ch05Ch05
Line coding Tec hniques.pptx
Line coding Tec                 hniques.pptxLine coding Tec                 hniques.pptx
Line coding Tec hniques.pptx
naveen088888
 
W6_Ch5_Signal Encoding.pdf
W6_Ch5_Signal Encoding.pdfW6_Ch5_Signal Encoding.pdf
W6_Ch5_Signal Encoding.pdf
matom84405
 
Data encoding
Data encodingData encoding
Data encoding
Akash Bhandari
 
Data Communication And Networking - DIGITAL TRANSMISSION
Data Communication And Networking - DIGITAL TRANSMISSIONData Communication And Networking - DIGITAL TRANSMISSION
Data Communication And Networking - DIGITAL TRANSMISSION
Avijeet Negel
 

Similar to Lec_CodingSchemes.pptx (20)

lec5_13.pptx
lec5_13.pptxlec5_13.pptx
lec5_13.pptx
 
Data Encoding in Data Communication.pptx
Data Encoding in  Data Communication.pptxData Encoding in  Data Communication.pptx
Data Encoding in Data Communication.pptx
 
Line Coding.pptx
Line Coding.pptxLine Coding.pptx
Line Coding.pptx
 
Digital Data, Digital Signal | Scrambling Techniques
Digital Data, Digital Signal | Scrambling TechniquesDigital Data, Digital Signal | Scrambling Techniques
Digital Data, Digital Signal | Scrambling Techniques
 
Data communications 4 1
Data communications 4 1Data communications 4 1
Data communications 4 1
 
Chapter2-PhysicalLayer.ppt
Chapter2-PhysicalLayer.pptChapter2-PhysicalLayer.ppt
Chapter2-PhysicalLayer.ppt
 
dataencoding-150701201133-lva1-app6891.pptx
dataencoding-150701201133-lva1-app6891.pptxdataencoding-150701201133-lva1-app6891.pptx
dataencoding-150701201133-lva1-app6891.pptx
 
Lecture 08
Lecture 08Lecture 08
Lecture 08
 
Digital to digital
Digital to digitalDigital to digital
Digital to digital
 
Digital Data to Digital Signal Conversion
Digital Data to Digital Signal ConversionDigital Data to Digital Signal Conversion
Digital Data to Digital Signal Conversion
 
Dcn aasignment
Dcn aasignmentDcn aasignment
Dcn aasignment
 
Data Communication & Computer Networks : Unipolar & Polar coding
Data Communication & Computer Networks : Unipolar & Polar codingData Communication & Computer Networks : Unipolar & Polar coding
Data Communication & Computer Networks : Unipolar & Polar coding
 
Line coding
Line codingLine coding
Line coding
 
line coding techniques, block coding and all type of coding
line coding techniques, block coding and all type of codingline coding techniques, block coding and all type of coding
line coding techniques, block coding and all type of coding
 
Lec-12-DCN.pptx about digital transmission and conversions
Lec-12-DCN.pptx about digital transmission and conversionsLec-12-DCN.pptx about digital transmission and conversions
Lec-12-DCN.pptx about digital transmission and conversions
 
Ch05
Ch05Ch05
Ch05
 
Line coding Tec hniques.pptx
Line coding Tec                 hniques.pptxLine coding Tec                 hniques.pptx
Line coding Tec hniques.pptx
 
W6_Ch5_Signal Encoding.pdf
W6_Ch5_Signal Encoding.pdfW6_Ch5_Signal Encoding.pdf
W6_Ch5_Signal Encoding.pdf
 
Data encoding
Data encodingData encoding
Data encoding
 
Data Communication And Networking - DIGITAL TRANSMISSION
Data Communication And Networking - DIGITAL TRANSMISSIONData Communication And Networking - DIGITAL TRANSMISSION
Data Communication And Networking - DIGITAL TRANSMISSION
 

Recently uploaded

一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
aozcue
 
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
andreassenrolf537
 
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Peter Gallagher
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
aozcue
 
Schematic Diagram MSI MS-7309 - REV 1.0 PDF .pdf
Schematic Diagram MSI MS-7309 - REV 1.0 PDF .pdfSchematic Diagram MSI MS-7309 - REV 1.0 PDF .pdf
Schematic Diagram MSI MS-7309 - REV 1.0 PDF .pdf
nikoloco007
 
LORRAINE ANDREI_LEQUIGAN_GOOGLE CALENDAR
LORRAINE ANDREI_LEQUIGAN_GOOGLE CALENDARLORRAINE ANDREI_LEQUIGAN_GOOGLE CALENDAR
LORRAINE ANDREI_LEQUIGAN_GOOGLE CALENDAR
lorraineandreiamcidl
 
加急办理美国南加州大学毕业证文凭毕业证原版一模一样
加急办理美国南加州大学毕业证文凭毕业证原版一模一样加急办理美国南加州大学毕业证文凭毕业证原版一模一样
加急办理美国南加州大学毕业证文凭毕业证原版一模一样
u0g33km
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
peuce
 

Recently uploaded (8)

一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
 
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
 
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
 
Schematic Diagram MSI MS-7309 - REV 1.0 PDF .pdf
Schematic Diagram MSI MS-7309 - REV 1.0 PDF .pdfSchematic Diagram MSI MS-7309 - REV 1.0 PDF .pdf
Schematic Diagram MSI MS-7309 - REV 1.0 PDF .pdf
 
LORRAINE ANDREI_LEQUIGAN_GOOGLE CALENDAR
LORRAINE ANDREI_LEQUIGAN_GOOGLE CALENDARLORRAINE ANDREI_LEQUIGAN_GOOGLE CALENDAR
LORRAINE ANDREI_LEQUIGAN_GOOGLE CALENDAR
 
加急办理美国南加州大学毕业证文凭毕业证原版一模一样
加急办理美国南加州大学毕业证文凭毕业证原版一模一样加急办理美国南加州大学毕业证文凭毕业证原版一模一样
加急办理美国南加州大学毕业证文凭毕业证原版一模一样
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
 

Lec_CodingSchemes.pptx

  • 2. Line Coding 2 • Converting a string of 1’s and 0’s (digital data) into a sequence of signals that denote the 1’s and 0’s. • A data symbol (or element) can consist of a number of data bits: 1 , 0 or • 11, 10, 01, …… • A data symbol can be coded into a single signal element or multiple signal elements
  • 3. Need Errors can be detected easily. Some codes are constructed such that when an error occurs it can be detected. There are line encoding techniques that make the transmitted signal “immune” to noise and interferences. The more robust and resilient the code, the more complex it is to implement and the price is often paid in baud rate. 3
  • 4. Relationship between Data and Signal rate 4 Goal is to increase the data rate whilst reducing the baud rate. The data rate defines the number of bits sent per sec - bps. It is often referred to the bit rate. The signal rate is the number of signal elements sent in a second and is measured in bauds. It is also referred to as the modulation rate.
  • 5. Line Coding Schemes Line Coding Schemes Unipolar NRZ Polar NRZ RZ Bi phase Manchester Manchester Differential Manchester Bipolar AMI Pseudoternary Multilevel 2B/1Q 8B/6T 4D-PAM5 Multi transition MLT-3 5 https://www.youtube.com/watch?v=kDptDPGhzJE
  • 6. Unipolar Scheme-NRZ 6 Uses only one signal level All signal levels are on one side of the time axis - either above or below. Eg: NRZ - Non Return to Zero scheme In NRZ, signal level does not return to zero during a symbol transmission.
  • 7. Polar- NRZ 7 • The voltages are on both sides of the time axis. • Polar NRZ scheme can be implemented with two voltages. • E.g. +V for 1 and -V for 0. • There are two versions: • NZR - Level (NRZ-L) - positive voltage for one symbol and negative for the other • NRZ - Inversion (NRZ-I) - the change or lack of change in polarity determines the value of a symbol. E.g. a “1” symbol inverts the polarity a “0” does not.
  • 8. Polar-RZ 8 • The Return to Zero (RZ) scheme uses three voltage values. +, 0, -. • Each symbol has a transition in the middle. • Either from high to zero or from low to zero. • This scheme has more signal transitions (two per symbol) and therefore requires a wider bandwidth.
  • 9. Bipolar- Bi phase Manchester 9 • Manchester coding consists of combining the NRZ-L and RZ schemes. Every symbol has a level transition in the middle: from high to low or low to high. Uses only two voltage levels.
  • 10. Bipolar - Differential Manchester 10 • Differential Manchester coding consists of combining the NRZ-I and RZ schemes. • Every symbol has a level transition in the middle. But the level at the beginning of the symbol is determined by the symbol value. • One symbol causes a level change the other does not. In Manchester and differential Manchester encoding, the transition at the middle of the bit is used for synchronization.
  • 11. Bipolar – AMI and Pseudoternary 11 • Code uses 3 voltage levels: - +, 0, -, to represent the symbols (note not transitions to zero as in RZ). • Voltage level for one symbol is at “0” and the other alternates between + and -. • Bipolar Alternate Mark Inversion (AMI) - the “0” symbol is represented by zero voltage and the “1” symbol alternates between +V and -V. Pseudoternary is the reverse of AMI.
  • 12. Multilevel 12 • In these schemes we increase the number of data bits per symbol thereby increasing the bit rate. • Since we are dealing with binary data we only have 2 types of data element a 1 or a 0. • We can combine the 2 data elements into a pattern of “m” elements to create “2m” symbols. • If we have L signal levels, we can use “n” signal elements to create Ln signal elements.
  • 13. Exercise Problem: What is the Differential Manchester waveform corresponding to the bit string 1101101 Solution; The signal level before the first bit is assumed to be high 13 1 1 0 1 1 0 1
  • 14. Practice Question Problem: Assume we want to transmit the following binary string 0100001110010: Show the resulting signal on the one using all line coding techniques 14