1 data transmission lesson 3 nets2150/2850. 2 lesson outline understand the properties a signal...

65
1 Data Transmission Lesson 3 NETS2150/2850

Upload: clarissa-claudia-wingett

Post on 01-Apr-2015

236 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

1

Data Transmission

Lesson 3NETS2150/2850

Page 2: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

2

Lesson Outline

Understand the properties a signal Explain the difference of Data vs

Signal Understand the influence of

attenuation, delay distortion and noise on signal propagation

Appreciation of unit of decibel

Page 3: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

3

Position of the physical layer

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Page 4: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

4

To be transmitted, data must be transformed to electromagnetic signals

Signals can be analogue or digital. Analogue signals can have an infinite

number of values in a range; Digital signals can have only a limited

number of values.

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Page 5: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

5

Signals

Analogue signal Varies in a smooth way over time

Digital signal Maintains a constant level then changes to

another constant level Periodic signal

Pattern repeated over time Aperiodic signal

Pattern not repeated over time

Page 6: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

6

Analogue & Digital Signals

Page 7: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

7

PeriodicSignals

Page 8: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

8

In data communication, we commonly use periodic analogue signals and

aperiodic digital signals.

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Page 9: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

9

A Sine Wave

s(t) = A sin(2ft + )

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Page 10: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

10

Sine Wave

Peak Amplitude - A maximum strength of signal In volts (V)

Frequency - f Rate of change of signal Hertz (Hz) or cycles per second Period = time for one repetition (T) T = 1/f

Phase - (in degree or radian) the position of the waveform relative to time zero How far from origin when voltage change from -ve

to +ve

Page 11: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

11

Amplitude

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Page 12: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

12

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.

Page 13: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

13

Period and frequency

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Page 14: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

14

Frequency and period are inverses of each other

Page 15: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

15

Table 3.1 Units of periods and frequenciesTable 3.1 Units of periods and frequencies

Unit Equivalent Unit Equivalent

Seconds (s) 1 s hertz (Hz) 1 Hz

Milliseconds (ms) 10–3 s kilohertz (KHz) 103 Hz

Microseconds (s) 10–6 s megahertz (MHz) 106 Hz

Nanoseconds (ns) 10–9 s gigahertz (GHz) 109 Hz

Picoseconds (ps) 10–12 s terahertz (THz) 1012 Hz

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Page 16: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

16

ExampleExample

Express a period of 100 ms in microseconds, and express the corresponding frequency in kilohertz

SolutionSolution

We make the following substitutions:100 ms = 100 10-3 s = 100 10-3 10 s = 105 s

Now we use the inverse relationship to find the frequency, changing hertz to kilohertz100 ms = 10-1 s f = 1/10-1 Hz = 10 Hz = 10 10-3 KHz = 10-2 KHz

Page 17: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

17

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

If a signal changes instantaneously, its frequency is infinite

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Page 18: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

18

Relationships between different phases

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Page 19: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

19

ExampleExample

A sine wave is offset one-sixth of a cycle with respect to time zero. What is its phase in degrees and radians?

SolutionSolution

We know that one complete cycle is 360 degrees.

Therefore, 1/6 cycle is

(1/6) 360 = 60 degrees = 60 x 2 /360 rad = 1.046 rad

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Page 20: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

20

Sine wave examples

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Page 21: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

21

Sine wave examples (continued)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Page 22: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

22

Wavelength

Distance occupied by one cycle (in meters)

Assuming signal velocity v

= vT f = v c = 3*108 ms-1 (speed of light in free

space)

Page 23: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

23

An analogue signal is best represented in the frequency domain

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Page 24: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

24

Time and frequency domains

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Page 25: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

25

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

When we change one or more When we change one or more characteristics of a single-frequency characteristics of a single-frequency signal, it becomes a composite signal signal, it becomes a composite signal

made of many frequencies.made of many frequencies.

Page 26: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

26

According to Fourier analysis, any composite signal can be represented as

a combination of simple sine waves with different frequencies, phases, and

