Re: Vrrp/CARP/ucarp Problems



Andrea Venturoli wrote:
Jordan Gordeev wrote:
The only load balancing that CARP supports, to my knowledge, is ARP level load balancing. From carp(4):
The ARP load balancing has some limitations. First, ARP balancing only
works on the local network segment. It cannot balance traffic that
crosses a router, because the router itself will always be balanced to
the same virtual host.

Forgive me for stepping in, but I had read the above statement over and over trying to figure what it meant; perhaps it's not so clear...

If I understood it correctly it's not saying you should not use CARP on routers. Instead it's meaning that load-balancing won't cross a third router which is on cascade of the two CARP routers.
...

Andrea, you are correct. Jordan is pointing out the main limitation of CARP, which is that it operates only within a broadcast domain. I should point out such a feature is out of scope for VRRP, CARP, IPMP or other Layer 2 IP sharing protocol. However this behaviour is just fine for load balancing a router, in which case one relies on next-hop reachability anyway.

The thing to remember with CARP is that it relies on the ability of the interface to go into promiscuous mode to pick up traffic for its virtual MAC addresses. More modern cards may support more than one station address in hardware, which avoids the need for promiscuous mode processing, however we don't currently support this hardware feature.

If one wishes to load balance across Layer 3 hops (rather than within the same broadcast domain), what one is asking for is a feature like BGP4 Anycast, IPv6 Anycast, or OSPF-based Anycast which relies on cooperating routers to inject a route into the Layer 3 routing domain for a given 'virtual' IP address.

There is a daemon out there which uses the OSPF API in Quagga to flood OSPF domains with virtual host routes for anycasting services using Opaque LSAs but I forget its name. XORP has the potential to do the same but requires some development effort to do so.

If one wishes to load balance specific requests for an application layer service, one enters the wonderful world of 'middleware' and competing commercial solutions to the problem.

And this is where money comes into play...

Regards,
BMS
_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • RE: FreeBSD router two DSL connections
    ... They are simply using the term load balancing ... >Subject: Re: FreeBSD router two DSL connections ... >>>connection and setting up a FreeBSD router which forwards ... >> to do a bit of exploring to find out the subnets that the ED office is ...
    (freebsd-questions)
  • RE: Source-sensitive Routing ...
    ... If your router has 2 serial ports there is no need for any other device to ... The router will do per-destination load balancing ... across 2 equal cost static routes. ... Subject: Source-sensitive Routing ... ...
    (Security-Basics)
  • Re: Traffic Load sharing
    ... I have a Cisco Router with two interfaces and I want the router to ... Load balancing (routing-wise) is only accomplished with a routing ... routing protocol, and with the same metric, then load sharing will ... if this is some kind of solution for load balancing internet ...
    (comp.dcom.sys.cisco)
  • Re: RV042 and pix with load balancing
    ... >what if i have to pixes and one router behind the pixes using ospf or ... >ibgp to route the packets through the right pix? ... >establish two tunels with rv042 and have the packets go to one or the ... but makes load balancing much more difficult. ...
    (comp.dcom.sys.cisco)
  • Re: [fw-wiz] GLBP Alternative
    ... Its more like an redundancy solution, but provided with Load Balancing ... Note that the ARP-based load balancing found in both CARP and GLBP share ... balance traffic that crosses a router, ... does state tracking, this may cause problems as state values will be ...
    (Firewall-Wizards)