Is it possible to attach another qdisq under a HFSC classfull ?
I try it and the configuraton works :
$TC qdisc add dev $dev root handle 1: hfsc default 30
$TC class add dev $dev parent 1: classid 1:1 hfsc sc rate ${RATE}mbit ul rate ${RATE}mbit
$TC class add dev $dev parent 1:1 classid 1:10 hfsc rt umax 1500b dmax 30ms rate 200kbit
$TC class add dev $dev parent 1:1 classid 1:20 hfsc rt umax 1500b dmax 1ms rate 5mbit
$TC class add dev $dev parent 1:1 classid 1:40 hfsc sc rate ${RATE15}mbit ul rate ${RATE}mbit
$TC qdisc add dev $dev parent 1:10 handle 10 sfq perturb 10
$TC qdisc add dev $dev parent 1:20 handle 20 sfq perturb 10
$TC qdisc add dev $dev parent 1:30 handle 30:0 htb default 302
$TC class add dev $dev parent 30:0 classid 30:1 htb rate ${RATE}mbit burst 15k quantum 60000
$TC class add dev $dev parent 30:1 classid 30:10 htb rate ${RATE15}mbit ceil ${RATE}mbit burst 15k prio 1 quantum 60000
$TC class add dev $dev parent 30:1 classid 30:20 htb rate ${RATE15}mbit ceil ${RATE}mbit burst 15k prio 2 quantum 60000
$TC qdisc add dev $dev parent 30:10 handle 301:0 sfq perturb 10
$TC qdisc add dev $dev parent 30:20 handle 302:0 sfq perturb 10
1:0 hfsc
|
1:1 hfsc
/ | \
1:10 1:20 1:30
| | |
10 (sfq) 20(sfq) 30(htb)
|
30:1(htb)
/ \
30:10 30:20
| |
310(sfq) 320(sfq)
but when I made a filter for put packets in one of the HTB classes (30:10) it arrive at the principal HTB class (30) and it sent directly to the interface.
It didn't pass by the htb class but the stream go out of the router.
qdisc hfsc 1: default 30
Sent 81396094 bytes 59762 pkt (dropped 23, overlimits 34777 requeues 0)
backlog 0b 3p requeues 0
qdisc sfq 10: parent 1:10 limit 128p quantum 1514b perturb 10sec
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc sfq 20: parent 1:20 limit 128p quantum 1514b perturb 10sec
Sent 53186158 bytes 39167 pkt (dropped 0, overlimits 0 requeues 1)
backlog 0b 0p requeues 1
qdisc htb 30: parent 1:30 r2q 10 default 302 direct_packets_stat 20575
Sent 28182776 bytes 20575 pkt (dropped 0, overlimits 0 requeues 14527)
backlog 0b 3p requeues 14527
qdisc sfq 301: parent 30:10 limit 128p quantum 1514b perturb 10sec
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc sfq 302: parent 30:20 limit 128p quantum 1514b perturb 10sec
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
Can you help me ?
_______________________________________________ LARTC mailing list LARTC@xxxxxxxxxxxxxxx http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc