From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Mark Williams (MWP)" Date: Sun, 26 Dec 2004 04:38:49 +0000 Subject: Re: [LARTC] Weighted packet shaping? Message-Id: <20041226042648.GA24904@linux.comp> List-Id: References: <20041221034303.GB27656@linux.comp> In-Reply-To: <20041221034303.GB27656@linux.comp> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org > Mark Williams (MWP) wrote: > >>>>For now try making a parent with rate and ceil 220kbit. > >>>>Have 4 child/leaf classes like - (assuming 1 is highest priority) > >>>> > >>>>class 1 rate 120 ceil 220 prio 0 > >>>>class 2 rate 50 ceil 220 prio 1 > >>>>class 3 rate 25 ceil 220 prio 2 > >>>>class 4 rate 25 ceil 220 prio 3 > >>>> > >>>>There are other tweaks you can try, it depends how much you care about > >>>>latency. You could also share the windows boxes bandwidth by IP. > >>>> > >>>>I don't do it quite like the above - so if it doesn't work, say and > >>>>I'll think again. > >>> > >>> > >> > >> > >>Try to make it look like I said - back off from 256 ceil, make rates add > >>up to master rate (220), give interactive more rate than it will ever > >>need. > > > > > >Ok, im now trying: > > > >class add dev $INTERFACE parent 1: classid 1:1 htb rate 220kbit > >class add dev $INTERFACE parent 1:1 classid 1:20 htb rate 70kbit ceil > >220kbit prio 1 > >class add dev $INTERFACE parent 1:1 classid 1:21 htb rate 50kbit ceil > >220kbit prio 2 > >class add dev $INTERFACE parent 1:1 classid 1:22 htb rate 25kbit ceil > >220kbit prio 3 > >class add dev $INTERFACE parent 1:1 classid 1:23 htb rate 25kbit ceil > >220kbit prio 4 > >class add dev $INTERFACE parent 1:1 classid 1:24 htb rate 25kbit ceil > >220kbit prio 5 > >class add dev $INTERFACE parent 1:1 classid 1:25 htb rate 25kbit ceil > >220kbit prio 8 > > > >Its simply not working. > >Bittorrent is using ~22kb/sec on class 25, leaving the FTP upload (class > >22) > >sitting on only ~3kb/sec. > > > >Any ideas? > > > Are you sure that FTP is going to class 22 and not default - > > tc -s qdisc ls dev $INTERFACE or tc -s class ls dev $INTERFACE will show > counters. I am. I graph using "tc -s qdisc show dev ppp0" with rrdtool. Thanks, Mark. _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/