All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] htb2 with link sharing - the bandwidth dividing question
@ 2002-07-22  8:44 Lumir Unzeitig
  2002-07-22 14:38 ` Stef Coene
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Lumir Unzeitig @ 2002-07-22  8:44 UTC (permalink / raw)
  To: lartc

Hi
I have flat structure of traffic control - 8 children can borrow from a
parent.
Problem: The rest bandwidth is not divided to children how I expect.

The ISP line is 64kbit/s,therefore, I'm working  with  56kbit/s.
(the config is in the end of the mail)


I set up a test environment -
1\  3 PCs, each of them in different subclass
2\ minimal bandwidth (RATE)
    PC1 - 4kbit/s    class 1:10
    PC2 - 4kbit/s    class 1:40
    PC3 - 15kbit/s  class 1:80
    maximal bandwith (CEIL) 56kbit/s
3\ all of the PCs download the same big file from ISP ftp server by Windows
Commander.

I supposed  "the rest of bandwidth is divided to the PCs in ratio of their
RATE values". But it isn't.



Calculation
====
the rest:   56 - 4 - 4 - 15 = 33 kbit/s
desired PC1 bw: 4 + 33/(4+4+15) * 4 = 9,74 kbit/s           <          real
PC1 bw:  12 kbit/s
desired PC2 bw: 4 + 33/(4+4+15) * 4 = 9,74 kbit/s           <          real
PC2 bw:  12 kbit/s
desired PC3 bw: 15 + 33/(4+4+15) * 15 = 36,52 kbit/s      >          real
PC3 bw:  29.6 kbit/s





Please,can anybody tell me what's wrong in the calculation or setting?

Thanks
Lumir Unzeitig



---[ eth0: configured classes ]---------------------------

class htb 1:1 root prio 0 rate 56Kbit ceil 56Kbit burst 2Kb cburst 1670b
 Sent 1912117995 bytes 2263853 pkts (dropped 0, overlimits 0)
 rate 292bps 1pps
 lended: 1072525 borrowed: 0 giants: 0 injects: 0
 tokens: 227657 ctokens: 184572

class htb 1:10 parent 1:1 leaf 100: prio 0 rate 4Kbit ceil 56Kbit burst 2Kb
cburst 1670b
 Sent 26382511 bytes 303604 pkts (dropped 0, overlimits 364)
 rate 107bps
 lended: 300541 borrowed: 3063 giants: 0 injects: 0
 tokens: 3161600 ctokens: 182743

class htb 1:20 parent 1:1 leaf 200: prio 0 rate 9Kbit ceil 56Kbit burst 2Kb
cburst 1670b
 Sent 394142012 bytes 400328 pkts (dropped 0, overlimits 10743)
 lended: 138359 borrowed: 261969 giants: 0 injects: 0
 tokens: 1236764 ctokens: 184572

class htb 1:40 parent 1:1 leaf 400: prio 0 rate 4Kbit ceil 56Kbit burst 2Kb
cburst 1670b
 Sent 5245504 bytes 4490 pkts (dropped 0, overlimits 67)
 lended: 1627 borrowed: 2863 giants: 0 injects: 0
 tokens: 3174400 ctokens: 183658

class htb 1:50 parent 1:1 leaf 500: prio 0 rate 6Kbit ceil 56Kbit burst 2Kb
cburst 1670b
 Sent 186581247 bytes 273327 pkts (dropped 0, overlimits 3118)
 lended: 144824 borrowed: 128503 giants: 0 injects: 0
 tokens: 2116266 ctokens: 183658

class htb 1:60 parent 1:1 leaf 600: prio 0 rate 9Kbit ceil 56Kbit burst 2Kb
cburst 1670b
 Sent 71911357 bytes 143754 pkts (dropped 0, overlimits 2096)
 rate 3bps
 lended: 104774 borrowed: 38980 giants: 0 injects: 0
 tokens: 1190802 ctokens: 184572

class htb 1:70 parent 1:1 leaf 700: prio 0 rate 4Kbit ceil 56Kbit burst 2Kb
cburst 1670b
 Sent 18277641 bytes 22099 pkts (dropped 0, overlimits 537)
 lended: 5879 borrowed: 16220 giants: 0 injects: 0
 tokens: 2436096 ctokens: 184572

class htb 1:80 parent 1:1 leaf 800: prio 0 rate 15Kbit ceil 56Kbit burst 2Kb
cburst 1670b
 Sent 1176861863 bytes 1057644 pkts (dropped 0, overlimits 19241)
 rate 285bps 1pps
 lended: 471653 borrowed: 585991 giants: 0 injects: 0
 tokens: 849920 ctokens: 184572

class htb 1:90 parent 1:1 leaf 900: prio 0 rate 6Kbit ceil 56Kbit burst 2Kb
cburst 1670b
 Sent 32715860 bytes 58607 pkts (dropped 0, overlimits 2741)
 lended: 23671 borrowed: 34936 giants: 0 injects: 0
 tokens: 2116266 ctokens: 183658






_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-09-29 20:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-22  8:44 [LARTC] htb2 with link sharing - the bandwidth dividing question Lumir Unzeitig
2002-07-22 14:38 ` Stef Coene
2002-07-23  9:26 ` Lumir Unzeitig
2002-07-23 18:49 ` Stef Coene
2002-09-23  3:29 ` Adi Nugroho
2002-09-29 20:33 ` Stef Coene

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.