On Thu, Mar 02, 2006 at 01:45:01PM +0200, Sorin Panca wrote:
> _______________________________________________________________________
> 
> 
> 1:--+----1:1       - [ counter-strike & icmp ] rate=1Mbit; ceil=1Mbit;
>     |                                     prio 0; (u32 filter by ports)
>     |
>     |----1:2       - [ Internet ] rate=1.5Mbit; ceil=rate; prio 1;
>     |     |                       (RNR=rate) RNR = Root iNet Rate
>     |     |
>     |     |---1:20 - [ normal traffic ] rate=90% of $RNR; ceil=$RNR;
>     |     |                             prio 0; (u32 filter by ports)
>     |     |
>     |     \---1:21 - [ p2p traffic ] (default class) rate=1kbit;
>     |                                ceil=90% of $RNR; prio 1
>     |
>     |----1:3       - [ MAN ] rate=1Mbit; ceil=10Mbit-$RNR; prio 1
>     |     |                  (RMC=ceil) RMC = Root MAN Ceil
>     |     |                  MAN destinations are marked with 0x1 Marker
>     |     |
>     |     |---1:30 - [ normal traffic ]
>     |     |                    rate=500kbit;ceil=($RMC-$RNR-1)kbit;
>     |     |                    prio 0; (u32 filter by ports AND fw mark)
>     |     |
>     |     \---1:31 - [ p2p traffic ] rate=1kbit; ceil=($RMC-$RNR-1)kbit;
>     |                                prio 1; (u32 filter by fw mark)
>     |
>     \----1:4       - [ LAN ] rate=89Mbit; ceil=89Mbit
> 
> ________________________________________________________________________

I assume that CS actually goes out to Internet and/or MAN, depending on 
the location of the server. I would make one CS class for each. Otherwise 
you may have 1MBit CS (which goes out to Internet) plus 1.5MBit Internet, 
which will work only if you got 2.5MBit Internet guaranteed in total. 
Likewise with MAN. Unless you really got that much bandwidth, this setup 
will not give you any good results at all.

You could also use PRIO qdisc as a child to the HTB Internet / MAN classes 
to give CS absolute priority over HTTP over P2P. This approach worked very 
well for me and my flatmates, also for gaming. But that's on a way slower 
line and without Internet/MAN distinction, so we've been happy with 200ms 
(versus 1000-5000ms when unshaped) pings.

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

Reply via email to