What protocol does Ping uses TCP or UDP

What protocol does Ping uses.
Is it TCP or UDP ?
LVL 1
SrikantRajeevAsked:
Who is Participating?
 
mccarlConnect With a Mentor IT Business Systems Analyst / Software DeveloperCommented:
> ICMP runs alongside IP on the network layer

I understand that ICMP may be implemented in the network layer, but it still relies upon IP (ie. stacked on top of) just the same as TCP and UDP are.

The IP header has a field called 'Protocol' that specifies ICMP (1), TCP (6) or UDP (17) among others and the IP payload then contains a header for either ICMP, TCP or UDP, etc. Hence why it is technically stacked on top of IP even though practically it would be implemented alongside IP.
0
 
prhoweCommented:
Neither really.  Ping uses Internet Control Message Protocol (ICMP).

This explains it rather well.
0
 
prhoweCommented:
http://www.experts-exchange.com/expertsZone.jsp

the link didn't come across, sorry..

0
Become an IT Security Management Expert

In today’s fast-paced, digitally transformed world of business, the need to protect network data and ensure cloud privacy has never been greater. With a B.S. in Network Operations and Security, you can get the credentials it takes to become an IT security management expert.

 
SrikantRajeevAuthor Commented:
U mean ICMP does not use either of TCP or UDP
0
 
mccarlIT Business Systems Analyst / Software DeveloperCommented:
> U mean ICMP does not use either of TCP or UDP

No it doesn't. ICMP (ping), TCP and UDP are all protocols that layer on top of IP but are independent of each other.
0
 
SrikantRajeevAuthor Commented:
so is ICMP connection oriented protocol or connection less
0
 
mccarlIT Business Systems Analyst / Software DeveloperCommented:
You wouldn't really call it either but it would be closer to a connection-less protocol like UDP. But it isn't used to carry data as such, it is used to report a condition (possibly an error condition). Check out ICMP on wikipedia: http://en.wikipedia.org/wiki/Internet_Control_Message_Protocol
0
 
profgeekCommented:
ICMP runs alongside IP on the network layer, whereas UDP and TCP are stacked on top of IP on the transport layer.

See the following reference (an excellent site for referencing all protocols):

http://www.protocols.com/pbook/tcpip1.htm

0
 
SrikantRajeevAuthor Commented:
Thanks
0
All Courses

From novice to tech pro — start learning today.