cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
21762
Views
0
Helpful
4
Replies

Difference between TCP and ICMP Ping

mahesh18
Level 6
Level 6

hi everyone,

On ASA  newer IOS version we can ping using

Ping tcp IP port number.

Need to know whats the difference between TCP and ICMP ping?

TCP is layer 4 protocol

Thanks

MAhesh

2 Accepted Solutions

Accepted Solutions

Jouni Forss
VIP Alumni
VIP Alumni

Hi,

For one you can use the "ping tcp" command to test that some service is reachable from the ASA itself.

We also use this command sometimes to test a L2L VPN connection so that we can confirm a remote host behind a L2L VPN connection is answering on the TCP port needed.

To my understanding the "ping tcp" command just sends SYNs to the remote hosts and the remote host replies to them if reachable

Example from my ASA (changed the name/IP address from the original output)

ASA# ping tcp www.testsite.com 80

Type escape sequence to abort.

No source specified. Pinging from identity interface.

Sending 5 TCP SYN requests to x.x.x.x port 80

from y.y.y.y, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 103/117/140 ms

- Jouni

View solution in original post

Naturally you can do the same test from the actual computers either using browser, some application or just telnet to certain TCP port.

I haven't used the "ping tcp" that much. Its been usefull in some L2L VPN cases and also confirming that some service is up on some LAN/REMOTE host that I don't have direct access to.

The above test output I took was just a simple test to see if one websites service was replying to TCP SYN sourced from the ASAs outside public IP address. There are more options/parameters to this command to test different things also. You can set the interfaces and source IP addresses also etc.

- Jouni

View solution in original post

4 Replies 4

Jouni Forss
VIP Alumni
VIP Alumni

Hi,

For one you can use the "ping tcp" command to test that some service is reachable from the ASA itself.

We also use this command sometimes to test a L2L VPN connection so that we can confirm a remote host behind a L2L VPN connection is answering on the TCP port needed.

To my understanding the "ping tcp" command just sends SYNs to the remote hosts and the remote host replies to them if reachable

Example from my ASA (changed the name/IP address from the original output)

ASA# ping tcp www.testsite.com 80

Type escape sequence to abort.

No source specified. Pinging from identity interface.

Sending 5 TCP SYN requests to x.x.x.x port 80

from y.y.y.y, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 103/117/140 ms

- Jouni

Hi jouni,

Thanks for reply.

So other thing to test website connectivity is we can do telnet website ip and port number say 80 from user PC  to confirm

if ASA  is allowing access to particular website or not right?

MAhesh

Naturally you can do the same test from the actual computers either using browser, some application or just telnet to certain TCP port.

I haven't used the "ping tcp" that much. Its been usefull in some L2L VPN cases and also confirming that some service is up on some LAN/REMOTE host that I don't have direct access to.

The above test output I took was just a simple test to see if one websites service was replying to TCP SYN sourced from the ASAs outside public IP address. There are more options/parameters to this command to test different things also. You can set the interfaces and source IP addresses also etc.

- Jouni

Hi Jouni,

Many thanks for all the answers.

Regards

Mahesh

Review Cisco Networking for a $25 gift card