Muzammil Hamas G1F17BSCS0120 Bscs 6 C: Assignment # 2 Computer Connections and Networks
Muzammil Hamas G1F17BSCS0120 Bscs 6 C: Assignment # 2 Computer Connections and Networks
G1F17BSCS0120
BSCS 6 C
Assignment # 2
Computer Connections and Networks
A checksum is a sequence of numbers and letters used to check data for errors. If
you know the checksum of an original file, you can use a checksum utility to
confirm your copy is identical. The image below shows:
Whenever a message is transmitted, it may get scrambled by noise or data may get
corrupted. To avoid this, we use error-detecting codes which are additional data
added to a given digital message to help us detect if any error has occurred during
transmission of the message.
Basic approach used for error detection is the use of redundancy bits, where
additional bits are added to facilitate detection of errors.
Some popular techniques for error detection are:
1. Simple Parity check
2. Two-dimensional Parity check
3. Checksum
1. Simple Parity Check
Blocks of data from the source are subjected to a check bit or parity bit generator
form, where a parity of :
1 is added to the block if it contains odd number of 1’s, and
0 is added if it contains even number of 1’s
This scheme makes the total number of 1’s even, that is why it is called even parity
checking.