From owner-freebsd-stable Mon Oct 7 14:54:57 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F9BB37B409 for ; Mon, 7 Oct 2002 14:54:55 -0700 (PDT) Received: from alcanet.com.au (mail3.alcanet.com.au [208.178.117.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D2FD43E81 for ; Mon, 7 Oct 2002 14:54:54 -0700 (PDT) (envelope-from peter.jeremy@alcatel.com.au) Received: from sydsmtp01.alcatel.com.au (IDENT:root@localhost.localdomain [127.0.0.1]) by alcanet.com.au (8.12.4/8.12.4/Alcanet1.3) with ESMTP id g97Lspp2031730; Tue, 8 Oct 2002 07:54:53 +1000 Received: from gsmx07.alcatel.com.au ([139.188.20.247]) by sydsmtp01.alcatel.com.au (Lotus Domino Release 5.0.11) with ESMTP id 2002100807545018:7367 ; Tue, 8 Oct 2002 07:54:50 +1000 Received: from gsmx07.alcatel.com.au (localhost [127.0.0.1]) by gsmx07.alcatel.com.au (8.12.5/8.12.5) with ESMTP id g97Lso2t080268; Tue, 8 Oct 2002 07:54:50 +1000 (EST) (envelope-from peter.jeremy@alcatel.com.au) Received: (from jeremyp@localhost) by gsmx07.alcatel.com.au (8.12.5/8.12.5/Submit) id g97LsnkP080267; Tue, 8 Oct 2002 07:54:49 +1000 (EST) (envelope-from peter.jeremy@alcatel.com.au) Date: Tue, 8 Oct 2002 07:54:49 +1000 From: Peter Jeremy To: Christoph Moench-Tegeder Cc: freebsd-stable@FreeBSD.ORG Subject: Re: Traffic shaping Message-ID: <20021007215449.GI495@gsmx07.alcatel.com.au> Mail-Followup-To: Christoph Moench-Tegeder , freebsd-stable@FreeBSD.ORG References: <200210050655.g956t3Mp091313@lurza.secnetix.de> <006501c26d35$f6904720$1001a8c0@jennie> <20021006132624.GA27191@rz-ewok.rz.uni-karlsruhe.de> <1033912218.4051.2.camel@chowder.dons.net.au> <20021006141906.GB27191@rz-ewok.rz.uni-karlsruhe.de> Mime-Version: 1.0 In-Reply-To: <20021006141906.GB27191@rz-ewok.rz.uni-karlsruhe.de> User-Agent: Mutt/1.4i X-MIMETrack: Itemize by SMTP Server on SYDSMTP01/AlcatelAustralia(Release 5.0.11 |July 24, 2002) at 08/10/2002 07:54:50 AM, Serialize by Router on SYDSMTP01/AlcatelAustralia(Release 5.0.11 |July 24, 2002) at 08/10/2002 07:54:53 AM, Serialize complete at 08/10/2002 07:54:53 AM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-Oct-06 16:19:08 +0200, Christoph Moench-Tegeder wrote: >## Daniel O'Connor (doconnor@gsoft.com.au): > >> Actually, if you limit incoming TCP it will adapt to the correct speed. >> I do this at home without hassle (except the latency in games goes up >> from ~40 to ~100 but it is still acceptable) > >How much do you have to limit TCP for the desired effect? I never >tried shaping on asymmetric lines, and the traffic ratio for a >single TCP bulk transfer (1500 (or little less in case of PPPoE, >PPTP, etc.) bytes incoming vs. 40 bytes outgoing) does not match >the up/down-ratio of his line (1:6) by any means. ipfw/dummynet pipes only handle a single flow direction: If you have something like ipfw NUMBER pipe 1 ip from any to any via ifX then both incoming and outgoing traffic share the pipe and you are limiting the combined uplink and downlink traffic - which probably isn't what you want. Instead, you need two pipes with uplink traffic in one and downlink traffic in the other. Since the pipes are independent, you can set the uplink and downlink limits to suit your ADSL link: ipfw pipe 1 config bw UPLINK kbps ipfw NUMBER pipe 1 ip from any to any out xmit ifX ipfw pipe 2 config bw DOWNLINK kbps ipfw NUMBER pipe 2 ip from any to any in recv ifX Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message