Professional Documents
Culture Documents
McGraw-Hill
Unit 2
Title: Data, Signals & Digital Transmission
Syllabus:
Analog & Digital Signals, Transmission impairments, Data rate limits, Performance, Digital to analog conversion, Analog to digital conversion, Transmission modes.
McGraw-Hill
McGraw-Hill
Before transmitting the data over a medium, the data must be converted in to electromagnetic signals.
McGraw-Hill
Analog signal
An analog signal is a continuous signal. It has an infinite number of values in a range. Example - Human Voice.
McGraw-Hill
Digital signal
A digital signal is a discrete signal. It has a limited number of values.
McGraw-Hill
A sine wave
f frequency
McGraw-Hill
and
- phase
The McGraw-Hill Companies, Inc., 2004
Amplitude
Highest intensity of a signal represent the peak amplitude of the signal. The intensity is proportional to the energy it carries.
Amplitude is measured in volts.
McGraw-Hill
T x f = 1.
McGraw-Hill
Seconds (s)
1s 103 s
hertz (Hz)
1 Hz
Milliseconds (ms)
kilohertz (KHz)
103 Hz
Microseconds (ms)
megahertz (MHz)
Nanoseconds (ns)
gigahertz (GHz)
Picoseconds (ps)
terahertz (THz)
McGraw-Hill
Example 1
Express a period of 100 ms in microseconds, and express the corresponding frequency in kilohertz.
Solution
We Know that, 1 ms = 10 3 s. 100 ms = 100 103 s = 105 ms Now we use the inverse relationship to find the frequency, changing hertz to kilohertz 100 ms = 100 10-3 s = 10-1 s = T f = 1/10-1 Hz = 10 10-3 KHz = 10-2 KHz
McGraw-Hill
Note:
Frequency is the rate of change of the
Note:
If a signal does not change at all, its frequency is zero. If a signal changes instantaneously (it jumps from one level to another in no time), its frequency is infinite, because its period is zero.
McGraw-Hill
Phase Phase describes the position of the waveform relative to time zero. It is measured in degrees or radians.
McGraw-Hill The McGraw-Hill Companies, Inc., 2004
McGraw-Hill
Example A sine wave is offset one-sixth of a cycle with respect to time zero. What is its phase in degrees and radians? Solution
We know that one complete cycle is 360 degrees. Therefore, 1/6 cycle is (1/6) 360 = 60 degrees = 60 x 2p /360 rad = 1.046 rad
McGraw-Hill
McGraw-Hill
McGraw-Hill
McGraw-Hill
McGraw-Hill
Note:
A single-frequency sine wave is not useful in data communications; we need to change one or more of its characteristics to make it useful.
McGraw-Hill The McGraw-Hill Companies, Inc., 2004
Note:
When we change one or more characteristics of a singlefrequency signal, it becomes a composite signal made of many frequencies.
McGraw-Hill The McGraw-Hill Companies, Inc., 2004
Note:
According to Fourier analysis, any composite signal can be represented as a combination of simple sine waves with different frequencies, phases, and amplitudes.
Any composite signal is a sum of set sine waves of different frequencies, phases and amplitudes. Mathematically it is represented by S(t) = A 1 sin(2 f1 t + 1) + A2 sin(2 f2 t + 2) + A3 sin(2 f 3 t + 3 ) +..
McGraw-Hill
Three harmonics
McGraw-Hill
No medium is perfect. A medium passes some frequencies and blocks some others.
McGraw-Hill
Bandwidth
Bandwidth of a composite signal is the difference between the highest and the lowest frequencies contained in that signal. For example, Voice normally has a spectrum of 300 3300 Hz. Thus, requires a bandwidth of 3000 Hz.
The bandwidth is a property of a medium. Bandwidth is the difference between the highest and the lowest frequencies that the medium can satisfactorily pass.
McGraw-Hill The McGraw-Hill Companies, Inc., 2004
Bandwidth (continued)
The medium can pass some frequencies above 5000 and below 1000, but the amplitude of those frequencies are less than those in the middle.
McGraw-Hill The McGraw-Hill Companies, Inc., 2004
Solution
B = fh - fl = 900 - 100 = 800 Hz The spectrum has only five spikes, at 100, 300, 500, 700, and 900
McGraw-Hill
Example
A signal has a bandwidth of 20 Hz. The highest frequency is 60 Hz. What is the lowest frequency? Draw the spectrum if the signal contains all integral frequencies of the same amplitude.
Solution
B = fh - f l
20 = 60 - fl
fl = 60 - 20 = 40 Hz
McGraw-Hill
Example
A signal has a spectrum with frequencies between 1000 and 2000 Hz (bandwidth of 1000 Hz). A medium can pass frequencies from 3000 to 4000 Hz (a bandwidth of 1000 Hz). Can this signal faithfully pass through this medium?
Solution
The answer is definitely no. Although the signal can have the same bandwidth (1000 Hz), the range does not overlap. The medium can only pass the frequencies between 3000 and 4000 Hz. The signal with frequency 1000 & 2000 Hz is totally lost.
McGraw-Hill The McGraw-Hill Companies, Inc., 2004
Digital Signals
Data can be represented by a digital signal. Bit 1 can be encoded by positive voltage and
McGraw-Hill
McGraw-Hill
Example A digital signal has a bit rate of 2000 bps. What is the duration of each bit (bit interval) Solution The bit interval is the inverse of the bit rate.
McGraw-Hill
Example
Assume we need to download text documents at the rate of 100 pages per minute. What is the required bit rate of the channel?. Answer A page is an average of 24 lines with 80 characters in each line. If we assume that one character require 8 bits. The bit rate of the channel = 100 x 24 x 80 x 8 = 1,636,000 bps = 1.636 Mbps
McGraw-Hill The McGraw-Hill Companies, Inc., 2004
Bit Length
It is the distance one bit occupies on the transmission medium.
Bit Length = Propagation speed x Bit interval.
Broadband transmission (modulation)- means sending a digital signal after changing it to an analog signal.
Broadband transmission requires a bandpass channel. Analog transmission use a band-pass channel.
McGraw-Hill
McGraw-Hill
Example
Consider a noiseless channel with a bandwidth of 3000 Hz transmitting a signal with two signal levels. Calculate the bit rate.
Answer:
Bit Rate = 2 3000 log2 2 = 6000 bps
McGraw-Hill
Example
Consider the same noiseless channel, transmitting a signal with four signal levels (for each level, we send two bits). Calculate the bit rate.
Answer:
McGraw-Hill
McGraw-Hill
McGraw-Hill
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. Calculate the channel capacity.
Answer:
C = B log2 (1 + SNR) = B log2 (1 + 0) = B log2 (1) = B 0 = 0
McGraw-Hill The McGraw-Hill Companies, Inc., 2004
Example:
A telephone line has a bandwidth of 3000 Hz (300 Hz to 3300 Hz). The signal-to-noise ratio is 3162. Find the channel capacity.
Answer: C = B log2 (1 + SNR) = 3000 log2 (1 + 3162) = 3000 log2 (3163) = 3000 11.62 = 34,860 bps
McGraw-Hill
Example We have a channel with a 1 MHz bandwidth. The SNR for this channel is 63. what is the appropriate bit rate and signal level? Solution
First, we use the Shannon formula to find our upper limit.
C = B log2 (1 + SNR) = 106 log2 (1 + 63) = 106 log2 (64) = 6 Mbps
Then we use the Nyquist formula to find the number of signal levels.
6 Mbps = 2 1 MHz log2 L L = 8
McGraw-Hill The McGraw-Hill Companies, Inc., 2004
Transmission Impairments
McGraw-Hill
Attenuation
Attenuation means loss of energy. When a signal (simple /composite) travels through a medium, it loses some of its energy.
To compensate the loss, amplifiers are used to amplify the signal. It is measured in decibels (dB)
McGraw-Hill
Decibel (dB)
To show that a signal has lost or gained strength, we use the unit called decibel. The decibel measures the relative strengths of two signals or one signal at two different points. The decibel is negative if a signal is attenuated and positive if a signal is amplified.
db = 10 log 10 p2 / p1 where p1 & p2 are the powers of a signal at point 1 & 2 respectively.
McGraw-Hill
Example
Imagine a signal travels through a transmission medium and its power is reduced to half. This means that P2 = 1/2 P1. Find the attenuation (loss of power).
Solution
Attenuation Loss =10x log10 (P2/P1) = 10x log10 (0.5P1/P1) = 10x log10 (0.5) = 10x(0.3) = 3 dB
McGraw-Hill The McGraw-Hill Companies, Inc., 2004
Example Imagine a signal travels through an amplifier and its power is increased 10 times. This means that P2 = 10 x P1. find the amplification (gain of power).
Example
The loss in a cable is measured in decibels per kilometer ( dB/km). If the signal at the beginning of a cable with -0.3 db/km has a power of 2 mW. What is the power of the signal at 5 km?.
Solution
The loss of energy in the cable in decibels is = 5 x (-0.3) = -1.5 dB.
Power of the signal at 5 kms= dB = 10 x log p2/p1 = - 1.5 or p2/p1 = 10 -0.15 = 0.71 P2 = 0.71 P1 = 0.7 x 2 = 1.4 mW
McGraw-Hill
Distortion
Distortion means the signal changes its shape. Distortion occurs in a composite signal because a it is made up of signals of different frequencies. Each signal has its own propagation speed. So, its own delay in arriving at the destination.
McGraw-Hill
Noise
Several types of noise such as thermal noise, induced noise, crass talk and impales noise may corrupt the signals.
McGraw-Hill
Example
The power of a signal is 10 mW and the power of the noise is 1 W. What are the values of SNR & SNR dB?.
Solution
SNR = Average signal power / Average noise power. = 10 x 10 -6 W / 10 -9 W = 10,000
McGraw-Hill
Example
What is the channel capacity for a teleprinter channel with a 300 Hz bandwidth and a signal to noise ratio of 3 dB. Solution Using Shannon's equation: C = B log 2 (1 + SNR) We have B = 300 Hz, (SNR) dB = 3
Example
A digital signaling system is required to operate at 9600 bps. a) If a signal element encodes a 4 bit word, what is the minimum required bandwidth of the channel? b) Repeat part (a) for the case of 8 bit words.
Solution
9600 = 2 x B x 8 and
B = 600 Hz
The McGraw-Hill Companies, Inc., 2004
Example
Given a channel with an intended capacity of 20 Mbps, the bandwidth of the channel is 3 MHz. Assuming thermal noise, what signal to noise ratio is required to achieve this capacity?
Solution
C = B log2 (1 + SNR) 20 x 106 = 3 x 106 x log 2 (1 + SNR) log 2 (1 + SNR) = 6.67
1 + SNR = 2 6.67
SNR = 2 6.67 - 1
McGraw-Hill
Performance
Bandwidth is a potential measure of a link. Bandwidth in Hz The range of frequencies that a channel can pass. Bandwidth in bps Number of bits per second that a channel can transmit.
McGraw-Hill
Throughput
Throughput is an actual measurement of data received at the receiver.
Example
A network with bandwidth 10 Mbps can pass only an average of 12,000 frames per minute with each frame carrying an average of 10,000 bits. What is the throughput of this network? Solution Throughput = ( 12000 x 10000) /60 = 2 Mbps
McGraw-Hill
Latency ( Delay )
The latency the time taken for an entire message to arrive completely at the destination taken from the time the first bit is sent out from the source. Latency = propagation time + transmission time + queuing time + Processing delay.
McGraw-Hill
Propagation time
Propagation time is the time required for a bit to travel from source to the destination. Propagation time = Distance / Propagation speed.
McGraw-Hill
Wavelength
Wave length is the distance a simple signal can travel in one period.
McGraw-Hill
Examples Question paper: January / February 2005 Using Shannons theorem, compute the maximum bit rate for a channel having a bandwidth of 3100 Hz and signal to noise ratio is 20 dB.
McGraw-Hill
Digital Transmission
McGraw-Hill The McGraw-Hill Companies, Inc., 2004
Line coding
Line Coding is the process of converting binary data into digital data.
Characteristics of line coding techniques are 1) Signal level Vs Data level 2) DC ( Direct Current ) component & self synchronization 3)
McGraw-Hill
McGraw-Hill
DC component
Some line coding schemes leave have residual dc component. It is undesirable because,
i) it causes distortion and may create errors in the output. ii) This component is the extra energy residing on the line and useless. a) + voltage is not cancelled by voltage b) + voltage are cancelled by - voltage.
McGraw-Hill
Example
A signal has two data levels with a pulse duration of 1 ms. Calculate the pulse rate and bit rate. Answer: Pulse Rate = 1/ 10-3= 1000 pulses/s
McGraw-Hill
Example
A signal has four data levels with a pulse duration of 1 ms. Calculate the pulse rate and bit rate. Answer: Pulse Rate = = 1000 pulses/s
Bit Rate = PulseRate x log2 L = 1000 x log2 4 = 2000 bps
Example
Solution
The bit rate is always greater than or equal to the pulse rate because a pulse contains one or more bits.
McGraw-Hill
Synchronization
At the receiver, to interpret the signal correctly , the receiver bit interval must match exactly to the senders bit interval. If the receiver clock is faster or slower, the bit intervals are not matched. So the output will be wrong.
McGraw-Hill
McGraw-Hill
Unipolar encoding
The signal levels are on one side of the time axis either above or below.
The 1s are encoded as positive voltage value and 0s are encoded as zero voltage value.
Disadvantages
The average amplitude of a unipolar encoded signal is nonzero. This method lacks synchronization.
McGraw-Hill The McGraw-Hill Companies, Inc., 2004
Polar Encoding
Note:
polar encoding
McGraw-Hill
Disadvantage: When the data contains a long stream of 0s or 1s cases the problem of synchronization with the sender clock.
McGraw-Hill
McGraw-Hill
McGraw-Hill
Example
How does NRZ L differs from NRZ I ? Solution In NRZ-L the signal depends on the state of the bit: a positive voltage is a 0, and the negative a 1.
McGraw-Hill
McGraw-Hill
Manchester encoding
Manchester encoding uses two level of amplitude. Signal changes for each bit. Inversion takes place at the middle of each bit interval. A transition from negative to positive represents bit 1. A transition from positive to negative represents bit 0.
McGraw-Hill
McGraw-Hill
Note:
McGraw-Hill
Bipolar AMI (Alternate Mark Inversion) encoding The AMI encoding uses three voltage levels, positive, negative & zero. The zero voltage level represents bit 0. The alternate positive and negative voltage levels represent bit 1.
McGraw-Hill
McGraw-Hill
MLT-3(Multi Line Transmission three level) signal MLT-3 encoding uses three level signals, +1,0 & -1. The signal transitions from one level to the next at the beginning of a bit interval represent bit 1 , there is no transition at the beginning of a bit 0
McGraw-Hill
Example
Assume a data stream is made of ten 0s. Encode this stream, using the following encoding schemes. How many changes (vertical line) can you find for each scheme?
a) Unipolar b) NRZ- L c) NRZ-I d) RZ e) Manchester f) Differential Manchester g) AMI
McGraw-Hill
Example Assume a data stream is made of ten alternate 0s & 1s. Encode this stream, using the following encoding schemes. How many changes (vertical line) can you find for each scheme? a) Unipolar b) NRZ- L c) NRZ-I d) RZ e) Manchester f) Differential Manchester g) AMI Solution
McGraw-Hill
EXAMPLE Jan/Feb 2005 Sketch the signal waveforms when 00110101 is transmitted in the following signal codes. i) NRZ L ii) Manchester Code
McGraw-Hill
Block Coding
McGraw-Hill
Block coding
Block coding is used to improve the performance of line coding. The method has three steps- Division, Substitution & Line coding.
Division The sequence of bits is divided into group of m bits.
McGraw-Hill
McGraw-Hill
0000
0001
11110
01001
1000
1001
10010
10011
0010
0011 0100 0101 0110 0111
McGraw-Hill
10100
10101 01010 01011 01110 01111
1010
1011 1100 1101 1110 1111
10110
10111 11010 11011 11100 11101
The McGraw-Hill Companies, Inc., 2004
McGraw-Hill
PCM Technique
McGraw-Hill
McGraw-Hill
McGraw-Hill
Binary Encoding The quantized samples are assigned by sign and magnitude. Each value is translated into 8 bit representation. In eight bits first bit is used to indicate the sign and the other seven bits to represent the quantized value.
McGraw-Hill
PCM The binary digits are transformed to a digital signal by using a line coding method called Pulse Coding Method.
McGraw-Hill
Note: According to the Nyquist theorem, the sampling rate must be at least 2 times the highest frequency.
Example:We want to sample telephone voice with a
McGraw-Hill
Nyquist theorem
Example
What sampling rate is needed for a signal with a bandwidth of 10,000 Hz (1000 to 11,000 Hz)?
Solution
The sampling rate must be twice the highest frequency in the signal: Sampling rate = 2 x (11,000) = 22,000 samples/s
McGraw-Hill
Bit Rate
We want to digitize the human voice. What is the bit rate, assuming 8 bits per sample?
Solution
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 = 8000 x 8 = 64,000 bps = 64 Kbps
McGraw-Hill The McGraw-Hill Companies, Inc., 2004
Transmission Mode
McGraw-Hill
Data transmission
The transmission of binary data across a medium can be made in either parallel or serial mode.
McGraw-Hill
Parallel transmission
In parallel mode, a group of n bits are sent with each clock tick. It needs n lines
Advantage - Speed.
Disadvantage Cost.
McGraw-Hill
Serial transmission
In serial mode, 1 bit is sent with each clock tick. There are two classes of serial transmission i) Synchronous & ii) Asynchronous
McGraw-Hill
Asynchronous transmission
The start bits are 0s and the stop bits are 1s.The gap is represented by an idle line.
McGraw-Hill
Synchronous transmission
In Synchronous transmission, the bit stream is a combination of many bytes. Each byte is introduced with out a gap. The receiver reconstruct the information.
The advantage of synchronous transmission is speed. Synchronous transmission is more faster than Asynchronous transmission. So, Synchronous transmission is useful for high-speed applications.
McGraw-Hill The McGraw-Hill Companies, Inc., 2004