HTB and iptables statistics

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.

The problems are:
1. Using HTB I get negative values for tokens and ctokens in tc -s
output, for example:
mich:~# tc -s -d class show dev eth0
class htb 1:11 parent 1:1 prio 1 quantum 1024 rate 8Kbit ceil 23Kbit burst 1609b/8 mpu 0b 
cburst 1628b/8 mpu 0b level 0
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 1287999 ctokens: 453286

class htb 1:1 root rate 32Kbit ceil 32Kbit burst 1639b/8 mpu 0b cburst 1639b/8 mpu 0b level 7 
 Sent 2629492 bytes 29142 pkts (dropped 0, overlimits 0) 
 rate 1777bps 19pps 
 lended: 7716 borrowed: 0 giants: 0
 tokens: 297600 ctokens: 297600

class htb 1:10 parent 1:1 prio 0 quantum 1024 rate 8Kbit ceil 23Kbit burst 1609b/8 mpu 0b cburst 1628b/8 mpu 0b level 0 
 Sent 160004 bytes 1252 pkts (dropped 0, overlimits 0) 
 rate 281bps 2pps 
 lended: 1252 borrowed: 0 giants: 0
 tokens: 1236799 ctokens: 435478

class htb 1:13 parent 1:1 prio 7 quantum 1024 rate 8Kbit ceil 16Kbit burst 1609b/8 mpu 0b cburst 1619b/8 mpu 0b level 0 
 Sent 1266825 bytes 12307 pkts (dropped 20013, overlimits 0) 
 rate 1301bps 14pps 
 lended: 6340 borrowed: 5967 giants: 0
 tokens: -492394 ctokens: 581313

class htb 1:12 parent 1:1 prio 2 quantum 1024 rate 8Kbit ceil 23Kbit burst 1609b/8 mpu 0b cburst 1628b/8 mpu 0b level 0 
 Sent 1202663 bytes 15583 pkts (dropped 0, overlimits 0) 
 rate 245bps 3pps 
 lended: 13834 borrowed: 1749 giants: 0
 tokens: 1236799 ctokens: 435478

Actually, this values are not described at
http://luxik.cdi.cz/~devik/qos/htb/manual/userg.htm#stats but it looks
confusing.

2. When I measure traffic marking any packet in POSTROUTING with
   'iptables -A POSTROUTING -t mangle -o eth0 -j MARK --set-mark 12'
   and using "bytes" field of 'iptables -vL  POSTROUTING -t mangle'
   output (I run the latter command once in a minute and divide the
   difference by 60) I get traffic speed up to 12kbs, even my
   uplink is no more than 32Kbit. How can this be?

Thanks,
-- 
Alexander Kotelnikov
Saint-Petersburg, Russia
_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux