Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Apr 2002 06:57:36 -0800
From:      Luigi Rizzo <luigi@iet.unipi.it>
To:        Andreas Klemm <andreas@klemm.gtn.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: better DSL bandwidth usage by priorizing ACKs in outgoing packets over others
Message-ID:  <20020406065735.A29144@iguana.icir.org>
In-Reply-To: <20020402163912.GD4307@titan.klemm.gtn.com>
References:  <20020402163912.GD4307@titan.klemm.gtn.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Apr 02, 2002 at 06:39:12PM +0200, Andreas Klemm wrote:

we would need a minor tweak to the ipfw code so that it can match
packets whose size is less than X bytes (so the mechanism is general
enough to be used for other things). This could be done in a matter
of 1hour or less, most of the time would be wasted in figuring out
a way to implement it that does not break binary compatibility.

Once we have done this, we can define a dummynet pipe with
a bandwidth <= the bottleneck (128kbit/s), and use"queue" rules
to privilege the acks wrt other traffic.

Something like


	ipfw pipe 10 config bw 100kbit/s
	ipfw queue 1 config weight  1 pipe 10
	ipfw queue 100 config weight 100 pipe 10
	ipfw add queue 100 tcp from any to ${outside} shorter-than 80
	ipfw add queue 1 ip from any to ${outside}

This said, i have never seen terribly bad effects when cvsupping
and doing other things. If there is something which goes to its
knees, this is the disk.


Oh,  and "usually" in italy, the cheap DSL contracts give you 256kbit/s in!

	cheers
	luigi

> Hi !
> 
> A collegue of mine has an Apple (Mac OS X) and told me about
> a cool software, that priorizes outgoing ACKs over other traffic.
> 
> On Tue, Apr 02, 2002 at 04:53:08PM +0200, andreas.klemm.ak@bayer-ag.de wrote:
> > http://www.intrarts.com/quest/throttle.html
> 
> Using DSL you have usually 768K in and 128K out.
> Figure a szenario, where you ftp like hell from a ftp
> server. You get very good throughput, since the outgoing
> ACKs of the incoming ftp data stream are not throttled by
> 128K outgoing bandwidth.
> 
> But if you start another application like cvsup at the
> same time you'll notice an immediate throttle of incoming
> packets, because cvsup monopolizes the outgoing 128K bandwidth.
> And if the ACKs don't get out in a timely manner, you can't get
> that much incoming FTP traffic.
> 
> The above mentioned software manages exactly this by using
> a daemon program. With divert sockets and ipfw you send outgoing
> traffic to this daemon which gives outgoing ACKs over the
> 128K higher preference and buffers the rest of the traffic
> (I think).
> 
> Would something like this be possible anyhow with our current
> Firewall implementation, or would somebody have time and fun
> to implement this ??
> 
> 	Andreas ///
> 
> -- 
> Andreas Klemm                             /\/\/\/\/\/\/\/\/\/\/\
> http://www.64bits.de                     <  Powered by FreeBSD  >
> http://www.apsfilter.org/                 \   www.FreeBSD.org  /
> http://people.FreeBSD.ORG/~andreas         \/\/\/\/\/\/\/\/\/\/
> 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




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