LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-22-2003, 09:17 AM   #1
Athlon_Jedi
Member
 
Registered: Apr 2003
Location: El Dorado Springs, MO
Distribution: Slackware 9
Posts: 84

Rep: Reputation: 15
TTL way to high!


How does one adjust time to live values ????

im thinking a ttl value of 224 is to high and causeing problems with everything internet related.
 
Old 05-22-2003, 09:34 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
What DNS software are you running? You set the TTL in your zone file. If its not a zone you are in control of then AFAIK you can't change it.

cheers

Jamie...
 
Old 05-22-2003, 09:42 AM   #3
Athlon_Jedi
Member
 
Registered: Apr 2003
Location: El Dorado Springs, MO
Distribution: Slackware 9
Posts: 84

Original Poster
Rep: Reputation: 15
its for my adsl and i find that hard to belive i mean there has to be a config file somewhere for you nic or tcp/ip correct? im not running dns at all.

Last edited by Athlon_Jedi; 05-22-2003 at 09:43 AM.
 
Old 05-22-2003, 09:42 AM   #4
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
whats wrong with a high TTL? Only time it would reallly come in to play is if the destination couldnt be found.

Last edited by Robert0380; 05-22-2003 at 09:43 AM.
 
Old 05-22-2003, 09:46 AM   #5
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
I assume you are talking about the TTL for name lookups yeah? If so as Robert0380 says it will only cause you a problem if the IP address associated with a name changes frequently and your machine doesn't lookup the name agagin as the TTL hasn't been exceeded.

cheers

Jamie...
 
Old 05-22-2003, 09:46 AM   #6
Athlon_Jedi
Member
 
Registered: Apr 2003
Location: El Dorado Springs, MO
Distribution: Slackware 9
Posts: 84

Original Poster
Rep: Reputation: 15
high ttl

high ttls cause things like connection time outs , connection dropouts and the like. not to mention having to click on links anumber of times to get to a site. basic network theroy 101 lol
 
Old 05-22-2003, 09:51 AM   #7
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Re: high ttl

Quote:
Originally posted by Athlon_Jedi
high ttls cause things like connection time outs , connection dropouts and the like. not to mention having to click on links anumber of times to get to a site. basic network theroy 101 lol
Care to expand that a little. As I've already asked, what ttl are you talking about? If its name lookup TTLs then this wouldn't have any effect on drop-outs or clicking links. It sounds to me like you are talking about the TTL for IP. Yeah?

Jamie....
 
Old 05-22-2003, 09:52 AM   #8
Athlon_Jedi
Member
 
Registered: Apr 2003
Location: El Dorado Springs, MO
Distribution: Slackware 9
Posts: 84

Original Poster
Rep: Reputation: 15
i want it to be @64 not 224 i do have a dynamicly assighned ip but as long as i dont reboot it stays constant dont change unless i disconnect but im getting all kinds of connection timeouts , connection refused and other things in galeon and have to keep hitting a link sometimes to get it to go and i know changeing my ttl will solve this,
 
Old 05-22-2003, 09:53 AM   #9
Athlon_Jedi
Member
 
Registered: Apr 2003
Location: El Dorado Springs, MO
Distribution: Slackware 9
Posts: 84

Original Poster
Rep: Reputation: 15
yes sorry i should have been a bit more clear
 
Old 05-22-2003, 09:54 AM   #10
Athlon_Jedi
Member
 
Registered: Apr 2003
Location: El Dorado Springs, MO
Distribution: Slackware 9
Posts: 84

Original Poster
Rep: Reputation: 15
and im not meaning to be rude btw just tryin to get us on the same page.
 
Old 05-22-2003, 10:30 AM   #11
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Quote:
Originally posted by Athlon_Jedi
i want it to be @64 not 224 i do have a dynamicly assighned ip but as long as i dont reboot it stays constant dont change unless i disconnect but im getting all kinds of connection timeouts , connection refused and other things in galeon and have to keep hitting a link sometimes to get it to go and i know changeing my ttl will solve this,
See, this really doesn't sounds like a TTL problem as the remote site shouldn't be interested in your hostname at all, just your IP.

cheers

Jamie...
 
Old 05-22-2003, 10:36 AM   #12
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
If all the packets you were sending had a very low - the reverse - TTL then there's a chance you'll get the problems you are experiencing - the TTL will have reached zero before it get's where it's going and the packet will be dropped.

Try doing a traceroute to one of the sites you are having problems with.
 
Old 05-22-2003, 10:38 AM   #13
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
You can manipulate (set, increase, decrease, etc) with TTL using iptables.
For instance:
iptables -t mangle -A PREROUTING -i eth0 -j TTL --ttl-inc 10

But for this you need modify netfilter with patch-o-matic.
Try google for it. There is a lot of info.
 
Old 05-22-2003, 10:52 AM   #14
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
Quote:
high ttls cause things like connection time outs , connection dropouts and the like. not to mention having to click on links anumber of times to get to a site. basic network theroy 101 lol
OK from my understanding TTL is just the number of hops your request will go before you get a message back from the last router that says something like host unreachable or destination unreachable. As a packet passes from router to router, the TTL gets subtracted by 1 and some checksums are re-calculated and what not. I still dont understand how a high TTL would cause any problems like the ones you just mentioned before. TTL doesn't affect the time it takes for a request to reach its destination, it only affects how long it will bounce around the internet (the max number of routers the packet will pass through). Atleast that's what I was tought....never heard of something as simple as a TTL causing connection timeouts and dropouts because it's just a field in the header of a packet (8bits max i believe).

But then i must say that fields in a header have been known to do bad things (WinNuke for example.....you could make an old win 3.1 machine or win 95 crash by sending it a packet with a certain option combo that the kernel wasnt prepared to handle....but that has nothing to do with TTL).

Last edited by Robert0380; 05-22-2003 at 10:56 AM.
 
Old 05-22-2003, 11:25 AM   #15
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
Quote:
Originally posted by Robert0380
OK from my understanding TTL is just the number of hops your request will go before you get a message back from the last router that says something like host unreachable or destination unreachable. As a packet passes from router to router, the TTL gets subtracted by 1 and some checksums are re-calculated and what not. I still dont understand how a high TTL would cause any problems like the ones you just mentioned before. TTL doesn't affect the time it takes for a request to reach its destination, it only affects how long it will bounce around the internet (the max number of routers the packet will pass through). Atleast that's what I was tought....never heard of something as simple as a TTL causing connection timeouts and dropouts because it's just a field in the header of a packet (8bits max i believe).

But then i must say that fields in a header have been known to do bad things (WinNuke for example.....you could make an old win 3.1 machine or win 95 crash by sending it a packet with a certain option combo that the kernel wasnt prepared to handle....but that has nothing to do with TTL).
This is as I thought as well. It should have no effect at all on your connection stability unless it is set too low (i.e. lower than the number of hops required to reach your destination.)

Sounds more like a problem with your ISP.

slight
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IP TTL help SBK_bg Linux - Networking 2 09-29-2005 09:18 AM
TTL value is set to zero vkrishn1 Linux - Networking 0 01-11-2005 04:35 PM
Dns TTL (?) JJX Linux - Networking 0 11-03-2004 02:52 PM
TTL for kernel 2.6.6 kingka Linux - Networking 2 06-03-2004 01:01 PM
How to change TTL value? etvagonema Linux - Networking 2 04-19-2004 11:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration