LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-07-2014, 11:34 AM   #1
royhills
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Rep: Reputation: 0
Tuning route cache for policy routing with two default routes


I'm using policy routing to load-balance outbound traffic across two Internet links.

Everything works fine, but it caused a problem when I upgraded ntp from 4.2.4 to 4.2.6: the later version resets the peer state when the source IP address changes, and I find that the policy routing load-balancing causes the outbound UDP packets to change source address around every ten minutes. This means that ntp keeps losing sync.

I think this is an ntp issue, but I've discussed it on the comp.protocols.time.ntp usenet group and there doesn't seem to be an application-level solution. Ref subject "ntp server with two default routes misbehaving after upgrade" if you're interested.

I've worked around the problem for now by replacing the uk.pool.ntp.org servers in my ntp config with fixed IP addresses and using host routes to send all traffic to these hosts via one route. That's ok as a short-term measure, but isn't a good long-term fix.

I was wondering if there's a way to tune the route cache to make traffic for a given destination stick with one route. I thought routes were cached for 300 seconds, but I find that even reducing ntp maxpoll below this time doesn't cause the routes to stick, so there seems to be more to it than that.

I can't find much in the way of documentation for the route cache, so I wondered if anyone has any pointers, or ideas on how the route cache can be tuned to achieve what I want.
 
Old 05-08-2014, 09:36 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Can't you add a policy that sends all traffic for dest port 123 on one interface?
 
Old 05-09-2014, 02:19 AM   #3
royhills
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Original Poster
Rep: Reputation: 0
I did think of that, but it's not ideal as I lose the resilience of the multiple links for NTP, and I suspect it would prevent the external routers from ntp-syncing back to the host.
 
  


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
Setting Default Policy For Routing Server jlacroix Linux - Server 3 07-23-2013 11:28 PM
problem assigning two default routes on separate routing tables in Debian donalbane Linux - Networking 12 04-09-2012 10:06 AM
quagga, bgp default routes not installed in linux routing table saiyen2002 Linux - Networking 0 12-08-2010 03:12 PM
Default route deleted from the Fedora's routing table RedHatAddict Linux - Networking 11 09-28-2009 09:16 PM
Default route disappears from kernel routing table second after adding it eli_pack Linux - Networking 2 03-13-2006 03:39 AM

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

All times are GMT -5. The time now is 05:57 AM.

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