From: Peter J. S. <p...@di...> - 2001-11-29 12:01:02
|
begin: Raphael Manfredi <Rap...@po...> quote > Quoting Peter Jay Salzman <p...@di...> from ml.softs.gtk-gnutella.users: > : > :sorry for asking this, but i've been trying to understand this... > : > :begin: Raphael Manfredi <Rap...@po...> quote > :> The TTL is the maximum hops queries sent will travel. > :> Max TTL is the maximum TTL we allow in query packets before dropping them. > : > :these two things sound the same to me. can someone explain the difference? > > The TTL is applied locally: we decrement it at each hop, whilst we route. > Once it is zero, the packet is dropped and no longer routed. > > The Max TTL is simply a sanity feature: if we see a packet with > too high a TTL, we just drop it instead of routing, to prevent > exponential traffic. This applies only to queries, which are normally > broadcasted. > > Clear? AHA. yes, absolutely clear. in other words, TTL is for our own search packets. how many hops our search packets take before they die. the Max TTL is for jerks who set their TTL to like 100, thinking that they'll get a better return on their searches. so if we see a search that's going to be alive for 100 more hops, we just modify the packet header to make the TTL something more reasonable, like 6. thank you! pete -- PGP Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D PGP Public Key: finger p...@di... |