All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] PRIO and TBF is much better than HTB??
@ 2007-05-10 15:12 Simo
  2007-05-11  6:25 ` Salim S I
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Simo @ 2007-05-10 15:12 UTC (permalink / raw)
  To: lartc


[-- Attachment #1.1: Type: text/plain, Size: 2862 bytes --]

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´t 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 = 0x50) and
ssh (22 = 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/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

 

#define UPLOAD 1000kbps

dev eth0 1000 {

    egress {

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

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

        htb () {

                class ( rate UPLOAD, ceil UPLOAD) {

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

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

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

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

                }

        }

    }

}

 

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

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

/* 800kbit/s  */

every 0.001s send TCP_PCK($tcp_dport=80) 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 == 80;

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

        prio{

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

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

             }

        }

 

}

 

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

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

/* 800kbit/s  */

every 0.001s send TCP_PCK($tcp_dport=80) 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´s why the latency is so good???)

 

Have you an idea???

 

thanks

simo

 

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

 


[-- Attachment #1.2: Type: text/html, Size: 10571 bytes --]

[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-05-11 15:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-10 15:12 [LARTC] PRIO and TBF is much better than HTB?? Simo
2007-05-11  6:25 ` Salim S I
2007-05-11  8:36 ` Simo
2007-05-11  9:18 ` Salim S I
2007-05-11  9:40 ` Andy Furniss
2007-05-11 11:53 ` Simo
2007-05-11 15:50 ` Flechsenhaar, Jon J

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.