ANALOG VS DIGITAL

A&D 8 Copyright 1998, Professor John 1 T.Gorgone BASICS OF DATA COMMUNICATIONS

Data Transport System

Analog Data

The transport of data through a network can be classified into two overall transport techniques: n Analog Data - Data modulated or changed to conform to a voice transmission format. n Digital Data - Data transported in a digital or discrete format.

A&D 8 Copyright 1998, Professor John 2 T.Gorgone ANALOG SIGNALING OF ANALOG DATA AND DIGITAL DATA

Analog - Data represented with continuously varying Electromagnetic Wave

Analog Data Voice Analog (Sound Waves)

Digital Data Analog Binary Voltage Pulses Signal

A&D 8 Copyright 1998, Professor John 3 T.Gorgone DIGITAL SIGNALING OF ANALOG DATA AND DIGITAL DATA

Digital Signals - Data represented with a sequence of voltage pulses

Analog Data CODEC

Digital Data Digital Digital Data Digital Signal

A&D 8 Copyright 1998, Professor John 4 T.Gorgone EXAMPLES OF PERIODIC SIGNALS Amplitude

t

(a) Sine wave T

t

(b) Square wave

A&D 8 Copyright 1998, Professor John 5 T.Gorgone CHARACTERISTICS OF AN ANALOG SIGNAL

n ANALOG - means that the signal is continuous rather than either on or off.

n Both sound and light are analog signals spread over a wide range of .

n Amplitude, , and phase are characteristics of an analog signal.

A&D 8 Copyright 1998, Professor John 6 T.Gorgone The amplitude of the wave is a measure of the loudness of the sound:

The Greater the Amplitude Who wrote this report? The Louder the Sound!!! !#@!#@

SOFT LOUD!!!

A&D 8 Copyright 1998, Professor John 7 T.Gorgone SINE WAVE PROPERTIES (Amplitude)

Amplitude

Amplitude

Modifiable via Adjustment to Voltage Level

A&D 8 Copyright 1998, Professor John 8 T.Gorgone SINE WAVE PROPERTIES (Frequency)

The frequency (f) of a periodic signal is defined as the number of cycles passing any given point per second.

It is customary to express the frequency in hertz (Hz), meaning vibrations per second or cycles per second. The shorter the wavelength, the higher the frequency, or the pitch of the sound.

High Low

A&D 8 Copyright 1998, Professor John 9 T.Gorgone SINE WAVE PROPERTIES (FREQUENCY)

1 Cycle 1 Cycle

One cycle per second = one Hertz (Hz) Cycle = One wavelength

A&D 8 Copyright 1998, Professor John 10 T.Gorgone SINE WAVE PROPERTIES (PHASE)

360°

Phase is the relative position within a cycle.

A&D 8 Copyright 1998, Professor John 11 T.Gorgone Use of in Data Transmission

Modulation

HOST HOST COMPUTER

Modems

A&D 8 Copyright 1998, Professor John 12 T.Gorgone OF ANALOG SIGNALS

n Use a signal appropriate to the channel: "Carrier" (for telephone signal in 300-3400 Hz range) Add data to it - "Modulate" the signal Convert: Digital to Analog >>>>> Modulation Analog to Digital >>>>> Demodulation

Function performed via modem (Modulator/Demodulator)

Digital Modem Modem Digital Analog Signal Modulation Techniques n (AM) n (FM) n Phase Modulation (PM) A&D 8 Copyright 1998, Professor John 13 T.Gorgone DIGITAL vs.

Problems with Digital () Transmission

n Long distances - deterioration due to capacitance, resistance, and .

Need frequent (every 300M - 2KM) to regenerate the signal. Regenerated signal = original

n Accommodate the channel - Fit within the of the channel (e.g., telephone system 300-3400Hz).

Problems with Analog Transmission

n Signal to noise ratio - Better over long distances but cannot clean up signal in analog form.

Use Digital over short distances or with repeaters, use Analog where it is needed to fit the channel. A&D 8 Copyright 1998, Professor John 14 T.Gorgone Digital vs. Analog Transmission n Digital signals can be transmitted in a manner that largely overcomes the problems of noise. n With digital transmission each regenerates the on/off pulses. n Fresh, new, clean pulses with the noise removed are reconstructed and sent on to the next repeater where the reconstruction process is performed again. n Another advantage of digital transmission is the digital signals are already in an appropriate form for computer processing.

A&D 8 Copyright 1998, Professor John 15 T.Gorgone Digital vs. Analog Transmission (continued)

n A disadvantage of digital transmission is that the original analog signal can never be reproduced exactly because the input analog signal must be quantized. That is, it must be represented by a limited set of specific discrete values.

A&D 8 Copyright 1998, Professor John 16 T.Gorgone Digital vs. Analog Transmission (continued) n Analog information such as a human voice needs to be converted to digital form before it can be transmitted over a digital channel.

