Slide Kỹ Thuật Truyền Dữ Liệu
Slide Kỹ Thuật Truyền Dữ Liệu
Digital Transmission
4.1
DIGITAL-TO-DIGITAL CONVERSION
4.2
Line coding and decoding
4.3
Characteristics
Signal Element Versus Data Element
A data element is the smallest entity that represents a piece of information.
A signal element is the shortest unit of a digital signal.
In other words, data elements are what we need to send; Signal elements are what
we can send
r: is the number of data elements carried by each signal element
Data Rate (bit rate) Versus Signal Rate (pulse rate, modulation rate, baud rate)
The signal rate is the number of signal elements sent in 1s
In data communications, we want to increase the data rate N (increase the speed of
transmission) while decreasing the signal rate S (decrease the bandwidth
requirement).
1
S c N
r
c: case factor (between 0 and 1). Chose average value c = ½
4.4
Signal element versus data element
4.5
Characteristics
Baud rate determines the required bandwidth for a digital signal
=> the bandwidth (range of frequencies) is proportional to the signal rate
(baud rate). The minimum bandwidth can be given as:
1
Bmin S c N
r
The maximum data rate if the bandwidth of the channel is given.
Br
N max
c
DC Components: When the voltage level in a digital signal is constant for a while,
The spectrum creates very low frequencies. These frequencies around zero, called
DC components, present problems for a system that cannot pass low frequencies
=> need a scheme with no DC component.
4.6
A signal is carrying data in which one data element is
encoded as one signal element ( r = 1). If the bit rate is
100 kbps, what is the average value of the baud rate if c is
between 0 and 1?
4.7
Effect of lack of synchronization
4.8
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?
4.9
Line coding schemes
4.10
Unipolar NRZ scheme
4.11
Polar NRZ-L and NRZ-I schemes
4.13
RZ scheme
3 Voltage levels: +, -, 0
0 = Transition from negative to zero
1 = Transition from positive to zero
It solves the synchronization problem, DC component problem
It handles both strings of 1s and 0s
Two signal changes for each bit
• More transitions
• Occupies more bandwidth
4.14
Polar biphase: Manchester and
differential Manchester schemes
4.15
Polar biphase: Manchester and
differential Manchester schemes
The inversion at the middle is used for synchronization
0 = Transition at the beginning of bit period
1 = No transition at the beginning of bit period
Disadvantages:
• Complex
• Higher frequency components (as RZ)
4.16
Polar biphase: Manchester and differential Manchester schemes
4.17
Note
4.18
Note
4.19
Note
4.20
Bipolar schemes: AMI and pseudoternary
Advantage
Alternate Mark Inversion (AMI) • No DC component
=> Used for long distance communication • Synchronized only for 1s =>
synchronization problem for a long
sequence of 0s
4.21
Multilevel
Multilevel:
m: length of the data binary pattern
B: binary data
n: the length of the signal pattern
L: number of levels in the signaling
L=2 → B(inary)
L=3 → T(ernary)
L=4 → Q(uaternary)
4.22
Multilevel: 2B1Q scheme
Used in DSL
4.23
Multilevel: 8B6T scheme
- Eight Binary, six Ternary
- Use with 100BASE-4T cable
- Mapping table in Appendix F
-Each signal have weight of 0 or +1 DC value
4.24
Multilevel: 4D-PAM5 scheme
4.25
Multitransition: MLT-3 scheme
3 transition rules:
- Next bit = 0: no transition
- Next bit = 1, current level is not 0: next level = 0
- Next bit =1, current level = 0: next level is
opposite of the last nonzero level
4.26
Summary of line coding schemes
polar
No DC
Worst case
4.27
Block Coding • Synchronization
• Error detection capability
Note
4.28
Block coding concept
Step 1: Division
Step 2: Substitution
Step 3: Combination
4.29
Using block coding 4B/5B with NRZ-I line coding scheme
4.30
Substitution in 4B/5B block coding
4.31
4B/5B mapping codes
4.32
Using block coding 4B/5B with NRZ-I line coding scheme
- 5 bit output has no more than one leading zero (left bit) and no
more than two trailing zeros (right bits)
-Increase the signal rate of NRZ-I (but less than the biphase
scheme)
- Do not solve the DC component problem of NRZ-I
4.33
We need to send data at a 1-Mbps rate. What is the
minimum required bandwidth, using a combination of
4B/5B and NRZ-I or Manchester coding?
4.34
The input stream to a 4B/5B block encoder is
0100-0000-0000-0000-0000-0001.
Answer the following questions:
a. What is the output stream?
b. What is the length of the longest consecutive sequence
of 0s in the input?
c. What is the length of the longest consecutive sequence
of 0s in the output?
4.35
8B/10B block encoding
4.36
AMI used with scrambling
Scrambling:
- Done at the same time as encoding
- Avoid a long sequence of 0s → synchronization
→ suitable for long distance communication
- Two scrambling techniques: B8ZS, HDB3
4.37
Note
4.38
Two cases of B8ZS scrambling technique
4.39
Note
4.40
Different situations in HDB3 scrambling technique
4.41
What is the result of scrambling the sequence
11100000000000 using one of the following
scrambling techniques? Assume that the last non-zero
signal level has been positive.
a. B8ZS
b. HDB3 (The number of non zero pules is odd at
initial time)
4.42
ANALOG-TO-DIGITAL CONVERSION
4.43
Components of PCM encoder
4.44
Three different sampling methods for PCM
4.45
Note
4.46
Nyquist sampling rate for low-pass and bandpass signals
4.47
For an intuitive example of the Nyquist theorem, let us
sample a simple sine wave at three sampling rates: fs = 4f
(2 times the Nyquist rate), fs = 2f (Nyquist rate), and
fs = f (one-half the Nyquist rate). Figure 4.24 shows the
sampling and the subsequent recovery of the signal.
5-49
Consider the revolution of a hand of a clock. The second
hand of a clock has a period of 60 s. According to the
Nyquist theorem, we need to sample the hand every 30 s
(Ts = T/2 or fs = 2f ). The sample points, in order, are 12,
6, 12, 6, 12, and 6. The receiver of the samples cannot tell
if the clock is moving forward or backward. In part b, we
sample at double the Nyquist rate (every 15 s). The
sample points are 12, 3, 6, 9, and 12. The clock is moving
forward. In part c, we sample below the Nyquist rate (Ts =
3/4T or fs = 4/3 f ). The sample points are 12, 9, 6, 3, and
12. Although the clock is moving forward, the receiver
thinks that the clock is moving backward.
4.50
Sampling of a clock with only one hand
4.51
Telephone companies digitize voice by assuming a
maximum frequency of 4000 Hz. The sampling rate
therefore is 8000 samples per second.
4.52
A complex low-pass signal has a bandwidth of 200 kHz.
What is the minimum sampling rate for this signal?
4.53
A complex bandpass signal has a bandwidth of 200 kHz.
What is the minimum sampling rate for this signal?
4.54
Quantization and encoding of a sampled signal
1. Assume original analog
signal has amplitude
between Vmin and Vmax
4.55
The number of quantization levels changes
the signal-to-noise ratio of the signal:
SNRdB = 6.02nb + 1.76 [dB]
nb: number of bits per sample
4.56
A telephone subscriber line must have an SNRdB above
40. What is the minimum number of bits per sample?
4.57
Bit rate = sampling rate * number of bit per sample
= f s* nb
We want to digitize the human voice. What is the bit rate,
assuming 8 bits per sample?
4.58
Components of a PCM decoder
4.59
PCM bandwidth of the signal (low-pass signal)
Bmin = S = c*N*1/r = c * f s* nb * 1/r
= c * 2* B * nb * 1/r
With c=1/2, r = 1
Bmin = B * nb
minimum bandwidth of the digital signal is nb times greater than the
bandwidth of the analog signal.
4.60
We have sampled a low-pass signal with a bandwidth
of 200KHz using 1024 levels of quantization.
a. Calculate the bit rate of the digitized signal.
b. Calculate the SNRdB for this signal.
c. Calculate the PCM bandwidth of this signal.
4.61
The process of delta modulation
4.62
TRANSMISSION MODES
4.63
Data transmission and modes
4.64
Parallel transmission
4.65
Serial transmission
4.66
Asynchronous transmission
- The bit stream is combined into longer “ frames” which may contain
multiple bytes
- Synchronous transmission is faster than asynchronous transmission
=> Used to transmit of data from one computer to another
4.68
Note
4.69
Note
4.70
Chapter 5
Analog Transmission
5.1
5.1 Digital-to-Analog Conversion
o Amplitude shift keying
o Frequency shift keying
o Phase shift keying
o Quadrature amplitude modulation
5.2 Analog-to-Analog Conversion
o Amplitude modulation
o Frequency modulation
o Phase modulation
DIGITAL-TO-ANALOG CONVERSION
5.3
Digital-to-analog conversion
5.4
Types of digital-to-analog conversion
5.5
Baud rate vs bit rate
S = N*1/r [baud]
r the number of data elements carried in one signal element r=log 2L
L: type of signal element (not a level)
An analog signal carries 4 bits per signal element. If
1000 signal elements are sent per second, find the bit
rate.
5.6
An analog signal has a bit rate of 8000 bps and a baud
rate of 1000 baud. How many data elements are
carried by each signal element? How many signal
elements do we need?
5.7
Carrier signal
A carrier signal is a transmitted electromagnetic pulse or
wave on which information can be imposed by varying
the base frequency, phase, or amplitude. This
modification is called modulation.
5.8
Binary amplitude shift keying
5.9
Implementation of the binary ASK
5.10
We have an available bandwidth of 100 kHz which
spans from 200 to 300 kHz. What are the carrier
frequency and the bit rate if we modulated our data by
using ASK with d = 1?
5.11
We normally use full-duplex links with communication in
both directions.
We need to divide the bandwidth into two with two
carrier frequencies.
5.13
We have an available bandwidth of 100 kHz which
spans from 200 to 300 kHz. What should be the carrier
frequencies and the bit rate if we modulated our data
by using FSK with d = 1?
5.14
Implement of BFSK
5.15
We need to send data 3 bits at a time at a bit rate of 3
Mbps. The center frequency is 10 MHz. Calculate the
number of levels (different frequencies), the baud rate,
and the bandwidth (d=0).
5.16
Bandwidth of MFSK
5.17
Binary phase shift keying
Phase-shift keying (PSK): the phase of a transmitted signal is varied
to convey information. There are several methods that can be used to
accomplish PSK.
5.18
Implementation of BPSK
5.19
QPSK and its implementation
5.20
Find the bandwidth for a signal transmitting at 12
Mbps for QPSK. The value of d = 0.
5.21
Concept of a constellation diagram
5.22
Show the constellation diagrams for an BASK (OOK),
BPSK, and QPSK signals.
5.23
Constellation diagrams for some QAMs
5.24
ANALOG TO ANALOG CONVERSION
5.25
Types of analog-to-analog modulation
5.26
Amplitude modulation
27
AM band allocation
28
Frequency modulation
29
FM band allocation
30
Phase modulation
31
PM band allocation
32
Chapter 6
Bandwidth Utilization:
Multiplexing and
Spreading
6.1
Bandwidth utilization is the wise use of
available bandwidth to achieve
specific goals.
6.2
MULTIPLEXING
6.3
Dividing a link into channels
6.4
Categories of multiplexing
6.5
Frequency-division multiplexing
6.6
Note
6.7
FDM process
Each source generates Inside the multiplexer, these similar signals
a signal of a similar
modulates different carrier frequencies
frequency range.
6.8
FDM demultiplexing example
uses a series of filters to decompose the multiplexed signal into its constituent
component signals
6.9
Assume that a voice channel occupies a bandwidth of 4
kHz. We need to combine three voice channels into a link
with a bandwidth of 12 kHz, from 20 to 32 kHz. Show the
configuration, using the frequency domain. Assume there
are no guard bands.
6.10
6.11
Assume that a voice channel occupies a
bandwidth of 4kHz. We need to multiplex 10
voice channels with guard bands of 500Hz
using FDM. Calculate the required bandwidth.
6.12
Five channels, each with a 100-kHz bandwidth, are to be
multiplexed together. What is the minimum bandwidth of
the link if there is a need for a guard band of 10 kHz
between the channels to prevent interference?
6.13
6.14
Four data channels (digital), each transmitting at 1
Mbps, use a satellite channel of 1 MHz. Design an
appropriate configuration, using FDM.
6.15
B = S = N*1/r [baud]; d = 0
6.16
We need to transmit 100 digitized voice
channels (64 kbps) using a pass-band
channel of 200 kHz. What should be the
ratio of bits/Hz (r) if we use no guard band?
6.17
Analog hierarchy
6.18
Wavelength-division multiplexing
6.19
Note
6.20
Prisms in wavelength-division multiplexing and demultiplexing
A prism bends a beam of light based on the angle of incidence and the frequency
6.21
TDM
6.22
Note
6.23
Synchronous time-division multiplexing
6.24
Note
6.25
6.26
Given that the data rate for each input connection is 1
kbps. If 1 bit at a time is multiplexed (a unit is 1 bit), what
is the duration of (a) each input slot, (b) each output slot,
and (c) each frame?
6.27
6.28
A synchronous TDM with a data stream for each input
and one data stream for the output. The unit of data is 8
bits. Find (a) the input slot duration, (b) the output slot
duration, (c) the output bit rate, and (d) the output frame
rate.
6.29
Interleaving
6.30
Four channels are multiplexed using TDM. If each
channel sends 100 bytes/s and we multiplex 1 byte per
channel, show the frame traveling on the link, the size of
the frame, the duration of a frame, the frame rate, and
the bit rate for the link.
6.31
6.32
A multiplexer combines four 100-kbps channels using a
time slot of 2 bits. Show the output with four arbitrary
inputs. What is the frame duration? What is the frame
rate? What is the output bit rate? What is the output bit
duration?
6.33
6.34
Empty slots
one of the input lines has no data to send and one slot in another
input line has discontinuous data
6.35
Multilevel multiplexing
6.36
Multiple-slot multiplexing
6.37
Pulse stuffing
6.38
Frame Synchronizing
6.39
We have four sources, each creating 250 characters per
second. If the interleaved unit is a character and 1
synchronizing bit is added to each frame, find (a) the data
rate of each source, (b) the duration of each character in
each source, (d) the frame rate, (c) the duration of each
frame, (e) the number of bits in each frame, (f) the output
bit rate
6.40
Digital Signal Service
Digital hierarchy
136 kbps of
overhead.
192 kbps of
overhead.
7.92 Mbps of
overhead.
8 kbps of
overhead.
6.41
To implement those services, the telephone companies use T lines
(T-1 to T-4). These are lines with capacities precisely matched to
the data rates of the DS-1 to DS-4 services
6.42
Europeans use a version of T lines called E lines. The two systems
are conceptually identical, but their capacities differ.
E line rates
6.43
TDM slot comparison
6.44
Statistical Time-Division Multiplexing
6.45
SPREAD SPECTRUM
6.46
Spread spectrum
The spreading code is a series of numbers that look random, but are
actually a pattern.
6.47
Frequency hopping spread spectrum (FHSS)
A pseudorandom
code generator,
called
pseudorandom
noise (PN), creates
a k-bit pattern for
every hopping
period Th
6.48
The frequency
table uses the
pattern to find the
frequency to be
used for this
hopping period and
passes it to the
frequency
synthesizer.
6.49
The frequency
synthesizer
creates a carrier
signal of that
frequency, and the
source signal
modulates the
carrier signal.
6.50
Frequency selection in FHSS
6.51
FHSS cycles with eight hopping frequencies.
6.52
Bandwidth sharing
6.53
1. What is the minimum number of bits in a PN
sequence if we use FHSS with a signal with bandwidth
of B= 4kHz and Bss = 100kHz?
6.54
DSSS
we replace each data bit with n bits using a spreading code. In other
words, each bit is assigned a code of n bits, called chips, where the
chip rate is n times that of the data bit.
6.55
DSSS example
6.56
We have a digital medium with a data rate of
10Mbps. How many 64-kbps voice channels
can be carried by this medium if we use DSSS
with the Barker sequence
6.57