Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
55 views
Error Detection and Correction
Notes for Computer Networks
Uploaded by
Nihit
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Error Detection and Correction For Later
Download
Save
Save Error Detection and Correction For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
55 views
Error Detection and Correction
Notes for Computer Networks
Uploaded by
Nihit
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Error Detection and Correction For Later
Carousel Previous
Carousel Next
Save
Save Error Detection and Correction For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 29
Search
Fullscreen
FLOW AND ERROR CONTROL The most important responsibilities of the data link layer are flow control and error control. Collectively, these functions are known as data link control. Flow Control Error Control Flow control refers to a set of procedures used to restrict the amount of data that the sender can send before waiting for acknowledgment. Error control in the data link layer is based on automatic repeat request, which is the retransmission of data,when an error is detected.@ Data can be corrupted during transmission. Some applications require that errors be detected and corrected. Types of Errors Redundancy Detection Versus Correction Forward Error Correction Versus Retransmission Coding Modular Arithmetic In a single-bit error, only 1 bit in the data unit has changed. A burst error means that 2 or more bits in the data unit have changed@ To detect or correct errors, we need to send extra (redundant) bits with data. Redundancy can be achieved thro’ coding schemes. Broad categories are: 1. Block Coding 2. Convolution coding We concentrate on block codes and leave convolution codes to advanced texts.The structure of encoder and decoder Sender Receiver Decoder Message Message K correct or discard [eee] Unreliable transmission Message and redundancy >| Received information In modulo-N arithmetic, we use only the integers in the range 0 to N -1, inclusive.In block coding, we divide our message into blocks, each of k bits, called datawords. We add r redundant bits to each block to make the length n =k + r. The resulting n-bit blocks are called codewords. Error Detection Error Correction Hamming Distance Minimum Hamming DistanceDatawords and codewords in block coding k bits kbits cee k bits 2 Datawords, each of k bits n bits n bits eee n bits 2 Codewords, each of n bits (only 2 of them are valid)Process of error detection in block coding k bits Sender Dataword Generator Unreliable transmission Receiver k bits Extract Checker Discard Codeword n bits‘Structure of encoder and decoder in error correction Sender Receiver Encoder Dataword K k bits Correct Checker Generator | Unreliable transmissionExample Let us add more redundant bits to Example 10.2 to see if the receiver can correct an error without knowing what was actually sent. We add 3 redundant bits to the 2-bit dataword to make 5-bit codewords. Table 10.2 shows the datawords and codewords. Assume the dataword is 01. The sender creates the codeword 01011. The codeword is corrupted during transmission, and 01001 is received. First, the receiver finds that the received codeword is not in the table. This means an error has occurred. The receiver, assuming that there is only 1 bit corrupted, uses the following strategy to guess the correct dataword.Example @ 1. Comparing the received codeword with the first codeword in the table (01001 versus 00000), the receiver decides that the first codeword is not the one that was sent because there are two different bits. 2. By the same reasoning, the original codeword cannot be the third or fourth one in the table. 3. The original codeword must be the second one in the table because this is the only one that differs from the received codeword by 1 bit. The receiver replaces 01001 with 01011 and consults the table to find the dataword 01.A code for error correction [ Dataword Codeword 00 00000. 01 01011 10 10101 Tal 11110Example _ Find the minimum Hamming distance of the coding scheme in table above Solution We first find all the Hamming distances. 00000, 11110) d0101, 11110) The dpi, in this case is 3.@) Example _ @ Our block code scheme has d,,;, = 3. This code can detect up to two errors. Again, we see that when any of the valid codewords is sent, two errors create a codeword which is not in the table of valid codewords. The receiver cannot be fooled. However, some combinations of three errors change a valid codeword to another valid codeword. The receiver accepts the received codeword and the errors are undetected.An error-detecting code can detect only the types of errors for which designed; other types of errors may remain undetected. The Hamming distance between two words is the number of differences between corresponding bits. The minimum Hamming distance is the smallest Hamming distance between all possible pairs in a set of words. To guarantee the detection of up to s errors in all cases, the minimum Hamming distance in a block code must be dmin = S + 1. To guarantee correction of up to terrors in all cases, the minimum Hamming distance in a block code must be min = 2t+ 1.LINEAR BLOCK CODES Almost all block codes used today belong to a subset called linear block codes. A linear block code is a code in which the exclusive OR (addition modulo-2) of two valid codewords creates another valid codeword. Minimum Distance for Linear Block Codes Some Linear Block CodesQD A simple parity-check code is a single-bit error- detecting code in which a k-bit dataword is changed to n-bit codeword where n = k + 1 with dpi, = 2. Extra bit is called parity bit, selected to make total no of 1s even in the codeword.Simple parity-check code C(5, 4) Datawords Codewords Datawords Codewords 0000 00000 1000 10001 0001 OOOLL 1001 10010 0010 00101 1010 10100 OO11 00110 1011 foul 0100 O1001 1100 11000 O101 O1010 1101 11011 O10 01100. 110 11101 Ol OUI 1111 1110r0 = a3+a2+a1+a0 (modulo-2) s0 = b3+b2+b1+b0+q0 (modulo-2) If sO=0 no error and s0=1 then error present.Encoder and decoder for simple parity-check code Sender Receiver Dataword Dataword 23] 22]21] 20] a3]2] a 20] Accept Decision logic Syndromeg Generator Checker Parity bit t Unreliable transmission as]@2]21]0]%0 bsfba|bs bofao Codeword CodewordExample Let us look at some transmission scenarios. Assume the sender sends the dataword 1011. The codeword created from this dataword is 10111, which is sent to the receiver. We examine five cases: 1. No error occurs; the received codeword is 10111. The syndrome is 0. The dataword 1011 is created. 2. One single-bit error changes a;. The received codeword is 10011. The syndrome is 1. No dataword is created. 3. One single-bit error changes ry. The received codeword is 10110. The syndrome is 1. No dataword is created.Example (continued) 4. An error changes rg and a second error changes a3. The received codeword is 00110. The syndrome is 0. The dataword 0011 is created at the receiver, Note that here the dataword is wrongly created due to the syndrome value. 5. Three bits—a3, az, and a;—are changed by errors. The received codeword is 01011. The syndrome is 1. The dataword is not created. This shows that the simple parity check, guaranteed to detect one single error, can also find any odd number of errors. A simple parity-check code can detect an odd number of errors ®‘CYCLIC CODES Cyclic codes are special linear block codes with one extra property. In a cyclic code, if a codeword is cyclically shifted (rotated), the result is another codeword. We discuss cyclic code called Cyclic Redundancy Check(CR©) used in LANs and WANs. Cyclic Redundancy Check Polynomials Cyclic Code Analysis Advantages of Cyclic Codes Other Cyclic CodesA CRC code with C(7, 4) Dataword “odeword Dataword Codeword 0000 0000000, 1000 1000101 0001 OOO1011 1001 1001110 0010 0010110 1010 1010011 OO11 0011101 1011 1011000. 0100 O100111 1100 1100010, O101 0101100. 1101 1101001 O10 0110001 1110 1110100 Ou OII010 Wi WHCRC encoder and decoder Sender Receiver Divisor enerator Pc Checker Remainder Unreliable transmissionPEAhH bE Division, Dataword 1001 Quotient 1 Leftmost bit 0: use 0000 divisor o10 Leftmost bit 0: use 0000 divisor Codeword| 100 i/) Ho Dataword Remainder Dividend: ‘augmented dataword Remainder Division in CRC encoderDivision in the CRC decoder for two Codeword [10-0 1[1 10 Division | 1010 1011)1001 110 <~Codeword vont 0101 oo00 101d 1oit 0000 oo00 ooo Dataword, cepted OO cases Codeword [1 0 0 0[1 10 oi | 1010 1011)1 00011 0 <~Codeword Dataword discardedA polynomial to represent a binary word Ce ee ea ours wae Gee. 1 0 ° o ° 1 1 Le Tt + On Gee Ox & somes IRM IEe 430 Rie Gok oD ¥ @ a. Binary pattern and polynomial b Short form Fig above shows one immediate benefit; a 7 bit pattern can be replaced by three terms.Polynomial with 3 terms as x?3+x+1 has 24 bits in length (three 1s and 21 zeros.CRC division using polynomials Dataword) x3 +1 Divisor ERE Dividend: Wet pee e augmente ett oe evan a xt to + x x2 + x | Remainder t Codeword] x6 + x3 | x2 + x Dataword Remainder The divisor in a cyclic code is normally called the generator polynomial or simply the generator.In a cyclic code s(x) representing syndrome, If s(x) # 0, one or more bits is corrupted. If s(x) = 0, either a. No bit is corrupted. or b. Some bits are corrupted, but the decoder failed to detect them. If the generator has more than one term and the coefficient of x° is 1, all single errors can be caught.
You might also like
Hourglass Workout Program by Luisagiuliet 2
PDF
76% (21)
Hourglass Workout Program by Luisagiuliet 2
51 pages
12 Week Program: Summer Body Starts Now
PDF
87% (46)
12 Week Program: Summer Body Starts Now
70 pages
Read People Like A Book by Patrick King-Edited
PDF
58% (81)
Read People Like A Book by Patrick King-Edited
12 pages
Livingood, Blake - Livingood Daily Your 21-Day Guide To Experience Real Health
PDF
77% (13)
Livingood, Blake - Livingood Daily Your 21-Day Guide To Experience Real Health
260 pages
Cheat Code To The Universe
PDF
94% (79)
Cheat Code To The Universe
34 pages
Facial Gains Guide (001 081)
PDF
91% (45)
Facial Gains Guide (001 081)
81 pages
Curse of Strahd
PDF
95% (467)
Curse of Strahd
258 pages
The Psychiatric Interview - Daniel Carlat
PDF
91% (34)
The Psychiatric Interview - Daniel Carlat
473 pages
The Borax Conspiracy
PDF
91% (57)
The Borax Conspiracy
14 pages
COSMIC CONSCIOUSNESS OF HUMANITY - PROBLEMS OF NEW COSMOGONY (V.P.Kaznacheev,. Л. V. Trofimov.)
PDF
94% (214)
COSMIC CONSCIOUSNESS OF HUMANITY - PROBLEMS OF NEW COSMOGONY (V.P.Kaznacheev,. Л. V. Trofimov.)
212 pages
TDA Birth Certificate Bond Instructions
PDF
97% (285)
TDA Birth Certificate Bond Instructions
4 pages
The Secret Language of Attraction
PDF
86% (107)
The Secret Language of Attraction
278 pages
How To Develop and Write A Grant Proposal
PDF
83% (542)
How To Develop and Write A Grant Proposal
17 pages
Penis Enlargement Secret
PDF
60% (124)
Penis Enlargement Secret
12 pages
Workbook For The Body Keeps The Score
PDF
89% (53)
Workbook For The Body Keeps The Score
111 pages
Donald Trump & Jeffrey Epstein Rape Lawsuit and Affidavits
PDF
83% (1016)
Donald Trump & Jeffrey Epstein Rape Lawsuit and Affidavits
13 pages
KamaSutra Positions
PDF
78% (69)
KamaSutra Positions
55 pages
7 Hermetic Principles
PDF
93% (30)
7 Hermetic Principles
3 pages
27 Feedback Mechanisms Pogil Key
PDF
77% (13)
27 Feedback Mechanisms Pogil Key
6 pages
Frank Hammond - List of Demons
PDF
92% (92)
Frank Hammond - List of Demons
3 pages
Phone Codes
PDF
79% (28)
Phone Codes
5 pages
36 Questions That Lead To Love
PDF
91% (35)
36 Questions That Lead To Love
3 pages
How 2 Setup Trust
PDF
97% (307)
How 2 Setup Trust
3 pages
The 36 Questions That Lead To Love - The New York Times
PDF
94% (34)
The 36 Questions That Lead To Love - The New York Times
3 pages
100 Questions To Ask Your Partner
PDF
78% (36)
100 Questions To Ask Your Partner
2 pages
Satanic Calendar
PDF
25% (56)
Satanic Calendar
4 pages
The 36 Questions That Lead To Love - The New York Times
PDF
95% (21)
The 36 Questions That Lead To Love - The New York Times
3 pages
Jeffrey Epstein39s Little Black Book Unredacted PDF
PDF
75% (12)
Jeffrey Epstein39s Little Black Book Unredacted PDF
95 pages
14 Easiest & Hardest Muscles To Build (Ranked With Solutions)
PDF
100% (8)
14 Easiest & Hardest Muscles To Build (Ranked With Solutions)
27 pages
1001 Songs
PDF
69% (72)
1001 Songs
1,798 pages
The 4 Hour Workweek, Expanded and Updated by Timothy Ferriss - Excerpt
PDF
23% (954)
The 4 Hour Workweek, Expanded and Updated by Timothy Ferriss - Excerpt
38 pages
Zodiac Sign & Their Most Common Addictions
PDF
63% (30)
Zodiac Sign & Their Most Common Addictions
9 pages
Error Detection&Correction
PDF
No ratings yet
Error Detection&Correction
49 pages
Module-2 Chapter-10
PDF
No ratings yet
Module-2 Chapter-10
47 pages
CN-Module 2
PDF
No ratings yet
CN-Module 2
85 pages
Day 16
PDF
No ratings yet
Day 16
26 pages
Error Detection and Correction
PDF
No ratings yet
Error Detection and Correction
44 pages
CN MODULE 2
PDF
No ratings yet
CN MODULE 2
204 pages
R19 CNSA - Unit 2
PDF
No ratings yet
R19 CNSA - Unit 2
94 pages
data 1 (4)
PDF
No ratings yet
data 1 (4)
66 pages
Block Code
PDF
No ratings yet
Block Code
73 pages
CH1 Error Detection
PDF
No ratings yet
CH1 Error Detection
66 pages
CN Module-2 Notes.
PDF
No ratings yet
CN Module-2 Notes.
53 pages
9-Error Detection and Correction-21!01!2022 (21-Jan-2022) Material I 21-01-2022 Error Detection - Correction-Up
PDF
No ratings yet
9-Error Detection and Correction-21!01!2022 (21-Jan-2022) Material I 21-01-2022 Error Detection - Correction-Up
56 pages
9-Error Detection and Correction-21!01!2022 (21-Jan-2022) Material I 21-01-2022 Error Detection - Correction-Up
PDF
No ratings yet
9-Error Detection and Correction-21!01!2022 (21-Jan-2022) Material I 21-01-2022 Error Detection - Correction-Up
56 pages
5-7 Data Link Layer
PDF
No ratings yet
5-7 Data Link Layer
99 pages
Error Detection (Data Communication)
PDF
No ratings yet
Error Detection (Data Communication)
54 pages
CN U2
PDF
No ratings yet
CN U2
162 pages
Module-2-notes
PDF
No ratings yet
Module-2-notes
109 pages
Lecture-3 (TCN TC-421) : Error Detection and Correction (DLL Layer Function)
PDF
No ratings yet
Lecture-3 (TCN TC-421) : Error Detection and Correction (DLL Layer Function)
42 pages
Ch10 Forouzan
PDF
0% (1)
Ch10 Forouzan
44 pages
Data Communications: Error Detection and Correction
PDF
No ratings yet
Data Communications: Error Detection and Correction
38 pages
Uni2 Ppt Reference Ke Liye of Remianing Topicx
PDF
No ratings yet
Uni2 Ppt Reference Ke Liye of Remianing Topicx
108 pages
CN - W07 - Error Detection and Correction (Block Codes)
PDF
No ratings yet
CN - W07 - Error Detection and Correction (Block Codes)
57 pages
CH 10
PDF
No ratings yet
CH 10
43 pages
Module 2 Updated 2024
PDF
No ratings yet
Module 2 Updated 2024
195 pages
11-CRC, Checksum-22-08-2024
PDF
No ratings yet
11-CRC, Checksum-22-08-2024
86 pages
Block Coding Techniques in Error Detection and Correction
PDF
No ratings yet
Block Coding Techniques in Error Detection and Correction
7 pages
CH 10
PDF
No ratings yet
CH 10
62 pages
Error Control
PDF
No ratings yet
Error Control
79 pages
Unit 3 10 Error
PDF
No ratings yet
Unit 3 10 Error
93 pages
Module – 2 CN VTU 2022 scheme
PDF
No ratings yet
Module – 2 CN VTU 2022 scheme
63 pages
Error Detection and Correction Error Detection and Correction Correction Correction
PDF
No ratings yet
Error Detection and Correction Error Detection and Correction Correction Correction
56 pages
Unit IV
PDF
No ratings yet
Unit IV
70 pages
Error Detection and Correction
PDF
No ratings yet
Error Detection and Correction
73 pages
Single-Bit Error
PDF
No ratings yet
Single-Bit Error
8 pages
DCT 4 Unit
PDF
No ratings yet
DCT 4 Unit
76 pages
CH 10
PDF
No ratings yet
CH 10
63 pages
M2
PDF
No ratings yet
M2
180 pages
CH 10
PDF
No ratings yet
CH 10
76 pages
Ch10-Error Detection and Correction - KS
PDF
No ratings yet
Ch10-Error Detection and Correction - KS
115 pages
DCN Lec 17
PDF
No ratings yet
DCN Lec 17
40 pages
5.2 Linear Block Codes
PDF
No ratings yet
5.2 Linear Block Codes
23 pages
Module 2
PDF
No ratings yet
Module 2
78 pages
Day 15
PDF
No ratings yet
Day 15
38 pages
Unit2a 2
PDF
No ratings yet
Unit2a 2
71 pages
Error Detection and Correction
PDF
No ratings yet
Error Detection and Correction
92 pages
4 Error Detection and Correction
PDF
No ratings yet
4 Error Detection and Correction
26 pages
CH 05
PDF
No ratings yet
CH 05
93 pages
Module 3 - DLC-Part1 - Till Checksum
PDF
No ratings yet
Module 3 - DLC-Part1 - Till Checksum
124 pages
Data Communication Chapter-10 - Error Detection - Correction
PDF
No ratings yet
Data Communication Chapter-10 - Error Detection - Correction
61 pages
cn-unit-3(Error_detection)Half
PDF
No ratings yet
cn-unit-3(Error_detection)Half
54 pages
Fall
PDF
No ratings yet
Fall
41 pages
3F4 Error Control Coding: Dr. I. J. Wassell
PDF
No ratings yet
3F4 Error Control Coding: Dr. I. J. Wassell
70 pages
Error Detection and Correction - Chapter 10
PDF
No ratings yet
Error Detection and Correction - Chapter 10
31 pages
Error Correction and Detection
PDF
No ratings yet
Error Correction and Detection
40 pages
CH 10
PDF
No ratings yet
CH 10
61 pages
8-ERRORDETECTION Itt300
PDF
No ratings yet
8-ERRORDETECTION Itt300
64 pages
Ch10 - Part 2, Corrected
PDF
No ratings yet
Ch10 - Part 2, Corrected
42 pages