It is my tc script. I want to priorize some protocols. I want to do the following: in 1:1classid udp must be first then icmp then any other Also in 1:2 first udp second icmp third tcp then any other. How can i do it? Can u give me some examples. tc qdisc del dev eth0 root #eht0 rules tc qdisc add dev eth0 root handle 1: htb default 11 #shape interface eth0 tc class add dev eth0 parent 1: classid 1:1 htb rate 500kbit ceil 512kbit burst 2k tc class add dev eth0 parent 1:1 classid 1:2 htb rate 12kbit ceil 512kbit burst 2k #voip class tc class add dev eth0 parent 1:1 classid 1:12 htb rate 100kbit ceil 512kbit burst 2k tc class add dev eth0 parent 1:1 classid 1:14 htb rate 100kbit ceil 512kbit burst 2k tc class add dev eth0 parent 1:1 classid 1:16 htb rate 100kbit ceil 512kbit burst 2k tc class add dev eth0 parent 1:1 classid 1:18 htb rate 100kbit ceil 512kbit burst 2k tc class add dev eth0 parent 1:1 classid 1:20 htb rate 100kbit ceil 512kbit burst 2k #staff class tc class add dev eth0 parent 1:2 classid 1:11 htb rate 4kbit ceil 512kbit burst 2k tc class add dev eth0 parent 1:2 classid 1:13 htb rate 4kbit ceil 512kbit burst 2k tc class add dev eth0 parent 1:2 classid 1:15 htb rate 4kbit ceil 512kbit burst 2k tc class add dev eth0 parent 1:2 classid 1:17 htb rate 4kbit ceil 512kbit burst 2k #mark voip class tc filter add dev eth0 parent 1: protocol ip prio 1 handle 2 fw classid 1:12 tc filter add dev eth0 parent 1: protocol ip prio 1 handle 4 fw classid 1:14 tc filter add dev eth0 parent 1: protocol ip prio 1 handle 6 fw classid 1:16 tc filter add dev eth0 parent 1: protocol ip prio 1 handle 8 fw classid 1:18 tc filter add dev eth0 parent 1: protocol ip prio 1 handle 10 fw classid 1:20 #mark staff class tc filter add dev eth0 parent 1: protocol ip prio 1 handle 1 fw classid 1:11 tc filter add dev eth0 parent 1: protocol ip prio 1 handle 3 fw classid 1:13 tc filter add dev eth0 parent 1: protocol ip prio 1 handle 5 fw classid 1:15 tc filter add dev eth0 parent 1: protocol ip prio 1 handle 7 fw classid 1:17 #add qdisc discipline voip tc qdisc add dev eth0 parent 1:12 handle 32: sfq perturb 10 tc qdisc add dev eth0 parent 1:14 handle 34: sfq perturb 10 tc qdisc add dev eth0 parent 1:16 handle 36: sfq perturb 10 tc qdisc add dev eth0 parent 1:18 handle 38: sfq perturb 10 tc qdisc add dev eth0 parent 1:20 handle 40: sfq perturb 10 #add qdisc discipline staff tc qdisc add dev eth0 parent 1:11 handle 41: sfq perturb 10 tc qdisc add dev eth0 parent 1:13 handle 43: sfq perturb 10 tc qdisc add dev eth0 parent 1:15 handle 45: sfq perturb 10 tc qdisc add dev eth0 parent 1:17 handle 47: sfq perturb 10