SlideShare a Scribd company logo
1 of 64
4123702
Data Communications System
By
Ajarn Preecha Pangsuban
Chapter 4 – Digital Transmission
4123702 Data Communications System @YRU 3
Digital Transmission
 Methods to transmit data digitally

Line coding

Block coding

Sampling
 Transmission modes

Parallel

Serial

Synchronous

Asynchronous
4123702 Data Communications System @YRU 4
Digital Signals
 Digital – have a limited number of defined values
 Use binary (0s and 1s) to encode information
 Less affected by interference (noise); fewer errors
4123702 Data Communications System @YRU 5
4.1 Line Coding
 Process of converting binary data to a digital signal
4123702 Data Communications System @YRU 6
Line Coding Characteristics
 Signal Level versus Data Level
 Pulse Rate versus Bit Rate
 DC Components
 Self-Synchronization
4123702 Data Communications System @YRU 7
Signal Level versus Data Level
 Signal level – number of different values allowed in a signal
 Data level – number of symbols used to represent data
b.Three signal levels, two data levels
4123702 Data Communications System @YRU 8
Pulse Rate versus Bit Rate
 Pulse rate – defines number of pulses per second

Pulse – minimum amount of time required to transmit
a symbol
 Bit rate – defines number of bits per second
Bit rate = Pulse rate × log 2 L
When L is the number of data level of the signal
4123702 Data Communications System @YRU 9
Example 1Example 1
A signal has two data levels with a pulse duration of
1 ms. We calculate the pulse rate and bit rate as
follows:
Pulse Rate = = 1000 pulses/s
Bit Rate = Pulse Rate × log2 L
= 1000 × log2 2 = 1000 bps
3
101
1
−
×
4123702 Data Communications System @YRU 10
Example 2Example 2
A signal has four data levels with a pulse duration of
1 ms. We calculate the pulse rate and bit rate as
follows:
Pulse Rate = = 1000 pulses/s
Bit Rate = Pulse Rate × log2 L
= 1000 × log2 4 = 2000 bps
3
101
1
−
×
4123702 Data Communications System @YRU 11
DC Components
 Residual direct-current (dc) components or zero
frequencies are undesirable

Some systems do not allow passage of a dc
component (such as a transformer); may distort the
signal and create output errors

DC component is extra energy residing on the line
and is useless
4123702 Data Communications System @YRU 12
DC Component
4123702 Data Communications System @YRU 13
Self-Synchronization
 Digital signal includes timing information in the data being
transmitted to prevent misinterpretation
Figure 4.16 Lack of synchronization
4123702 Data Communications System @YRU 14
Example 3Example 3
In a digital transmission, the receiver clock is 0.1
percent faster than the sender clock. How many extra
bits per second does the receiver receive if the data rate
is 1 Kbps? How many if the data rate is 1 Mbps?
SolutionSolution
At 1 Kbps:
1000 bits sent 1001 bits received1 extra bps
At 1 Mbps:
1,000,000 bits sent 1,001,000 bits received1000 extra bps
4123702 Data Communications System @YRU 15
Line Coding Schemes
4123702 Data Communications System @YRU 16
Unipolar
 Simplest method; inexpensive
 Uses only one voltage level
 Polarity (+ or -) is usually assigned to binary 1;
a 0 is represented by zero voltage
4123702 Data Communications System @YRU 17
Unipolar
 Potential problems:

DC component

Lack of synchronization
4123702 Data Communications System @YRU 18
Polar
 Uses two voltage levels, one positive and one
negative
 Alleviates DC component
 Variations

Nonreturn to zero (NRZ)

Return to zero (RZ)

Manchester

Differential Manchester
4123702 Data Communications System @YRU 19
Nonreturn to Zero (NRZ)
 Value of signal is always positive or negative
 NRZ-L (NRZ-Level)

Signal level depends on bit represented; positive
usually means 0, negative usually means 1

Problem : synchronization of long streams of 0s or 1s
 NRZ-I (NRZ-Invert)

Inversion of voltage represents a 1 bit

0 bit represented by no change

Allows for synchronization
4123702 Data Communications System @YRU 20
NRZ-L and NRZ-I Encoding
4123702 Data Communications System @YRU 21
Return to Zero (RZ)
 In NRZ-I, long strings of 0s may still be a problem
 May include synchronization as part of the signal
