Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit...

36
Data and Computer Communications by William Stallings Eighth Edition Data Transmission Data Transmission Click to edit Master subtitle style Networks and Communication Department Chapter 3 1

Transcript of Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit...

Page 1: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Data and Computer Communications

by William StallingsEighth Edition

Data Transmission Data Transmission

Click to edit Master subtitle styleNetworks and Communication Department

Chapter 3

1

Page 2: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Transmission Terminology

Data transmission occurs between a transmitter & receiver via some medium

Page 3: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Types of communications

direct link : no intermediate devices.

Types of communications:

1) point-to-point : direct link , only 2 devices share link

2) Point –to- multipoint : more than two devices share the link, one sender and multiple recipients. eg: voice conferencing, one person will be talking but many others can listen.

3) Simplex : only in one direction , there is one sender and one receiver; the sender and receiver cannot change roles. eg. Television ,.

4) half duplex : either direction, but only one way at a time, eg. police radio, A walkie-talkie

5) full duplex : both directions at the same time , eg. telephone

Page 4: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Frequency, Spectrum and BandwidthTime domain concepts

analog signal various 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 5: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Analogue & Digital Signals

Page 6: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Periodic Signals

Page 7: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Sine Wave

peak amplitude (A) maximum strength of signal volts

frequency (f) rate of change of signal Hertz (Hz) or cycles per second period = time for one repetition (T) T = 1/f

phase () relative position in time

Page 8: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Varying Sine Waves s(t) = A sin(2ft +)

Page 9: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Wavelength ()•is distance occupied by one cycle b, or, put another way, the distance between two points of corresponding phase of two consecutive cycles. •assuming signal velocity v have = vT•or equivalently f = vespecially when v=c

c = 3*108 ms-1 (speed of light in free space)

Page 10: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Wavelength ()

Page 11: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Frequency Domain Conceptssignal are made up of many frequencies

components are sine waves

Fourier analysis can shown that any signal is made up of component sine waves

can plot frequency domain functions

Page 12: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Addition of Frequency Components (T=1/f)

c is sum of f & 3f

Page 13: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Spectrum & Bandwidth

spectrum range of frequencies contained in signal , eg: Fig

3.4c, it extends from f to 3f.

absolute bandwidth width of spectrum , eg : 2f in Fig 3.4c

DC Component component of zero frequency

Page 14: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

DC Component

DC component =1Nonzero average amplitude

No DC component ,Average amplitude of zero

Page 15: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Frequency Domain Representations

freq domain function of Fig 3.4c

Page 16: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Data Rate and Bandwidth

Data rate: is the amount of data that is moved from one place to another in a given time. (bps) , Data rate=2*fEffective bandwidth(or bandwidth ): is the actual speed

at which data can be transmitted on a connection.any transmission system has a limited band of frequenciesthis limits the data rate that can be carriedsquare have infinite bandwidth.limited bandwidth increases distortionhave a direct relationship between data rate & bandwidth

Page 17: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

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

Page 18: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Figure 3.7 (a) & (b)

Page 19: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Data Rate Calculation

Suppose that we are using a digital transmission system that is capableof transmitting signals with a bandwidth of 4 MHz. Let us attempt to transmit a sequence of alternating 1s and 0s as the square wave of Figure.What data rate can be achieved? We look at three cases

Page 20: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Data Rate Calculation

Case 1 Bandwidth 4MHz, use the sine wave of Fig. 3-7 (a) 4MHz = 5f – f f = 1MHz Data rate = 2 Mbps

Case 2 Bandwidth 8MHz, use the sine wave of Fig. 3-7 (a) 8MHz = 5f – f f = 2MHz Data rate = 4 Mbps

Case 3 Bandwidth 4MHz, use the sine wave of Fig. 3-4 (c) 4MHz = 3f – f f = 2MHz Data rate = 4 Mbps

Page 21: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Data Rate vs. BandwidthBandwidth ↑

Data rate ↑ (compare case 1 & 2) Same signal quality

Same bandwidth Higher signal quality lower data rate Compare case 1 & 3

Same data rate Bandwidth ↑ better signal quality Compare case 2 & 3

