0% found this document useful (0 votes)
4 views63 pages

dcc2015s1 Lecture02

t

Uploaded by

Ron Shen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views63 pages

dcc2015s1 Lecture02

t

Uploaded by

Ron Shen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 63

Content Outline – Unit 2

 Physical Layer
 Transmission Media
 Transmission Impairments

 Channel capacity of a transmission media


 Line coding techniques

EIE3333 DCC KTLO/EIE/HKPolyU/2015 1


Objectives of Unit 2
 Describe different physical transmission medium and the
impairments during transmission
 Describe the design factors when choosing an appropriate
transmission medium for sending data
 Show how to estimate the maximum possible data rate, i.e.,
the channel capacity, of a communication channel under the
perfect noiseless or noisy environment
 Introduce different line coding techniques for converting the
data into some digital signals suitable for transmission over
the medium

EIE3333 DCC KTLO/EIE/HKPolyU/2015 2


Data Transmission
 Terminology:
 Data transmission occurs between a transmitter & receiver

via some medium


 Data

 Entities that convey meaning

 Signals & signalling

 Electric or electromagnetic representations of data,

physically propagates along medium


 Transmission

 Communication of data by propagation and processing

of signals
EIE3333 DCC KTLO/EIE/HKPolyU/2015 3
Data Transmission

 Source Data:
 Digital data: discrete, e.g., text and integers

 Analog data: continuous, e.g., audio

 Transmitted Signal:
 Digital signal: a sequence of voltage pulses transmitted over a

medium
 Analog signal: a continuously varying electromagnetic wave

EIE3333 DCC KTLO/EIE/HKPolyU/2015 4


Data Transmission
 Four possible combinations
 Analog Transmission

 Analog data, analog signal: Amplitude Modulation (AM), FM,


PM.
 Digital data, analog signal: Amplitude Shift Keying (ASK),
FSK, PSK.

 Digital Transmission
 Digital data, digital signal: NRZ-L, NRZI, Bipolar-AMI, …
 Analog data, digital signal: Pulse Code Modulation (PCM)

EIE3333 DCC KTLO/EIE/HKPolyU/2015 5


Transmission Media
 The physical medium that carries the transmitted signals

EIE3333 DCC KTLO/EIE/HKPolyU/2015 6


Transmission Media
 Transmission Media:
 Guided media - which are those that provide a conduit from one device to
another, include twisted-pair cable, coaxial cable, and fiber-optic cable.
 Unguided media - transport electromagnetic waves without using a
physical conductor. This type of communication is often referred to as
wireless communication.
 Key concerns are data rate and distance

EIE3333 DCC KTLO/EIE/HKPolyU/2015 7


Transmission Media
 Design factors
 Bandwidth

 Higher bandwidth gives higher data rate

 Transmission impairments

 e.g., attenuation

 Interference

 Number of receivers in guided media

 More receivers introduces more attenuation

EIE3333 DCC KTLO/EIE/HKPolyU/2015 8


Transmission Media

EIE3333 DCC KTLO/EIE/HKPolyU/2015 9


Transmission Impairments
 Signal received may differ from signal transmitted causing:
 Analog - degradation of signal quality

 Digital - bit errors

 Most significant impairments are


 Attenuation

 Distortion

 Noise

EIE3333 DCC KTLO/EIE/HKPolyU/2015 10


Transmission Impairments
 Attenuation
 Attenuation means a loss of energy where signal strength

falls off with distance


 Depends on medium

 Mainly resistance loss

 Received signal strength must be:

 Strong enough to be detected

 Sufficiently higher than noise to receive without error

 Attenuation varies with frequency

EIE3333 DCC KTLO/EIE/HKPolyU/2015 11


Transmission Impairments
 Solutions to Attenuation
 For the first and second problems, increase strength using
amplifiers/repeaters
 For the third problem, equalize attenuation across a band of
frequencies

EIE3333 DCC KTLO/EIE/HKPolyU/2015 12


Example
Suppose a signal travels through a transmission medium and its
power is reduced to one half. This means that P2 = 0.5 P1. In this
case, the attenuation (loss of power) can be calculated as

A loss of 3 dB (−3 dB) is equivalent to losing one-half the power.

EIE3333 DCC KTLO/EIE/HKPolyU/2015


Transmission Impairments
 Delay distortion
 Propagation velocity varies with frequency

 Hence various frequency components arrive at different

times
 Particularly critical for digital data

 Inter-symbol interference: Parts of one bit spill over into

others

EIE3333 DCC KTLO/EIE/HKPolyU/2015 14


Transmission Impairments
 Delay distortion