for both 1s and 0s
 How?

Must include a signal change during each bit

Uses three values: positive, negative, and zero

1 bit represented by positive-to-zero

0 bit represented by negative-to-zero
4123702 Data Communications System @YRU 22
RZ Encoding
4123702 Data Communications System @YRU 23
RZ Encoding
 Disadvantage

Requires two signal changes to encode each bit;
more bandwidth necessary
4123702 Data Communications System @YRU 24
Manchester
 Uses an inversion at the middle of each bit
interval for both synchronization and bit
representation
 Negative-to-positive represents binary 1
 Positive-to-negative represents binary 0
 Achieves same level of synchronization with only
two levels of amplitude
4123702 Data Communications System @YRU 25
Manchester Encoding
4123702 Data Communications System @YRU 26
Differential Manchester
 Inversion at middle of bit interval is used for
synchronization
 Presence or absence of additional transition at
beginning of interval identifies the bit
 Transition means binary 0; no transition means 1
 Requires two signal changes to represent binary
0 but only one to represent 1
4123702 Data Communications System @YRU 27
Differential Manchester
4123702 Data Communications System @YRU 28
Bipolar Encoding
 Uses three voltage levels: positive, negative, and
zero
 Zero level represents binary 0; 1s are represented
with alternating positive and negative voltages,
even when the 1 bits are not consecutive
 Two schemes

Alternate mark inversion (AMI)

Bipolar n-zero substitution (BnZS)
4123702 Data Communications System @YRU 29
Bipolar AMI
 Neutral, zero voltage represents binary 0
 Binary 1s represented by alternating positive and negative
voltages
4123702 Data Communications System @YRU 30
Bipolar n-zero substitution (BnZS)
 Solves problem of synchronizing sequential 0s,
often occurring in long-distance transmission
 If n consecutive zeros occur, some of the bits in
those n bits become positive or negative
 Substitution violates rules of AMI in a manner that
receiver knows the bits are actually 0s and not 1s
4123702 Data Communications System @YRU 31
Other Schemes
 2B1Q (two binary, one quaternary) uses four
voltage levels

One pulse can represent 2 bits; more efficient
4123702 Data Communications System @YRU 32
Other Schemes
 MLT-3 (multi-line transmission, three level) – similar to
NRZ-I using three levels of signals; signal transitions
occur at beginning of 1 bit, no transition at beginning of 0
4123702 Data Communications System @YRU 33
4.2 Block Coding
 Coding method to ensure synchronization and
detection of errors
 Three steps: division, substitution, and line
coding
4123702 Data Communications System @YRU 34
Steps in Transformation
Step 1
Step 2
Step 3
4123702 Data Communications System @YRU 35
Transformation Steps
 Step 1: bit stream is divided into groups of m bits
 Step 2: substitute an m-bit code for an n-bit group

Codes with no more than three consecutive 0s or 1s
are used to achieve synchronization

Since only a subset of blocks are used, if one or
more bits are changed and an invalid code is
received, a receiver can easily detect the error
 Step 3: line encoding scheme is then used to
create the signal
4123702 Data Communications System @YRU 36
Common Block Codes
 4B/5B – every 4 bits of data is encoded into a 5-
bit code; NRZ-1 is usually used for line coding
 8B/10B – group of 8 bits of data is substituted by
a 10-bit code
 8B/6T – each 8-bit group is substituted with a six-
symbol code; uses less bandwidth since three
signal levels may be used
4123702 Data Communications System @YRU 37
Figure 4.16 Substitution in block coding
4123702 Data Communications System @YRU 38
Table 4.1 4B/5B encoding
Data Code Data Code
0000 1111011110 1000 1001010010
0001 0100101001 1001 1001110011
0010 1010010100 1010 1011010110
0011 1010110101 1011 1011110111
0100 0101001010 1100 1101011010
0101 0101101011 1101 1101111011
0110 0111001110 1110 1110011100
0111 0111101111 1111 1110111101
4123702 Data Communications System @YRU 39
Table 4.1 4B/5B encoding (Continued)
Data Code
Q (Quiet) 0000000000
I (Idle) 1111111111
H (Halt) 0010000100
J (start delimiter) 1100011000
K (start delimiter) 1000110001
T (end delimiter) 0110101101
S (Set) 1100111001
R (Reset) 0011100111
4123702 Data Communications System @YRU 40
Figure 4.17 Example of 8B/6T encoding
4123702 Data Communications System @YRU 41
4.3 Sampling
 Analog data must often be converted to digital
