Top Banner
1 Chapter 2 Data and Signals M. Mozammel Hoque Chowdhury, Dept. of CSE, JU
38
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 2. data and signals

1

Chapter 2

Data and Signals

M. Mozammel Hoque Chowdhury, Dept. of CSE, JU

Page 2: 2. data and signals

2

DATADATA

Data can be Analog or Digital.

The term Analog data refers to information that is continuous;

Digital data refers to information that has discrete states.

Analog data take continuous values. Digital data take discrete values.

Page 3: 2. data and signals

3

To be transmitted, data must be transformed to electromagnetic signals.

SignalsSignals

A signal is defined as any physical quantity that varies with time, space or any other independent variables.

By a signal we mean any variable that carries some information.

Continous signal: x(t)

Discrete signal (sequence):

x[n]

Page 4: 2. data and signals

4

Signals can be analog or digital.

Analog signals can have an infinite number of values in a range.

Digital signals can have only a limited number of values.

Signals…Signals…

Page 5: 2. data and signals

5

Periodic Signal A continuous-time periodic signal is

unchanged/repeated by a time shift of T0. T0 is called the fundamental period.

A discrete-time periodic signal is unchanged by a time shift of N0. N0 is the fundamental period.

Non-Periodic Signal Not periodic

0Ttxtx

0Nnxnx

PERIODIC & NON-PERIDIC SIGNALSPERIODIC & NON-PERIDIC SIGNALS

A sine wave: x(t) = A sin(2Πft+Φ)

In data communications, we commonly use periodic analog signals and non-periodic digital signals.

Page 6: 2. data and signals

6

Properties of a Signal

Peak Amplitude (A) – the highest value/intensity of the signal.

Period (T) – the amount of time (in sec) needed by a signal to complete one cycle.

Frequency (f) – number of cycles (periods) per sec.

f=1/T Phase (Φ) – position of a signal relative to

time zero. Phase describes the position of the waveform relative to time zero.

Wavelength(λ) – the distance traveled by a wave (signal) in one cycle.

λ = 1/f

Page 7: 2. data and signals

7

The power we use at home has a frequency of 60 Hz. The period of this sine wave can be determined as follows:

Example

Frequency is the rate of change with respect to time.

Change in a short span of time means high frequency.

Change over a long span of time means low frequency.

If a signal does not change at all, its frequency is zero.

If a signal changes instantaneously, its frequency is infinite.

Properties of a Signal…

Page 8: 2. data and signals

8

Fig. Two signals with the same phase and frequency, but different amplitudes

Page 9: 2. data and signals

9

Figure Three sine waves with the same amplitude and frequency, but different phases

Page 10: 2. data and signals

10

Figure Wavelength and period

Page 11: 2. data and signals

11

The time-domain and frequency-domain plots of a sine wave

A complete sine wave in the time domain can be represented by one single spike in the frequency domain.

Page 12: 2. data and signals

12

The time domain and frequency domain of three sine wavesThe frequency domain is more compact and useful when we are dealing with more than one sine wave.

Following Figure shows three sine waves, each with different amplitude and frequency. All can be represented by three spikes in the frequency domain.

A single-frequency sine wave is not useful in data communications; we need to send a composite signal, a signal made of many simple sine waves.

Page 13: 2. data and signals

13

Fig A composite periodic signal

According to Fourier analysis, any composite signal is a combination of simple sine waves with different frequencies, amplitudes, and phases.

Composite Periodic Signal

Page 14: 2. data and signals

14

Decomposition of a composite periodic signal in the time and frequency domains

Page 15: 2. data and signals

15

The time and frequency domains of a non-periodic signal

The bandwidth of a composite signal is the difference between the highest and the lowest frequencies contained in that signal.

Page 16: 2. data and signals

16

Figure The bandwidth of periodic and nonperiodic composite signals

Page 17: 2. data and signals

17

If a periodic signal is decomposed into five sine waves with frequencies of 100, 300, 500, 700, and 900 Hz, what is its bandwidth? Draw the spectrum, assuming all components have a maximum amplitude of 10 V.SolutionLet fh be the highest frequency, fl the lowest frequency, and B the bandwidth. Then

Example

The spectrum has only five spikes, at 100, 300, 500, 700, and 900 Hz

Page 18: 2. data and signals

18

Figure The bandwidth for Example 3.10

Page 19: 2. data and signals

19

TRANSMISSION IMPAIRMENTTRANSMISSION IMPAIRMENT

Signals travel through transmission media, which are not perfect. The imperfection causes signal impairment. This means that the signal at the beginning of the medium is not the same as the signal at the end of the medium. What is sent is not what is received. Three causes of impairment are attenuation, distortion, and noise.

AttenuationDistortionNoise

Topics discussed in this section:Topics discussed in this section:

Page 20: 2. data and signals

20

Causes of impairment

Page 21: 2. data and signals

21

Attenuation

Page 22: 2. data and signals

22

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

Example

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

Page 23: 2. data and signals

23

A signal travels through an amplifier, and its power is increased 10 times. This means that P2 = 10P1 . In this case, the amplification (gain of power) can be calculated as

Example

Page 24: 2. data and signals

24

Distortion

Page 25: 2. data and signals

25

Noise

Page 26: 2. data and signals

26

The power of a signal is 10 mW and the power of the noise is 1 μW; what are the values of SNR and SNRdB ?

SolutionThe values of SNR and SNRdB can be calculated as follows:

Example

Page 27: 2. data and signals

27

The values of SNR and SNRdB for a noiseless channel are

Example

We can never achieve this ratio in real life; it is an ideal.

Page 28: 2. data and signals

28

Figure Two cases of SNR: a high SNR and a low SNR

Page 29: 2. data and signals

29

DATA RATE LIMITSDATA RATE LIMITS

A very important consideration in data communications is how fast we can send data, in bits per second, over a channel. Data rate depends on three factors:

1. The bandwidth available 2. The level of the signals we use 3. The quality of the channel (the level of noise)

Page 30: 2. data and signals

30

The Nyquist rate is the minimum sampling rate required to avoid aliasing, equals to twice

the highest frequency contained within the signal.

where is B the highest frequency of the signal.

To avoid aliasing, the sampling rate must exceed the Nyquist rate:

Nyquist theorem for Sampling

Page 31: 2. data and signals

31

Bit rate = 2X BX log2L

Where B is the bandwidth, L is the number of signal levels used to represent data.

Noiseless Channel and Nyquist theorem

Page 32: 2. data and signals

32

Consider a noiseless channel with a bandwidth of 3000 Hz transmitting a signal with two signal levels. The maximum bit rate can be calculated as:

Example

Page 33: 2. data and signals

33

Consider the same noiseless channel transmitting a signal with four signal levels (for each level, we send 2 bits). The maximum bit rate can be calculated as:

Example

Page 34: 2. data and signals

34

We need to send 265 kbps over a noiseless channel with a bandwidth of 20 kHz. How many signal levels do we need?SolutionWe can use the Nyquist formula as shown:

Example

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.

Page 35: 2. data and signals

35

Consider an extremely noisy channel in which the value of the signal-

to-noise ratio is almost zero.

For noisy channel the capacity C (highest data rate) 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.

Noisy Channel and Shannon Capacity

Page 36: 2. data and signals

36

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

Example

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.

Page 37: 2. data and signals

37

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?

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

Example

Page 38: 2. data and signals

38

The Shannon capacity gives us the upper limit; the Nyquist formula tells us

how many signal levels we need.

Note