760 likes | 769 Views
This chapter explores the factors that determine the successful transmission of data, including the quality of the signal and the characteristics of the transmission medium. It covers transmission terminology, electromagnetic signals, analogue and digital signals, frequency domain concepts, spectrum and bandwidth, and data rate and bandwidth limitations.
E N D
Data and Computer Communications Chapter 3 – Data Transmission Eighth Edition by William Stallings Lecture slides by Lawrie Brown
Data Transmission • The successful transmission of data depends on two factors: • the quality of the signal being transmitted • the characteristics of the transmission medium
TransmissionTerminology-1 • data transmission occurs between a transmitter & receiver via some medium • guided medium • eg. twisted pair, coaxial cable, optical fiber • unguided / wireless medium • eg. air, water, vacuum
TransmissionTerminology-2 • direct link • no intermediate devices (other than amplifiers or repeaters) • apply to both guided and unguided media • point-to-point • direct link • only 2 devices share link • multi-point • more than two devices share the link
TransmissionTerminology-3 • simplex • one direction • eg. television • half duplex • either direction, but only one way at a time • eg. police radio • full duplex • both directions at the same time • eg. telephone
Electromagnetic Signal • Function of time • Time domain • Can also be expressed as a function of frequency • Signal consists of components of different frequencies • Frequency domain • For data transmission • Frequency domain >> Time domain
Frequency, Spectrum and Bandwidth • time domain concepts • analog signal • various in a smooth way over time • digital signal • maintains a constant level then changes to another constant level
Frequency, Spectrum and Bandwidth • time domain concepts • periodic signal • pattern repeated over time • s (t +T ) = s (t ) -¥< t < +¥ • Where T is the period of the signal • aperiodic signal • pattern not repeated over time
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 () • Measure of the relative position in time within a single period of a signal
Sine Wave • General sine wave • s (t ) = A sin(2ft + ) • Note • 2 radians = 360° = 1 period Amplitude Frequency Phase
Wavelength () • is distance occupied by one cycle • between two points of corresponding phase in two consecutive cycles • assuming signal velocity v have = vT • 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 sine waves • Fourier analysis can shown that any signal is made up of component sine waves • where A0 is the DC component, An,Bn are the harmonics and f0 is the fundamental frequency. • can plot frequency domain functions
Frequency Domain Concepts • In practice, an electromagnetic signal will be made up of many frequencies • Note: • s(t) is composed of sine waves of frequencies fand 3f • Second frequency (3f) is an integer multiple of the first (f) • Total period of s(t) is equal to the period of the fundamental frequency
FrequencyDomainRepresentations • freq domain func of Fig 3.4c • freq domain func of single square pulse
Spectrum & Bandwidth • spectrum • range of frequencies contained in signal • Fig 3.4c, it extends from f to 3f in the • absolute bandwidth • width of spectrum (2f in Fig 3.4c) • effective bandwidth • often just bandwidth • narrow band of frequencies containing most energy • DC Component • component of zero frequency
Spectrum & Bandwidth • A bandwidth of a signal is a measure of how fast the signal varies. • A bandwidth of a channel is defined as the range of frequencies that is passed by a channel. • The bandwidth of a channel W measures the width of the window of frequencies that are passed by the channel.
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 • Explanation next !!
Data Rate and Bandwidth • Positive pulse represent binary 0 • Negative pulse represent binary 1. • represent the binary stream 0101. . . . • The duration of each pulse is 1/(2f ) • thus the data rate is 2f bits per second (bps). • What are the frequency components of this signal
Data Rate and Bandwidth 1st, 3rd , and 5th,harmonics 1st, 3rd ,5th, and 7th harmonics Infinite number of harmonics
Data Rate and Bandwidth • it can be shown that the frequency components of the square wave with amplitudes A and –A can be expressed as follows: • Thus, this waveform has an infinite number of frequency components • hence an infinite bandwidth. • the kth frequency component, kf, is only 1/k, so most of the energy in this waveform is in the first few frequency components.
Data Rate and Bandwidth • transmit a sequence of alternating 1s and 0s as the square wave • What data rate can be achieved? • We look at three cases.
Data Rate and Bandwidth • Case I • digital transmission system (4 MHz) • approximate our square wave with three frequency components (f,3f,5f) • f = 1 MHz, the BW of the signal: • 5*106 – 1*106 = 4 MHz • T = 1/f = 1us => one bit occurs every 0.5 us • Data rate = 2*106 = 2 Mbps is achieved for 4 MHz BW
Data Rate and Bandwidth • Case II • approximate our square wave with three frequency components (f,3f,5f) • digital transmission system (8 MHz), f = 2 MHz • BW of the signal = 10*106 – 2*106 = 8 MHz • T = 1/f = 0.5us => one bit occurs every 0.25 us • Data rate = 4*106 = 4 Mbps is achieved for 8 MHz BW • doubling the bandwidth, we double the potential data rate.
Data Rate and Bandwidth • Case III • approximate our square wave with two frequency components (f,3f) • f = 2 MHz => bandwidth of 4 MHz • BW of the signal = • 6*106 – 2*106 = 4 MHz • T = 1/f = 0.5us => one bit occurs every 0.25 us • Data rate = 4*106 = 4Mbps is achieved for 4 MHz BW
Data Rate and Bandwidth • To summarize, • Case I: Bandwidth = 4 MHz; data rate = 2 Mbps • Case II: Bandwidth = 8 MHz; data rate = 4 Mbps • Case III: Bandwidth = 4 MHz; data rate = 4 Mbps • given bandwidth can support various data rates depending on the ability of the receiver to discern the difference between 0 and 1
Data Rate and Bandwidth • The greater the bandwidth, the higher the information-carrying capacity • Conclusions • Any digital waveform will have infinite bandwidth • BUT the transmission system will limit the bandwidth that can be transmitted • AND, for any given medium, the greater the bandwidth transmitted, the greater the cost • HOWEVER, limiting the bandwidth creates distortions
Data Rate and Bandwidth data rate of 2000 bits per second
Data Rate and Bandwidth With a bandwidth of 2500 Hz, or even 1700 Hz, the representation is quite good If the data rate of the digital signal is W bps, then a very good representation can be achieved with a bandwidth of 2W Hz
Analog and Digital Data Transmission • data • entities that convey meaning • signals & signalling • electric or electromagnetic representations of data, physically propagates along medium • transmission • communication of data by propagation and processing of signals
Examples of Analog and Digital Data • Analog • Video • the video image can be thought of as a time-varying analog signal. • Audio • Digital • Text • Integers
Video Interlaced Scanning • USA - 483 lines per frame, at 30 frames per sec
Analog Signals • A continuously varying electromagnetic wave that may be propagated over a variety of media, depending on frequency • Examples of media: • Copper wire media • Twisted pair and coaxial cable • Fiber optic cable • Atmosphere or space propagation • Analog signals can propagate analog and digital data
Digital Signals • A sequence of voltage pulses that may be transmitted over a copper wire medium • Generally cheaper than analog signaling • Less susceptible to noise interference • Suffer more from attenuation • Digital signals can propagate analog and digital data
Audio Signals (BW approximation) • freq range 20Hz-20kHz (speech 100Hz-7kHz) • easily converted into electromagnetic signals • varying volume converted to varying voltage • can limit frequency range for voice channel to 300-3400Hz
Video Signals (BW approximation) • USA - 483 lines per frame, at frames per sec • have 525 lines but 42 lost during vertical retrace • 525 lines x 30 scans = 15750 lines per sec • 63.5s per line • 11s for retrace, so 52.5 s per video line • max frequency if line alternates black (higher) and white (lower) voltage level. • subjective resolution is about 70% of 525-42, or about 338 lines • horizontal resolution is about 450 lines giving 225 cycles of wave in 52.5 s • max frequency of 4.2MHz
Digital Data (BW approximation) • as generated by computers etc. • has two dc components • bandwidth depends on data rate
Data and Signal Combinations • Digital data, digital signal • Equipment for encoding is less expensive than digital-to-analog equipment • Analog data, digital signal • Conversion permits use of modern digital transmission and switching equipment • Digital data, analog signal • Some transmission media will only propagate analog signals • Examples include optical fiber and satellite • Analog data, analog signal • Analog data easily converted to analog signal
Analog Transmission • Transmit analog signals without regard to content • Attenuation limits length of transmission link • Cascaded amplifiers boost signal’s energy for longer distances but cause distortion • Analog data can tolerate distortion • Introduces errors in digital data
Digital Transmission • Concerned with the content of the signal • Attenuation endangers integrity of data • Digital Signal • Repeaters achieve greater distance • Repeaters recover the signal and retransmit • Analog signal carrying digital data • Retransmission device recovers the digital data from analog signal • Generates new, clean analog signal
Advantages of Digital Transmission • Digital technology: – Low cost LSI/VLSI technology. • Data integrity: – Longer distances over lower quality lines. • Capacity utilization: – High bandwidth links economical. – High degree of multiplexing easier with digital techniques (time-division). • Security & Privacy: – Encryption is easier with digital symbols (done with mathematic operations). • Integration: – All signals are essentially digital. – Can treat analog and digital data similarly.
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. • Analog - degradation of signal quality. • Digital - bit errors. • Most significant impairments caused by – Attenuation and attenuation distortion. – Delay distortion. – Noise.