EIE3333 DCC KTLO/EIE/HKPolyU/2015 15


Transmission Impairments
 Inter-Symbol Interference (ISI)

EIE3333 DCC KTLO/EIE/HKPolyU/2015 16


Transmission Impairments
 Noise
 Additional signals inserted between transmitter and

receiver

EIE3333 DCC KTLO/EIE/HKPolyU/2015 17


Transmission Impairments
 Thermal Noise
 Due to thermal agitation of electrons

 Uniformly distributed, white noise

 Intermodulation Noise
 Signals that are the sum and difference of original frequencies
sharing a medium
 Crosstalk Noise
 A signal from one line is picked up by another

 Impulse Noise
 Irregular pulses or spikes, e.g., external electromagnetic

interference
 Short duration, high amplitude

 A minor annoyance for analog signals but a major source of error in

digital data
 A noise spike could corrupt many bits 18
Signal to Noise Ratio (SNR)

EIE3333 DCC KTLO/EIE/HKPolyU/2015 19


Channel Capacity
 A very important consideration in data communications is how fast we can
send data, in bits per second, over a channel.
 Channel capacity = Maximum possible data rate on communications

channel

 Channel capacity depends on three factors:


 The bandwidth available
 The level of the signals we use
 The quality of the channel (the level of noise)

EIE3333 DCC KTLO/EIE/HKPolyU/2015 20


Channel Capacity
 Bandwidth
 Bandwidth in hertz (Hz), or cycles per second, refers to the range of
frequencies in a composite signal or the range of frequencies that a
channel can pass
 The bandwidth is different for each type of transmission medium, e.g.
twisted pair (300 kHz), coaxial cable (500 MHz), fiber optics (10 GHz)

 In computer networking, we use the term ”bandwidth” in a different


context, i.e., bandwidth in bits per second (bps), refers to the speed of
bit transmission in a channel or link. 21
Channel Capacity
 Baud rate (signaling rate): number of signal elements per
second on a channel

 Baud rate  bit rate (transmission rate)


 For a binary level, baud rate = bit rate.

 For a multi-level, baud rate < bit rate.

EIE3333 DCC KTLO/EIE/HKPolyU/2015 22


Channel Capacity
 Noiseless Channel - Nyquist Bandwidth
 Nyquist showed that maximum signaling rate is equal to 2

 bandwidth.
 The Nyquist Bitrate is given by

C = 2B log2L bps

where C = bitrate in bps


B = bandwidth in Hz
L = no. of levels per signaling element
EIE3333 DCC KTLO/EIE/HKPolyU/2015 23
Nyquist Formula
 Nyquist formula is used to determine the maximum
information rate for noiseless channel.

 Example: a telephone voice channel has a bandwidth of 4


kHz, what is its bit rate if it is used to transmit binary signals?
[Solution]
bit rate = 2  4000  log22 bps
= 8 kbps.

EIE3333 DCC KTLO/EIE/HKPolyU/2015 24


Nyquist Formula - Example
We need to send 265 kbps over a noiseless channel with a bandwidth of 20
kHz. How many signal levels do we need?

Solution
We can use the Nyquist formula as shown:

Since this result is not a power of 2, we need to either increase the number of
levels or reduce the bit rate. If we have 128 levels, the bit rate is 280 kbps. If
we have 64 levels, the bit rate is 240 kbps.

EIE3333 DCC KTLO/EIE/HKPolyU/2015 25


Channel Capacity
 Noisy Channel - Shannon Capacity Formula

C = B log2(1 + S/N) bps

where C = information rate in bps


B = bandwidth in Hz
S/N = signal to noise ratio
Signal Power
=
Noise Power
EIE3333 DCC KTLO/EIE/HKPolyU/2015 26
Example
Consider an extremely noisy channel in which the value of the signal-to-noise
ratio is almost zero. In other words, the noise is so strong that the signal is faint.
For this channel the capacity C is calculated as

This means that the capacity of this channel is zero regardless of the bandwidth.
In other words, we cannot receive any data through this channel.

EIE3333 DCC KTLO/EIE/HKPolyU/2015 27


Example
We can calculate the theoretical highest bit rate of a regular telephone line.
A telephone line normally has a bandwidth of 3000. The signal-to-noise
ratio is usually 3162. For this channel the capacity is calculated as

This means that the highest bit rate for a telephone line is 34.860 kbps. If we
want to send data faster than this, we can either increase the bandwidth of the
line or improve the signal-to-noise ratio.

EIE3333 DCC KTLO/EIE/HKPolyU/2015 28


Example