format (ex: long-distance services, audio)
 Sampling is process of obtaining amplitudes of a
signal at regular intervals
4123702 Data Communications System @YRU 42
Pulse Amplitude Modulation (PAM)
 Analog signal’s amplitude is sampled at regular intervals;
result is a series of pulses based on the sampled data
 Pulse Coded Modulation (PCM) is then used to make the
signal digital
4123702 Data Communications System @YRU 43
Pulse amplitude modulation has somePulse amplitude modulation has some
applications, but it is not used by itselfapplications, but it is not used by itself
in data communication. However, it isin data communication. However, it is
the first step in another very popularthe first step in another very popular
conversion method calledconversion method called
pulse code modulation.pulse code modulation.
Note:Note:
4123702 Data Communications System @YRU 44
Pulse Coded Modulation (PCM)
 First quantizes PAM pulses; an integral value in a
specific range to sampled instances is assigned
 Each value is then translated to its 7-bit binary
equivalent
 Binary digits are transformed into a digital signal
using line coding
4123702 Data Communications System @YRU 45
Figure 4.19 Quantized PAM signal
4123702 Data Communications System @YRU 46
Figure 4.20 Quantizing by using sign and magnitude
4123702 Data Communications System @YRU 47
Figure 4.21 PCM
4123702 Data Communications System @YRU 48
Digitization of an Analog Signal
4123702 Data Communications System @YRU 49
Sampling Rate: Nyquist Theorem
 Accuracy of digital reproduction of a signal
depends on number of samples
 Nyquist theorem: number of samples needed to
adequately represent an analog signal is equal to
twice the highest frequency of the original signal
4123702 Data Communications System @YRU 50
According to the Nyquist theorem, theAccording to the Nyquist theorem, the
sampling rate must be at least 2 timessampling rate must be at least 2 times
the highest frequency.the highest frequency.
Note:Note:
4123702 Data Communications System @YRU 51
Figure 4.23 Nyquist theorem
4123702 Data Communications System @YRU 52
Note that we can always change aNote that we can always change a
band-pass signal to a low-pass signalband-pass signal to a low-pass signal
before sampling. In this case, thebefore sampling. In this case, the
sampling rate is twice the bandwidth.sampling rate is twice the bandwidth.
Note:Note:
4123702 Data Communications System @YRU 53
Example 4Example 4
What sampling rate is needed for a signal with a
bandwidth of 10,000 Hz (1000 to 11,000 Hz)?
SolutionSolution
The sampling rate must be twice the highest frequency
in the signal:
Sampling rate = 2 x (11,000) = 22,000 samples/s
4123702 Data Communications System @YRU 54
Example 5 (How many bit per sample)Example 5 (How many bit per sample)
A signal is sampled. Each sample requires at least 12
levels of precision (+0 to +5 and -0 to -5). How many bits
should be sent for each sample?
SolutionSolution
We need 4 bits; 1 bit for the sign and 3 bits for the value.
A 3-bit value can represent 23 = 8 levels (000 to 111),
which is more than what we need. A 2-bit value is not
enough since 22 = 4. A 4-bit value is too much because
24 = 16.
4123702 Data Communications System @YRU 55
Example 6 (Bit rate)Example 6 (Bit rate)
We want to digitize the human voice. What is the bit rate,
assuming 8 bits per sample?
SolutionSolution
The human voice normally contains frequencies from 0 to
4000 Hz.
Sampling rate = 4000 x 2 = 8000 samples/s
Bit rate = sampling rate x number of bits per sample
4123702 Data Communications System @YRU 56
4.4 Transmission Mode
4123702 Data Communications System @YRU 57
Parallel Transmission
 Bits in a group are sent simultaneously, each using a
