LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-21-2009, 10:33 PM   #1
willchen
LQ Newbie
 
Registered: Dec 2009
Posts: 8

Rep: Reputation: 0
telnet disconnected in a regular time under load balance mode


Hi,
I'll descript this question in more details:
1. Two internet connections on the same router with pppoe both.
2. load balance default route:
default
nexthop via a.a.a.a dev ppp0 weight 1
nexthop via b.b.b.b. dev ppp1 weight 1
3. telnet to remote server through ppp1 first time, and maybe 10 minutes later, telent disconnected.
Something I found:
1. route cache will be flushed every 10 minutes by defualt(/proc/sys/net/ipv4/route/secret_interval)
2. after 10 minutes later, caches are flushed; then packets in telnet connection will be routed again;
at this time, multipath may choose another nexthop, e.g. ppp0
3. packets with ppp1 source ip transmited out from ppp0, and telnet disconneted
4. why does kernel flush the cache entry even if the entry is in use.
So, How do I fixed this situation?
Thank a lot!
 
Old 12-22-2009, 02:36 AM   #2
AutoBot
Member
 
Registered: Mar 2002
Location: I can see you from here.
Distribution: Gentoo 1.3b
Posts: 184

Rep: Reputation: 34
You can change the value to a higher number I imagine.

sudo echo 20 > /proc/sys/net/ipv4/route/secret_interval
 
Old 12-22-2009, 06:35 PM   #3
willchen
LQ Newbie
 
Registered: Dec 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks AutoBot.
It's a method, but after a longer time, connection will be still disconnected...
I still do not understand why does kernel flush the cache entry even if the entry is in use.
Maybe we should make kernel do not flush cache entry which is in use.
Any ideas?
 
Old 01-11-2010, 11:57 PM   #4
willchen
LQ Newbie
 
Registered: Dec 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Found it!
Here is the solution, I patched it on 2.6.20, it looks work fine.
http://www.ssi.bg/~ja/
Read http://www.ssi.bg/~ja/nano.txt first !
Thanks all!
 
  


Reply



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
Load Balance NFS possible? Swakoo Linux - General 3 04-19-2011 08:08 AM
Users connect to a server through telnet - after random time they get disconnected bamsebv Linux - Networking 2 12-16-2008 06:58 AM
Load Balance please Linux - Networking 4 10-28-2008 12:26 AM
Connection load balance inaki Linux - Networking 1 08-22-2005 10:50 AM
Load Balance with BSD rpaula *BSD 1 03-22-2004 09:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 10:23 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