keywords: tc qdisc class queue QoS traffic control Linux HTB statistics parse graph tc-viewer

tccs - diagnose your traffic

Tired of grepping tc -s class show dev eth1 output?

class htb 1:4040 parent 1:1 leaf 4040: prio 0 rate 20Kbit ceil 4Mbit burst 20Kb cburst 2Kb 
 Sent 102216769 bytes 276604 pkts (dropped 0, overlimits 0) 
 rate 39bit 
 lended: 140776 borrowed: 135828 giants: 0
 tokens: 6692535 ctokens: 3264

class htb 1:d049 parent 1:998 leaf d049: prio 0 rate 2Kbit ceil 3500Kbit burst 20Kb cburst 2Kb 
 Sent 110702097 bytes 280264 pkts (dropped 0, overlimits 0) 
 rate 146bit 2pps 
 lended: 243112 borrowed: 37152 giants: 0
 tokens: 66787740 ctokens: 3715

You're right, it SUX! Here comes the remedy: tc -s class show dev eth1 | tccs

Try it!

Note: a different approach is presented in tc-viewer project.

Want more?

Maybe something like (good old postscript example): this?

tccg - graph your queues

tc -s class show dev eth1 | tccg -r 2 -i eth1 > eth1.dot # there are also -c and -s parameters
dot -Tsvg -o eth1.svg eth1.dot; convert eth1.svg eth1.png
circo -Tps -o eth0.ps eth0.dot; convert eth0.ps eth0.gif

VFolders Menu Generator

Valid XHTML 1.0! SourceForge.net Logo Quarto