Data and Computer Communications Chapter 3 Data Transmission

  • Slides: 37
Download presentation
Data and Computer Communications Chapter 3 – Data Transmission Eighth Edition by William Stallings

Data and Computer Communications Chapter 3 – Data Transmission Eighth Edition by William Stallings Lecture slides by Lawrie Brown

Data Transmission Ø Toto, I've got a feeling we're not in Kansas anymore. Judy

Data Transmission Ø Toto, I've got a feeling we're not in Kansas anymore. Judy Garland in The Wizard of Oz

Transmission Terminology Ø data transmission occurs between a transmitter & receiver via some medium

Transmission Terminology Ø data transmission occurs between a transmitter & receiver via some medium Ø guided medium l eg. twisted pair, coaxial cable, optical fiber Ø unguided / wireless medium l eg. air, water, vacuum

Transmission Terminology Ø direct link l no intermediate devices Ø point-to-point l l direct

Transmission Terminology Ø direct link l no intermediate devices Ø point-to-point l l direct link only 2 devices share link Ø multi-point l more than two devices share the link

Transmission Terminology Ø simplex l one direction • eg. television Ø half duplex l

Transmission Terminology Ø simplex l one direction • eg. television Ø half duplex l either direction, but only one way at a time • eg. police radio Ø full duplex l both directions at the same time • eg. telephone

Frequency, Spectrum and Bandwidth Ø time domain concepts l analog signal • various in

Frequency, Spectrum and Bandwidth Ø time domain concepts l analog signal • various in a smooth way over time l digital signal • maintains a constant level then changes to another constant level l periodic signal • pattern repeated over time l aperiodic signal • pattern not repeated over time

Analogue & Digital Signals

Analogue & Digital Signals

Periodic Signals

Periodic Signals

Sine Wave Ø peak amplitude (A) l l Ø frequency (f) l l Ø

Sine Wave Ø peak amplitude (A) l l Ø frequency (f) l l Ø maximum strength of signal volts rate of change of signal Hertz (Hz) or cycles per second period = time for one repetition (T) T = 1/f phase ( ) l relative position in time

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

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

Wavelength ( ) Ø is distance occupied by one cycle Ø between two points

Wavelength ( ) Ø is distance occupied by one cycle Ø between two points of corresponding phase in two consecutive cycles Ø assuming signal velocity v have = v. T Ø or equivalently f = v § especially when v=c § c = 3*108 ms-1 (speed of light in free space)

Frequency Domain Concepts Ø signal are made up of many frequencies Ø components are

Frequency Domain Concepts Ø signal 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

Addition of Frequency Components (T=1/f) p Ø c is sum of f & 3

Addition of Frequency Components (T=1/f) p Ø c is sum of f & 3 f p p

Frequency Domain Representations freq domain func of Fig 3. 4 c Ø freq domain

Frequency Domain Representations freq domain func of Fig 3. 4 c Ø freq domain func of single square pulse p p p Ø < <

Spectrum & Bandwidth Ø spectrum l Ø absolute bandwidth l Ø width of spectrum

Spectrum & Bandwidth Ø spectrum l Ø absolute bandwidth l Ø width of spectrum effective bandwidth l often just bandwidth l Ø range of frequencies contained in signal narrow band of frequencies containing most energy DC Component l component of zero frequency

Data Rate and Bandwidth Ø any transmission system has a limited band of frequencies

Data Rate and Bandwidth Ø any transmission system has a limited band of frequencies Ø this limits the data rate that can be carried Ø square have infinite components and hence bandwidth Ø but most energy in first few components Ø limited bandwidth increases distortion Ø have a direct relationship between data rate & bandwidth

Figure 3. 7 (a) & (b)

Figure 3. 7 (a) & (b)

Bit time = T / 2

Bit time = T / 2

Data Rate Calculation Ø Case 1 l l l Ø Case 2 l l

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

