Hi all,

Here is a RRD graph ive just made of my packet shaping setup:

http://www.overclockers.com.au/~mwp/temp/tc-1hour.png

The app creating the P-25 traffic is bittorrent on the Linux box also doing the
shaping.
P-22 and P-23 is created by FTP transfers.

Starts with bittorrent running.
At 00:03, an FTP transfer is started on "cool.comp" (windows box).
At 00:09, bittorrent is stopped.
At 00:13, an FTP transfer is started on "ian.comp" (another windows box).
At 00:18, bittorrent is restarted.
At 00:21, FTP on "ian.comp" is stopped.
At 00:25, FTP on "cool.comp" is stopped.

Now whats happening in the graph is the exact opposite of what i want to happen.
P-25 is clearly getting more priority than P-22 and P23.

I just cant see how this can be happening with the config below:

    #root device
    $TC qdisc add dev $INTERFACE root handle 1: htb default 25

    #root class
    $TC class add dev $INTERFACE parent 1: classid 1:1 htb rate 256kbit

    #20 - ICMP, DNS, SYN, SSH
    $TC class add dev $INTERFACE parent 1:1 classid 1:20 htb rate 128kbit ceil 
256kbit prio 1
    $TC qdisc add dev $INTERFACE parent 1:20 handle 20: sfq perturb 10
    $TC filter add dev $INTERFACE parent 1:0 prio 0 protocol ip handle 20 fw 
flowid 1:20

    #21 - HTTP/FTP out
    $TC class add dev $INTERFACE parent 1:1 classid 1:21 htb rate 128kbit ceil 
256kbit prio 2
    $TC qdisc add dev $INTERFACE parent 1:21 handle 21: sfq perturb 10
    $TC filter add dev $INTERFACE parent 1:0 prio 0 protocol ip handle 21 fw 
flowid 1:21

    #22 - All cool.comp traffic
    $TC class add dev $INTERFACE parent 1:1 classid 1:22 htb rate 128kbit ceil 
256kbit prio 3
    $TC qdisc add dev $INTERFACE parent 1:22 handle 22: sfq perturb 10
    $TC filter add dev $INTERFACE parent 1:0 prio 0 protocol ip handle 22 fw 
flowid 1:22

    #23 - All ian.comp traffic
    $TC class add dev $INTERFACE parent 1:1 classid 1:23 htb rate 64kbit ceil 
256kbit prio 4
    $TC qdisc add dev $INTERFACE parent 1:23 handle 23: sfq perturb 10
    $TC filter add dev $INTERFACE parent 1:0 prio 0 protocol ip handle 23 fw 
flowid 1:23

    #24 - HTTP/FTP in
    $TC class add dev $INTERFACE parent 1:1 classid 1:24 htb rate 64kbit ceil 
256kbit prio 5
    $TC qdisc add dev $INTERFACE parent 1:24 handle 24: sfq perturb 10
    $TC filter add dev $INTERFACE parent 1:0 prio 0 protocol ip handle 24 fw 
flowid 1:24

    #25 - Everything else
    $TC class add dev $INTERFACE parent 1:1 classid 1:25 htb rate 15kbit ceil 
180kbit prio 8
    $TC qdisc add dev $INTERFACE parent 1:25 handle 25: sfq perturb 10
    $TC filter add dev $INTERFACE parent 1:0 prio 0 protocol ip handle 25 fw 
flowid 1:25

As you can see class 25 has priority 8, so all other traffic should get
preference, which is not happening.
It almost seems like all the priorities are reversed...

Any ideas?

Thanks,
 Mark Williams.
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Reply via email to