67
Data Communication Networks Lec 8 and 9

Data Communication Networks

  • Upload
    yuri

  • View
    52

  • Download
    0

Embed Size (px)

DESCRIPTION

Data Communication Networks. Lec 8 and 9. Physical Layer and Media. Bottom-most layer. Interacts with transmission media. Physical part of the network. Provides services to data link layer. 0s and 1s ready to be send on transmission medium. Must be converted into another entity- SIGNALS. - PowerPoint PPT Presentation

Citation preview

Page 1: Data Communication Networks

Data Communication NetworksLec 8 and 9

Page 2: Data Communication Networks

Physical Layer and Media

• Bottom-most layer.• Interacts with transmission media.• Physical part of the network.• Provides services to data link layer.• 0s and 1s ready to be send on transmission

medium.• Must be converted into another entity-

SIGNALS

Page 3: Data Communication Networks

Data and Signals

• Move data in the form of electromagnetic signals across transmission medium.

Page 4: Data Communication Networks

Analog and Digital

• Analog is the data that is continuous.• Digital is the data that is discrete.• Sounds by human voice • Digital in the form of 1s and 0s

Page 5: Data Communication Networks

Analog and Digital Signals

Page 6: Data Communication Networks

Analog and Digital Signals

• 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.

Page 7: Data Communication Networks

Periodic signal

• That completes a pattern within a measurable time frame

• Repeats the pattern over subsequent identical periods.

• The completion of one full pattern is called a cycle.

Page 8: Data Communication Networks

Periodic Analog Signal

• Simple or composite.• Sine wave, a simple oscillating curve , changes

over course of time is smooth and consistent , a continuous , rolling flow.

Page 9: Data Communication Networks

A Sine Wave

Page 10: Data Communication Networks

Peak Amplitude

• Absolute value of its highest intensity. • Energy it carries.• Electrical signals , measured in volts.

Page 11: Data Communication Networks

Peak Amplitude

Page 12: Data Communication Networks

Period and frequency

• Period is the amount of time , in seconds , a signal need to complete one cycle.

• Frequency refer to number of periods in 1s • F = 1/T, T=1/F

Page 13: Data Communication Networks

Period and Frequency

Page 14: Data Communication Networks

3.14

To be transmitted, data must be transformed to electromagnetic signals.

Note

Page 15: Data Communication Networks

3.15

3-4 TRANSMISSION IMPAIRMENT

Signals travel through transmission media, which are not perfect. The imperfection causes signal impairment. This means that the signal at the beginning of the medium is not the same as the signal at the end of the medium. What is sent is not what is received. Three causes of impairment are attenuation, distortion, and noise.

AttenuationDistortionNoise

Topics discussed in this section:

Page 16: Data Communication Networks

3.16

Figure 3.25 Causes of impairment

Page 17: Data Communication Networks

3.17

Figure 3.26 Attenuation

Page 18: Data Communication Networks

3.18

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

Example 3.26

A loss of 3 dB (–3 dB) is equivalent to losing one-half the power.

Page 19: Data Communication Networks

3.19

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

Example 3.27

Page 20: Data Communication Networks

3.20

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 measuring several points (cascading) instead of just two. In Figure 3.27 a signal travels from point 1 to point 4. In this case, the decibel value can be calculated as

Example 3.28

Page 21: Data Communication Networks

3.21

Figure 3.27 Decibels for Example 3.28

Page 22: Data Communication Networks

3.22

Sometimes the decibel is used to measure signal power in milliwatts. In this case, it is referred to as dBm and is calculated as dBm = 10 log10 Pm , where Pm is the power in milliwatts. Calculate the power of a signal with dBm = −30.

SolutionWe can calculate the power in the signal as

Example 3.29

Page 23: Data Communication Networks

3.23

The loss in a cable is usually defined in decibels per kilometer (dB/km). If the signal at the beginning of a cable with −0.3 dB/km has a power of 2 mW, what is the power of the signal at 5 km?SolutionThe loss in the cable in decibels is 5 × (−0.3) = −1.5 dB. We can calculate the power as

Example 3.30

Page 24: Data Communication Networks

3.24

Figure 3.28 Distortion

Page 25: Data Communication Networks

3.25

Figure 3.29 Noise

Page 26: Data Communication Networks

3.26