amplitudes.

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Page 27: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

27

Three odd harmonics

Page 28: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

28

Adding first three harmonics

Page 29: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

29

Frequency spectrum comparison

Page 30: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

30

Analogue and Digital Data Transmission

Data Entities that convey meaning

Signals Electric or electromagnetic (EM)

representations of data Transmission

Communication of data by propagation and processing of signals

Page 31: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

31

Analogue and Digital Data

Analogue Continuous values within some

interval e.g. sound

Digital Discrete values e.g. text, integers

Page 32: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

32

Analogue and Digital Signals

Means by which data are propagated

Analogue Continuously variable Speech range 100Hz to 7kHz Telephone range 300Hz to 3400Hz Video bandwidth 4MHz

Digital Use two DC components

Page 33: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

33

Advantages & Disadvantages

of Digital Pro:

Cheaper Less susceptible to noise

Con: Greater attenuation

Pulses become rounded and smaller Leads to loss of information

Page 34: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

34

Attenuation of Digital Signals

Page 35: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

35

Data vs Signal

Analogue Analogue

Analogue

Analogue

Page 36: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

36

Analogue Transmission Analogue signal transmitted

without regard to content May be analogue or digital data Attenuated over distance Use amplifiers to boost signal

But this also amplifies noise

Page 37: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

37

Digital Transmission

Concerned with content Integrity endangered by noise,

attenuation etc. Repeaters used Repeater extracts bit pattern from

received signal and retransmits Attenuation is overcome Noise is not amplified

Page 38: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

38

Advantages of Digital Transmission

Digital technology Low cost LSI/VLSI technology (smaller)

Data integrity Longer distances over lower quality lines

Capacity utilization High bandwidth links economical High degree of multiplexing easier with digital

techniques Security & Privacy

Encryption

Page 39: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

39

Transmission Impairments

Signal received may differ from signal transmitted

Analogue - degradation of signal quality

Digital - bit errors Caused by

Attenuation and attenuation distortion Delay distortion Noise

Page 40: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

40

Attenuation and Dispersion (Delay Distortion)

Page 41: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

41

Attenuation

Signal strength falls off with distance

Depends on type of medium Received signal strength:

must be enough to be detected must be sufficiently higher than noise

to be received without error Attenuation is an increasing

function of frequency

Page 42: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

42

Signal corruption

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Page 43: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

43

Delay Distortion

Propagation velocity varies with frequency Different signal component travel at

different rate resulting in distortion

Page 44: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

44

Noise

Additional unwanted signals inserted between transmitter and receiver e.g. thermal noise, crosstalk etc.

Page 45: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

45

Spectrum & Bandwidth

Spectrum range of frequencies contained in

signal Bandwidth

width of spectrum band of frequencies containing most

of the energy

Page 46: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

46

Bandwidth

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Page 47: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

47

ExampleExample

If a periodic signal is decomposed into five sine waves with frequencies of 100, 300, 500, 700, and 900 Hz, what is the bandwidth? Draw the spectrum, assuming all components have a maximum amplitude of 10 V.

SolutionSolution

B = fh  fl = 900 100 = 800 HzThe spectrum has only five spikes, at 100, 300, 500, 700, and 900

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Page 48: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

48McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Page 49: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

49

ExampleExample

A signal has a bandwidth of 20 Hz. The highest frequency is 60 Hz. What is the lowest frequency?

SolutionSolution

B = fB = fhh f fll

20 = 60 20 = 60 ffll

ffll = 60 = 60 20 = 40 Hz20 = 40 Hz

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Page 50: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

50

ExampleExample

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?

SolutionSolution

The answer is definitely no. Although the signal can have The answer is definitely no. Although the signal can have the same bandwidth (1000 Hz), the range does not the same bandwidth (1000 Hz), the range does not overlap. The medium can only pass the frequencies overlap. The medium can only pass the frequencies between 3000 and 4000 Hz; the signal is totally lost.between 3000 and 4000 Hz; the signal is totally lost.

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Page 51: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

51

A digital signal