Data Rate vs. Bandwidth Ø Bandwidth ↑ l l Data rate ↑ (compare case

Data Rate vs. Bandwidth Ø Bandwidth ↑ l l Data rate ↑ (compare case 1 & 2) Same signal quality Ø Same bandwidth l l Higher signal quality lower data rate Compare case 1 & 3 Ø Same data rate l l Bandwidth ↑ better signal quality Compare case 2 & 3

Analog and Digital Data Transmission Ø data l entities that convey meaning Ø signals

Analog and Digital Data Transmission Ø data l entities that convey meaning Ø signals & signaling l electric or electromagnetic representations of data, physically propagates along medium Ø transmission l communication of data by propagation and processing of signals

Acoustic Spectrum (Analog)

Acoustic Spectrum (Analog)

Audio Signals freq range 20 Hz-20 k. Hz (speech 100 Hz-7 k. Hz) Ø

Audio Signals freq range 20 Hz-20 k. Hz (speech 100 Hz-7 k. Hz) Ø easily converted into electromagnetic signals Ø varying volume converted to varying voltage Ø can limit frequency range for voice channel to 300 -3400 Hz Ø

Video Signals Ø USA - 483 lines per frame, at frames per sec l

Video Signals Ø USA - 483 lines per frame, at frames per sec l Ø have 525 lines but 42 lost during vertical retrace 525 lines x 30 scans = 15750 lines per sec l l 63. 5 s per line 11 s for retrace, so 52. 5 s per video line max frequency if line alternates black and white Ø horizontal resolution is about 450 lines giving 225 cycles of wave in 52. 5 s Ø max frequency of 4. 2 MHz Ø

Digital Data Ø as generated by computers etc. Ø has two dc components Ø

Digital Data Ø as generated by computers etc. Ø has two dc components Ø bandwidth depends on data rate

Analog Signals

Analog Signals

Digital Signals

Digital Signals

Advantages & Disadvantages of Digital Signals Ø cheaper Ø less susceptible to noise Ø

Advantages & Disadvantages of Digital Signals Ø cheaper Ø less susceptible to noise Ø but greater attenuation Ø digital now preferred choice

Transmission Impairments Ø signal received may differ from signal transmitted causing: l l analog

Transmission Impairments Ø signal received may differ from signal transmitted causing: l l analog - degradation of signal quality digital - bit errors Ø most significant impairments are l l l attenuation and attenuation distortion delay distortion noise

Attenuation where signal strength falls off with distance Ø depends on medium Ø received

Attenuation where signal strength falls off with distance Ø depends on medium Ø received signal strength must be: Ø l l strong enough to be detected sufficiently higher than noise to receive without error so increase strength using amplifiers/repeaters Ø is also an increasing function of frequency Ø so equalize attenuation across band of frequencies used Ø l eg. using loading coils or amplifiers

Delay Distortion Ø only occurs in guided media Ø propagation velocity varies with frequency

Delay Distortion Ø only occurs in guided media Ø propagation velocity varies with frequency Ø hence various frequency components arrive at different times Ø particularly critical for digital data Ø since parts of one bit spill over into others Ø causing intersymbol interference

Noise Ø additional signals inserted between transmitter and receiver Ø thermal l due to

Noise Ø additional signals inserted between transmitter and receiver Ø thermal l due to thermal agitation of electrons uniformly distributed white noise Ø intermodulation l signals that are the sum and difference of original frequencies sharing a medium

Noise Ø crosstalk l a signal from one line is picked up by another

Noise Ø crosstalk l a signal from one line is picked up by another Ø impulse l irregular pulses or spikes • eg. external electromagnetic interference l l 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

Channel Capacity Ø max possible data rate on comms channel Ø is a function

Channel Capacity Ø max possible data rate on comms channel Ø is a function of l l data rate - in bits per second bandwidth - in cycles per second or Hertz noise - on comms link error rate - of corrupted bits Ø limitations due to physical properties Ø want most efficient use of capacity

Nyquist Bandwidth consider noise free channels Ø if rate of signal transmission is 2

Nyquist Bandwidth consider noise free channels Ø if rate of signal transmission is 2 B then carry signal with frequencies no greater than B Ø l ie. given bandwidth B, highest signal rate is 2 B for binary signals, 2 B bps needs bandwidth B Hz Ø can increase rate by using M signal levels Ø Nyquist Formula is: C = 2 B log 2 M Ø so increase rate by increasing signals Ø l l at cost of receiver complexity limited by noise & other impairments

Shannon Capacity Formula Ø consider relation of data rate, noise & error rate l

Shannon Capacity Formula Ø consider relation of data rate, noise & error rate l l 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 log 10 (signal/noise) Ø Capacity C=B log 2(1+SNR) Ø l l theoretical maximum capacity get lower in practise

Summary Ø looked at data transmission issues Ø frequency, spectrum & bandwidth Ø analog

Summary Ø looked at data transmission issues Ø frequency, spectrum & bandwidth Ø analog vs digital signals Ø transmission impairments