Skip to contentSkip to conversation

Over value in CEIL parameter..

LARTC Rio Martin. 3 participants 8 messages Jul 23, 2003 – Jul 29, 2003

lore
Share & tools
lore
#0 lore raw

Dear all,
I ve set CEIL parameter each class not more than 128Kbit
But sometimes the CEIL parameter can be higher 128Kbit
As far as i monitored, this CEIL rate can be 132Kbit maximum, dont know why..

Regards,
Rio Martin.

Signature · 5 lines
May the Fleas of a Thousand Camels infest one of your Erogenous Zones.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#1 lore raw

Hello again Rio Martin,

: I ve set CEIL parameter each class not more than 128Kbit But sometimes : the CEIL parameter can be higher 128Kbit As far as i monitored, this : CEIL rate can be 132Kbit maximum, dont know why..

For how long does the monitored output traffic exceed your ceiling? It is possible that you'll exceed your ceil briefly because the allotted traffic can exceed ceiling by the amount of cburst.

If you are recording an output rate above your ceil (128kbit) consistently over a long period of time (a large transfer), then I, also, do not know why.

[ Stef may have more to say about this. ]

Also, if you want a hard cap on your bandwidth at 128kbit, you might try setting cburst to zero. Alternatively, you can drop the ceil parameter to a setting just below 128kbit--this is my preferred technique.

-Martin

Signature · 5 lines
Martin A. Brown --- SecurePipe, Inc. --- [email protected]

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to Rio Martin.
Quoted 12 lines · you

Hello again Rio Martin,
: I ve set CEIL parameter each class not more than 128Kbit But sometimes : the CEIL parameter can be higher 128Kbit As far as i monitored, this : CEIL rate can be 132Kbit maximum, dont know why..
For how long does the monitored output traffic exceed your ceiling? It is possible that you'll exceed your ceil briefly because the allotted traffic can exceed ceiling by the amount of cburst.
If you are recording an output rate above your ceil (128kbit) consistently over a long period of time (a large transfer), then I, also, do not know why.
[ Stef may have more to say about this. ]

This is lasts for long period..
Usually happened when hosts in that class perform download or online streaming.

Quoted 3 lines

Also, if you want a hard cap on your bandwidth at 128kbit, you might try setting cburst to zero. Alternatively, you can drop the ceil parameter to a setting just below 128kbit--this is my preferred technique.

I tried to set to zero:
class htb 1:3003 parent 1:4 leaf 3003: prio 0 rate 4Kbit ceil 24Kbit burst 0b cburst 0b
class htb 1:1000 parent 1:2 leaf 1000: prio 0 rate 32Kbit ceil 48Kbit burst 0b cburst 0b
rate 4332bps 5pps backlog 52p

results: still exceed around 50 - 80 bps

Regards,
Rio Martin.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#3 lore raw
In reply to Rio Martin.
Quoted 10 lines · Martin A. Brown

Hello again Rio Martin,

: I ve set CEIL parameter each class not more than 128Kbit But sometimes : the CEIL parameter can be higher 128Kbit As far as i monitored, this : CEIL rate can be 132Kbit maximum, dont know why..

For how long does the monitored output traffic exceed your ceiling? It is possible that you'll exceed your ceil briefly because the allotted traffic can exceed ceiling by the amount of cburst.

Quoted 5 lines

If you are recording an output rate above your ceil (128kbit) consistently over a long period of time (a large transfer), then I, also, do not know why.

[ Stef may have more to say about this. ]

132kbit - 128kbit = 4kbit and that's not much. So I don't think you have to worry.
Is this ceil parameter on a leaf class (a class with no child classes)? Or can you post you script?
Also, execute tc -s -d clas sshow dev eth0 and watch the ctokens. They should never be negative for that class.

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#4 lore raw
In reply to Rio Martin.
Quoted 8 lines · Stef Coene
Quoted 1 line · Martin A. Brown

[ Stef may have more to say about this. ]

132kbit - 128kbit = 4kbit and that's not much. So I don't think you have to worry.
Is this ceil parameter on a leaf class (a class with no child classes)? Or can you post you script?
Also, execute tc -s -d clas sshow dev eth0 and watch the ctokens. They should never be negative for that class.

Yes, the ceil parameter on leaf class.
I tried Martin's way by setting Burst and Cburst value to zero. And the value of bps exceed CEIL parameter around 50 - 80 bps.

Thanks.

Regards,
Rio Martin.

