Hi,
I am using CBQ on Linux (kernet 2.2.16) and I want set priority and
separate channel for ICMP packets.
I need it, becouse if CBQ class is full, pings and traceroute are slow.
How to set up CBQ that pings and traceroute will be allways fast.

But I don't know how to set up filters. My current configuration is
(please see comments inline):

# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# -- Starting --
tc qdisc add dev eth0 root handle 10: cbq bandwidth 10Mbit avpkt 1000 \
cell 8

tc class add dev eth0 parent 10:0 classid 10:1 cbq bandwidth 10Mbit\
rate 10Mbit allot 1514 cell 8 weight 1Mbit prio 8 maxburst 20 avpkt 1000

tc class add dev eth0 parent 10:1 classid 10:128 cbq bandwidth 10Mbit \
rate 64Kbit allot 1514 cell 8 weight 1Kbit prio 5 maxburst 20 avpkt \
1000 bounded

tc class add dev eth0 parent 10:128 classid 10:129 cbq bandwidth 64Kbit\
rate 6Kbit allot 1514 cell 8 weight 1Kbit prio 5 maxburst 20 avpkt 1000

# -- 1Kbit channel with highest priority 1 --
tc class add dev eth0 parent 10:128 classid 10:131 cbq bandwidth 64Kbit\
rate 10bps allot 1514 cell 8 weight 1Kbit prio 1 maxburst 20 avpkt 250

tc qdisc add dev eth0 parent 10:129 tbf rate 64Kbit buffer 10Kb/8 limit 15Kb
tc qdisc add dev eth0 parent 10:131 tbf rate 1Kbit buffer 10Kb/8 limit 15Kb

tc filter add dev eth0 parent 10:0 protocol ip prio 100 u32  match ip\
dst 62.168.36.12 flowid 10:129

# -- This is the filter for ICMP, but I do not know how to set up
# -- 'match ip protocol 17 0xFF'
tc filter add dev eth0 parent 10:0 protocol ip prio 100 u32 match ip\
protocol 17 0xFF flowid 10:131
# ^^^^^^^^^^ How to indentify ICMP packets here??
# -- End --


Many thanks
Vladimir Vlach
-- 
+=-=-=-=-=/ // /-=-=-=-=-=-=-=-=-+-=-=-=-=-=-+---------------------+
|        / // /   Vladimir VLACH > ))))))))  |    \/ |_ /\ |) /\   |
|__ __  / // /   Admin of ICQ.CZ > ((((   \  | Age       -       21|
|\ \\ \/ // /  http://www.icq.cz > \\\   6 6 | Nick      - Vladaman|
| \ \\/ // / http://www.danet.cz >  \C     7 | ICQ UIN#  -  9511246|
|  \ V /V /  email: [EMAIL PROTECTED] >   \   _-) | Location  - Brno[CZ]|
+---\_/\_/-=---=---=---=---=---=-+-=- ) ( =-=+---------------------+
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to