From owner-freebsd-questions@FreeBSD.ORG Tue Mar 24 14:07:30 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 077C710656D6 for ; Tue, 24 Mar 2009 14:07:30 +0000 (UTC) (envelope-from freebsd-questions@pp.dyndns.biz) Received: from proxy3.bredband.net (proxy3.bredband.net [195.54.101.73]) by mx1.freebsd.org (Postfix) with ESMTP id 4B1368FC1A for ; Tue, 24 Mar 2009 14:07:28 +0000 (UTC) (envelope-from freebsd-questions@pp.dyndns.biz) Received: from ironport2.bredband.com (195.54.101.122) by proxy3.bredband.net (7.3.139) id 49C0B9D70023F1A5 for freebsd-questions@freebsd.org; Tue, 24 Mar 2009 15:07:27 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Au4/AB+GyElV4jp1PGdsb2JhbACBUIszh0uBDgEBAQEeFwu9C4N2Bg X-IronPort-AV: E=Sophos;i="4.38,413,1233529200"; d="scan'208";a="466171766" Received: from c-753ae255.107-1-64736c10.cust.bredbandsbolaget.se (HELO gatekeeper.pp.dyndns.biz) ([85.226.58.117]) by ironport2.bredband.com with ESMTP; 24 Mar 2009 15:07:27 +0100 Received: from [192.168.69.67] (phobos [192.168.69.67]) by gatekeeper.pp.dyndns.biz (8.14.2/8.14.2) with ESMTP id n2OE7NrH003957 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 24 Mar 2009 15:07:24 +0100 (CET) (envelope-from freebsd-questions@pp.dyndns.biz) Message-ID: <49C8E91B.8050702@pp.dyndns.biz> Date: Tue, 24 Mar 2009 15:07:23 +0100 From: =?ISO-8859-1?Q?Morgan_Wesstr=F6m?= User-Agent: Thunderbird 2.0.0.19 (X11/20090314) MIME-Version: 1.0 CC: freebsd-questions@freebsd.org References: <49C598E3.80107@cheeze.org> <49C6053B.8050403@pp.dyndns.biz> <49C8A24E.1030009@cyberleo.net> In-Reply-To: <49C8A24E.1030009@cyberleo.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: ipfw, pf and ALTQ on outbound traffic? (or: "The net is slow when I upload!") X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Mar 2009 14:07:35 -0000 CyberLeo Kitsana wrote: > Morgan Wesström wrote: >> Jubal Kessler wrote: >>> (To put it another way: When I max out my upstream, and my upstream is >>> capped lower than my downstream, my downstream becomes useless and I am >>> forced to wait until the upload finishes before I can resume using the >>> downstream. This is a problem, and I'd like to solve it.) >> This is exactly the reason why I built my own router several years ago. > > I have done the same with PF and AltQ for the past few years. It is so > effective on my 1536/384 ADSL that I now have the opposite problem: a > large download will lag both downloads and uploads. Sadly, this is a > more difficult issue to tackle without full access to hardware at both > ends of the slow link. > Yes, I have noticed that too. Some discussions I've seen suggest that you add a queue on your internal interface too and limit the bandwidth entering your LAN. This will drop packets and TCP is supposed to renegotiate transmission windows then and make the upstream server send data slower and not saturate your download. I'm no expert in the gritty technical details and I haven't tried this myself but it might be worth experimenting with. /Morgan