On 2002-Oct-06 16:19:08 +0200, Christoph Moench-Tegeder <[EMAIL PROTECTED]> 
wrote:
>## Daniel O'Connor ([EMAIL PROTECTED]):
>
>> 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message

Reply via email to