From owner-freebsd-net@FreeBSD.ORG Mon Oct 31 20:22:27 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1988816A420; Mon, 31 Oct 2005 20:22:27 +0000 (GMT) (envelope-from rob@ipninja.net) Received: from storm.ipninja.net (storm.ipninja.net [209.161.218.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5165143D45; Mon, 31 Oct 2005 20:22:26 +0000 (GMT) (envelope-from rob@ipninja.net) Received: from storm.ipninja.net (www@localhost [127.0.0.1]) by storm.ipninja.net (8.13.3/8.13.1) with ESMTP id j9VKMIYh005618; Mon, 31 Oct 2005 15:22:18 -0500 (EST) (envelope-from rob@ipninja.net) Received: (from www@localhost) by storm.ipninja.net (8.13.3/8.13.1/Submit) id j9VKMI3e005617; Mon, 31 Oct 2005 15:22:18 -0500 (EST) (envelope-from rob@ipninja.net) X-Authentication-Warning: storm.ipninja.net: www set sender to rob@ipninja.net using -f Received: from ::ffff:66.203.207.9 (SquirrelMail authenticated user rob) by mail.ipninja.net with HTTP; Mon, 31 Oct 2005 15:22:18 -0500 (EST) Message-ID: <41765.::ffff:66.203.207.9.1130790138.squirrel@mail.ipninja.net> In-Reply-To: <1130514267.81705.101.camel@localhost> References: <4361FE7E.50607@dgnetwork.com.br> <43624181.5010305@roamingsolutions.net> <1130514267.81705.101.camel@localhost> Date: Mon, 31 Oct 2005 15:22:18 -0500 (EST) From: "Rob Viau" To: "Corey Smith" User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.3 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on storm.ipninja.net Cc: G Bryant , freebsd-pf@freebsd.org, FreeBSD , freebsd-net@freebsd.org Subject: Re: Load Balancing Outgoing, its possible ? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Oct 2005 20:22:27 -0000 > On Fri, 2005-10-28 at 17:19 +0200, G Bryant wrote: >> Daniel Dias Gonçalves wrote: >> >> > >> > It is possible to make this balancing with the PF ? Exists some >> > software that I make this ? Zebra can help me? >> > This type of balancing gives to problems with the navigation of the >> > user of NAT or IP valid ? >> > If it is possible, wanted to see examples with rules. >> > > > It would be much better to do per flow load balancing then per packet. > With per packet your TCP flows will arrive out of order which is a bad > situation since it will lead to a large number of retransmissions and > zero-window acknowledgments. > > The only tunable to help correct that is to allow selective > acknowledgments. > > You are going to get much higher utilization on your load balanced lines > by using per flow with multiple TCP connections. > > Anybody know how to implement per flow load balancing in FreeBSD? Are > multiple default routes supported? > > It would be beautiful if you could put multiple routes with the same > metric into the kernel and then the kernel would enable per flow load > balancing of the routes... > > -Corey Smith > _______________________________________________ > freebsd-pf@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-pf > To unsubscribe, send any mail to "freebsd-pf-unsubscribe@freebsd.org" > I believe pf is per-flow. If it was not, then not only would your packets arrive out-of-order, but also with different source IPs when you were NATing to different interfaces on different ISPs (without your own block) which is something I was able to do with 3 links (with three different IP addresses) from 2 different providers.