Even Parity Check5/3/2021
If a one or more bit error takes place then the receiver will receive the message with the changed parity bit.EVEN PARITY Suppose a user wants to send data having 7 BIt: 1000000 No of 1s in data bit: 1 No of 0s in data bit: 6 Taking 1 as a parity bit, As we are sending the data using even parity method so, the no of 1s should be even.
In this case, we have: No of 1s in data bit 1 so we will add a single bit as we are using the Single Parity bit method i.e 1 will be added with data bits so that the number of 1s become even. Data transmitted is: 10000001 Parity bit: 1 if the data is received by the receiver is having a one-bit error at 5th bit from the left-hand side then, Data Received is: 10001001 The receiver will check for the parity, as the parity is Odd i.e. No of 1s 3. so the error is detected. NOTE: The sender will inform the Receiver about the type of parity which is used. An error can also take place in the parity bit. ODD PARITY Suppose a user wants to send data having 7 Bit: 1001010 No of 1s in data bit: 3 No of 0s in data bit: 4 Taking 1 as a parity bit, As we are sending the data using odd parity method so, the no of 1s should be odd. In this case, we have: No of 1s in data bit 3 so we will add a single bit as we are using the Single Parity bit method i.e we will add 0 as the number of 1s are odd already. Data transmitted is: 10010100 Parity bit: 0 if the data is received by the receiver is having a one-bit error at 7th bit from the left-hand side then, Data Received is: 10010110 The receiver will check for the parity, as the parity is Even i.e. No of 1s 4. so the error is detected. In this case, we have: No of 1s in data bit 2 so we will add a single bit as we are using the Single Parity bit method i.e we will add 1 as the number of 1s will become odd. Data transmitted is: 100101 Parity bit: 1 if the data is received by the receiver is having an even no of bit error at 2nd and 3rd bit from the left-hand side then, Data Received is: 111101 The receiver will check for the parity, as the parity is odd i.e. No of 1s 5. so the receiver will think there is no error in the data but there is even no bit error. It doesnt determine in which bit error has taken place. An error can only be detected not corrected. Related 3 Trackbacks Pingbacks Two Dimensional Parity: Working and Drawbacks THECSEMONK.COM IPv4 Header and Its Functionality THECSEMONK.COM Hamming Code - Method and its Functionality THECSEMONK.COM Ask your Doubt Cancel reply Recent Posts Angry Professor HackerRank Solution in C Climbing the Leaderboard HackerRank Solution in C Reverse Doubly Linked List: HackerRank Solution in C Insert a Node in Sorted Doubly Linked List: HackerRank Solution in C Delete duplicate Value nodes from a sorted linked list: HackerRank Solution in C categories Computer Networks HackerRank Python Tech Tree Get our latest Newsletters Email Address Subscribe Copyright 2020 WordPress Theme by MH Themes d bloggers like this: Terms and Conditions - Privacy Policy.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |