From owner-freebsd-pf@FreeBSD.ORG Fri May 11 12:21:04 2007 Return-Path: X-Original-To: freebsd-pf@freebsd.org Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7B19516A406 for ; Fri, 11 May 2007 12:21:04 +0000 (UTC) (envelope-from volker@vwsoft.com) Received: from frontmail.ipactive.de (frontmail.maindns.de [85.214.95.103]) by mx1.freebsd.org (Postfix) with ESMTP id 3E30613C480 for ; Fri, 11 May 2007 12:21:01 +0000 (UTC) (envelope-from volker@vwsoft.com) Received: from mail.vtec.ipme.de (Q7d62.q.ppp-pool.de [89.53.125.98]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by frontmail.ipactive.de (Postfix) with ESMTP id 7F83E12883F for ; Fri, 11 May 2007 14:20:55 +0200 (CEST) Received: from cesar.sz.vwsoft.com (cesar.sz.vwsoft.com [192.168.16.3]) by mail.vtec.ipme.de (Postfix) with ESMTP id 945433F4E8; Fri, 11 May 2007 14:20:31 +0200 (CEST) Message-ID: <46445F8E.9030907@vwsoft.com> Date: Fri, 11 May 2007 14:20:30 +0200 From: Volker User-Agent: Thunderbird 2.0.0.0 (X11/20070420) MIME-Version: 1.0 To: Rajkumar S References: <64de5c8b0705110311v396ca514i848e558c4b580796@mail.gmail.com> In-Reply-To: <64de5c8b0705110311v396ca514i848e558c4b580796@mail.gmail.com> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-VWSoft-MailScanner: Found to be clean X-MailScanner-From: volker@vwsoft.com X-ipactive-MailScanner-Information: Please contact the ISP for more information X-ipactive-MailScanner: Found to be clean X-ipactive-MailScanner-From: volker@vwsoft.com Cc: freebsd-pf@freebsd.org Subject: Re: Load balancing with ratio X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 May 2007 12:21:04 -0000 On 12/23/-58 20:59, Rajkumar S wrote: > pf can do outbound load balancing using route-to and provide the ext > interface and gateway ip like { ($ext_if1 $ext_gw1), ($ext_if2 > $ext_gw2) } round-robin. But the algorithm is only round-robin which > may not be appropriate if the two links are asymmetric, say an 1MB > line and 256kbps line. > > Is there any way to provide some ratio like 1:4 where out of 5 > packets/bytes 4 will be via one link and one via other link? > > I have gone through the docs and this feature does not seem to exist > any where, so if some one can give a starting place to look, where I > can do some hacking, that would also be fine. raj, I've never done that but what about giving the next hop with better bandwidth twice? HTH Volker