Why doesn’t ICMP use port numbers

icmp

Firewall is showed in port no 7 and Google search is also showed in port no 7 so I am confused about how exactly ICMP use the port number.

Regards,
Bhushan

Best Answer

Port numbers are a feature of transport layer protocols such as TCP and UDP. ICMP is really part of the internetworking layer (IP), so that attribute doesn't exist at that layer.

And yes, I know that ICMP is encapsulated in IP, but it still is considered part of the internetworking layer. That just shows the limitations of the model. To quote from RFC 792:

ICMP, uses the basic support of IP as if it were a higher level protocol, however, ICMP is actually an integral part of IP, and must be implemented by every IP module. [emphasis added].

Related Topic