Question: how ttl is calculated in ping?
Answer: since the default original ttl value by ping is 255, as it reaches a router (hop), it decrements the ttl value by 1 and becomes 254. ... When a router forwards a packet, it MUST reduce the TTL by at least one.