Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Oct 2002 07:54:49 +1000
From:      Peter Jeremy <peter.jeremy@alcatel.com.au>
To:        Christoph Moench-Tegeder <cmt@rz.uni-karlsruhe.de>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: Traffic shaping
Message-ID:  <20021007215449.GI495@gsmx07.alcatel.com.au>
In-Reply-To: <20021006141906.GB27191@rz-ewok.rz.uni-karlsruhe.de>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-Oct-06 16:19:08 +0200, Christoph Moench-Tegeder <cmt@rz.uni-karlsruhe.de> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021007215449.GI495>