separate link
 n wires are used to send n bits at one time
 Advantage: speed
 Disadvantage: cost; limited to short distances
4123702 Data Communications System @YRU 58
Serial Transmission
 Transmission of data one bit at a time using only one
single link
 Advantage: reduced cost
 Disadvantage: requires conversion devices
 Methods:

Asynchronous

Synchronous
4123702 Data Communications System @YRU 59
Asynchronous Transmission
 Transfer of data with start and stop bits and a
variable time interval between data units
 Timing is unimportant
 Start bit alerts receiver that new group of data is
arriving
 Stop bit alerts receiver that byte is finished
 Synchronization achieved through start/stop bits
with each byte received
4123702 Data Communications System @YRU 60
Asynchronous Transmission
4123702 Data Communications System @YRU 61
Asynchronous Transmission
 Requires additional overhead (start/stop bits)
 Slower
 Cheap and effective
 Ideal for low-speed communication when gaps
may occur during transmission (ex: keyboard)
4123702 Data Communications System @YRU 62
Synchronous Transmission
4123702 Data Communications System @YRU 63
Synchronous Transmission
 Requires constant timing relationship
 Bit stream is combined into longer frames,
possibly containing multiple bytes
 Any gaps between bursts are filled in with a
special sequence of 0s and 1s indicating idle
 Advantage: speed, no gaps or extra bits
 Byte synchronization accomplished by data link
layer
4123702 Data Communications System @YRU 64
Credits
 All figures obtained from publisher-provided
instructor downloads
Data Communications and Networking, 3rd edition by
Behrouz A. Forouzan. McGraw Hill Publishing, 2004

More Related Content

What's hot (20)

Chapter 7
Chapter 7Chapter 7
Chapter 7
 
PULSE CODE MODULATION (PCM)
PULSE CODE MODULATION (PCM)PULSE CODE MODULATION (PCM)
PULSE CODE MODULATION (PCM)
 
Error control
Error controlError control
Error control
 
Pulse code modulation
Pulse code modulationPulse code modulation
Pulse code modulation
 
Data Communication & Computer Networks : Serial and parellel transmission
Data Communication & Computer Networks : Serial and parellel transmissionData Communication & Computer Networks : Serial and parellel transmission
Data Communication & Computer Networks : Serial and parellel transmission
 
ASk,FSK,PSK
ASk,FSK,PSKASk,FSK,PSK
ASk,FSK,PSK
 
Ch 03
Ch 03Ch 03
Ch 03
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
Digital to Analog conversion
Digital to Analog conversionDigital to Analog conversion
Digital to Analog conversion
 
Pulse modulation
Pulse modulationPulse modulation
Pulse modulation
 
Channel capacity
Channel capacityChannel capacity
Channel capacity
 
Ch 06
Ch 06Ch 06
Ch 06
 
4.4 diversity combining techniques
4.4   diversity combining techniques4.4   diversity combining techniques
4.4 diversity combining techniques
 
Data Communication & Computer network: Channel capacity
Data Communication & Computer network: Channel capacityData Communication & Computer network: Channel capacity
Data Communication & Computer network: Channel capacity
 
17 SONET/SDH
17 SONET/SDH17 SONET/SDH
17 SONET/SDH
 
Data link layer
Data link layer Data link layer
Data link layer
 
Sonet (synchronous optical networking )
Sonet (synchronous optical networking )Sonet (synchronous optical networking )
Sonet (synchronous optical networking )
 
Ch2 network models
Ch2 network modelsCh2 network models
Ch2 network models
 
Analog and Digital Transmission
Analog and Digital TransmissionAnalog and Digital Transmission
Analog and Digital Transmission
 
Frequency Division Multiple Access (FDMA)
Frequency Division Multiple Access (FDMA)Frequency Division Multiple Access (FDMA)
Frequency Division Multiple Access (FDMA)
 

Similar to Ch4 digital transmission

Similar to Ch4 digital transmission (20)

ch04-digital-transmission.ppt
ch04-digital-transmission.pptch04-digital-transmission.ppt
ch04-digital-transmission.ppt
 
Multi level multi transition
Multi level multi transitionMulti level multi transition
Multi level multi transition
 
Lecture 08
Lecture 08Lecture 08
Lecture 08
 