The power of a signal is 10 mW and the power of the noise is 1 μW; what are the values of SNR and SNRdB ?

SolutionThe values of SNR and SNRdB can be calculated as follows:

Example 3.31

Page 27: Data Communication Networks

3.27

The values of SNR and SNRdB for a noiseless channel are

Example 3.32

We can never achieve this ratio in real life; it is an ideal.

Page 28: Data Communication Networks

3.28

Figure 3.30 Two cases of SNR: a high SNR and a low SNR

Page 29: Data Communication Networks

Digital Transmission

• To represent digital data by using digital signals.

• Involve three techniques– Line coding– Block coding– Scrambling

Page 30: Data Communication Networks

Line coding

• Process of converting digital data to digital signals.• Data in the form of text, numbers, audio, images are

stored in computer memory as sequence of bits.• Line coding convert sequence of bits to a digital

signal.• At the sender, digital data are encoded into digital

signal;• At the receiver, the digital data are recreated by

decoding the digital signal.

Page 31: Data Communication Networks

4.31

Line coding and decoding

Page 32: Data Communication Networks

• Difference between Data Element and Signal Element??????

4.32

Page 33: Data Communication Networks

4.33

Signal element versus data element

Page 34: Data Communication Networks

Data Rate Vs Signal Rate

• The data rate defines the number of data elements (bits) sent in 1s.

• Unit is bits per second.• The signal rate is the number of signal elements

sent in 1s.• Unit is baud.• Data rate is sometimes called bit rate, signal

rate is sometimes called pulse rate, modulation rate and baud rate.

Page 35: Data Communication Networks

Data Rate Vs Signal Rate

• Goal in DC is to increase data rate , while decreasing signal rate.

• Increase will increase speed of transmission.• Decrease will decrease bandwidth

requirements.

Page 36: Data Communication Networks

Relationship B/w Bit rate and baud rate

• Depend on the value of r.• Also depend on data pattern.• Three cases ; worst, best, and average.• Worst case is the maximum signal rate ; best

case is the minimum.• S=cxNx1/r baud

Page 37: Data Communication Networks

4.37

A signal is carrying data in which one data element is encoded as one signal element ( r = 1). If the bit rate is 100 kbps, what is the average value of the baud rate if c is between 0 and 1?

SolutionWe assume that the average value of c is 1/2 . The baud rate is then

Example

Page 38: Data Communication Networks

4.38

Although the actual bandwidth of a digital signal is infinite, the effective

bandwidth is finite.

Note

Page 39: Data Communication Networks

Baseline Wandering

• In decoding a digital signal, the receiver calculates a running average of the received signal power; called baseline.

• A long string of 0s and 1s can cause a drift in the baseline(baseline wandering)

• Difficult for receiver to decode correctly.• Good line coding scheme needs to prevent

baseline wandering.

Page 40: Data Communication Networks

DC Components

• Constant voltage level , creates frequencies around zero.

• Called DC components.• Telephone lines cannot pass frequency below

200 hz• Need scheme with no DC component.

Page 41: Data Communication Networks

4.41

Figure 4.3 Effect of lack of synchronization

Page 42: Data Communication Networks

4.42

In a digital transmission, the receiver clock is 0.1 percent faster than the sender clock. How many extra bits per second does the receiver receive if the data rate is 1 kbps? How many if the data rate is 1 Mbps?

SolutionAt 1 kbps, the receiver receives 1001 bps instead of 1000 bps.

Example 4.3

At 1 Mbps, the receiver receives 1,001,000 bps instead of 1,000,000 bps.

Page 43: Data Communication Networks

Built-in Error Detection

• Capability to detect some or all errors that occurred in transmission.

Page 44: Data Communication Networks

Immunity to Noise and interference

• Should have capability of immunity to noise and interference.

Page 45: Data Communication Networks

Complexity

• Four level more costly than two levels.

Page 46: Data Communication Networks

4.46

Figure 4.4 Line coding schemes

Page 47: Data Communication Networks

Unipolar Scheme

• All signal levels are on the one side of the time axis, either above or below.

• NRZ(non-Return-to-zero): in which the positive voltage defines bit 1 and the zero voltage defines bit 0.

• Costly, power required is double than polar NRZ.

• Not used in data communication.

Page 48: Data Communication Networks

4.48

