From: "Santiago" Date: Wed, 29 Aug 2007 21:18:35 +0000 Subject: Re: [LARTC] How tho share varible bandwidth with weighted round robin Message-Id: <20070829211531.M24887@elportal.net.ec> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============0552162201==" List-Id: References: <20070829160044.M8350@elportal.net.ec> In-Reply-To: <20070829160044.M8350@elportal.net.ec> To: lartc@vger.kernel.org This is a multi-part message in MIME format. --===============0552162201== Content-Type: multipart/alternative; boundary="----=OPENWEBMAIL_ATT_0.0951280853050811" This is a multi-part message in MIME format. ------=OPENWEBMAIL_ATT_0.0951280853050811 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I am interested in the incoming traffic (from Internet to lan users). This = is the problem. On Wed, 29 Aug 2007 20:12:09 +0200, Javier Ors wrote >=20 >=20 > As far as I undestand, at least sfq should work without knowing the actua= l bandwith (you don't need to specify it in the qdisc creation). The proble= m with it is that it only works in the bottleneck of the network, where the= queues form, which is usually the machine which has the hardware that make= s the connection to the Internet. For example in this configuration...=20 >=20 > Internet <--- cable/dsl/etc. ---> Router/Modem <---ethernet---> Firewall = <---ethernet---->LAN >=20 > shaping outgoing traffic (traffic to the internet) with only sfq, esfq, p= rio, etc... will be useless if it is done in the firewall, becouse the queu= es will form in the router. It could be done in the same router if it has t= he capability (for example, it runs Linux inside and it is accessible by ss= h or telnet). I haven't tried WRR but the same should be applied.=20 >=20 > Theoretically, at least as I see it, HTB could also be used without knowi= ng the actual speed in the bottleneck, you just should set the root class t= o a speed higher than Vmax and adjust the rates of the leaf classes to the = desired ratios, or playing with the quantums so that it behaves like a WRR = or DRR (which is that it uses internally when the classes are borrowing). B= ut I have made many attempts in this sense and all of them have been unsucc= essful, don't know why.=20 >=20 > For incoming traffic it is another story, it can be done in the firewall,= but it is a little trickier. >=20 > Even more theoretically, outgoing shaping maybe could be done also in the= firewall if the router supports ECN, so that the queues could be formed in= the firewall using this information without nedding to reduce the bandwith= , but this is just a mental experiment which still have pending to brought = to practice, so don't pay much attention to this...=20 >=20 > --=20 > Este mensaje ha sido analizado por MailScanner=20 > en busca de virus y otros contenidos peligrosos,=20 > y se considera que est=E1 limpio.=20 > MailScanner agradece a transtec Computers por su apoyo. --=20 Open WebMail Project (http://openwebmail.org) There is some queue disciplines like esfq and WRR (w. But theses ones only = > work if you know the actual bandwidth. =20 --=20 Este mensaje ha sido analizado por MailScanner en busca de virus y otros contenidos peligrosos, y se considera que est=E1 limpio. MailScanner agradece a transtec Computers por su apoyo. ------=OPENWEBMAIL_ATT_0.0951280853050811 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable =0A= =0A= = =0A= =0A= =0A= =0A= =0A=

I am interested in the incoming traffic (from Internet = to lan users). This is the problem.

=0A= =0A=

On Wed, 29 Aug 2007 20:12:09 +0200, Javier Ors wrote= =0A=
> =0A=
>=20=0A=
> As far as I undestand, at least sfq should work without knowing = the actual bandwith (you don't need to specify it in the qdisc creation). T= he problem with it is that it only works in the bottleneck of the network, = where the queues form, which is usually the machine which has the hardware = that makes the connection to the Internet. For example in this configuratio= n...=20=0A=
>=20=0A=
> Internet <--- cable/dsl/etc. ---> Router/Modem <---ethe= rnet---> Firewall <---ethernet---->LAN=0A=
>=20=0A=
> shaping outgoing traffic (traffic to the internet) with only sfq= , esfq, prio, etc... will be useless if it is done in the firewall, becouse= the queues will form in the router. It could be done in the same router if= it has the capability (for example, it runs Linux inside and it is accessi= ble by ssh or telnet). I haven't tried WRR but the same should be applied.= =20=0A=
>=20=0A=
> Theoretically, at least as I see it, HTB could also be used with= out knowing the actual speed in the bottleneck, you just should set the roo= t class to a speed higher than Vmax and adjust the rates of the leaf classe= s to the desired ratios, or playing with the quantums so that it behaves li= ke a WRR or DRR (which is that it uses internally when the classes are borr= owing). But I have made many attempts in this sense and all of them have be= en unsuccessful, don't know why.=20=0A=
>=20=0A=
> For incoming traffic it is another story, it can be done in the = firewall, but it is a little trickier.=0A=
>=20=0A=
> Even more theoretically, outgoing shaping maybe could be done al= so in the firewall if the router supports ECN, so that the queues could be = formed in the firewall using this information without nedding to reduce the= bandwith, but this is just a mental experiment which still have pending to= brought to practice, so don't pay much attention to this...=20=0A=
>=20=0A=
> --=20=0A=
> Este mensaje ha sido analizado por =20=0A=
> en busca de virus y otros contenidos peligrosos,=20=0A=
> y se considera que est=E1 limpio.=20=0A=
> MailScanner agradece a
p= or su apoyo.=20=0A=
=0A=
=0A=
--=20=0A=
Open WebMail Project (
http://openwebmail.org)=20=0A=
=0A=

=0A=
There is some queue = disciplines like esfq and WRR (w. But theses ones only=20=0A=
> work if you know the actual bandwidth.
=0A= =0A=
--=20=0A=
Este mensaje ha sido analizado por=20=0A= MailScanner=0A=
en busca de virus y otros contenidos peligrosos,=0A=
y se considera que está limpio.=0A=
MailScanner agradece a transte= c Computers por su apoyo.=0A= =0A= =0A= ------=OPENWEBMAIL_ATT_0.0951280853050811-- --===============0552162201== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc --===============0552162201==--