Page 52: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

52

Figure 3.17 Bit rate and bit interval

Page 53: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

53

ExampleExample

A digital signal has a bit rate of 2000 bps. What is the duration of each bit (bit interval)

SolutionSolution

The bit interval is the inverse of the bit rate.

Bit interval = 1/ 2000 s = 0.000500 s = 0.000500 x 106 s = 500 s

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Page 54: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

54

A digital signal is a composite signal A digital signal is a composite signal with an infinite bandwidthwith an infinite bandwidth

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Page 55: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

55

Baud rate and bit-rate

bit rate is the number of bits transmitted per second

baud rate is the number of signal units per second required to represent bits An important measure in data transmission Represents how efficiently we move data

from place to place Equals bit rate divided by the number of

bits represented by each signal shift

Page 56: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

56

Baud rate and bit-rate (2)

VS

One signal element conveys 1 bit

2-level signal

One signal element conveys 2 bit

Multilevel signal

Page 57: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

57

Channel capacity and Nyquist Bandwidth

Given bandwidth B Hz, highest signal rate is 2B

For binary signal, data rate supported by B Hz is 2B bps in a noiseless channel

Can be increased by using M signal levels

C = 2B log2M

Page 58: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

58

Example

Assume voice channel (range 300-3400 Hz)

Thus, bandwidth is 3100 Hz (i.e. B) This translates to capacity of 2B =

6200 bps If M = 8 signal levels (3-bit word),

capacity becomes 18,600 bps (2Blog2M)

Page 59: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

59

Decibels (dB)

A measure of ratio between two signal levels Gain is given by:

GdB = 10 log10 Pout dB

Pin

When gain is –ve, this means loss or attenuation

Example 1: Pin = 100mW, Pout =1 mW

Gain = 10 log10 (1/100) = -20 dB implies attenuation is 20 dB

Page 60: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

60

Shannon Capacity Formula This considers data rate, noise and error

rate in the channel Faster data rate shortens each bit so

burst of noise affects more bits At given noise level, high data rate means

higher error rate Signal to noise ratio (SNR) Thus, Shannon’s formula is:

C = B log2(1+SNR) Represents theoretical max capacity!

Page 61: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

61

Example

Assume spectrum of a channel is between 3 MHz and 4 MHz and the SNR is 24 dB

B = 4 – 3 = 1 MHzSNRdB = 24 dB = 10log10(SNR)

SNR = 251Thus, C = B log2(1+SNR) = 106 log2(1+251)

8 106 = 8 Mbps

Page 62: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

62

ExampleExample

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 is calculated as

C = B logC = B log22 (1 + SNR) = B log (1 + SNR) = B log22 (1 + 0) (1 + 0)

= B log= B log22 (1) = B (1) = B 0 = 0 0 = 0

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Page 63: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

63

ExampleExample

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

C = B logC = B log22 (1 + SNR) = 3000 log (1 + SNR) = 3000 log22 (1 + 3162) (1 + 3162)

= 3000 log= 3000 log22 (3163) (3163)

C = 3000 C = 3000 11.62 = 34,860 bps 11.62 = 34,860 bps

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Page 64: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

64

ExampleExample

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?

Then we use the Nyquist formula to find the number of signal levels.

66 Mbps = 2 Mbps = 2 1 MHz 1 MHz log log22 LL L = 8 L = 8

SolutionSolution

C = B logC = B log22 (1 + SNR) = 10 (1 + SNR) = 1066 log log22 (1 + 63) = 10 (1 + 63) = 1066 log log22 (64) = 6 Mbps (64) = 6 Mbps

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

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Page 65: 1 Data Transmission Lesson 3 NETS2150/2850. 2 Lesson Outline Understand the properties a signal Explain the difference of Data vs Signal Understand the

65

Summary

Analogue vs Digital Transmission Transmission Impairments of a signal Nyquist Formula to estimate channel

capacity in a noiseless environment Shannon Capacity Formula estimates

the upper limit of capacity with noise effect

Next: Transmission Media