Page 22: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Data Rate vs. Bandwidth

In general , any digital waveform will have infinite bandwidth. If

we attempt to transmit this waveform as a signal over any medium, the transmission system will limit the bandwidth that can be transmitted.

greater the bandwidth transmitted, the greater the cost.

limiting the bandwidth creates distortions, and the greater the potential for error by the receiver.

Page 23: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Effect of bandwidth on a digital signal

greater the bandwidth transmitted, the greater the quality and accuracy .

Page 24: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Transmission Impairments

signal received may differ from signal transmitted causing: analog - degradation of signal quality digital - bit errors

most significant impairments are attenuation and attenuation distortion delay distortion noise

Page 25: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Attenuationwhere signal strength falls off with distancedepends on mediumAttenuation introduces three considerations for the transmission engineer:1- strong enough to be detected2-sufficiently higher than noise to receive without error3-attenuation varies with frequency , for analog signals

Db=10 log10 (Ps/Pd)Ps is the signal power at the transmitting end (source) of a communications circuit and Pd is the signal power at the receiving end (destination), Ps > Pd.

Page 26: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Attenuation oThe first and second problems are dealt with by attention to signal strength and the use of amplifiers or repeatersoTo overcome the third problem , techniques are available for equalizing attenuation across a band of frequencies.

Page 27: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Delay Distortion

•only occurs in guided media•propagation velocity varies with frequency•hence various frequency components arrive at different times•particularly critical for digital signals•Equalizing techniques can also be used for delay distortion

Page 28: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Delay Distortion

Page 29: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

NoiseNoise :additional signals inserted between transmitter and receiver.

1- Thermal noise due to thermal agitation of electrons uniformly distributed white noise N0=KT(W/Hz)

N0 = noise power density in watts per 1 Hz of bandwidth k = Boltzmann’s constant = 1.38 * 10-23 J/K T = temperature, in Kelvin

Page 30: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Noise

2- Intermodulation noise

When signals at different frequencies share the same transmission medium, the result may be intermodulation noise. The effect of intermodulation noise is to produce signals at a frequency that is the sum or difference of the two original frequencies or multiples of those frequencies, thus possibly interfering with services at these frequencies. It is produced by nonlinearities in the transmitter, receiver, and/or intervening transmission medium.

Page 31: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Noise3-crosstalkan unwanted coupling between signal paths. It can occur by electrical coupling between nearby twisted pairs or, rarely, coax cable lines carrying multiple signals. It can also occur when microwave antennas pick up unwanted signals4-Impulse noise

irregular pulses or spikes eg. 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

Page 32: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Channel Capacitymax possible data rate on comms channel

is a function of: Data rate, in bits per second (bps), at which data can be

communicated Bandwidth, as constrained by the transmitter and the nature of the

transmission medium, expressed in cycles per second, or Hertz Noise, average level of noise over the communications path Error rate, at which errors occur, where an error is the reception of a

1 when a 0 was transmitted or the reception of a 0 when a 1 was transmitted

limitations due to physical properties

want most efficient use of capacity

Page 33: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Nyquist Bandwidth

consider noise free channels

if rate of signal transmission is 2B then can carry signal with frequencies no greater than B

ie. given bandwidth B, highest signal rate is 2B

for binary signals, 2B bps needs bandwidth B Hz

For multilevel ,can increase rate by using M signal levels

Nyquist Formula is: C = 2B log2M

so increase rate by increasing signals at cost of receiver complexity limited by noise & other impairments

Page 34: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Shannon Capacity Formula

consider relation of data rate, noise & error rate faster data rate shortens each bit so bursts of noise affects

more bits given noise level, higher rates means higher errors

Shannon developed formula relating these to signal to noise ratio (in decibels)

SNRdb=10 log10 (signal/noise)

Capacity C=B log2(1+SNR) theoretical maximum capacity get lower in practise

Page 35: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Shannon Capacity Formula

Page 36: Data and Computer Communications by William Stallings Eighth Edition Data Transmission Click to edit Master subtitle style Networks and Communication Department.

Summary

•data transmission•Time domain and Frequency domain •transmission impairments