Presentation is loading. Please wait.

Presentation is loading. Please wait.

Data Link Layer 1. 2 Single-bit error 3 Multiple-bit error 4.

Similar presentations


Presentation on theme: "Data Link Layer 1. 2 Single-bit error 3 Multiple-bit error 4."— Presentation transcript:

1 Data Link Layer 1

2 2

3 Single-bit error 3

4 Multiple-bit error 4

5 Burst error 5

6 Error Control Detecting errors Correcting errors – Forward error correction – Automatic repeat request 6

7 Redundancy To detect or correct errors, redundant bits of data must be added 7

8 Common Detection Methods Parity check Cyclic Redundancy Check Checksum 8

9 Parity Check Most common, least complex Single bit is added to a block Two schemes: – Even parity – Maintain even number of 1s E.g., 1011  10111 – Odd parity – Maintain odd number of 1s E.g., 1011  10110 9

10 Example: Parity Check 10 Suppose the sender wants to send the word world. In ASCII the five characters are coded (with even parity) as 1110111 1101111 1110010 1101100 1100100 The following shows the actual bits sent 11101110 11011110 11100100 11011000 11001001 Suppose the sender wants to send the word world. In ASCII the five characters are coded (with even parity) as 1110111 1101111 1110010 1101100 1100100 The following shows the actual bits sent 11101110 11011110 11100100 11011000 11001001

11 Example: Parity Check 11 Receiver receives this sequence of words: 11111110 11011110 11101100 11011000 11001001 Which blocks are accepted? Which are rejected?

12 Parity-Check: Encoding/Decoding 12

13 Performance of Parity Check Can 1-bit errors be detected? Can 2-bit errors be detected? 13

14 2D Parity Check 14 What is its performance?

15 2D Parity Check: Performance 15

16 2D Parity Check: Performance 16

17 Cyclic Redundancy Check In a cyclic code, rotating a codeword always results in another codeword 17

18 CRC Encoder/Decoder 18

19 CRC Generator 19

20 Checking CRC 20

21 Check sum 21

22 Check sum 22

23 Checksum 23

24 Checksum 24

25 Checksum 25

26 Checksum 26

27 Hamming code 27

28 Hamming code 28

29 Hamming code 29

30 Hamming code 30

31 Hamming code 31


Download ppt "Data Link Layer 1. 2 Single-bit error 3 Multiple-bit error 4."

Similar presentations


Ads by Google