Chapter2-PhysicalLayer.ppt
Chapter2-PhysicalLayer.pptChapter2-PhysicalLayer.ppt
Chapter2-PhysicalLayer.ppt
 
04 digital transmission
04 digital transmission04 digital transmission
04 digital transmission
 
lec5_13.pptx
lec5_13.pptxlec5_13.pptx
lec5_13.pptx
 
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
 
Ch4 1 v1
Ch4 1 v1Ch4 1 v1
Ch4 1 v1
 
Data Communication And Networking - DIGITAL TRANSMISSION
Data Communication And Networking - DIGITAL TRANSMISSIONData Communication And Networking - DIGITAL TRANSMISSION
Data Communication And Networking - DIGITAL TRANSMISSION
 
Cs8591 Computer Networks
Cs8591 Computer NetworksCs8591 Computer Networks
Cs8591 Computer Networks
 
Presentation9
Presentation9Presentation9
Presentation9
 
Ch4 Data communication and networking by neha g. kurale
Ch4 Data communication and networking by neha g. kuraleCh4 Data communication and networking by neha g. kurale
Ch4 Data communication and networking by neha g. kurale
 
1 PCM & Encoding
1  PCM & Encoding1  PCM & Encoding
1 PCM & Encoding
 
Line coding Tec hniques.pptx
Line coding Tec                 hniques.pptxLine coding Tec                 hniques.pptx
Line coding Tec hniques.pptx
 
Binary to digital encoding tbs 301
Binary to digital encoding tbs 301Binary to digital encoding tbs 301
Binary to digital encoding tbs 301
 
Data communications 4 1
Data communications 4 1Data communications 4 1
Data communications 4 1
 
Ch04
Ch04Ch04
Ch04
 
Meeting w10 chapter 3 part 3
Meeting w10   chapter 3 part 3Meeting w10   chapter 3 part 3
Meeting w10 chapter 3 part 3
 
komdat5
komdat5komdat5
komdat5
 
05 signal encodingtechniques
05 signal encodingtechniques05 signal encodingtechniques
05 signal encodingtechniques
 

Recently uploaded

_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonJericReyAuditor
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 

Recently uploaded (20)

_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lesson
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 

