74
Physical Physical Layer Layer PART II PART II

Physical Layer PART II. Position of the physical layer

Embed Size (px)

Citation preview

Page 1: Physical Layer PART II. Position of the physical layer

PhysicalPhysical LayerLayer

PART IIPART II

Page 2: Physical Layer PART II. Position of the physical layer

Position of the physical layer

Page 3: Physical Layer PART II. Position of the physical layer

Chapters

Chapter 3 Signals

Chapter 4 Digital Transmission

Chapter 5 Analog Transmission

Chapter 6 Multiplexing

Chapter 7 Transmission Media

Chapter 8 Circuit Switching and Telephone Network

Chapter 9 High Speed Digital Access

Page 4: Physical Layer PART II. Position of the physical layer

Chapter 3

Signals

Page 5: Physical Layer PART II. Position of the physical layer

To be transmitted, data must be transformed to electromagnetic

signals.

Note:Note:

Page 6: Physical Layer PART II. Position of the physical layer

3.1 Analog and Digital

Analog and Digital Data

Analog and Digital Signals

Periodic and Aperiodic Signals

Page 7: Physical Layer PART II. Position of the physical layer

Signals can be analog or digital. Analog signals can have an infinite number of values in a range; digital

signals can have only a limited number of values.

Note:Note:

Page 8: Physical Layer PART II. Position of the physical layer

Figure 3.1 Comparison of analog and digital signals

Page 9: Physical Layer PART II. Position of the physical layer

In data communication, we commonly use periodic analog signals and

aperiodic digital signals.

Note:Note:

Page 10: Physical Layer PART II. Position of the physical layer

3.2 Analog Signals

Sine WavePhaseExamples of Sine WavesTime and Frequency DomainsComposite SignalsBandwidth

Page 11: Physical Layer PART II. Position of the physical layer

Figure 3.2 A sine wave

Page 12: Physical Layer PART II. Position of the physical layer

Figure 3.3 Amplitude

Page 13: Physical Layer PART II. Position of the physical layer

Frequency and period are inverses of each other.

Note:Note:

Page 14: Physical Layer PART II. Position of the physical layer

Figure 3.4 Period and frequency

Page 15: Physical Layer PART II. Position of the physical layer

Table 3.1 Units of periods and frequenciesTable 3.1 Units of periods and frequencies

Unit Equivalent Unit Equivalent

Seconds (s) 1 s hertz (Hz) 1 Hz

Milliseconds (ms) 10–3 s kilohertz (KHz) 103 Hz

Microseconds (ms) 10–6 s megahertz (MHz) 106 Hz

Nanoseconds (ns) 10–9 s gigahertz (GHz) 109 Hz

Picoseconds (ps) 10–12 s terahertz (THz) 1012 Hz

Page 16: Physical Layer PART II. Position of the physical layer

Frequency is the rate of change with respect to time. Change in a short span of time means high frequency. Change

over a long span of time means low frequency.

Note:Note:

Page 17: Physical Layer PART II. Position of the physical layer

If a signal does not change at all, its frequency is zero. If a signal changes

instantaneously, its frequency is infinite.

Note:Note:

Page 18: Physical Layer PART II. Position of the physical layer

Phase describes the position of the waveform relative to time zero.

Note:Note:

Page 19: Physical Layer PART II. Position of the physical layer

Figure 3.5 Relationships between different phases

Page 20: Physical Layer PART II. Position of the physical layer

Example 2Example 2

A sine wave is offset one-sixth of a cycle with respect to time zero. What is its phase in degrees and radians?

SolutionSolution

We know that one complete cycle is 360 degrees.

Therefore, 1/6 cycle is

(1/6) 360 = 60 degrees = 60 x 2 /360 rad = 1.046 rad

Page 21: Physical Layer PART II. Position of the physical layer

Figure 3.6 Sine wave examples

Page 22: Physical Layer PART II. Position of the physical layer

Figure 3.6 Sine wave examples (continued)

Page 23: Physical Layer PART II. Position of the physical layer

An analog signal is best represented in the frequency domain.

Note:Note:

Page 24: Physical Layer PART II. Position of the physical layer

Figure 3.7 Time and frequency domains

Page 25: Physical Layer PART II. Position of the physical layer

Figure 3.7 Time and frequency domains (continued)

Page 26: Physical Layer PART II. Position of the physical layer

Figure 3.7 Time and frequency domains (continued)

Page 27: Physical Layer PART II. Position of the physical layer