The signal-to-noise ratio is often given in decibels. Assume that SNRdB = 36


and the channel bandwidth is 2 MHz. The theoretical channel capacity can be
calculated as

EIE3333 DCC KTLO/EIE/HKPolyU/2015 29


Example
We have a channel with a 1-MHz bandwidth. The SNR for this channel is 63.
What are the appropriate bit rate and signal level?

Solution

First, we use the Shannon formula to find the upper limit.

EIE3333 DCC KTLO/EIE/HKPolyU/2015 30


Example
The Shannon formula gives us 6 Mbps, the upper limit. For better
performance we choose something lower, 4 Mbps, for example. Then we use
the Nyquist formula to find the number of signal levels.

The Shannon capacity gives us the upper limit; the


Nyquist formula tells us how many signal levels we need.

EIE3333 DCC KTLO/EIE/HKPolyU/2015 31


Line Coding Schemes

EIE3333 DCC KTLO/EIE/HKPolyU/2015 32


Unipolar: Non-Return to Zero-
Level (NRZ-L)
 Voltage constant during bit interval
 No transition i.e., no return to zero voltage at the middle of

the bit
 “0”: zero voltage, “1”: positive voltage

EIE3333 DCC KTLO/EIE/HKPolyU/2015 33


Polar: Non-Return to Zero-
Level (NRZ-L)

 In polar schemes, the voltages are on both sides of the time axis
(+ve and –ve)
 Two different voltages for 0 and 1 bits
 Voltage constant during bit interval
 No transition i.e., no return to zero voltage

 “0”: positive voltage, “1”: negative voltage

EIE3333 DCC KTLO/EIE/HKPolyU/2015 34


Polar: Non-Return to Zero,
Inverted (NRZI)
 Non return to zero inverted on ones
 Constant voltage pulse for duration of bit
 Data encoded as presence or absence of signal transition at
beginning of bit time
 Transition denotes binary 1

 Transition: low to high or high to low

 No transition denotes binary 0

EIE3333 DCC KTLO/EIE/HKPolyU/2015 35


Non-Return to Zero, Inverted
(NRZI)
 Example of differential encoding since have
 Data represented by changes rather than levels

 More reliable detection of transition rather than level

 Easy to lose sense of polarity

EIE3333 DCC KTLO/EIE/HKPolyU/2015 36


NRZ Pros & Cons
 Pros
 easy to engineer

 make good use of bandwidth

 Cons
 dc component

 lack of synchronization capability

 Used for magnetic recording


 Not often used for signal transmission

EIE3333 DCC KTLO/EIE/HKPolyU/2015 37


Polar: Return to Zero (RZ)
 In RZ, the signal changes not between bits but during the bit.
 The signal returns to zero in the middle of the bits.
 No DC component.

EIE3333 DCC KTLO/EIE/HKPolyU/2015 38


Bipolar - Alternate Mark
Inversion (Bipolar-AMI)
 Bipolar-AMI
 Zero represented by no line signal

 One represented by positive or negative pulse

 One pulses alternate in polarity

 No loss of sync if a long string of ones (zeros still a problem)


 No net dc component
 Lower bandwidth
 Easy error detection

EIE3333 DCC KTLO/EIE/HKPolyU/2015 39


Pseudoternary
 Pseudoternary
 One represented by absence of line signal

 Zero represented by alternating positive and negative

 Very similar to bipolar-AMI

 Each used in some applications

EIE3333 DCC KTLO/EIE/HKPolyU/2015 40


Bipolar Issues
 Synchronization with long runs of 0’s or 1’s

 Not as efficient as NRZ


 Each signal element only represents one bit

 Receiver distinguishes between three levels: +A, -A, 0

 A 3 level system could represent log23 = 1.58 bits

 Requires approx. 3dB more signal power for same

probability of bit error

EIE3333 DCC KTLO/EIE/HKPolyU/2015 41


Biphase Techniques
 Encoding technique: Biphase
 Manchester encoding
 Differentiated Manchester encoding

EIE3333 DCC KTLO/EIE/HKPolyU/2015 42


Manchester Encoding
 Manchester Encoding
 Has transition in middle of each bit period

 Transition serves as clock and data

 Low to high represents one

 High to low represents zero

 Used by IEEE 802

EIE3333 DCC KTLO/EIE/HKPolyU/2015 43


Manchester Encoding

EIE3333 DCC KTLO/EIE/HKPolyU/2015 44


Differential Manchester
Encoding
 Differential Manchester Encoding
 Midbit transition is clocking only

 Transition at start of bit period representing 0

 No transition at start of bit period representing 1

 This is a differential encoding scheme

 Used by IEEE 802.5

