NetworkClue.com
NetworkClue Home PageHome Contact UsContact ConsultingConsult
Bulletin Board
Internet Services covers Secrets to hosting websites, Hosting your own web server, and using DNS Servers.Operating Systems leads you through the decision of Linux vs. Windows, ideal installations and setups to create an efficient and redundant environment for your business, and great features to make management easier.Routing & Firewalls contains articles that will allow you to take control of your router. Learn how to protect your company with access lists and advanced firewall techniques.Hardware answers the common questions about Switches vs. Hubs, recommends SysAdmin Tools, and recommendations for adequate power protection.Utilities will cover fighting spam, using Anti-Virus programs effectively and the must haves for every administrator's software toolbox.


Bulletin Board

A Lesson On Parity

By Joshua Erdman
Digital Foundation, inc.

Let's say I gave you a piece of paper with value of 237 written in binary: 1  1  1  0  1  0  0  1

While you had the paper it got severely crumpled and here is what you can make out: 1  X  1  0  1  0  0  1. The second digit is not legible. Now because you cannot determine the second character, you do not know the value.  This is where the value of parity steps in.

The next paper I give you still has the value of 237 but I also told you that I will include a 9th bit that is a '1' if the first 8 bits have an odd number of 1s.  It will be a '0' if the first 8 bits are an even number of 1s.

Since there are 5 '1's in the binary value of 237 the 9th bit will be a '1'.  So here is what I wrote on the new piece of paper:
1  1  1  0  1  0  0  1  1

You receive this new paper and once again you cannot read the 2nd bit. Here is what you can see: 1  X  1  0  1  0  0  1  1

Since we know the rule about the 9th bit we know the first 8 bits will have to be an odd number of '1's since the 9th bit is a '1'.  Right now we have only 4 '1's so we know that the missing bit should be a '1' as well.

You can try it some more on any of the other 8 bits and see that it still works.  And if the 9th bit is garbled that is still OK because we have all the data we need from the first 8.

Clue: Parity is not limited to 8 data bits and a parity bit either.  This will work with with as few as 2 data bits and a parity bit or as many data bits as needed.  However realize that if any 2 bits were garbled, all data is lost. As you increase the total number of data bits, you increase your chances for data corruption.

Article last reviewed: 05/02/2004

Created by: Digital Foundation, inc.

Copyright © 2002-2005 Digital Foundation, inc. www.networkclue.com

All content of the NetworkClue website is copyrighted. Articles, notes, outlines, and all other materials may not be stored on the Internet or sold or placed by themselves or with other material in any electronic or printed format in whole or part. However materials may be referenced by links to the site.

 

Related Articles:
Counting in Binary
RAID
Switches vs. Hubs

Books:



Search Amazon for
Books on Computers