A single-frequency sine wave is not useful in data communications; we need to change one or more of its characteristics to make it useful.

Note:Note:

Page 28: Physical Layer PART II. Position of the physical layer

When we change one or more When we change one or more characteristics of a single-frequency characteristics of a single-frequency signal, it becomes a composite signal signal, it becomes a composite signal

made of many frequencies.made of many frequencies.

Note:Note:

Page 29: Physical Layer PART II. Position of the physical layer

According to Fourier analysis, any composite signal can be represented as

a combination of simple sine waves with different frequencies, phases, and

amplitudes.

Note:Note:

Page 30: Physical Layer PART II. Position of the physical layer

Figure 3.8 Square wave

Page 31: Physical Layer PART II. Position of the physical layer

Figure 3.9 Three harmonics

We can write composite signal as:

S(t) = A1 sin(2 f1 t + 1) + A2 sin(2 f2 t + 2) + A3 sin(2 f3 t + 3) + ………….

Page 32: Physical Layer PART II. Position of the physical layer

Figure 3.10 Adding first three harmonics

Page 33: Physical Layer PART II. Position of the physical layer

Figure 3.11 Frequency spectrum comparison

Page 34: Physical Layer PART II. Position of the physical layer

The bandwidth is a property of a The bandwidth is a property of a medium: It is the difference between medium: It is the difference between

the highest and the lowest frequencies the highest and the lowest frequencies that the medium can that the medium can satisfactorily pass.satisfactorily pass.

Note:Note:

Page 35: Physical Layer PART II. Position of the physical layer

In this book, we use the term In this book, we use the term bandwidth to refer to the property of a bandwidth to refer to the property of a

medium or the width of a single medium or the width of a single spectrum.spectrum.

Note:Note:

Page 36: Physical Layer PART II. Position of the physical layer

Figure 3.13 Bandwidth

Page 37: Physical Layer PART II. Position of the physical layer

Example 3Example 3

If a periodic signal is decomposed into five sine waves with frequencies of 100, 300, 500, 700, and 900 Hz, what is the bandwidth? Draw the spectrum, assuming all components have a maximum amplitude of 10 V.

SolutionSolution

B = fh  fl = 900 100 = 800 HzThe spectrum has only five spikes, at 100, 300, 500, 700, and 900 (see Figure 3.14 )

Page 38: Physical Layer PART II. Position of the physical layer

Figure 3.14 Example 3

Page 39: Physical Layer PART II. Position of the physical layer

Example 4Example 4

A signal has a bandwidth of 20 Hz. The highest frequency is 60 Hz. What is the lowest frequency? Draw the spectrum if the signal contains all integral frequencies of the same amplitude.

SolutionSolution

B = fB = fhh f fll

20 = 60 20 = 60 ffll

ffll = 60 = 60 20 = 40 Hz20 = 40 Hz

Page 40: Physical Layer PART II. Position of the physical layer

Figure 3.15 Example 4

Page 41: Physical Layer PART II. Position of the physical layer

Example 5Example 5

A signal has a spectrum with frequencies between 1000 and 2000 Hz (bandwidth of 1000 Hz). A medium can pass frequencies from 3000 to 4000 Hz (a bandwidth of 1000 Hz). Can this signal faithfully pass through this medium?

SolutionSolution

The answer is definitely no. Although the signal can have The answer is definitely no. Although the signal can have the same bandwidth (1000 Hz), the range does not the same bandwidth (1000 Hz), the range does not overlap. The medium can only pass the frequencies overlap. The medium can only pass the frequencies between 3000 and 4000 Hz; the signal is totally lost.between 3000 and 4000 Hz; the signal is totally lost.

Page 42: Physical Layer PART II. Position of the physical layer

3.3 Digital Signals3.3 Digital Signals

Bit Interval and Bit Rate

Page 43: Physical Layer PART II. Position of the physical layer

Figure 3.16 A digital signal

Page 44: Physical Layer PART II. Position of the physical layer

Example 6Example 6

A digital signal has a bit rate of 2000 bps. What is the duration of each bit (bit interval)

SolutionSolution

The bit interval is the inverse of the bit rate.

Bit interval = 1/ 2000 s = 0.000500 s = 500 s

Page 45: Physical Layer PART II. Position of the physical layer

Figure 3.17 Bit rate and bit interval

Page 46: Physical Layer PART II. Position of the physical layer

Figure 3.18 Digital versus analog

Page 47: Physical Layer PART II. Position of the physical layer

