Download presentation
Presentation is loading. Please wait.
Published byClifford Todd Modified over 9 years ago
1
COSC 3213: Computer Networks I Instructor: Dr. Amir Asif Department of Computer Science York University Section M Topics: 1. Digital Information 2. Digital Communications versus Analogue Communications 3. Channel Capacity: Nyquist and Shannon Bounds. 4. Time and Frequency Domain Representations of Signals Garcia: Sections 3.1 – 3.5
2
2 Digital Information 1.Recall that the lowest layer in OSI is the physical layer. 2.The physical layer deals with the transfer of raw bits and is the focus of our attention in the next few lectures. 3.Communication systems can be classified in two categories: a.Analogue Communication System dealing with analogue signals b.Digital Communication System dealing with digital signals 4.Analogue signals are defined for the entire duration and can have any value. 5.Digital signals are defined at fixed instants and can only have one of the pre-selected set of values. 6.Information can be classified in two categories: 1.Block-oriented information usually arranged nicely in contiguous blocks. Includes data files, BW documents, and images 2.Stream information usually arising from a natural process such as audio and video.
3
3 Block Oriented Information (1) Information Type Format Raw Data Size Data Compression Compressed Data Size (CR) Applications Text FilesASCII Kbytes to Mbytes Lossless Compression such as Dictionary or Arithmetic codes. Compress, Zip, and variations (2 – 6) Disk Storage, Modem transmission Scanned B&W documents A4 (8.5 x 11 in) page @ 200 x 100 pixels / inch + overhead 256 Kbytes CCITT Group 3 fax standard 15–54 KB (1D) 5 – 35 KB (2D) (5 – 50) Storage, Fax Transmission Color images 8 x 10 inch photo scanned @ 400 pixels / in 38.4 MbytesJPEG standard 1.2 – 8 Mbytes (5 – 30) Image storage or transmission Activity 1: Show that the raw data size of the color image (last row entry) is indeed 38.4Mbytes/s?
4
4 Block Oriented Information (2) 1.Data compression seeks to exploit the redundancy present in the data to encode information in a fewer number of bytes. 2.Compression ratio (CR) is the ratio between the size of raw data to the size of the compressed data. 3.Why Data Compression? Transmission time of Color image (raw) on V.90 modem = 12 minutes Transmission time of JPEG encoded Color image on V.90 modem = 24 seconds 4.Data Compression schemes can be classified in two categories: a.Lossless Compression: No loss of information but compression ratio limited. b.Lossy Compression: Controlled loss of information for higher compression. 5.Bound of Lossless Compression is provided by Shannon's Source encoding theorem which states that the minimum size of compressed data without loss of information equals the entropy of the source generating the data.
5
5 Streamed Information Information Type Format Raw Data Size Data Compression Compressed Data Size Applications Voice4 kHz voice64 kbpsPCM64 kbps Digital telephony ADPCM16 - 32 kbps Voice mail, Telephony Linear Prediction8 - 16 kbps Cellular Telephony Audio16 – 24 kHz audio512-748 kbpsMPEG MP332 – 384 kbpsMPEG audio Video QCIF (176 x 144) or CIF (352 x 288) @ 10 - 30 fps 2 – 36.5 MbpsITU H.261 coding 64 kbps – 1.544 Mbps Video conferencing 720×480 pels/frame @ 30 fps 249 MbpsISO MPEG 22 – 6 Mbps NTSC TV, DVD 1920×1020 pels/frame @ 30 fps 1.6 GbpsISO MPEG 219 – 38 MbpsHDTV Activity 2: Show that the raw data size of HDTV (last row entry) is indeed 1.6Gbps?
6
6 Why Digital Communications (1)? Digital Communications results in an improved Signal to Noise ratio (SNR) as compared to analogue communications. Analogue Channel TransmitterReceiver Signal Tx Signal Rx Attenuates and introduces distortion Repeater Equalizer Amp. Equalized Signal Note that the tx signal can not be recovered from the rx signal due to attenuation and distortions. Attenuation must be compacted so that the received signal: (1) is strong enough for the receiver to detect the signal; and (2) maintains a level sufficiently higher than noise for correct bit detection. Example of an Analogue Communication System:
7
7 Why Digital Communications (2)? Signal is recovered perfectly even when attenuation and distortions are introduced. Digital Channel TransmitterReceiver Attenuates and introduces distortion Amplifier Equalizer Timing Recovery Decision Circuit & Signal Regenerator Repeater Example of a Digital Communication System:
8
8 Analog Signals 1.Analog signals are classified in two categories: a.Periodic Signals: that repeat themselves b.Aperiodic or nonperiodic signals: that do not repeat themselves. Periodic Signal with Period = T T Sample waveform of “ae” sound as in cat s (noisy ) | p (air stopped) | ee (periodic) |t(stopped)|sh(noisy) Waveform for word “speech” Non-periodic Signal
9
9 Periodic Signals 1.Periodic signals repeat over time, i.e., 2.Aperiodic signals do not repeat themselves regularly. s(t) = Asin(2 f 0 t + 0 )
10
10 Periodic Signals: Sine wave Activity 3: Identify the amplitude, fundamental frequency, and phase of the sinusoidal signals?
11
11 Frequency Representation of Periodic Signals (1) Time DomainFrequency Domain 1 0 1 0 t 0.25 ms x1(t)x1(t) f (kHz) 812 4 1 1 1 1 0 0 0 0 t 1 ms x2(t)x2(t) f (kHz) 812 4 Periodic signals with fundamental frequency f 0 = 1/T Hz may be represented by the Fourier Series, defined as:
12
12 Frequency Representation of Periodic Signals (1) Fourier Series says that any periodic signal with the fundamental frequency of f 0 can be represented as a linear combination of a sinusoidal wave with the fundamental frequency of f 0 and the higher order harmonics of the sinusoidal wave with fundamental frequencies (kf 0 ) for (2 ≤ k ≤ ∞). As an example, consider the sum of the first two harmonics of Including more terms will make the approximation closer to a square wave.
13
13 Frequency Representation of of Aperiodic Signals (1) Time DomainFrequency Domain Non-periodic signals may be represented by the Fourier Transform, defined as: t 0 f 0 f 0 t 0
14
14 Streamed Data: Analogue to Digital Conversion There are two steps involved in converting an analogue signal to a digital signal: 1.Sampling: obtain the value of signal every T seconds. Choice of T is determined by how fast a signal changes, i.e., the frequency content of the signal Nyquist Sampling theorem says: Sampling Analogue Signal: Defined for all time Can have any amplitude /2 5 /2 /2 5 /2 Discrete-time Signal: Defined for multiples of T Can have any amplitude T
15
15 Analogue to Digital Conversion There are two steps involved in converting an analogue signal to a digital signal: 2.Quantization: approximate signal to certain levels. Number of levels used determine the resolution. Quantization Digital Signal: Defined for multiples of T Amplitude limited to a few levels T Discrete-time Signal: Defined for multiples of T Can have any amplitude T input x(nT) output y(nT)
16
16 Example: First row of streamed information detailing voice (from previous table): Voice:maximum frequency = 4 kHz voice Sampling rate (1 / T) >= 2 × 4000 or 8000 samples/second Sampling period (T) = 1 / 8000 = 125 microseconds For digital telephony, no. of levels (L) used in the uniform quantizer are 256 Number of bits required to represent a level = log 2 (L) = log 2 (256) = 8 bits Data rate = 8000 × 8 or 64 kbps Activity 4: Repeat for stereo music system that contains a maximum frequency of 22 kHz. The number of levels used by the uniform quantizer are 64K. Remember there are 2 channels (L & R) in a stereo system. How much data will be generated in one hour?
17
17 Pulse Code Modulation (PCM) PCM (sampling followed by quantization) is used to digitize voice signals in telephony. Voice signal is band limited to 4 kHz (Sampling rate = 8 ksamples/s) 8-bit nonuniform quantizer is used to quantize each sample (Data rate = 64 kbits/s) It can be shown that the SNR for PCM = (6m – 10) dB t -0.75 -0.50 -0.25 0 0.25 0.50 0.75 1.00 -0.875 -0.625 -0.375 -0.125 0.125 0.375 0.625 0.875 Decision Levels Reconstruction Levels 3-bit codewords 000 001 010 011 100 101 110 111 PCM output011010000001111 001110101 100 TsTs PCM with m = 3, No. of levels = 2 3 = 8
18
18 Fundamental Problem Fundamental Question: How fast (maximize data rate) and reliably (minimize errors) digital transmission can occur through a channel? Depends upon a number of factor: Amount of energy present in the signal Noise properties of the channel Distance for signal to propagate Bandwidth (BW) of the transmission medium Bandwidth: determines the range of frequencies that can be transmitted through a channel. Consider a sinusoidal wave: Frequency present in the wave = f 0 Hz or 2 f 0 radians/s Apply s(t) at the input of the channel and measure the amplitude of the output Calculate the ratio of the amplitude of the output to that of the input (referred to as Amplitude response function) that provides a measure of the Bandwidth
19
19 Communication channels can be characterized either in the frequency domain or time domain To obtain the frequency domain characterization, apply a sinusoidal signal at the input and measure the output Amplitude Response A(f): is the ratio of the output amplitude to input amplitude (A out / A in ) as a function of frequency. Phase Shift: is the variation in (f ) as a function of frequency. Communication Channels: Frequency Domain Characterization (1) Channel t t A in cos(2 ft) A out cos(2 ft + ( f ))
20
20 Communication Channels: Frequency Domain Characterization (2) Examples of Amplitude and Frequency-response functions Bandwidth (BW): is the range of frequencies passed by the channel. Attenuation: is the reduction in signal power as in propagates through the channel. Attenuation in dB = 10 log 10 (P in / P out ) Activity 5: Show that the attenuation of the above channel is 201og 10 (A ( f ))? f 1 ( f ) = tan -1 2 f f 0 45 o 90 o 1/ 2
21
21 Communication Channels: Frequency Domain Characterization (3) Activity 6: What are the bandwidth of the channels with the following amplitude-response functions? f 0W A(f)A(f) Lowpass Channel 0W f A(f)A(f) 1 Ideal Lowpass Channel 0W2W2 f A(f)A(f) 1 Ideal Bandpass Channel W1W1 0W f A(f)A(f) 1 Ideal Highpass Channel
22
22 Communication Channels: Time Domain Characterization Time Domain characterization of a channel is determined by applying an impulse at the input of the channel and measuring the output. where h(t) is called the impulse response. Impulse response and amplitude-response function are related by the Fourier transform. Knowing one, the other can be calculated. Given the impulse response (or the amplitude-response function), the output for any given input can be calculated. Channel t 0 t h(t)h(t) tdtd
23
23 Baseband Transmission (1) Baseband Transmission: is the transmission of digital information over a lowpass channel. Two parameters used to characterize the performance of a communication system: Data rate in bps: Number of bits transmitted per second. Error rate: Fraction of bits received in error. Consider a binary lowpass channel using Polar NRZ representation for bits: The communication system is designed in such a way that the response to a single pulse is p(t) +A+A -A-A 0 T 2T2T 3T3T 4T4T5T5T 111100 t Received signal Transmitter Filter Comm. Channel Receiver Filter Receiver p(t)p(t) 0 t 0
24
24 Baseband Transmission (2) Overall response to the binary data 101101 is: How does the receiver detects bits from r(t)? Sample r(t) at t = 0, T, 2T, 3T If r(kT) > 0, then bit 1 was transmitted at t = kT If r(kT) < 0, then bit 0 was transmitted at t = kT For t = 0, we get The second term involving the summation results in Intersymbol Interference (ISI). ISI causes overlapping between neighbouring pulses and therefore degrades the ability of the receiver in detecting the transmitted bits from the received signal. ISI is a nuisance. How do we reduce ISI? Select a pulse p(t) that contributes zero Intersymbol Interference.
25
25 Channel Capacity (1) Received signal Transmitter Filter Comm. Channel Receiver Filter Receiver r(t) 0 t 0 Width of pulse (T) = 1 / (2W) where W = BW of the channel Maximum transmission rate = 2W pulses / second
26
26 Channel Capacity (2) Let us calculate the bit rate for a channel with BW = W Hz. If bandwidth is W Hz, then minimum width of pulse = 1 / 2W seconds. Nyquist Signaling Rate = 2W pulses/s (maximum data rate assuming a noiseless channel). Binary Transmission: 1 bit per pulse => Transmission rate = 1 / duration of pulse = 2W bps M-level Transmission: No. of bits represented by one pulse = log 2 (M) = m Nyquist Signaling Rate in bps = m ×(1 / duration of pulse) = 2mW = 2W log 2 (M) bps Increasing m, increases the transmission rate !!!! Is there an upper limit? Channel t t 1/(2W) 1 0 1 t 1/(2W) 00011011 2-ary Transmission
27
27 Channel Capacity (3) Channel Capacity (C) is the maximum bit rate supported by a channel. Can the channel capacity C be made infinite by increasing m? No! There are other constraints introduced by noise and channel interference. signal noise signal + noise High SNR t t t signalnoise signal + noise Low SNR t t t More Errors
28
28 Channel Capacity (4) By increasing m, the difference between adjacent levels is reduced affecting SNR Reduction in SNR affects the Channel Capacity (C). Shannon Channel Capacity theorem provides an upper bound on the channel capacity in terms of bandwidth for a noisy channel C = W log 2 (1 + SNR) bps Recall that the Nqyuist theorem provided the upper bound on the channel capacity for a noiseless channel. The Shannon theorem provides the upper bound for a noisy channel. Shannon theorem provides no indication of levels. For M = 2 m levels or symbols, the channel capacity based on the Shannon theorem is given by C = {W log 2 (1 + SNR)} / m symbols/s Activity 7: Calculate the channel capacity of a dial-in modem that has a BW of 3400 Hz if the best SNR possible in the modem is 40dB. Recall that SNR in dB = 10 log 10 (SNR on a linear scale).
29
29 Channel distortion Probability of error in presence of additive White Gaussian noise (AWGN): where is the distance between levels and is the standard deviation of noise. Activity 8: Consider a dial-in modem that uses Pulse Shift Keying (PSK) of a sinusoidal wave having a maximum amplitude of +5V. The bandwidth of the twisted pair wire used is limited to 3400Hz. Assuming that the noise introduced by the channel is AWGN with a variance ( 2 ) of 2.25. Calculate: (a)the signal-to-noise ratio (SNR) for the channel in dB. (b)the channel capacity C of the twisted pair as a channel. (c)the probability of error P e for binary transmission. Answers: (a) 7.45 dB (b) 2.78 kbps (c) 2.43 x 10 -6
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.