Hi all, After configurating tc, there is a overlimits: [root@mailredhat root]# tc -s qdisc qdisc sfq 8030: dev ppp0 quantum 1514b perturb 15sec Sent 9505059 bytes 6445 pkts (dropped 0, overlimits 0) qdisc sfq 802f: dev ppp0 quantum 1514b perturb 15sec Sent 154284 bytes 897 pkts (dropped 0, overlimits 0) qdisc cbq 10: dev ppp0 rate 112Kbit (bounded,isolated) prio no-transmit Sent 9662343 bytes 7344 pkts (dropped 0, overlimits 1710) borrowed 0 overactions 0 avgidle 57142 undertime 0 in the root qdisc, the overlimits is 1710. 1) What does "overlimits" mean? 2) How to avoid overlimits? 3) Below is the tc config, why only root qdisc has overlimits? the child qdisc does not have? tc qdisc add dev ppp0 root handle 10: cbq bandwidth 112Kbit avpkt 1000 tc class add dev ppp0 parent 10:0 classid 10:100 cbq bandwidth 112Kbit rate 57Kb it allot 1514 weight 5Kbit prio 2 maxburst 20 avpkt 1000 isolated tc class add dev ppp0 parent 10:0 classid 10:200 cbq bandwidth 112Kbit rate 55Kb it allot 1514 weight 5Kbit prio 8 maxburst 20 avpkt 1000 bounded tc qdisc add dev ppp0 parent 10:100 sfq quantum 1514b perturb 15 tc qdisc add dev ppp0 parent 10:200 sfq quantum 1514b perturb 15 tc filter add dev ppp0 parent 10:0 protocol ip prio 2 u32 match ip tos 0x8 0xff flowid 10:100 tc filter add dev ppp0 parent 10:0 protocol ip prio 8 u32 match ip tos 0x00 0xff flowid 10:200
On Wed, Jul 10, 2002 at 03:47:44PM +0800, Patrick Chan wrote:> in the root qdisc, the overlimits is 1710. > 1) What does "overlimits" mean?Times that CBQ decided to shutdown for a while. See the HOWTO.> 2) How to avoid overlimits?Not shaping - sorry, this is vital to how CBQ works, and how most other qdiscs that slow down traffic work.> 3) Below is the tc config, why only root qdisc has overlimits? > the child qdisc does not have?Try looking at the classes, tc -s class ls dev ppp0 - the rest will also have overlimits, if they are slowing traffic down. Regards, bert -- http://www.PowerDNS.com Versatile DNS Software & Services http://www.tk the dot in .tk http://lartc.org Linux Advanced Routing & Traffic Control HOWTO
Hi all, A short question. If you specify a protocol with a filter e.g. #tc filter add dev eth1 parent 1:0 protocol ip tc ... will this filter match every packet that has the specified protocol (IP) in one of its headers or only in the outer most header? If I encapsulate the IP packet with f.e. a TCP or ICMP header, will this filter still match? thanks, Jan