In: Computer Science
computer network
supposes internet data in hex is 99 f4 44 27 23 96 e3 4f.
what is the checksum(in hex)?
Answer:- data in hex
99 f4 44 27 23 96 e3 4f
Checksum (msg + checksum) = 0000
Explanation:
Given: 99 f4 44 27 23 96 e3 4f
For calculating the checksum, we have to divide the message into 4
blocks and then add all these 4 blocks together after converting in
binary.
0X 99 f4
0X 44 27
0X 23 96
0X e3 4f
Addition of hexadecimal blocks.
99 f4 = 1001 0011 1111 0100
44 27 = 0100 0100 0010 0111
---------------------------------
1101 1000 0001 1011
23 96 =0010 0011 1001 0110
---------------------------------
1111 1011 1011 0001
e3 4f = 1110 0011 0100 1111
---------------------------------
1 1101 1110 0000 0000 (ADDITION OF MESSAGE BINARY)
d e 0 0 (ADDITION OF MESSAGE Hex)
We left the most significant bit.
Complement of added message in Binary (0010 0001 1111 1111
)
Complement of added message in Hex ( 2 1 f f )
So checksum =
21ff
At receiver
(msg + checksum) => (d e 0 0 + 2 1 f f = f f f f )
Complement of this is 0000 , So error is "0" at receiver