Table 3.12 Bandwidth RequirementTable 3.12 Bandwidth Requirement

Bit

Rate

Harmonic

1

Harmonics

1, 3

Harmonics

1, 3, 5

Harmonics

1, 3, 5, 7

1 Kbps 500 Hz 2 KHz 4.5 KHz 8 KHz

10 Kbps 5 KHz 20 KHz 45 KHz 80 KHz

100 Kbps 50 KHz 200 KHz 450 KHz 800 KHz

Page 48: Physical Layer PART II. Position of the physical layer

The bit rate and the bandwidth are The bit rate and the bandwidth are proportional to each other.proportional to each other.

Note:Note:

Page 49: Physical Layer PART II. Position of the physical layer

3.5 Data Rate Limit3.5 Data Rate Limit

Noiseless Channel: Nyquist Bit Rate

Noisy Channel: Shannon Capacity

Using Both Limits

Page 50: Physical Layer PART II. Position of the physical layer

Channel Capacity

The max rate at which data can be transmitted over a given communication path or channel under given condition is referred to as channel capacity.

Page 51: Physical Layer PART II. Position of the physical layer

Nyquist Bandwidth

Bandwidth of B, the highest signal rate can be carried is 2B.

If signals are binary (two voltage levels) then data rate can be BHz is 2B bps.

For given bandwidth, the data rate can be increased by increasing the no. of different signal elements.

C (bit rate) = 2B logog22 L

Page 52: Physical Layer PART II. Position of the physical layer

Example 7Example 7

Consider a noiseless channel with a bandwidth of 3000 Hz transmitting a signal with two signal levels. The maximum bit rate can be calculated as

BitBit Rate = 2 Rate = 2 3000 3000 log log22 2 = 6000 bps 2 = 6000 bps

Page 53: Physical Layer PART II. Position of the physical layer

Example 8Example 8

Consider the same noiseless channel, transmitting a signal with four signal levels (for each level, we send two bits). The maximum bit rate can be calculated as:

Bit Rate = 2 x 3000 x logBit Rate = 2 x 3000 x log22 4 = 12,000 bps 4 = 12,000 bps

Page 54: Physical Layer PART II. Position of the physical layer

Signal to Noise Ratio (SNR)

Is the ratio of the power in a signal to power contained in a noise that is present at a particular point in the transmission medium.

(SNR)db = 10 log (Signal power / Noise Power) (SNR)db = 10 log (SNR) Higher SNR will mean a high quality and low

number of required intermediate repeaters.

Page 55: Physical Layer PART II. Position of the physical layer

Shannon Capacity Formula

Capacity = bandwidth * log2 (1+SNR)

C = B logC = B log22 (1 + SNR) (1 + SNR) For a given level of noise, data rate could be For a given level of noise, data rate could be

increased by increasing either signal strength increased by increasing either signal strength or bandwidth.or bandwidth.

Page 56: Physical Layer PART II. Position of the physical layer

Example 9Example 9

Consider an extremely noisy channel in which the value of the signal-to-noise ratio is almost zero. In other words, the noise is so strong that the signal is faint. For this channel the capacity is calculated as

C = B logC = B log22 (1 + SNR) = B log (1 + SNR) = B log22 (1 + 0) (1 + 0)

= B log= B log22 (1) = B (1) = B 0 = 0 0 = 0

Page 57: Physical Layer PART II. Position of the physical layer

Example 10Example 10

We can calculate the theoretical highest bit rate of a regular telephone line. A telephone line normally has a bandwidth of 3000 Hz (300 Hz to 3300 Hz). The signal-to-noise ratio is usually 3162. For this channel the capacity is calculated as

C = B logC = B log22 (1 + SNR) = 3000 log (1 + SNR) = 3000 log22 (1 + 3162) (1 + 3162)

= 3000 log= 3000 log22 (3163) (3163)

C = 3000 C = 3000 11.62 = 34,860 bps 11.62 = 34,860 bps

Page 58: Physical Layer PART II. Position of the physical layer

Example 11Example 11

We have a channel with a 1 MHz bandwidth. The SNR for this channel is 63; what is the appropriate bit rate and signal level?

SolutionSolution

C = B logC = B log22 (1 + SNR) = 10 (1 + SNR) = 1066 log log22 (1 + 63) = 10 (1 + 63) = 1066 log log22 (64) = (64) = 66 Mbps Mbps

Then we use the Nyquist formula to find the number of signal levels.

