Networking – How does TTL affect the internet connection


Each day I run pings to test latencies, but TTL is different every day, sometimes higher, sometimes lower. How does this affect my connection?

Reply from bytes=32 time=106ms TTL=52
Reply from bytes=32 time=93ms TTL=52
Reply from bytes=32 time=63ms TTL=52
Reply from bytes=32 time=73ms TTL=52

Best Answer

Each IP packet you send out has a TTL field, which is set to some initial value (in most cases this will be 64). Each time a packet passes a router, the TTL field is decremented by one. Should the TTL field ever reach 0, the packet is dropped to avoid packets circling around forever.

Now, internet routing is dynamic, in most cases, there are multiple paths to a given destination, and depending on the number of routers along each path, you'll end up with a different TTL, so varying TTLs are perfectly normal.

Related Question