This conversion is performed by a device called a CODEC (from Coder/Decoder).

Any analog data- - sound, heat, light, TV pictures, color photographs - - can be digitized into a bit stream and transmitted over a digital channel.

The most common technique used today to transmit analog signals in digital form is called pulse code modulation (PCM). A&D 8 Copyright 1998, Professor John 17 T.Gorgone ANALOG AND DIGITAL SIGNALING OF ANALOG AND DIGITAL DATA

Analog Signals - Represent data with continuously varying electromagnetic wave.

Analog Data Voice Analog Signal (Sound Waves)

Digital Data Binary Voltage Modem Analog Signal Pulses

A&D 8 Copyright 1998, Professor John 18 T.Gorgone ANALOG AND DIGITAL SIGNALING OF ANALOG AND DIGITAL DATA

Digital Signals - Represent data with sequence of voltage pulses. Analog Data Analog Signal CODEC (Sound Waves) Digital Signal

Digital Data Binary Voltage Digital Digital Signal Pulses Transmitter

A&D 8 Copyright 1998, Professor John 19 T.Gorgone Why has the use of Analog Transmission dropped while Digital Transmission increased?

– Digital Technology: The advent of large scale integration (LSI) and very large scale integration (VLSI) technology have caused a drop in cost. Analog transmission has not shown a similar drop. Data Integrity: With the use of repeaters rather than amplifiers, the effects of noise and other signal impairments are not cumulative. Thus we can transmit longer distances and over less expensive lines while maintaining the data integrity. Capacity Utilization: It has become very economical to build transmission links of very high bandwidth, including satellite and fiber optics. The high degree of needed to utilize this capacity is more easily achieved with digital rather than analog techniques. Security and Privacy: Encryption techniques can be readily applied to digital data and analog data that have been digitized. Integration: By treating both digital and analog data digitally, both signals have the same form and can be treated economically.

A&D 8 Copyright 1998, Professor John 20 T.Gorgone BASIC MODULATION TECHNIQUES n Transmission of information represented in binary form over an analog channel requires a process called modulation. n When no information is being passed, a steady alternating current of constant amplitude and frequency called a carrier signal is present. n Some characteristics of the carrier current must be altered to represent bits of information.

A&D 8 Copyright 1998, Professor John 21 T.Gorgone SIGNAL MODULATION

Carrier Signal 0 0 1 1 1 Digital Data

Amplitude Modulation

Frequency Modulation

Phase Modulation

A&D 8 Copyright 1998, Professor John 22 T.Gorgone BASIC MODULATION TECHNIQUES

1 0 1 1 0 1 1 0 1 0 1 1 0 1 1 0 1 0 1 1 0 1 1 0 Modem Modem

n AMPLITUDE modulation (AM) converts digital data to analog signals using a single frequency carrier signal. A high amplitude wave denotes a binary 1 and a low amplitude wave denotes a binary 0.

A&D 8 Copyright 1998, Professor John 23 T.Gorgone BASIC MODULATION TECHNIQUES

1 0 1 1 0 1 1 0 1 0 1 1 0 1 1 0 1 0 1 1 0 1 1 0 Modem Modem

n FREQUENCY shift keying (FSK) uses a constant amplitude carrier signal and two frequencies to distinguish between 1 and 0.

A&D 8 Copyright 1998, Professor John 24 T.Gorgone BASIC MODULATION TECHNIQUES

1 0 1 1 0 1 1 0 1 0 1 1 0 1 1 0 1 0 1 1 0 1 1 0 Modem Modem

180o phase shifts

n PHASE shift keying (PSK) uses a phase shift at transition points in the carrier frequency to represent 1 or 0.

A&D 8 Copyright 1998, Professor John 25 T.Gorgone BASIC MODULATION TECHNIQUES

10 11 01 10 1 0 1 1 0 1 1 0 1 0 1 1 0 1 1 0 Modem Modem

n DIFFERENTIAL phase shift keying (DPSK) uses different phase shifts to represent four possible combinations of 0 and 1 bits. In the example, 45 degrees represents 00, 135 degrees stands for 01, 225 degrees for 11, and 315 degrees for 10. The pairs of bits are called dibits. A&D 8 Copyright 1998, Professor John 26 T.Gorgone THE PROCESS OF CHANGING THE CARRIER SIGNAL IS CALLED MODULATION n The number of carrier signal changes per second is called the Line Signaling Rate and is measured in Baud. Thus, 2400 baud means 2400 carrier signal changes per second. n The communications equipment in which modulation is performed is called a Modem (MOdulate/DEModulate). n There are four common modulation techniques: – Amplitude – Phase shift keying – Frequency shift keying – Differential phase shift keying

