ppt ch3 dcn.pp
TRANSCRIPT
![Page 1: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/1.jpg)
Chapter 3Chapter 3
Information Encoding, Errors Information Encoding, Errors Detection and CorrectionDetection and Correction
![Page 2: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/2.jpg)
Data can be corrupted during transmission. For reliable
communication, errors must be detected and corrected.
NoteNote::
![Page 3: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/3.jpg)
10.1 Types of Error10.1 Types of Error
Single-Bit Error
Burst Error
![Page 4: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/4.jpg)
In a single-bit error, only one bit in the data unit has changed.
NoteNote::
![Page 5: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/5.jpg)
10.1 Single-bit error
![Page 6: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/6.jpg)
A burst error means that 2 or more bits in the data unit have changed.
NoteNote::
![Page 7: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/7.jpg)
Burst errors :Burst errors :
Due to external interference like lightning Due to external interference like lightning which last for several seconds.which last for several seconds.
Parity checking method is not useful for Parity checking method is not useful for burst errors.burst errors.
![Page 8: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/8.jpg)
10.2 Burst error of length 5
![Page 9: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/9.jpg)
Types of errorTypes of error
Content errors: Error in the contents of Content errors: Error in the contents of message, 1 may become 0 and vice versamessage, 1 may become 0 and vice versa
Flow integrity errors : missing blocks of Flow integrity errors : missing blocks of
data or delivered to wrong destination.data or delivered to wrong destination.
![Page 10: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/10.jpg)
Error DetectionError Detection
Error detection is the ability to detect the Error detection is the ability to detect the presence of errors caused by noise or presence of errors caused by noise or other impairments during transmission other impairments during transmission from the transmitter to the receiver. from the transmitter to the receiver.
Error correction is the additional ability to Error correction is the additional ability to reconstruct the original, error free data.reconstruct the original, error free data.
![Page 11: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/11.jpg)
Need of error control codeNeed of error control code
Error are introduced during transmission of Error are introduced during transmission of data.data.
Reliability of data transmission is effected Reliability of data transmission is effected due to these errors.due to these errors.
One or more data bits are added to data to One or more data bits are added to data to detect errors.detect errors.
![Page 12: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/12.jpg)
Error control techniquesError control techniques
Error detection techniquesError detection techniques Error correction techniquesError correction techniques
![Page 13: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/13.jpg)
Error detectionError detection
Transmitted code word - Transmitted code word - 1010110010101100 Received code word - Received code word - 1110110011101100 Number of errors - Number of errors - 11 Distance -Distance - 11
![Page 14: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/14.jpg)
FECFEC
Searches for most likely correct keyword.Searches for most likely correct keyword. When error is detected then the distance When error is detected then the distance
between received word and all possible between received word and all possible valid words is measured.valid words is measured.
The nearest valid code word is the most The nearest valid code word is the most likely correct version of the received code likely correct version of the received code word. word.
![Page 15: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/15.jpg)
Backward Error CorrectionBackward Error Correction
Receiver detects error and sends a Receiver detects error and sends a request for retransmission.request for retransmission.
It imposes less bandwidth overhead than It imposes less bandwidth overhead than FEC but requires more time.FEC but requires more time.
It is suitable when errors are less and It is suitable when errors are less and bandwidth needs to be optimized.bandwidth needs to be optimized.
![Page 16: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/16.jpg)
Error detection uses the concept of redundancy, which means adding
extra bits for detecting errors at the destination.
NoteNote::
![Page 17: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/17.jpg)
10.4 Detection methods
![Page 18: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/18.jpg)
ParityParity
MSB is parity bit, other all 7 bits are data MSB is parity bit, other all 7 bits are data bits.bits.
Parity can either even or odd.Parity can either even or odd.
![Page 19: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/19.jpg)
Parity bits Parity bits
Even parity means the number of 1’s in the Even parity means the number of 1’s in the given word including the parity bit should be given word including the parity bit should be even (2, 4, 6, ...)even (2, 4, 6, ...)
Odd parity means the number of 1’s in the Odd parity means the number of 1’s in the given word including the parity bit should be given word including the parity bit should be odd (1, 3, 5, ...)odd (1, 3, 5, ...)
![Page 20: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/20.jpg)
In parity check, a parity bit is added to every data unit so that the total
number of 1s is even (or odd for odd-parity).
NoteNote::
![Page 21: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/21.jpg)
Example 1Example 1
Suppose the sender wants to send the word world. In ASCII the five characters are coded as
1110111 1101111 1110010 1101100 1100100
The following shows the actual bits sent
11101110 11011110 11100100 11011000 11001001
![Page 22: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/22.jpg)
Example 2Example 2
Now suppose the word world in Example 1 is received by the receiver without being corrupted in transmission.
11101110 11011110 11100100 11011000 11001001
The receiver counts the 1s in each character and comes up with even numbers (6, 6, 4, 4, 4). The data are accepted.
![Page 23: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/23.jpg)
Simple parity check can detect all Simple parity check can detect all single-bit errors. It can detect burst single-bit errors. It can detect burst errors only if the total number of errors only if the total number of errors in each data unit is odd.errors in each data unit is odd.
NoteNote::
![Page 24: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/24.jpg)
In two-dimensional parity check, a block of bits is divided into rows and a redundant row of bits is added to the
whole block.
NoteNote::
![Page 25: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/25.jpg)
Figure 10.15 Division in CRC encoder
![Page 26: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/26.jpg)
Figure 10.16 Division in the CRC decoder for two cases
![Page 27: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/27.jpg)
10.8 Binary division in a CRC generator
![Page 28: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/28.jpg)
10.9 Binary division in CRC checker
![Page 29: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/29.jpg)
10.10 A polynomial
![Page 30: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/30.jpg)
10.11 A polynomial representing a divisor
![Page 31: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/31.jpg)
Data unit and checksum
![Page 32: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/32.jpg)
The sender follows these steps:The sender follows these steps:
•The unit is divided into k sections, each of n bits.The unit is divided into k sections, each of n bits.
•All sections are added using one’s complement to get All sections are added using one’s complement to get the sum.the sum.
•The sum is complemented and becomes the checksum.The sum is complemented and becomes the checksum.
•The checksum is sent with the data.The checksum is sent with the data.
NoteNote::
![Page 33: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/33.jpg)
The receiver follows these steps:The receiver follows these steps:
•The unit is divided into k sections, each of n bits.The unit is divided into k sections, each of n bits.
•All sections are added using one’s complement to get All sections are added using one’s complement to get the sum.the sum.
•The sum is complemented.The sum is complemented.
•If the result is zero, the data are accepted: otherwise, If the result is zero, the data are accepted: otherwise, rejected.rejected.
NoteNote::
![Page 34: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/34.jpg)
Example 7Example 7
Suppose the following block of 16 bits is to be sent using a checksum of 8 bits.
10101001 00111001
The numbers are added using one’s complement
10101001
00111001 ------------Sum 11100010
Checksum 00011101
The pattern sent is 10101001 00111001 00011101
![Page 35: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/35.jpg)
Example 8Example 8
Now suppose the receiver receives the pattern sent in Example 7 and there is no error.
10101001 00111001 00011101
When the receiver adds the three sections, it will get all 1s, which, after complementing, is all 0s and shows that there is no error.
10101001
00111001
00011101
Sum 11111111
Complement 00000000 means that the pattern is OK.
![Page 36: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/36.jpg)
Hamming Code:Hamming Code:
To find errors using Hamming code To find errors using Hamming code method we have to use parity check method we have to use parity check method.method.
Parity check method can be even or odd Parity check method can be even or odd parity.parity.
![Page 37: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/37.jpg)
Positions of redundancy bits in Hamming code
![Page 38: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/38.jpg)
10.15 Redundancy bits calculation
![Page 39: ppt ch3 DCN.pp](https://reader036.vdocuments.us/reader036/viewer/2022082403/54e789124a7959397d8b4943/html5/thumbnails/39.jpg)
THANK YOU!!!THANK YOU!!!