Download presentation
Presentation is loading. Please wait.
1
Forward Error CORRECTION A little magic
2
Hamming in perspective Typically errors are corrected with retransmission. Hamming lets the receiver determine the error and fix it! Hamming only corrects single errors. –Not of great use to us Hamming is somewhat expensive.
3
Hamming Concept Sender Message + parity bits 001000100010001 (Corruption) Message + parity bits 001010100010001 Receiver Message + parity bits 001000100010001 Detects error and FIXES IT!
4
MESSAGE BITS 0 1 1 0 0 1 M 1 M 2 M 3 M 4 M 5 M 6 Place Parity bits in positions which are powers of 2. 1,2,4,8,.. Message bits in rest. P 1 P 2 M 1 P 3 M 2 M 3 M 4 P 4 M 5 M 6 1 2 3 4 5 6 7 8 9 10 0 1 1 0 0 1 Look at binary positions 011 101 110 111 0101 1010 Calc parity w/message bits connected to position (next slide)
5
P 1 P 2 M 1 P 3 M 2 M 3 M 4 P 4 M 5 M 6 1 2 3 4 5 6 7 8 9 10 0 1 1 0 0 1 011 101 110 111 1001 1010 E.g. M 1 position has powers 1 and 2 in the position (2 0 =1 and 2 1 =2) so is in P 1 and P 2 M2M2 M2M2 M1M1 M1M1 M3M3 M3M3 M4M4 M4M4 M4M4 M5M5 M5M5 M6M6 M6M6
6
P 1 P 2 M 1 P 3 M 2 M 3 M 4 P 4 M 5 M 6 1 2 3 4 5 6 7 8 9 10 1 0 1 1 0 0 1 011 101 110 111 1001 1010 M2M2 M2M2 M1M1 M1M1 M3M3 M3M3 M4M4 M4M4 M4M4 M5M5 M5M5 M6M6 M6M6 Calculate P 1
7
P 1 P 2 M 1 P 3 M 2 M 3 M 4 P 4 M 5 M 6 1 2 3 4 5 6 7 8 9 10 1 0 0 1 011 101 110 111 1001 1010 M2M2 M2M2 M1M1 M1M1 M3M3 M3M3 M4M4 M4M4 M4M4 M5M5 M5M5 M6M6 M6M6 Calculate P 2
8
P 1 P 2 M 1 P 3 M 2 M 3 M 4 P 4 M 5 M 6 1 2 3 4 5 6 7 8 9 10 1 0 0 0 1 1 0 1 0 1 011 101 110 111 1001 1010 M2M2 M2M2 M1M1 M1M1 M3M3 M3M3 M4M4 M4M4 M4M4 M5M5 M5M5 M6M6 M6M6 FINISH
9
P 1 P 2 M 1 P 3 M 2 M 3 M 4 P 4 M 5 M 6 1 2 3 4 5 6 7 8 9 10 1 0 0 0 1 0 0 1 0 1 011 101 110 111 1001 1010 M2M2 M2M2 M1M1 M1M1 M3M3 M3M3 M4M4 M4M4 M4M4 M5M5 M5M5 M6M6 M6M6 Now ASSUME AN ERROR Should be a 1.. P 2 and P 3 in error 0 1 1 0 Reverse bits 0110 M 3 position!
10
It’s not magic! See if you can figure it out. Hamming will only detect AND correct single bit errors NOT used in communication USED in error correcting memory When is another parity bit needed? Uses principle of only allowing certain codes VtVt V t = transmitted VrVr V r = received
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.