Signature · 6 lines
It will be advantageous to cross the great stream ... the Dragon is on
the wing in the Sky ... the Great Man rouses himself to his Work.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#5 lore raw
In reply to Rio Martin.
Quoted 11 lines · Rio Martin.
Quoted 9 lines · Stef Coene
Quoted 1 line · Martin A. Brown

[ Stef may have more to say about this. ]

132kbit - 128kbit = 4kbit and that's not much. So I don't think you have to worry.
Is this ceil parameter on a leaf class (a class with no child classes)? Or can you post you script?
Also, execute tc -s -d clas sshow dev eth0 and watch the ctokens. They should never be negative for that class.

Quoted 3 lines

Yes, the ceil parameter on leaf class.
I tried Martin's way by setting Burst and Cburst value to zero. And the value of bps exceed CEIL parameter around 50 - 80 bps.

Can you post your script and the output of tc -s -d class show dev eth0?

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#6 lore raw
In reply to Rio Martin.
Quoted 2 lines · you

On Thursday 24 July 2003 04:22, Rio Martin. wrote:
Can you post your script and the output of tc -s -d class show dev eth0?

tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1 htb default 0 r2q 10
tc class add dev eth0 parent 1: classid 1:10 htb rate 40Kbit ceil 40Kbit burst 1 cburst 1
tc qdisc add dev eth0 parent 1:10 handle 10 sfq perturb 10 quantum 1500 tc class add dev eth0 parent 1:10 classid 1:9100 htb rate 20Kbit ceil 20Kbit burst 1 cburst 1
tc filter add dev eth0 parent 1:0 protocol ip prio 200 handle 100 fw classid 1:9100

root@noc:/etc/sysconfig/htb# tc -s -d class show dev eth0
class htb 1:10 root rate 40Kbit ceil 40Kbit burst 0b/8 mpu 0b cburst 0b/8 mpu 
0b level 7
 Sent 1406352 bytes 12398 pkts (dropped 0, overlimits 0)
 rate 532bps 2pps
 lended: 0 borrowed: 0 giants: 0
 tokens: -7521 ctokens: -7521

class htb 1:9100 parent 1:10 leaf 9100: prio 0 quantum 1000 rate 20Kbit ceil 20Kbit burst 0b/8 mpu 0b cburst 0b/8 mpu 0b level 0
Sent 1406352 bytes 12398 pkts (dropped 0, overlimits 0)
rate 504bps 2pps
lended: 12398 borrowed: 0 giants: 0
tokens: -15041 ctokens: -15041

Regards,
Rio Martin.

Signature · 7 lines
He who attacks the fundamentals of the American broadcasting industry
attacks democracy itself.
		-- William S. Paley, chairman of CBS

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#7 lore raw
In reply to Rio Martin.
Quoted 6 lines · Rio Martin.
Quoted 2 lines · you

On Thursday 24 July 2003 04:22, Rio Martin. wrote:
Can you post your script and the output of tc -s -d class show dev eth0?

tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1 htb default 0 r2q 10

Bad idea. Class 0 is a special one and I dont't think you want unclassified traffic go out at full speed ....

Quoted 2 lines

tc class add dev eth0 parent 1: classid 1:10 htb rate 40Kbit ceil 40Kbit burst 1 cburst 1

Argh. Remove the burst and cburst parameters so htb can calculate the smalles one for you. I think that's your problem.

Quoted 14 lines

tc qdisc add dev eth0 parent 1:10 handle 10 sfq perturb 10 quantum 1500 tc class add dev eth0 parent 1:10 classid 1:9100 htb rate 20Kbit ceil 20Kbit burst 1 cburst 1
tc filter add dev eth0 parent 1:0 protocol ip prio 200 handle 100 fw classid 1:9100

root@noc:/etc/sysconfig/htb# tc -s -d class show dev eth0
class htb 1:10 root rate 40Kbit ceil 40Kbit burst 0b/8 mpu 0b cburst 0b/8
mpu 0b level 7
 Sent 1406352 bytes 12398 pkts (dropped 0, overlimits 0)
 rate 532bps 2pps
 lended: 0 borrowed: 0 giants: 0
 tokens: -7521 ctokens: -7521
Quoted 6 lines

class htb 1:9100 parent 1:10 leaf 9100: prio 0 quantum 1000 rate 20Kbit ceil 20Kbit burst 0b/8 mpu 0b cburst 0b/8 mpu 0b level 0
Sent 1406352 bytes 12398 pkts (dropped 0, overlimits 0) rate 504bps 2pps
lended: 12398 borrowed: 0 giants: 0
tokens: -15041 ctokens: -15041

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/