A&D 8 Copyright 1998, Professor John 27 T.Gorgone AMPLITUDE MODULATION (AM): n Varies the amplitude of the signal to transmit information. n A constant frequency is used with a high amplitude wave representing 1 and a low amplitude wave representing 0. n Use of four amplitude levels allows four combinations of two bits (00, 10, 01, 11) to be sent with a single change in signal. n Amplitude Modulation is seldom used without other forms of modulation because the signals it produces are susceptible to noise, and it takes a long time A&D 8 Copyright 1998, Professor John 28 (relative to other modulationT.Gorgone techniques) to sample the signal. FREQUENCY SHIFT KEYING MODULATION (FSK)

n A constant amplitude signal is modulated between two frequencies to represent 0 and 1. n FSK modulation is less affected by noise on the transmission lines than is amplitude modulation.

A&D 8 Copyright 1998, Professor John 29 T.Gorgone PHASE SHIFT KEYING (PSK) n PSK uses a phase shift at transition points in the carrier signal to represent 0's and 1's. n Phase is the measure of relative time that the sine wave crosses through zero amplitude. Just at the time the carrier signal is crossing zero it is shifted one-half cycle. So instead of continuing to increase in positive value, the signal repeats the 0 to maximum negative value cycle. n PSK is affected even less by noise than frequency shift keying (FSK) and is used for higher speed A&D 8 Copyright 1998, Professor John 30 transmission above 2000T.Gorgonebps. DIFFERENTIAL PHASE SHIFT KEYING (DPSK)

n DPSK uses different phase shifts to represent different combination of bits. n To represent the four dibits (00, 10, 11) four phase shifts are required. n By sending dibits instead of single bits over the same carrier signal, DPSK modems can achieve higher transfer rates.

A&D 8 Copyright 1998, Professor John 31 T.Gorgone COMBINATION MODULATION TECHNIQUES n High speed modems use combination modulation techniques to achieve high data transfer rates. n For example, to transmit four bits per signal change, a combination of differential phase shift keying (DPSK) and amplitude modulation (AM) techniques can be used. n Sixteen different signal states can be derived using a combination of 12 different phases and two amplitude levels. n The line signaling rate for a 9600 bps modem using such a technique is 2400 baud, since each change in the signal represents four bits.

A&D 8 Copyright 1998, Professor John 32 T.Gorgone PHASE AND AMPLITUDE STATES OF COMBINATION MODULATION TECHNIQUES

0110 0010 0111 0001

0011 0100 0000 0101 Phase reference signal 1100 (previous 4 bits) 1111 1001 1000

1101 Note: 4 of the 12 phases 1011 use 2 amplitudes to 1110 1010 achieve 16 representations. A&D 8 Copyright 1998, Professor John 33 T.Gorgone PAM AND PCM n Pulse Code Modulation (PCM) is based on a sampling theorem.

If voice data are limited to frequencies below 4000Hz, 8000 analog samples per second would be sufficient to completely characterize the voice signal.

These samples are represented as narrow pulses whose amplitude is proportional to the value of the original signal.

This process is known as Pulse Amplitude Modulation (PAM)

To produce PCM data, the PAM samples are quantized. That is, the amplitude of each PAM pulse is approximated by a N-bit integer, in the example, N = 3. The 8 = 2**3 levels are available for approximating the PAM pulses.

A&D 8 Copyright 1998, Professor John 34 T.Gorgone PULSE CODE MODULATION

(a) Original signal 6.2 5.9 4.1

3.0 2.8

1.4 1.3

T s (b) PAM pulses A&D 8 Copyright 1998, Professor John 35 T.Gorgone PULSE CODE MODULATION

6 6 4

3 3

1 1

(c) PCM pulses 011001110001011110100

(d) PCM output

A&D 8 Copyright 1998, Professor John 36 T.Gorgone DIGITAL VOICE TRANSMISSION

n Analog to digital voice encoding: – PCM most popular - used by telephone carriers.

n 8 bit samples at 8 Khz rate - 64Kbps digital bit stream per voice call: – Analog signal is band limited: 300-3400 Hz. – Sample at 2X highest frequency: 8000 samples/sec.

A&D 8 Copyright 1998, Professor John 37 T.Gorgone DIGITAL VOICE TRANSMISSION

n Each 8-bit sample represents signal amplitude:

Time Amplitude{

S ABS Value - Function performed by a CODEC chip. 8 - BITS

A&D 8 Copyright 1998, Professor John 38 T.Gorgone DATA ENCODING

Difference between Analog and Digital Data and Analog and Digital Signals.

n Digital Data, Digital Signals n Analog Data, Digital Signals – NRZ – PAM – RZ – PCM – Biphase – Delay Modulation – Delta Modulation (DM) – Multilevel Binary n Analog Data, Analog Signals n Digital Data, Analog Signals – Amplitude Modulation – Encoding Techniques – Angle Modulation l ASK – FM l FSK – PM l PSK

A&D 8 Copyright 1998, Professor John 39 T.Gorgone