[LARTC] HTB not working quite the way I'd expect?

Linux Advanced Routing and Traffic Control

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

 



--=-Y6EilAA/lIwSMUAX5aUB
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Sun, 2002-02-03 at 15:20, Martin Devera wrote:
> very interesting ! I'm interested in "tc -s -d class show dev eth8" output
> in middle of your run. Please take several snapshots, copy into file along
> with time (I need to know the time difference between them).

Okay.  Attached is a commented typescript taken.  The first invocation
of 'tc show' is before I initiated the remote wgets, the next 2 are
during, and the last is after I stopped them.  I don't quite understand
all the data, but strictly looking at the rate field, I think it pretty
nicely shows what's happening.  (Except on the last reading, which shows
a rate of ~40k/s even though the web server's interface was idle -- I
assumed it was just an averaging window issue.)

> I'll look at them and try to deduce the problem. I use configuration like
> your regulary with no probs so that I'm really interested.

Thanks very much for your help on this, Martin. :)

Jason.

-- 
Academic Computing Support Specialist
Algoma University College
Sault Ste. Marie, Ontario
705-949-2301 x330                                   Personal Home Page
http://www.auc.ca                                     http://sault.org

--=-Y6EilAA/lIwSMUAX5aUB
Content-Description: 
Content-Disposition: inline; filename=typescript
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=ISO-8859-1

###
# Before hitting the webserver.  This is normal traffic generated by
# our residence.  iptraf showed ~200k/s being sent on eth8.
########

[root@hawk tack]# date && tc -s -d class show dev eth8
Sun Feb  3 15:47:22 EST 2002
class htb 1:11 parent 1:1 leaf 8066: prio 3 rate 400Kbit ceil 1600Kbit burs=
t 2Kb/8 mpu 0b cburst 3647b/8 mpu 0b quantum 5120 level 0=20
 Sent 75213499 bytes 106516 pkts (dropped 34, overlimits 70905)=20
 rate 192901bps 236pps backlog 36p=20
 lended: 38257 borrowed: 68223 giants: 0 injects: 0
 tokens: -118 ctokens: -3836

class htb 1:1 root prio 0 rate 2000Kbit ceil 2000Kbit burst 4159b/8 mpu 0b =
cburst 4159b/8 mpu 0b quantum 25600 level 3=20
 Sent 87895315 bytes 121163 pkts (dropped 0, overlimits 0)=20
 rate 191724bps 239pps=20
 lended: 68223 borrowed: 0 giants: 0 injects: 0
 tokens: 3968 ctokens: 3968

class htb 1:10 parent 1:1 leaf 8065: prio 1 rate 1600Kbit ceil 2000Kbit bur=
st 10Kb/8 mpu 0b cburst 4159b/8 mpu 0b quantum 20480 level 0=20
 Sent 12717097 bytes 14683 pkts (dropped 0, overlimits 2668)=20
 rate 1380bps 9pps=20
 lended: 14683 borrowed: 0 giants: 0 injects: 0
 tokens: 40577 ctokens: 13004






###
# Immediately following the previous command, I began the run by initiating
# wget on 3 separate sites downloading from our webserver (a large file).
########

[root@hawk tack]# date && tc -s -d class show dev eth8
Sun Feb  3 15:47:44 EST 2002
class htb 1:11 parent 1:1 leaf 8066: prio 3 rate 400Kbit ceil 1600Kbit burs=
t 2Kb/8 mpu 0b cburst 3647b/8 mpu 0b quantum 5120 level 0=20
 Sent 78931896 bytes 110921 pkts (dropped 34, overlimits 76204)=20
 rate 182403bps 219pps backlog 18p=20
 lended: 39606 borrowed: 71297 giants: 0 injects: 0
 tokens: -7489 ctokens: -4151

class htb 1:1 root prio 0 rate 2000Kbit ceil 2000Kbit burst 4159b/8 mpu 0b =
cburst 4159b/8 mpu 0b quantum 25600 level 3=20
 Sent 93010578 bytes 126696 pkts (dropped 0, overlimits 0)=20
 rate 1663Kbit 247pps=20
 lended: 71297 borrowed: 0 giants: 0 injects: 0
 tokens: -2 ctokens: -2

class htb 1:10 parent 1:1 leaf 8065: prio 1 rate 1600Kbit ceil 2000Kbit bur=
st 10Kb/8 mpu 0b cburst 4159b/8 mpu 0b quantum 20480 level 0=20
 Sent 14099891 bytes 15793 pkts (dropped 0, overlimits 2988)=20
 rate 32109bps 28pps=20
 lended: 15793 borrowed: 0 giants: 0 injects: 0
 tokens: 19305 ctokens: 2537




###
# The wgets are still going.=20
########

