I was trying to send ICMP package with Payload/Message on server_A to server_B( as following: ping -p 12345

but when I use Tcpdump to capture the ICMP package from server_A, I didn't see any message(it should be 12345). How can I get the icmp payload please?

  • Different implementations of the ping application can do things differently.
    – Ron Maupin
    Mar 30, 2019 at 1:26

1 Answer 1


Ping doesn't send user messages. It generates an ICMP Echo Request that the destination is supposed to answer with an ICMP Echo Reply.

Echo requests use a dummy payload data encapsulated within the packet. -p allows you to specify hte content of that payload with some ping versions. -p 12345 fills the payload with 0x012345 bytes repetitively for the specified length (-s parameter for Linux). The echo reply returns the dummy payload if working correctly.

For details, see RFC 792 page 14.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.