From owner-freebsd-questions@FreeBSD.ORG Fri Jun 18 10:11:52 2010 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 C1CAF106566B for ; Fri, 18 Jun 2010 10:11:52 +0000 (UTC) (envelope-from freebsd-questions@pp.dyndns.biz) Received: from smtprelay-b12.telenor.se (smtprelay-b12.telenor.se [62.127.194.21]) by mx1.freebsd.org (Postfix) with ESMTP id 49CA48FC17 for ; Fri, 18 Jun 2010 10:11:51 +0000 (UTC) Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-b12.telenor.se (Postfix) with ESMTP id 24CEFCA07 for ; Fri, 18 Jun 2010 12:11:51 +0200 (CEST) X-SENDER-IP: [85.226.59.55] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ais6AMfjGkxV4js3PGdsb2JhbACHb4p7jCEMAQEBATUtwD2FGwQ X-IronPort-AV: E=Sophos;i="4.53,437,1272837600"; d="scan'208";a="93084495" Received: from c-373be255.107-1-64736c10.cust.bredbandsbolaget.se (HELO gatekeeper.pp.dyndns.biz) ([85.226.59.55]) by ipb1.telenor.se with ESMTP; 18 Jun 2010 12:11:50 +0200 Received: from [192.168.69.67] (phobos [192.168.69.67]) by gatekeeper.pp.dyndns.biz (8.14.3/8.14.3) with ESMTP id o5IABnx3075962 for ; Fri, 18 Jun 2010 12:11:49 +0200 (CEST) (envelope-from freebsd-questions@pp.dyndns.biz) Message-ID: <4C1B4664.9070108@pp.dyndns.biz> Date: Fri, 18 Jun 2010 12:11:48 +0200 From: =?ISO-8859-1?Q?Morgan_Wesstr=F6m?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100428 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: Online gaming and file downloads - latency hell! 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: Fri, 18 Jun 2010 10:11:52 -0000 On 2010-06-16 02:51, Modulok wrote: > Yo, > > I have a FreeBSD box acting as a router between me and the Internet. > Whenever someone on the local network downloads something, the other > connections have a really high latency. A second or more. For people > who like to download large files and play online games, it's not good. > > I tried traffic shaping with PF, which works - almost: I tried the > home example in the PF book, but it doesn't work out so well. I can > throttle users with no trouble, but even so that doesn't seem to help > the latency issue unless I choke the 'big file download' users almost > completely off. It's like nothing helps. I tried a priority based > queue where all traffic on the gaming ports was placed in front of all > other traffic, and while I saw a very mild improvement, latency was > still really pitiful. > > Is there anything else I can do? Anyone have a similar setup and wish > to share config files? Are there some sysctl's that would help this > out or something. I'm almost ready to just buy a 'gaming' *gag* router > which implements their own brand of QoS, but don't want to sink to > that level if I don't have to. > > Help! > -Modulok- Traffic shaping on your side when downloading unfortunately doesn't help you. The data has already been transferred across your cable or DSL connection by then and reordering any packets on your side will not change the latency. Traffic shaping your download has to be performed at your upstream router which you probably don't control. PF can help you traffic shape your outgoing traffic. I have used it for this for the past 6 years to help me maintain a low and stable ping while I play online, even if I upload simultaneously. I've read about people trying to throttle outgoing ACKs to slow down their download but that still wouldn't rearrange any incoming data packets so I don't see how that would help. I haven't tried it myself though but neither have I read about anyone successfully accomplishing this. Regards Morgan