EIE3333 DCC KTLO/EIE/HKPolyU/2015 45


Differential Manchester
Encoding

EIE3333 DCC KTLO/EIE/HKPolyU/2015 46


Biphase Pros and Cons
 Con
 at least one transition per bit time and possibly two

 maximum modulation rate is twice NRZ

 requires more bandwidth

 Pros
 synchronization on mid bit transition (self clocking)

 has no dc component

 has error detection (The absence of an expected

transition can be used to detect errors)

EIE3333 DCC KTLO/EIE/HKPolyU/2015 47


Baud Rate
 A stream of binary
ones at 1 Mbps
 Bit rate = 1Mbps
 Baud rate = ?

EIE3333 DCC KTLO/EIE/HKPolyU/2015 48


Multilevel: 2B1Q
 Two binary, one quaternary (2B1Q)
 It uses data patterns of size 2 and encodes the 2-bit patterns as one signal
element belonging to a four-level signal.
 2B1Q is used in DSL (Digital Subscriber Line).

EIE3333 DCC KTLO/EIE/HKPolyU/2015 49


Multilevel: 8B6T
 Eight binary, six ternary (8B6T).
 To encode 1 pattern of 8-bit as a pattern of six signal elements, where
the signal has three levels (ternary).
 28 = 256 and 36 = 729, there are 729-256=473 redundant signal
elements that provide synchronization and error detection.

EIE3333 DCC KTLO/EIE/HKPolyU/2015 50


EIE3333 DCC KTLO/EIE/HKPolyU/2015 51
EIE3333 DCC KTLO/EIE/HKPolyU/2015 52
Multilevel: 4D-PAM5
 Four-dimensional five-level pulse amplitude modulation.
 The 4D means that data is sent over four wires at the same time.
 It uses 5 voltage levels: -2, -1, 0, +1, +2. Level 0 is used only for forward
error detection.
 Used in Gigabit LANs.

EIE3333 DCC KTLO/EIE/HKPolyU/2015 53


Multitransition: MLT-3
 Multiline transmission, three-level (MLT-3).
 It uses three levels (+V, 0 , -V) and three transition rules to
move between the levels:
 If the next bit is 0, there is no transition

 If the next bit is 1 and the current level is not 0, the next

level is 0.
 If the next bit is 1 and the current level is 0, the next level is

the opposite of the last non-zero level.

EIE3333 DCC KTLO/EIE/HKPolyU/2015 54


Multitransition: MLT-3

EIE3333 DCC KTLO/EIE/HKPolyU/2015 55


Summary of Line Coding

EIE3333 DCC KTLO/EIE/HKPolyU/2015 56


Scrambling
 Scrambling
 Use scrambling to replace sequences that would produce

constant voltage
 These filling sequences must

 Produce enough transitions to sync

 Be recognized by receiver & replaced with original

 Be same length as original

EIE3333 DCC KTLO/EIE/HKPolyU/2015 57


Scrambling
 Design goals
 Have no dc component

 Have no long sequences of zero level line signal

 Have no reduction in data rate

 Give error detection capability

EIE3333 DCC KTLO/EIE/HKPolyU/2015 58


Bipolar with 8-zeros
Substitution (B8ZS)
 B8ZS substitutes eight consecutive zeros with 000VB0VB
 If an octet of all zeros occurs and the last voltage pulse preceding this
octet was positive, then the eight zeros of the octets are encoded as
000+0+
 If an octet of all zeros occurs and the last voltage pulse preceding this

octet was negative, then the eight zeros of the octets are encoded as
000-+0+

EIE3333 DCC KTLO/EIE/HKPolyU/2015 59


High-density bipolar-3 zeros
(HDB3)
 HDB3 substitutes four consecutive zeros with 000V or B00V
depending on the number of nonzero pulses after the last
substitution
 Even: B00V

 Odd: 000V

EIE3333 DCC KTLO/EIE/HKPolyU/2015 60


High-density bipolar-3 zeros
(HDB3)

EIE3333 DCC KTLO/EIE/HKPolyU/2015 61


B8ZS and HDB3

EIE3333 DCC KTLO/EIE/HKPolyU/2015 62


Reading
 B. A. Forouzan, “Data Communications and Networking,” 5th
Edition, McGraw-Hill 2013 (Chapters 3, 4 and 7)

 William Stallings, “Data and Computer Communications,” 9th


Edition, Prentice Hall 2012 (Chapters 3 and 4)

EIE3333 DCC KTLO/EIE/HKPolyU/2015 63

You might also like