66 Mbps = 2 Mbps = 2 1 MHz 1 MHz log log22 LL L = 8 L = 8

First, we use the Shannon formula to find our upper First, we use the Shannon formula to find our upper limit.limit.

Page 59: Physical Layer PART II. Position of the physical layer

nn

If B = 1MHz and SNR is 24dB. Find out appropriate bit rate & signal level?

(SNR) dB = 24dB = 10 log (SNR) SNR = 251

C = 106 log2 (1+251) = 8 Mbps C = 2B log2 L 8*106 = 2*106 log2 L

4 = log2 L

L=16

Example 12Example 12

SolutionSolution

Page 60: Physical Layer PART II. Position of the physical layer

3.6 Transmission Impairment3.6 Transmission Impairment

Attenuation

Distortion

Noise

Page 61: Physical Layer PART II. Position of the physical layer

Figure 3.20 Impairment types

Page 62: Physical Layer PART II. Position of the physical layer

Figure 3.21 Attenuation

Page 63: Physical Layer PART II. Position of the physical layer

Decibel (db)

Show that a signal has lost or gained strength. The db measures the relative strengths of two signals or a signal at two different points.

db is negative if a signal is attenuated. db is positive if a signal is amplified. db = 10 log (P2 / P1) P1 & P2 are the power of a signal at point 1 &

2.

Page 64: Physical Layer PART II. Position of the physical layer

Example 12Example 12

Imagine a signal travels through a transmission medium and its power is reduced to half. This means that P2 = 1/2 P1. In this case, the attenuation (loss of power) can be calculated as

SolutionSolution

10 log10 log1010 (P2/P1) = 10 log (P2/P1) = 10 log1010 (0.5P1/P1) = 10 log (0.5P1/P1) = 10 log1010 (0.5) (0.5)

= 10(–0.3) = –3 dB = 10(–0.3) = –3 dB

Page 65: Physical Layer PART II. Position of the physical layer

Example 13Example 13

Imagine a signal travels through an amplifier and its power is increased ten times. This means that P2 = 10 * P1. In this case, the amplification (gain of power) can be calculated as

10 log10 log1010 (P2/P1) = 10 log (P2/P1) = 10 log1010 (10P1/P1) (10P1/P1)

= 10 log= 10 log1010 (10) = 10 (1) = 10 dB (10) = 10 (1) = 10 dB

Page 66: Physical Layer PART II. Position of the physical layer

Example 14Example 14

One reason that engineers use the decibel to measure the changes in the strength of a signal is that decibel numbers can be added (or subtracted) when we are talking about several points instead of just two (cascading). In Figure 3.22 a signal travels a long distance from point 1 to point 4. The signal is attenuated by the time it reaches point 2. Between points 2 and 3, the signal is amplified. Again, between points 3 and 4, the signal is attenuated. We can find the resultant decibel for the signal just by adding the decibel measurements between each set of points.

Page 67: Physical Layer PART II. Position of the physical layer

Figure 3.22 Example 14

dB = –3 + 7 – 3 = +1

Page 68: Physical Layer PART II. Position of the physical layer

Figure 3.23 Distortion

Means the signal change its form or shape.

Particularly critical for digital data. In which one bit position will spills into other bit position causing inter-symbol interference.

Page 69: Physical Layer PART II. Position of the physical layer

Figure 3.24 Noise

Additional unwanted signals that are inserted some where between transmission & reception.

Page 70: Physical Layer PART II. Position of the physical layer

Thermal noise – is the random motion of electrons in a wire that creates an extra signal not originally sent by the transmitter.

Inter-modulation noise – sum or difference of the two original frequencies or multiples of those frequencies.

Cross talk – occur by electrical coupling between nearly twisted pairs.

Impulse noise – noise spikes of short duration and of relatively high amplitude.

Page 71: Physical Layer PART II. Position of the physical layer

3.7 More About Signals3.7 More About Signals

Throughput

Propagation Speed

Propagation Time

Wavelength

Page 72: Physical Layer PART II. Position of the physical layer

Figure 3.25 Throughput

Page 73: Physical Layer PART II. Position of the physical layer

Figure 3.26 Propagation time

Propagation speed – measures the distance a signal or a bit can travel through a medium in one second.

Propagation time – The time required for a signal to travel from one point to another point.

Page 74: Physical Layer PART II. Position of the physical layer

Figure 3.27 Wavelength

The wavelength is the distance a simple signal can travel in one period.