Ch4 digital transmission

  • 2. Chapter 4 – Digital Transmission
  • 3. 4123702 Data Communications System @YRU 3 Digital Transmission  Methods to transmit data digitally  Line coding  Block coding  Sampling  Transmission modes  Parallel  Serial  Synchronous  Asynchronous
  • 4. 4123702 Data Communications System @YRU 4 Digital Signals  Digital – have a limited number of defined values  Use binary (0s and 1s) to encode information  Less affected by interference (noise); fewer errors
  • 5. 4123702 Data Communications System @YRU 5 4.1 Line Coding  Process of converting binary data to a digital signal
  • 6. 4123702 Data Communications System @YRU 6 Line Coding Characteristics  Signal Level versus Data Level  Pulse Rate versus Bit Rate  DC Components  Self-Synchronization
  • 7. 4123702 Data Communications System @YRU 7 Signal Level versus Data Level  Signal level – number of different values allowed in a signal  Data level – number of symbols used to represent data b.Three signal levels, two data levels
  • 8. 4123702 Data Communications System @YRU 8 Pulse Rate versus Bit Rate  Pulse rate – defines number of pulses per second  Pulse – minimum amount of time required to transmit a symbol  Bit rate – defines number of bits per second Bit rate = Pulse rate × log 2 L When L is the number of data level of the signal
  • 9. 4123702 Data Communications System @YRU 9 Example 1Example 1 A signal has two data levels with a pulse duration of 1 ms. We calculate the pulse rate and bit rate as follows: Pulse Rate = = 1000 pulses/s Bit Rate = Pulse Rate × log2 L = 1000 × log2 2 = 1000 bps 3 101 1 − ×
  • 10. 4123702 Data Communications System @YRU 10 Example 2Example 2 A signal has four data levels with a pulse duration of 1 ms. We calculate the pulse rate and bit rate as follows: Pulse Rate = = 1000 pulses/s Bit Rate = Pulse Rate × log2 L = 1000 × log2 4 = 2000 bps 3 101 1 − ×
  • 11. 4123702 Data Communications System @YRU 11 DC Components  Residual direct-current (dc) components or zero frequencies are undesirable  Some systems do not allow passage of a dc component (such as a transformer); may distort the signal and create output errors  DC component is extra energy residing on the line and is useless
  • 12. 4123702 Data Communications System @YRU 12 DC Component
  • 13. 4123702 Data Communications System @YRU 13 Self-Synchronization  Digital signal includes timing information in the data being transmitted to prevent misinterpretation Figure 4.16 Lack of synchronization
  • 14. 4123702 Data Communications System @YRU 14 Example 3Example 3 In a digital transmission, the receiver clock is 0.1 percent faster than the sender clock. How many extra bits per second does the receiver receive if the data rate is 1 Kbps? How many if the data rate is 1 Mbps? SolutionSolution At 1 Kbps: 1000 bits sent 1001 bits received1 extra bps At 1 Mbps: 1,000,000 bits sent 1,001,000 bits received1000 extra bps
  • 15. 4123702 Data Communications System @YRU 15 Line Coding Schemes
  • 16. 4123702 Data Communications System @YRU 16 Unipolar  Simplest method; inexpensive  Uses only one voltage level  Polarity (+ or -) is usually assigned to binary 1; a 0 is represented by zero voltage
  • 17. 4123702 Data Communications System @YRU 17 Unipolar  Potential problems:  DC component  Lack of synchronization
  • 18. 4123702 Data Communications System @YRU 18 Polar  Uses two voltage levels, one positive and one negative  Alleviates DC component  Variations  Nonreturn to zero (NRZ)  Return to zero (RZ)  Manchester  Differential Manchester
  • 19. 4123702 Data Communications System @YRU 19 Nonreturn to Zero (NRZ)  Value of signal is always positive or negative  NRZ-L (NRZ-Level)  Signal level depends on bit represented; positive usually means 0, negative usually means 1  Problem : synchronization of long streams of 0s or 1s  NRZ-I (NRZ-Invert)  Inversion of voltage represents a 1 bit  0 bit represented by no change  Allows for synchronization
  • 20. 4123702 Data Communications System @YRU 20 NRZ-L and NRZ-I Encoding
  • 21. 4123702 Data Communications System @YRU 21 Return to Zero (RZ)  In NRZ-I, long strings of 0s may still be a problem  May include synchronization as part of the signal for both 1s and 0s  How?  Must include a signal change during each bit  Uses three values: positive, negative, and zero  1 bit represented by positive-to-zero  0 bit represented by negative-to-zero
  • 22. 4123702 Data Communications System @YRU 22 RZ Encoding
  • 23. 4123702 Data Communications System @YRU 23 RZ Encoding  Disadvantage  Requires two signal changes to encode each bit; more bandwidth necessary
  • 24. 4123702 Data Communications System @YRU 24 Manchester  Uses an inversion at the middle of each bit interval for both synchronization and bit representation  Negative-to-positive represents binary 1  Positive-to-negative represents binary 0  Achieves same level of synchronization with only two levels of amplitude
  • 25. 4123702 Data Communications System @YRU 25 Manchester Encoding
  • 26. 4123702 Data Communications System @YRU 26 Differential Manchester  Inversion at middle of bit interval is used for synchronization  Presence or absence of additional transition at beginning of interval identifies the bit  Transition means binary 0; no transition means 1  Requires two signal changes to represent binary 0 but only one to represent 1
  • 27. 4123702 Data Communications System @YRU 27 Differential Manchester
  • 28. 4123702 Data Communications System @YRU 28 Bipolar Encoding  Uses three voltage levels: positive, negative, and zero  Zero level represents binary 0; 1s are represented with alternating positive and negative voltages, even when the 1 bits are not consecutive  Two schemes  Alternate mark inversion (AMI)  Bipolar n-zero substitution (BnZS)
  • 29. 4123702 Data Communications System @YRU 29 Bipolar AMI  Neutral, zero voltage represents binary 0  Binary 1s represented by alternating positive and negative voltages
  • 30. 4123702 Data Communications System @YRU 30 Bipolar n-zero substitution (BnZS)  Solves problem of synchronizing sequential 0s, often occurring in long-distance transmission  If n consecutive zeros occur, some of the bits in those n bits become positive or negative  Substitution violates rules of AMI in a manner that receiver knows the bits are actually 0s and not 1s
  • 31. 4123702 Data Communications System @YRU 31 Other Schemes  2B1Q (two binary, one quaternary) uses four voltage levels  One pulse can represent 2 bits; more efficient
  • 32. 4123702 Data Communications System @YRU 32 Other Schemes  MLT-3 (multi-line transmission, three level) – similar to NRZ-I using three levels of signals; signal transitions occur at beginning of 1 bit, no transition at beginning of 0
  • 33. 4123702 Data Communications System @YRU 33 4.2 Block Coding  Coding method to ensure synchronization and detection of errors  Three steps: division, substitution, and line coding
  • 34. 4123702 Data Communications System @YRU 34 Steps in Transformation Step 1 Step 2 Step 3
  • 35. 4123702 Data Communications System @YRU 35 Transformation Steps  Step 1: bit stream is divided into groups of m bits  Step 2: substitute an m-bit code for an n-bit group  Codes with no more than three consecutive 0s or 1s are used to achieve synchronization  Since only a subset of blocks are used, if one or more bits are changed and an invalid code is received, a receiver can easily detect the error  Step 3: line encoding scheme is then used to create the signal
  • 36. 4123702 Data Communications System @YRU 36 Common Block Codes  4B/5B – every 4 bits of data is encoded into a 5- bit code; NRZ-1 is usually used for line coding  8B/10B – group of 8 bits of data is substituted by a 10-bit code  8B/6T – each 8-bit group is substituted with a six- symbol code; uses less bandwidth since three signal levels may be used
  • 37. 4123702 Data Communications System @YRU 37 Figure 4.16 Substitution in block coding
  • 38. 4123702 Data Communications System @YRU 38 Table 4.1 4B/5B encoding Data Code Data Code 0000 1111011110 1000 1001010010 0001 0100101001 1001 1001110011 0010 1010010100 1010 1011010110 0011 1010110101 1011 1011110111 0100 0101001010 1100 1101011010 0101 0101101011 1101 1101111011 0110 0111001110 1110 1110011100 0111 0111101111 1111 1110111101
  • 39. 4123702 Data Communications System @YRU 39 Table 4.1 4B/5B encoding (Continued) Data Code Q (Quiet) 0000000000 I (Idle) 1111111111 H (Halt) 0010000100 J (start delimiter) 1100011000 K (start delimiter) 1000110001 T (end delimiter) 0110101101 S (Set) 1100111001 R (Reset) 0011100111
  • 40. 4123702 Data Communications System @YRU 40 Figure 4.17 Example of 8B/6T encoding
  • 41. 4123702 Data Communications System @YRU 41 4.3 Sampling  Analog data must often be converted to digital format (ex: long-distance services, audio)  Sampling is process of obtaining amplitudes of a signal at regular intervals
  • 42. 4123702 Data Communications System @YRU 42 Pulse Amplitude Modulation (PAM)  Analog signal’s amplitude is sampled at regular intervals; result is a series of pulses based on the sampled data  Pulse Coded Modulation (PCM) is then used to make the signal digital
  • 43. 4123702 Data Communications System @YRU 43 Pulse amplitude modulation has somePulse amplitude modulation has some applications, but it is not used by itselfapplications, but it is not used by itself in data communication. However, it isin data communication. However, it is the first step in another very popularthe first step in another very popular conversion method calledconversion method called pulse code modulation.pulse code modulation. Note:Note:
  • 44. 4123702 Data Communications System @YRU 44 Pulse Coded Modulation (PCM)  First quantizes PAM pulses; an integral value in a specific range to sampled instances is assigned  Each value is then translated to its 7-bit binary equivalent  Binary digits are transformed into a digital signal using line coding
  • 45. 4123702 Data Communications System @YRU 45 Figure 4.19 Quantized PAM signal
  • 46. 4123702 Data Communications System @YRU 46 Figure 4.20 Quantizing by using sign and magnitude
  • 47. 4123702 Data Communications System @YRU 47 Figure 4.21 PCM
  • 48. 4123702 Data Communications System @YRU 48 Digitization of an Analog Signal
  • 49. 4123702 Data Communications System @YRU 49 Sampling Rate: Nyquist Theorem  Accuracy of digital reproduction of a signal depends on number of samples  Nyquist theorem: number of samples needed to adequately represent an analog signal is equal to twice the highest frequency of the original signal
  • 50. 4123702 Data Communications System @YRU 50 According to the Nyquist theorem, theAccording to the Nyquist theorem, the sampling rate must be at least 2 timessampling rate must be at least 2 times the highest frequency.the highest frequency. Note:Note:
  • 51. 4123702 Data Communications System @YRU 51 Figure 4.23 Nyquist theorem
  • 52. 4123702 Data Communications System @YRU 52 Note that we can always change aNote that we can always change a band-pass signal to a low-pass signalband-pass signal to a low-pass signal before sampling. In this case, thebefore sampling. In this case, the sampling rate is twice the bandwidth.sampling rate is twice the bandwidth. Note:Note:
  • 53. 4123702 Data Communications System @YRU 53 Example 4Example 4 What sampling rate is needed for a signal with a bandwidth of 10,000 Hz (1000 to 11,000 Hz)? SolutionSolution The sampling rate must be twice the highest frequency in the signal: Sampling rate = 2 x (11,000) = 22,000 samples/s
  • 54. 4123702 Data Communications System @YRU 54 Example 5 (How many bit per sample)Example 5 (How many bit per sample) A signal is sampled. Each sample requires at least 12 levels of precision (+0 to +5 and -0 to -5). How many bits should be sent for each sample? SolutionSolution We need 4 bits; 1 bit for the sign and 3 bits for the value. A 3-bit value can represent 23 = 8 levels (000 to 111), which is more than what we need. A 2-bit value is not enough since 22 = 4. A 4-bit value is too much because 24 = 16.
  • 55. 4123702 Data Communications System @YRU 55 Example 6 (Bit rate)Example 6 (Bit rate) We want to digitize the human voice. What is the bit rate, assuming 8 bits per sample? SolutionSolution The human voice normally contains frequencies from 0 to 4000 Hz. Sampling rate = 4000 x 2 = 8000 samples/s Bit rate = sampling rate x number of bits per sample
  • 56. 4123702 Data Communications System @YRU 56 4.4 Transmission Mode
  • 57. 4123702 Data Communications System @YRU 57 Parallel Transmission  Bits in a group are sent simultaneously, each using a separate link  n wires are used to send n bits at one time  Advantage: speed  Disadvantage: cost; limited to short distances
  • 58. 4123702 Data Communications System @YRU 58 Serial Transmission  Transmission of data one bit at a time using only one single link  Advantage: reduced cost  Disadvantage: requires conversion devices  Methods:  Asynchronous  Synchronous
  • 59. 4123702 Data Communications System @YRU 59 Asynchronous Transmission  Transfer of data with start and stop bits and a variable time interval between data units  Timing is unimportant  Start bit alerts receiver that new group of data is arriving  Stop bit alerts receiver that byte is finished  Synchronization achieved through start/stop bits with each byte received
  • 60. 4123702 Data Communications System @YRU 60 Asynchronous Transmission
  • 61. 4123702 Data Communications System @YRU 61 Asynchronous Transmission  Requires additional overhead (start/stop bits)  Slower  Cheap and effective  Ideal for low-speed communication when gaps may occur during transmission (ex: keyboard)
  • 62. 4123702 Data Communications System @YRU 62 Synchronous Transmission
  • 63. 4123702 Data Communications System @YRU 63 Synchronous Transmission  Requires constant timing relationship  Bit stream is combined into longer frames, possibly containing multiple bytes  Any gaps between bursts are filled in with a special sequence of 0s and 1s indicating idle  Advantage: speed, no gaps or extra bits  Byte synchronization accomplished by data link layer
  • 64. 4123702 Data Communications System @YRU 64 Credits  All figures obtained from publisher-provided instructor downloads Data Communications and Networking, 3rd edition by Behrouz A. Forouzan. McGraw Hill Publishing, 2004

Editor's Notes

  1. Transition between voltage, not voltage itself, represents a 1 bit