Figure 4.5 Unipolar NRZ scheme

Page 49: Data Communication Networks

Polar Scheme

• The voltage is at both side of the time axis.• Non-Return-to-Zero(NRZ):uses two levels of the

voltage amplitude.• NRZ-L:the level of the voltage determine the

value of the bit.• NRZ-I: the change or lack of change in the level of

the voltage determine the value of the bit.– If no change the bit is 0 ; If there is change the bit is 1.

Page 50: Data Communication Networks

4.50

Figure 4.6 Polar NRZ-L and NRZ-I schemes

Page 51: Data Communication Networks

4.51

In NRZ-L the level of the voltage determines the value of the bit.

In NRZ-I the inversion or the lack of inversion

determines the value of the bit.

Note

Page 52: Data Communication Networks

4.52

NRZ-L and NRZ-I both have a DC component problem.

Note

Page 53: Data Communication Networks

4.53

A system is using NRZ-I to transfer 10-Mbps data. What are the average signal rate and minimum bandwidth?

SolutionThe average signal rate is S = N/2 = 500 kbaud. The minimum bandwidth for this average baud rate is Bmin = S = 500 kHz.

Example 4.4

Page 54: Data Communication Networks

Return to Zero(RZ)

• Main problem is that sender and receiver are not synchronized.

• The receiver does not know when one bit has ended and next bit is starting.

• Solution id RZ, three values positive, negative and zero.

• The signal goes to zero in the middle of each bit.• Remains there until the beginning of the next bit.

Page 55: Data Communication Networks

Return to Zero(RZ)

• Main disadvantage , it require two signal changes to encode a signal bit , require greater bandwidth.

• No DC component.• More complex, three level of voltage , more

complex to create.

Page 56: Data Communication Networks

4.56

Figure 4.7 Polar RZ scheme

Page 57: Data Communication Networks

Biphase: Manchester

• The idea of RZ(transition at the middle of the bit). And idea at NRZ-L are combined into the Manchester scheme.

• Duration is divided into two halves.• The voltages remain at one level during the first

half and moves to the other level in the second half.

• Transition at the middle of the bit provides syncronization.

Page 58: Data Communication Networks

Differential Manchester

• Combines the ideas of RZ and NRZ-I.• Transition at the middle of the bit.• But the bit values are determined at the

beginning of the bit.• If next bit is 0, there is transition, if next bit is

1 , there is none.

Page 59: Data Communication Networks

4.59

Figure 4.8 Polar biphase: Manchester and differential Manchester schemes

Page 60: Data Communication Networks

4.60

In Manchester and differential Manchester encoding, the transition

at the middle of the bit is used for synchronization.

Note

Page 61: Data Communication Networks

Manchester and Differential Manchester

• No baseline wandering.• No DC component because each bit has a

positive and negative voltage contribution.• One , drawback is signal rate is double of NRZ.

– There is always one transition at the middle of the bit , and may be one transition at the end of the bit.

Page 62: Data Communication Networks

Bi-polar scheme

• There voltages levels, positive, negative and zero.

• The voltage level for one data element is at zero, while the voltage level for the other elements alternates between positive and negative.

Page 63: Data Communication Networks

4.63

In bipolar encoding, we use three levels: positive, zero, and negative.

Note

Page 64: Data Communication Networks

AMI and Pseudoternary

• AMI(alternate mark inversion).• The word mark comes from telegraphy and

means 1.• So AMI means alternate 1 inversion.• A neural zero voltage represents binary 0.• Binary 1 is represented by alternating positive

and negative voltage.• Variation of AMI is Pseudoternary.

Page 65: Data Communication Networks

AMI and Pseudoternary

• Developed alternate to NRZ.• Same signal rate as NRZ but no DC

component.• NRZ has most of the energy concentrated near

zero frequency, which make it unsuitable for transmission over channel with poor performance around this frequency.

Page 66: Data Communication Networks

4.66

Figure 4.9 Bipolar schemes: AMI and pseudoternary

Page 67: Data Communication Networks

No DC Component

• Long sequence of 1s, the voltage alternate between positive and negative , no constant .

• For long sequence of 0s, the voltage remain constant , but voltage is zero, which is same as no DC component.

• Used for long-distance communication, but has synchronization problem, when long sequence of 0s is present in the data.