[root@hawk tack]# date && tc -s -d class show dev eth8
Sun Feb  3 15:48:00 EST 2002
class htb 1:11 parent 1:1 leaf 8066: prio 3 rate 400Kbit ceil 1600Kbit burs=
t 2Kb/8 mpu 0b cburst 3647b/8 mpu 0b quantum 5120 level 0=20
 Sent 81834500 bytes 114311 pkts (dropped 34, overlimits 80140)=20
 rate 182926bps 217pps backlog 16p=20
 lended: 40580 borrowed: 73715 giants: 0 injects: 0
 tokens: -596 ctokens: -1591

class htb 1:1 root prio 0 rate 2000Kbit ceil 2000Kbit burst 4159b/8 mpu 0b =
cburst 4159b/8 mpu 0b quantum 25600 level 3=20
 Sent 96964624 bytes 130954 pkts (dropped 0, overlimits 0)=20
 rate 230521bps 258pps=20
 lended: 73715 borrowed: 0 giants: 0 injects: 0
 tokens: 7272 ctokens: 7272

class htb 1:10 parent 1:1 leaf 8065: prio 1 rate 1600Kbit ceil 2000Kbit bur=
st 10Kb/8 mpu 0b cburst 4159b/8 mpu 0b quantum 20480 level 0=20
 Sent 15150851 bytes 16659 pkts (dropped 0, overlimits 3082)=20
 rate 47974bps 41pps=20
 lended: 16659 borrowed: 0 giants: 0 injects: 0
 tokens: 21062 ctokens: 667





###
# Immediately following the last command, I stopped the wgets.  Our=20
# webserver was idle.  For whatever reason, it shows the rate of 1:10 at
# 62790bps but the web server's interface was clearly idle.  I assume it
# averages rate over a wide window, like 20-30 seconds?
########

[root@hawk tack]# date && tc -s -d class show dev eth8
Sun Feb  3 15:48:14 EST 2002
class htb 1:11 parent 1:1 leaf 8066: prio 3 rate 400Kbit ceil 1600Kbit burs=
t 2Kb/8 mpu 0b cburst 3647b/8 mpu 0b quantum 5120 level 0=20
 Sent 84370895 bytes 117247 pkts (dropped 34, overlimits 83715)=20
 rate 177121bps 208pps backlog 19p=20
 lended: 41432 borrowed: 75796 giants: 0 injects: 0
 tokens: -13591 ctokens: -216

class htb 1:1 root prio 0 rate 2000Kbit ceil 2000Kbit burst 4159b/8 mpu 0b =
cburst 4159b/8 mpu 0b quantum 25600 level 3=20
 Sent 100567608 bytes 134827 pkts (dropped 0, overlimits 0)=20
 rate 240215bps 261pps=20
 lended: 75796 borrowed: 0 giants: 0 injects: 0
 tokens: -3658 ctokens: -3658

class htb 1:10 parent 1:1 leaf 8065: prio 1 rate 1600Kbit ceil 2000Kbit bur=
st 10Kb/8 mpu 0b cburst 4159b/8 mpu 0b quantum 20480 level 0=20
 Sent 16215919 bytes 17599 pkts (dropped 0, overlimits 3251)=20
 rate 62790bps 52pps=20
 lended: 17599 borrowed: 0 giants: 0 injects: 0
 tokens: 22819 ctokens: -1203

[root@hawk tack]# date && tc -s -d class show dev eth8
Sun Feb  3 15:48:37 EST 2002
class htb 1:11 parent 1:1 leaf 8066: prio 3 rate 400Kbit ceil 1600Kbit burs=
t 2Kb/8 mpu 0b cburst 3647b/8 mpu 0b quantum 5120 level 0=20
 Sent 88862765 bytes 122423 pkts (dropped 34, overlimits 89207)=20
 rate 187439bps 221pps backlog 25p=20
 lended: 42738 borrowed: 79660 giants: 0 injects: 0
 tokens: -17782 ctokens: -2329

class htb 1:1 root prio 0 rate 2000Kbit ceil 2000Kbit burst 4159b/8 mpu 0b =
cburst 4159b/8 mpu 0b quantum 25600 level 3=20
 Sent 105201282 bytes 140534 pkts (dropped 0, overlimits 0)=20
 rate 231031bps 267pps=20
 lended: 79660 borrowed: 0 giants: 0 injects: 0
 tokens: 7044 ctokens: 7044

class htb 1:10 parent 1:1 leaf 8065: prio 1 rate 1600Kbit ceil 2000Kbit bur=
st 10Kb/8 mpu 0b cburst 4159b/8 mpu 0b quantum 20480 level 0=20
 Sent 16367152 bytes 18136 pkts (dropped 0, overlimits 3262)=20
 rate 42641bps 45pps=20
 lended: 18136 borrowed: 0 giants: 0 injects: 0
 tokens: 40609 ctokens: 13031


--=-Y6EilAA/lIwSMUAX5aUB--



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