Tcp – Is ping in the application layer

layer4osipingtcptransport-protocol

Ping works in the internet layer, but when I ping an IP address in my terminal, is ping in the application layer? If it is, how does the application pass transport layer?

If it is not, can I say those applications that use protocols in the application layer (SSH, DHCP, etc.) and pass the transport layer can be in the application layer not all applications?

Best Answer

I'll start with the oft-repeated caveat (at least by me, anyway) that things don't fit neatly into the OSI model.

"Ping" is the name of an application that generates ICMP echo request packets and receives echo reply packets. ICMP doesn't neatly fit into the OSI or TCP/IP model, so you can call it layer 3 or layer 3.5, depending on your point of view.