First turn all the given data into HEX as below:
ICMP Echo Request: 8 (as given in http://www.nthelp.com/icmp.html ) Binary: 1000 Hex: 08
Identifier: 123 Binary: 01111011 Hex: 7B
Sequence Number: 25 Binary: 11001 Hex: 19
Message: HELLO Convert each ASCII character to HEX as below:
H: ASCII 72 HEX: 48
E: ASCII 69 HEX: 45
L: ASCII 76 HEX: 4C
O: ASCII 79 HEX: 4F
Now, add all the words using 1's complement addition:
000010000 + 01111011 + 000110001 + 01001000 + 01000101 + 01001100 + 01001100 + 01001111 = 001000010000
Complementing gives the checksum: 110111101111 ⇒0xDEF