I'm just wondering, is there a port number used for the ping command. I have dissected the ping packet on Wireshark, but I haven't seen any destination or source ports. Am I just missing something?
Ping – How to Ping a Port Number
icmpping
icmpping
I'm just wondering, is there a port number used for the ping command. I have dissected the ping packet on Wireshark, but I haven't seen any destination or source ports. Am I just missing something?
Best Answer
Port numbers are layer-4 addresses for some layer-4 protocols, e.g. TCP or UDP. Other layer-4 protocols may use something else, or nothing at all.
ICMP does not use port numbers. ICMP acts like a layer-4 protocol, but it is really an integral part of IP, a layer-3 protocol that knows nothing about port numbers. See RFC 792, INTERNET CONTROL MESSAGE PROTOCOL:
Ping, itself, is an application that uses ICMP echo requests and replies.