Firewall is proved in harbor no 7 and Google find is also showed in harbor no 7 so ns am confused around how precisely ICMP usage the harbor number.

You are watching: Why is it that an icmp packet does not have source and destination port numbers

Regards,Bhushan


*

*

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

And yes, I recognize that ICMP is encapsulated in IP, however it tho is considered component of the internetworking layer. That just shows the constraints of the model. To quote from RFC 792:

ICMP, offers the simple support of IP together if it to be a greater level protocol, however, ICMP is actually an integral part of IP, and also must be applied by every IP module. .


re-publishing
enhance this answer
monitor
answer Jun 5 "18 at 14:25
*

Ron TrunkRon trunk
59.6k44 gold badges5656 silver badges116116 bronze badges
2
include a comment |
7
ICMP is IP protocol 1, TCP is 6 and UDP is 17. Therefore these space all various protocols with various behaviors.TCP and also UDP have actually Ports, ICMP go not.TCP and also UDP have an Echo company on harbor 7, sometimes called TCP-Ping/UDP-Ping, but they have actually nothing to perform with ICMP. Possibly this is her confusion.


re-publishing
enhance this price
follow
edited Nov 1 "18 at 19:04
*

Banghua Zhao
29222 silver- badges1414 bronze title
reply Jun 5 "18 in ~ 14:03
*

Winnie TiggerWinnie Tigger
27611 silver- badge55 bronze badges
add a comment |
3
TCP and also UDP room transport protocols that usage port numbers to multiplex their usage between applications or processes.

This way, your browser using HTTP over TCP deserve to e.g. Affix multiple times to the exact same internet server. If the location port is the same (default for HTTP: 80), different resource ports are offered for each socket connection.

See more: Closest Airport To Indian Wells Ca Lifornia, How To Get To Indian Wells From 5 Nearby Airports

In the exact same way, different applications deserve to use the same multiplexing, of course. On the server next there deserve to be different services on different TCP harbor - HTTP on 80, FTP ~ above 21, SMTP on 25, and so on. Or - making use of non-standard harbor - even different web servers on port 80 and also 8000, for instance.

Without ports, there could be only a solitary TCP link between any two hosts, or a single TCP service running on a server. (Likewise through UDP or any other transport protocol.)

ICMP is no a transfer protocol but a part that the IP protocol. The is supplied for signaling between hosts. Message that have the right to be sent include

Destination unreachable (a router signals the it"s can not to forward in the direction of the destination, a organize rejects a packet, or similar)Redirect message (a router wants the source to use an additional gateway)Time exceeded (a packet has exceeded the lifetime/hop count and also was dropped)Echo request / Echo reply (used byping)