14fc7 UDP load balancing - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Server & Networking > Networking

Networking Network related discussions (including general TCP/IP stuff, routing, etc).

Reply
 
Thread Tools Display Modes
  #1  
Old May 31st, 2010, 15:49
LoZio LoZio is offline
Junior Member
 
Join Date: Jun 2009
Posts: 65
Thanks: 8
Thanked 1 Time in 1 Post
Default UDP load balancing

Hi all,
anyone using some program to create a UDP load balancer? I'm using haproxy for TCP and works great, but something for UDP seems more difficult to find, only some-years-old daemons.
I saw something about using pf, but this is not convincing. I need to balance DNS and NTP, and need f/over capabilities using CARP (for example).
Ideas?
Thanks
Reply With Quote
  #2  
Old June 2nd, 2010, 14:44
dennylin93 dennylin93 is offline
Member
 
Join Date: Dec 2008
Posts: 784
Thanks: 34
Thanked 103 Times in 71 Posts
Default

Try tweaking the DNS settings. It's much simpler.

Do something like:
For DNS:
Code:
dig +short google.com ns
ns4.google.com.
ns2.google.com.
ns1.google.com.
ns3.google.com.
For NTP:
Code:
dig +short 0.pool.ntp.org a
140.112.2.189
210.68.16.24
123.204.57.143
Reply With Quote
  #3  
Old June 3rd, 2010, 08:23
LoZio LoZio is offline
Junior Member
 
Join Date: Jun 2009
Posts: 65
Thanks: 8
Thanked 1 Time in 1 Post
Exclamation

It would be useful, but I have to balance *MY* DNS and NTP servers. I'm not the client.
Clients use IP addresses to access the services.
Reply With Quote
  #4  
Old June 3rd, 2010, 09:16
pprocacci pprocacci is offline
Junior Member
 
Join Date: Dec 2009
Posts: 34
Thanks: 0
Thanked 4 Times in 4 Posts
Default

http://morebalance.coolprojects.org/

It supports UDP as well as TCP. I've never used this however, but am not aware of anything else.
Reply With Quote
  #5  
Old June 3rd, 2010, 12:44
dennylin93 dennylin93 is offline
Member
 
Join Date: Dec 2008
Posts: 784
Thanks: 34
Thanked 103 Times in 71 Posts
Default

Quote:
Originally Posted by LoZio View Post
It would be useful, but I have to balance *MY* DNS and NTP servers. I'm not the client.
Clients use IP addresses to access the services.
Is there a reason why domain names can't be used instead?
Reply With Quote
  #6  
Old June 3rd, 2010, 12:59
LoZio LoZio is offline
Junior Member
 
Join Date: Jun 2009
Posts: 65
Thanks: 8
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by dennylin93 View Post
Is there a reason why domain names can't be used instead?
Yes, devices (ip phones) have ony a nifty four spaces-three dots window to insert dns and ntp server location...

In any case, having an UDP load balancer has lots+lots+lots of benefits over round robin DNS.
Bye
Reply With Quote
  #7  
Old June 3rd, 2010, 13:01
LoZio LoZio is offline
Junior Member
 
Join Date: Jun 2009
Posts: 65
Thanks: 8
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by pprocacci View Post
http://morebalance.coolprojects.org/

It supports UDP as well as TCP. I've never used this however, but am not aware of anything else.
Quoting myself:
"only some-years-old daemons."

I just want something reasonably supported, not something abandoned 4 or 5 years ago.
Thanks, anyway.
Reply With Quote
  #8  
Old June 3rd, 2010, 14:02
dennylin93 dennylin93 is offline
Member
 
Join Date: Dec 2008
Posts: 784
Thanks: 34
Thanked 103 Times in 71 Posts
Default

Quote:
Originally Posted by LoZio View Post
Yes, devices (ip phones) have ony a nifty four spaces-three dots window to insert dns and ntp server location...

In any case, having an UDP load balancer has lots+lots+lots of benefits over round robin DNS.
Bye
I only have one thing left to suggest then. Use PF for load balancing incoming connections. This does have some limitations, but it should be able to work well for what you need.

Some references:
Reply With Quote
  #9  
Old June 3rd, 2010, 14:51
LoZio LoZio is offline
Junior Member
 
Join Date: Jun 2009
Posts: 65
Thanks: 8
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by dennylin93 View Post
I only have one thing left to suggest then. Use PF for load balancing incoming connections. This does have some limitations, but it should be able to work well for what you need.

Some references:
Thanks, is what I told I would like to avoid for several reasons, but if it seems the only way....
It's strange you can find several TCP load balancers (haproxy being phenomenal in my opinion), and no modern UDP lbs.
Thanks
Reply With Quote
  #10  
Old June 3rd, 2010, 15:17
dennylin93 dennylin93 is offline
Member
 
Join Date: Dec 2008
Posts: 784
Thanks: 34
Thanked 103 Times in 71 Posts
Default

Perhaps there's no UDP load balancer due to the fact that most people simply use DNS round robin to achieve this and failover.
Reply With Quote
  #11  
Old June 3rd, 2010, 15:48
LoZio LoZio is offline
Junior Member
 
Join Date: Jun 2009
Posts: 65
Thanks: 8
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by dennylin93 View Post
Perhaps there's no UDP load balancer due to the fact that most people simply use DNS round robin to achieve this and failover.
With DNS you can obtain poor man load balancing and very very bad failover capabilites with disruption of services.
When you need an affordable service and fast failover/failback DNS is out of the discussion. This is why there are several TCP load balancers with very rich capabilities.
Reply With Quote
  #12  
Old June 4th, 2010, 01:20
Christopher Christopher is offline
Junior Member
 
Join Date: Nov 2008
Posts: 56
Thanks: 4
Thanked 11 Times in 11 Posts
Default

Although not free, Zeus Load Balancer can balance UDP datagrams.

http://www.zeus.com/products/load-balancer/index.html
Reply With Quote
  #13  
Old June 4th, 2010, 10:07
LoZio LoZio is offline
Junior Member
 
Join Date: Jun 2009
Posts: 65
Thanks: 8
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by Christopher View Post
Although not free, Zeus Load Balancer can balance UDP datagrams.

http://www.zeus.com/products/load-balancer/index.html
I tested it and it was not bad, but the entire solution is far more than a load balancer. It features several application performance optimizations, and licensing is somewhat expensive, considering to use is only for UDP.
I'm resorting to test some linux solutions, but I'm not in the mood to put my production servers behind a linux machine...
Thanks
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Has anyone used ECMP on v 8.0 for load balancing triumdh Networking 1 February 23rd, 2010 00:59
How to Network Load Balancing Cluster in FreeBSD skynet_boy Networking 3 January 5th, 2010 18:15
PF load balancing dextro_ Firewalls 5 October 21st, 2009 18:29
Need help with pf: nat-> balancing, IPTV, rdr kaspian Firewalls 0 December 6th, 2008 20:45
Need help with pf: nat-> balancing, IPTV, rdr kaspian Networking 0 December 6th, 2008 20:39


All times are GMT +1. The time now is 13:31.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0