12-08-2017 06:11 PM - edited 03-05-2019 09:37 AM
I might sound funny but I'm very confused about TTL value in ping.
Lets say if I ping my Cisco firewall from my PC below is the result.
ping 172.16.1.254
PING 172.16.1.254 (172.16.1.254): 56 data bytes
64 bytes from 172.16.1.254: icmp_seq=0 ttl=254 time=2.048 ms
64 bytes from 172.16.1.254: icmp_seq=1 ttl=254 time=1.266 ms
The TTL value is 254 and I know that the firewall is at 2nd hop.
But when I ping lets say 8.8.8.8 the TTL value is 55
ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=55 time=24.083 ms
64 bytes from 8.8.8.8: icmp_seq=1 ttl=55 time=26.028 ms
So 55 represent that 8.8.8.8 is after how 55 hops?
OR
255 - 55 = 200 hops away?
Please explain.
12-08-2017 07:02 PM
The TTL is set by the destination host. Some set it at 255 and countdown (your firewall) and some set at 64 and countdown (8.8.8.8 Google DNS). In the case, google is 64-9=55 If you ping www.cisco.com that servers set the ttl at 255 also.
So, every server is different.
HTH
12-09-2017 04:45 AM
12-09-2017 10:59 AM
The TTL value used by the destination is determined by the OS running on that destination. This value is then decremented by each L3 hop between the destination back to the source. Some people have documented the TTL value used by OS. Here's an example of site stating some values:
http://www.kellyodonnell.com/content/determining-os-type-ping
Regards,
12-09-2017 04:45 AM
12-12-2017 11:35 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide