From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Furniss Date: Wed, 11 May 2005 22:26:01 +0000 Subject: Re: [LARTC] tc/htb QoS script Message-Id: <42828679.3090009@dsl.pipex.com> List-Id: References: <427E21D2.8020101@wir-sind.org> In-Reply-To: <427E21D2.8020101@wir-sind.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Ulrich P=F6schl wrote: > hello folks, >=20 > this is my first post to that list. so I hope I am not completely OT=20 > here :-) >=20 > reading the (excellent!) lartc and then writing my own qos-script I have = > still some open questions which I will try to formulate now: >=20 > - "Now we can optionally attach queuing disciplines to the leaf classes. = > If none is specified the default is pfifo." - I can't find info about=20 > Pfifo. is it the same as pfifo_fast? > what happenes when I do not add queuing disciplines to the leaf classes? = > only the filters? pfifo =3D packet fifo it's just a first in first out not as clever as=20 pfifo fast. If you don't add a queue to a leaf you get a long pfifo -=20 limit set by htb rather than you. > - can a class burst above the ceil-parameter when there is NO other=20 > traffic on the line at that moment? You can specify burst and cburst for htb in your scipt if you want - if=20 you don't htb chooses them for you from rate/ceil. See them with tc -s -d class ls devX. >=20 > - what happens when a packet passing trough the filters can be matched=20 > by two filters? f.e. I have a "general" type of WWW-port 80 filter and=20 > another WWW-port 80 filter to a certain subnet. is it like a cisco ACL?=20 > the first hit is applied? Yes use prio to order filters and remember 1 is highest not 0. >=20 > - is hardware a criteria? i want to shape a pretty full 2048/2048 line=20 > and use an old server with 2 NICs at the moment. 128 MB ram, but gnome=20 > running.. :) could I create a bottleneck by doing so? Probably be OK as long as you don't have thousands of tests per packet. >=20 >=20 > - question concerning the script (below): > it is quite simple. I want to filter any traffic going to an "SAP"=20 > subnet. (where we have the SAP-system) and WWW as well as email > i apply it to interface eth0 and eth1 (which are part of an ethernet=20 > bridge br0). > as there are all servers on one side of the bridge and I want it to be=20 > "plug and play"-like I apply the same script to both interfaces. >=20 > The setup is like this: > [Manchester] (~250 Clients) ---> Transparent QoS-Bridge ----> ROUTER=20 > -------- FR WAN 2 Mbit ------> [AT/Vienna] (Mailserver, Proxy, SAP) >=20 > - and: will my script work as expected with that setup? :) >=20 > thanks in advance and kind regards, >=20 > Ulrich >=20 >=20 >=20 >=20 > #!/bin/sh > # > ############ Configuration part ############## > DEVICE=3D$1 # interface (eth0 / eth1) >=20 > Bandwidth 48kbit # rate of WAN - line / remember you can't ceil this=20 > or you'll experience latency. 75-80% of ceil is a good place to start. Your rates and ceils seem to ignore this comment :-) Remember rates are guaranteed prio only affects sharing of what's spare. Rest looks OK but I often miss things - test, test, test is the best way. Andy. _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc