Utilities such as Windows ping.exe have an option to change default TTL value in the IP header for Echo Request messages. TTL shows maximal hops limit for packets. I know that each router decreases TTL value and it was made for "cleaning" network from looped packets. But what the point of changing TTL? Why just not to set it to its maximal value 255? And how can i know what value is better? I heard that TTL is somehow connected with notion of Domain Zones and its size. Can someone explain, please? Thank you.
| |||
feedback
|
|
TTL is a fairly generic term and means 'Time To Live'. It is used in many situations where a finite lifetime is required. In ping, as you rightly mention, it's used to set the maximum hop count a packet can travel. In DNS it's used as the length of time before an entry expires from the cache. You ask why not just set it as 255 all the time? Well, in 99% of the situations you use ping that's fine. There are just a few (well, one that springs to mind) where you may want to specify an exact number of hops. Imagine if you will a network with multiple routes between points A and B. Route 1 (R1) has 6 hops between A and B. Route 2 (R2) has 8 hops between A and B. By setting ping to only allow 6 hops you can accurately determine how many packets take R1 and how many take R2. | |||||||||||||||
feedback
|
