Thursday 20 February 2014

Ping and traceroute/tracert

Whats the difference between ping and traceroute?
Ping is simpler version of traceroute (I can say it so)

Traceroute can also be used to measure the network latency, in addition to network connectivity verification.

Ping and traceroute both can be used to verify the network connection (means: connect or not connect) of a PC or network device(switch, router, accesspoint, etc.)


Ping
Example:
ping 192.168.1.1 (ping with ip address)
ping www.facebook.com (ping with qualified name to test domain name service (DNS) functionality)

Type of ping output (basic):
- Request timed out

- Reply 

 - destination host unreachable: the router has the routes for that network on its routing table but and able to send the ICMP packet but the intended PC receiver don't reply

- destination network unreachable: the router dont have routes for that network on its routing table and don't have gateway of last resort on its routing table.


ICMP TTL
Linux: default 64
Windows 7: default 255

A ICMP that cross two router will draw -2 for the TTL.

Ping result can't tell whether the problem is at the destionation host or a device in the path! The traceroute kicks in!

Traceroute

Upon the traceroute result can you fill this table?
Maximum number of hops
First router IP address
Second router IP address
Destination reached?

No comments:

Post a Comment