From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Simo" Date: Thu, 10 May 2007 15:12:58 +0000 Subject: [LARTC] PRIO and TBF is much better than HTB?? Message-Id: <001401c79315$b1732c60$14598520$@de> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============0143004950==" List-Id: To: lartc@vger.kernel.org Dies ist eine mehrteilige Nachricht im MIME-Format. --===============0143004950== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0015_01C79326.74FBFC60" Content-Language: de Dies ist eine mehrteilige Nachricht im MIME-Format. ------=_NextPart_000_0015_01C79326.74FBFC60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello mailing list, i stand bevor a mystery and cannot explain it J. I want to do shaping = and prioritization and I have done these following configurations and simulations. I can=B4t explain, that the combination of PRIO and TBF is = much better than the HTB (with the prio parameter) alone or in combination = with the SFQ. Here are my example configurations: 2 Traffic Classes http (80 =3D 0x50) = and ssh (22 =3D 0x16), and in my example, I want to prioritize the = http-Traffic: HTB: the results of the simulation ist here:=20 HTB cumulative: http://simo.mix4web.de/up/htb_cumul.jpg HTB delay: http://simo.mix4web.de/up/htb_delay.jpg HTB with prio parameter cumulative: http://simo.mix4web.de/up/htb_cumul_prio_paramter.jpg HTB with prio parameter delay: http://simo.mix4web.de/up/htb_delay_prio_parameter.jpg =20 #define UPLOAD 1000kbps dev eth0 1000 { egress { class ( <$high> ) if tcp_dport =3D=3D 80; class(<$low>) if tcp_dport =3D=3D 22; htb () { class ( rate UPLOAD, ceil UPLOAD) { /* with the prio parameter : $high =3D class ( rate 700kbps, ceil = UPLOAD, prio 0); */ $high =3D class ( rate 700kbps, ceil UPLOAD); /* with the prio parameter : $low =3D class ( rate = 300kbps, ceil UPLOAD, prio 0); */ $low =3D class ( rate 300kbps, ceil UPLOAD, prio 1); } } } } =20 /* 1Mbit 0.0008 =3D 100*8/10^6 */ every 0.0008s send TCP_PCK($tcp_dport=3D22) 0 x 60 /* 800kbit/s */ every 0.001s send TCP_PCK($tcp_dport=3D80) 0 x 60 time 2s =20 =20 =20 =20 PRIO and TBF: PRIO and TBF cumulative: http://simo.mix4web.de/up/prio_tbf_cumul.jpg PRIO and TBF delay: http://simo.mix4web.de/up/prio_tbf_delay.jpg =20 #define UPLOAD 1000kbps =20 dev eth0 1000 { egress { class ( <$high> ) if tcp_dport =3D=3D 80; class(<$low>) if tcp_dport =3D=3D 22; prio{ $high =3D class{ tbf (rate 700kbps, burst 1510B, mtu = 1510B, limit 3000B); } $low =3D class{ tbf (rate 300kbps, burst 1510B, mtu 1510B, = limit 3000B); } } } =20 } =20 /* 1Mbit 0.0008 =3D 100*8/10^6 */ every 0.0008s send TCP_PCK($tcp_dport=3D22) 0 x 60 /* 800kbit/s */ every 0.001s send TCP_PCK($tcp_dport=3D80) 0 x 60 time 2s =20 =20 =20 the delay by the combination of PRIO and TBF is much better than by the = HTB. (is it possible that pakets maybe dropped by the combination of PRIO and TBF, that=B4s why the latency is so good???) =20 Have you an idea??? =20 thanks simo =20 -------------------------------------------------------------------------= --- ----------------------------------------------------------------- In a world without walls who needs gates and windows? =20 ------=_NextPart_000_0015_01C79326.74FBFC60 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hello mailing = list,

i stand bevor a mystery and = cannot explain it J. I want to do shaping and prioritization and I have done = these following configurations and simulations. I can=B4t explain, that the = combination of PRIO and TBF is much better than the  HTB (with the prio = parameter) alone or  in combination with the SFQ.

Here are my example = configurations: 2 Traffic Classes http (80 =3D 0x50) and ssh (22 =3D 0x16), and in my = example, I want to prioritize the http-Traffic:

HTB: the results of the = simulation ist here:

HTB cumulative: http://simo.mix4web.de/u= p/htb_cumul.jpg

HTB delay: http://simo.mix4web.de/u= p/htb_delay.jpg

HTB with prio parameter = cumulative: http://sim= o.mix4web.de/up/htb_cumul_prio_paramter.jpg

HTB with prio parameter delay: = http://si= mo.mix4web.de/up/htb_delay_prio_parameter.jpg

 

#define UPLOAD = 1000kbps

dev eth0 1000 = {

    egress = {

        class ( <$high> )  if tcp_dport =3D=3D = 80;

        class(<$low>) if  tcp_dport =3D=3D 22;

        htb () {

          =       class ( rate UPLOAD, ceil UPLOAD) = {

/* = with the prio parameter : $high   =3D class ( rate 700kbps, ceil UPLOAD, = prio 0); */

          =       $high   =3D class ( rate 700kbps, ceil = UPLOAD);

                /* = with the prio parameter : $low   =3D class ( rate 300kbps, ceil UPLOAD, = prio 0); */

          =       $low  =3D class ( rate 300kbps, ceil UPLOAD, prio = 1);

          =       }

        }

    = }

}

 

/* 1Mbit 0.0008 =3D = 100*8/10^6  */

every 0.0008s send = TCP_PCK($tcp_dport=3D22) 0 x 60

/* 800kbit/s  = */

every 0.001s send = TCP_PCK($tcp_dport=3D80) 0 x 60

time 2s

 

 

 

 

PRIO and = TBF:

PRIO and TBF cumulative: http://simo.mix4web= .de/up/prio_tbf_cumul.jpg

PRIO and TBF delay: http://simo.mix4web.de/up/prio_tbf_delay.jpg

 

#define UPLOAD = 1000kbps

 

dev eth0 1000 = {

    egress = {

        class ( <$high> )  if tcp_dport =3D=3D = 80;

        class(<$low>) if  tcp_dport =3D=3D 22;

        prio{

          =     $high =3D class{ tbf (rate 700kbps, burst 1510B, mtu 1510B, limit = 3000B);  }

          =     $low =3D class{ tbf (rate 300kbps, burst 1510B, mtu 1510B, limit 3000B); = }

          =    }

        }

 

}

 

/* 1Mbit 0.0008 =3D = 100*8/10^6  */

every 0.0008s send = TCP_PCK($tcp_dport=3D22) 0 x 60

/* 800kbit/s  = */

every 0.001s send = TCP_PCK($tcp_dport=3D80) 0 x 60

time 2s

 

 

 

the delay by the combination of = PRIO and TBF is much better than by the HTB. (is it possible that pakets maybe = dropped by the combination of PRIO and TBF, that=B4s why the latency is so = good???)

 

Have you an = idea???

 

thanks

simo

 

-= -------------------------------------------------------------------------= -------------------------------------------------------------------
In a world without walls who needs gates and windows?

 

------=_NextPart_000_0015_01C79326.74FBFC60-- --===============0143004950== 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 --===============0143004950==--