Computer Communication Networks Lecture 6 Physical Layer Digital

  • Slides: 39
Download presentation
Computer Communication & Networks Lecture 6 Physical Layer: Digital Transmission http: //web. uettaxila. edu.

Computer Communication & Networks Lecture 6 Physical Layer: Digital Transmission http: //web. uettaxila. edu. pk/CMS/coe. CCNbs. Sp 09/index. asp Waleed Ejaz waleed. ejaz@uettaxila. edu. pk 1

Physical Layer 2

Physical Layer 2

Physical Layer Topics to Cover Signals Digital Transmission Analog Transmission Multiplexing Transmission Media 3

Physical Layer Topics to Cover Signals Digital Transmission Analog Transmission Multiplexing Transmission Media 3

Digital to Digital Conversion n n The conversion involves three techniques: line coding, block

Digital to Digital Conversion n n The conversion involves three techniques: line coding, block coding, and scrambling. Line coding is always needed; block coding and scrambling may or may not be needed. Line Coding Schemes Block Coding Scrambling 4

Line Coding & Decoding 5

Line Coding & Decoding 5

Signal Levels (Elements) Vs Data Levels (Elements) 6

Signal Levels (Elements) Vs Data Levels (Elements) 6

Pulse Rate Vs Bit Rate Example A signal has two data levels with a

Pulse Rate Vs Bit Rate Example A signal has two data levels with a pulse duration of 1 ms. We calculate the pulse rate and bit rate as follows: Pulse Rate = 1/ 10 -3= 1000 pulses/s Bit Rate = Pulse Rate x log 2 L = 1000 x log 2 2 = 1000 bps 7

DC Component 8

DC Component 8

Lack of Synchronization 9

Lack of Synchronization 9

Example 3 In a digital transmission, the receiver clock is 0. 1 percent faster

Example 3 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? Solution At 1 Kbps: 1000 bits sent 1001 bits received 1 extra bps At 1 Mbps: 1, 000 bits sent 1, 000 bits received 1000 extra bps 10

Line Coding Schemes 11

Line Coding Schemes 11

Note In unipolar encoding, we use only one voltage level. 12

Note In unipolar encoding, we use only one voltage level. 12

Unipolar Encoding 13

Unipolar Encoding 13

Note In polar encoding, we use two voltage levels: positive & negative 14

Note In polar encoding, we use two voltage levels: positive & negative 14

Polar: NRZ-L and NRZ-I Encoding 15

Polar: NRZ-L and NRZ-I Encoding 15

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

Note 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. 16

Polar: RZ Encoding 17

Polar: RZ Encoding 17

Polar: Manchester Encoding 18

Polar: Manchester Encoding 18

Polar: Differential Manchester Encoding 19

Polar: Differential Manchester Encoding 19

Note In Manchester and differential Manchester encoding, the transition at the middle of the

Note In Manchester and differential Manchester encoding, the transition at the middle of the bit is used for synchronization. 20

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

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

Bipolar: AMI (Alternative Mark Inversion) Encoding 22

Bipolar: AMI (Alternative Mark Inversion) Encoding 22

Summary 23

Summary 23

Sampling Pulse Code Modulation Sampling Rate: Nyquist Theorem 24

Sampling Pulse Code Modulation Sampling Rate: Nyquist Theorem 24

PCM 25

PCM 25

Quantization & Encoding Samples 26

Quantization & Encoding Samples 26

Note According to the Nyquist theorem, the sampling rate must be at least 2

Note According to the Nyquist theorem, the sampling rate must be at least 2 times the highest frequency contained in the signal. 27

Transmission Modes 28

Transmission Modes 28

Transmission Modes n The transmission of binary data across a link can be accomplished

Transmission Modes n The transmission of binary data across a link can be accomplished in either parallel or serial mode. In parallel mode, multiple bits are sent with each clock tick. In serial mode, 1 bit is sent with each clock tick. While there is only one way to send parallel data, there are two subclasses of serial transmission: asynchronous, synchronous. 29

30

30

Parallel Transmission 31

Parallel Transmission 31

Serial Transmission 32

Serial Transmission 32

Note In asynchronous transmission, we send 1 start bit (0) at the beginning and

Note In asynchronous transmission, we send 1 start bit (0) at the beginning and 1 or more stop bits (1 s) at the end of each byte. There may be a gap between each byte. 33

Note Asynchronous here means “asynchronous at the byte level, ” but the bits are

Note Asynchronous here means “asynchronous at the byte level, ” but the bits are still synchronized; their durations are the same. 34

Asynchronous Transmission 35

Asynchronous Transmission 35

Note In synchronous transmission, we send bits one after another without start or stop

Note In synchronous transmission, we send bits one after another without start or stop bits or gaps. It is the responsibility of the receiver to group the bits. 36

Synchronous Transmission 37

Synchronous Transmission 37

Readings n Chapter 4 (B. A Forouzan) q Section 4. 1, 4. 2, 4.

Readings n Chapter 4 (B. A Forouzan) q Section 4. 1, 4. 2, 4. 3 38

39

39