[LARTC] Server and router on the same box

o7sh at actcom.net.il o7sh at actcom.net.il
Fri Jul 8 00:43:08 CEST 2005


> To make upstream fully available to your webserver, I suggest using a PRIO
> qdisc with 2 bands... band one for webserver traffic, band two for
> everything else.
>
> The PRIO qdisc will make sure that your webserver always gets to send his
> packets first. LAN traffic will only be allowed to send when the webserver
> sent all his packets.
>
Hi again..
it sounds like just what I need but I find it hard to implement.
Here are my rules:
-----
tc qdisc add dev ppp0 root handle 1: prio
tc filter add dev ppp0 parent 1:0 protocol ip prio 1 u32 match ip sport 80 
0xffff flowid 1:1
tc filter add dev ppp0 parent 1:0 protocol ip prio 3 u32 
-----
I've been testing this for a while. But still got the dowload running while 
the upstream was full...
Can you explain why?



More information about the LARTC mailing list