Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

If two machines are on the same network, as in, they both are connected to the same default gateway, does sending out a ping from one machine to the other make the other reply with a TTL value decremented by 1 or by 0?

share|improve this question
    
How is this a programming question? –  Ken White Dec 9 '12 at 4:49
add comment

migrated from stackoverflow.com Dec 9 '12 at 7:58

This question came from our site for professional and enthusiast programmers.

1 Answer

TTL decreases with each hop from one machine to another until the destination is reached. It basically counts the number of machines on the route from source to destination. The reply (pong) is a completely different message with new TTL that has no relation to the ping message. The reason for that is that the ping-pong is an application layer interaction and TTL belongs to transport layer of the network OSI Model.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.