Checksum
Checksum
Name ID
MD. Monirul Islam 221002154
Assignment Status
Marks: Signature:
Comments: Date:
221002154, CSE_311,221_D1
Example:
Alice wants to send a message to Bob and ensure that it arrives without any errors. To achieve this, she plans to use
a checksum algorithm. Your task is to identify the appropriate checksum algorithm that will help Alice send the
message and also assist Bob in verifying that he receives the correct message.
The message is “Network.”
221002154, CSE_311,221_D1
Binary Representation-> 0110 1011 0111 0010 0110 1111 0111 0111 0111 0100 0110 0101 0100 1110
0 1 1 0 0 1 0 1 0 1 0 0 1 1 1 0
0 1 1 1 0 1 1 1 0 1 1 1 0 1 0 0
0 1 1 1 0 0 1 0 0 1 1 0 1 1 1 1
0 0 0 0 0 0 0 0 0 1 1 0 1 0 1 1
0 1 0 0 1 1 1 1 1 0 0 1 1 1 0 0
Add Carry 1
0 1 0 0 1 1 1 1 1 0 0 1 1 1 0 1
𝒔𝒕
𝟏 𝑪𝒐𝒎𝒑𝒍𝒆𝒎𝒆𝒏𝒕 1 0 1 1 0 0 0 0 0 1 1 0 0 0 1 0
221002154, CSE_311,221_D1
Receiver Side:
Receiver Receive the message with Checksum= 1011 0000 0110 0010
Total Bits Receive:
1011 0000 0110 0010 0110 1011 0111 0010 0110 1111 0111 0111 0111 0100 0110 0101 0100 1110
0 1 1 0 0 1 0 1 0 1 0 0 1 1 1 0
0 1 1 1 0 1 1 1 0 1 1 1 0 1 0 0
0 1 1 1 0 0 1 0 0 1 1 0 1 1 1 1
0 0 0 0 0 0 0 0 0 1 1 0 1 0 1 1
Checksum 1 0 1 1 0 0 0 0 0 1 1 0 0 0 1 0
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
Add Carry 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
𝒔𝒕
𝟏 𝑪𝒐𝒎𝒑𝒍𝒆𝒎𝒆𝒏𝒕 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Here, after apply 𝟏𝒔𝒕 Complement Result all bits are 0’s therefore no Error Detected. The Message
should send correct order.
221002154, CSE_311,221_D1
Drawbacks:
If one or more bits of a segment are damaged and the corresponding bit or bits of opposite value in a second
segment are also damaged, the sums of those columns will not change and the receiver will not detect a problem.
On Same Example:
Sender Side
0 1 1 0 0 1 0 1 0 1 0 0 1 1 1 0
0 1 1 1 0 1 1 1 0 1 1 1 if this bit changes to 0 0 1 0 0
0 1 1 1 0 0 1 0 0 1 1 0 this bit changes to 1 1 1 1 1
0 0 0 0 0 0 0 0 0 1 1 0 1 0 1 1
0 1 0 0 1 1 1 1 1 0 0 1 sum not change of columns 1 1 0 0
Add Carry 1
0 1 0 0 1 1 1 1 1 0 0 1 1 1 0 1
𝒔𝒕
𝟏 𝑪𝒐𝒎𝒑𝒍𝒆𝒎𝒆𝒏𝒕 1 0 1 1 0 0 0 0 0 1 1 0 0 0 1 0
221002154, CSE_311,221_D1
Receiver Side
0 1 1 0 0 1 0 1 0 1 0 0 1 1 1 0
0 1 1 1 0 1 1 1 0 1 1 0 0 1 0 0
0 1 1 1 0 0 1 0 0 1 1 1 1 1 1 1
0 0 0 0 0 0 0 0 0 1 1 0 1 0 1 1
Checksum 1 0 1 1 0 0 0 0 0 1 1 0 0 0 1 0
1 1 1 1 1 1 1 1 1 1 1 1 sum not change of columns 1 1 1 0
Add Carry 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
𝒔𝒕
𝟏 𝑪𝒐𝒎𝒑𝒍𝒆𝒎𝒆𝒏𝒕 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
That means, here sums of this columns will not change therefore receiver will not detect problem We
successfully converted the message "Network" into binary and organized it into a table for easy understanding. This
helps in applying a checksum to check for any errors during data transmission.