Sunteți pe pagina 1din 37

Chapter 4.

Digital Transmission
1.
2.
3.
4.

Spring 2006

Line Coding
Block Coding
Sampling
Transmission Mode

Data Communications, Kwangwoon University

4-1

Line Coding

Spring 2006

Data Communications, Kwangwoon University

4-2

Signal Level vs. Data Level

Spring 2006

Data Communications, Kwangwoon University

4-3

Example
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 = 1/ 10-3= 1000 pulses/s


Bit Rate = Pulse Rate x log2 L = 1000 x log2 2 = 1000 bps

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 = PulseRate x log2 L = 1000 x log2 4 = 2000 bps

Spring 2006

Data Communications, Kwangwoon University

4-4

DC Component

Spring 2006

Data Communications, Kwangwoon University

4-5

Lack of Synchronization

Spring 2006

Data Communications, Kwangwoon University

4-6

Line Coding Schemes

Spring 2006

Data Communications, Kwangwoon University

4-7

Unipolar
One polarity: one level of signal voltage
Simple, but two problems
DC component : It cannot travel through microwave or
transformer
Synchronization : Consecutive 0s and 1s are hard to be
synchronized Separate line for a clock pulse

Spring 2006

Data Communications, Kwangwoon University

4-8

Polar
Two polarity: two levels of voltage
Problem of DC component is alleviated (NRZ,RZ)
or eliminated (Biphaze)

Spring 2006

Data Communications, Kwangwoon University

4-9

NRZ
NRZ-L (Non Return to Zero-Level)
Level of signal is dependent upon the state of the bit

NRZ-I (Non Return to Zero-Invert)


Signal is inverted if a 1 is encountered

Spring 2006

Data Communications, Kwangwoon University

4-10

RZ
Provides synchronization for consecutive 0s/1s
Signal changes during each bit
Three values (+, -, 0) are used
Bit 1: positive-to-zero transition
Bit 0: negative-to-zero transition

Spring 2006

Data Communications, Kwangwoon University

4-11

Biphase
Best existing solution for synchronization
Signal transition during a bit between two polarities
Manchester
Used for Ethernet LAN
Bit 1: negative-to-positive transition
Bit 0: positive-to-negative transition

Differential Manchester
Used for Token-ring LAN
Bit 1: no transition at the beginning of a bit
Bit 0: transition at the beginning of a bit

Spring 2006

Data Communications, Kwangwoon University

4-12

Manchester Encoding

Spring 2006

Data Communications, Kwangwoon University

4-13

Differential Manchster Encoding

Spring 2006

Data Communications, Kwangwoon University

4-14

Bipolar
Three levels of voltage
Bit 0: zero voltage, bit 1: alternating +1/-1
(Note) In RZ, zero voltage has no meaning

Bipolar coding schemes


AMI (Alternate Mark Inversion)
B8ZS (Bipolar 8 Zero Substitution)

Spring 2006

Data Communications, Kwangwoon University

4-15

Bipolar AMI

Bit 1: alternating positive and negative voltages


DC component is zero
Sequence of 1s stays synchronized
Pseudoternary encoding: Bit 0 alternates

Spring 2006

Data Communications, Kwangwoon University

4-16

B8ZS
Used in North America
Updated version of AMI
Synchronization of a long sequence of 0s as well as
1s
Violations (artificial signal changes) within 8 or
more consecutive 0s
Positive+00000000 Positive+000PN0NP
Negative+00000000 Negative+000NP0PN
Spring 2006

Data Communications, Kwangwoon University

4-17

Example: B8ZS Encoding

Spring 2006

Data Communications, Kwangwoon University

4-18

Other Schemes: 2B1Q

Spring 2006

Data Communications, Kwangwoon University

4-19

Other Schemes: MLT-3

Spring 2006

Data Communications, Kwangwoon University

4-20

Block Coding

Spring 2006

Data Communications, Kwangwoon University

4-21

Substitution in Block Coding

Spring 2006

Data Communications, Kwangwoon University

4-22

4B/5B Encoding
Data

Code

Data

Code

0000

11110

1000

10010

0001

01001

1001

10011

0010

10100

1010

10110

0011

10101

1011

10111

0100

01010

1100

11010

0101

01011

1101

11011

0110

01110

1110

11100

0111

01111

1111

11101

Spring 2006

Data Communications, Kwangwoon University

4-23

8B/6T

Spring 2006

Data Communications, Kwangwoon University

4-24

Sampling: Analog-to-Digital Conversion


Analog information (e.g., voice) digital signal
(e.g., 10001011)
Codec(Coder/Decoder): A/D converter

Spring 2006

Data Communications, Kwangwoon University

4-25

PAM
Pulse Amplitude Modulation
Sampling an analog signal: sample & hold
The first step of PCM

Spring 2006

Data Communications, Kwangwoon University

4-26

PCM
Pulse Code Modulation
Four processes to create a complete digital signal

Sampling an analog signal: PAM


Quantization: Assigning integral values
Binary encoding: Translating into binary values
Digital encoding: Digital-to-digital conversion

Used to digitize voice in T-line transmission in


North America

Spring 2006

Data Communications, Kwangwoon University

4-27

Quantized PAM Signal

Spring 2006

Data Communications, Kwangwoon University

4-28

Quantizing by using Sign and Magnitude

Spring 2006

Data Communications, Kwangwoon University

4-29

PCM

Spring 2006

Data Communications, Kwangwoon University

4-30

From Analog Signal to PCM Digital Code

Spring 2006

Data Communications, Kwangwoon University

4-31

Sampling Rate
How many samples are sufficient?
<Nyquist theorem> The sampling rate must be at least
twice the highest frequency
Data rate = sampling rate * bits/sample

Spring 2006

Data Communications, Kwangwoon University

4-32

Transmission Mode

Spring 2006

Data Communications, Kwangwoon University

4-33

Parallel Transmission
Use n wires to send n bits at one time synchronously
Advantage: speed
Disadvantage: cost Limited to short distances

Spring 2006

Data Communications, Kwangwoon University

4-34

Serial Transmission

On communication channel
Advantage: reduced cost
Parallel/serial converter is required
Two ways: asynchronous or synchronous

Spring 2006

Data Communications, Kwangwoon University

4-35

Asynchronous Transmission

Use start bit (0) and stop bits (1s)


A gap between two bytes: idle state or stop bits
It means asynchronous at byte level
Must still be synchronized at bit level
Good for low-speed communications (terminal)

Spring 2006

Data Communications, Kwangwoon University

4-36

Synchronous Transmission

Bit stream is combined into frames


Special sequence of 1/0 between frames: No gap
Timing is important in midstream
Byte synchronization in the data link layer
Advantage: speed high-speed transmission

Spring 2006

Data Communications, Kwangwoon University

4-37

S-ar putea să vă placă și