Skip to contentSkip to conversation

ctokens vs tokens - HTB.

LARTC Stef Coene 2 participants 3 messages Nov 15, 2003 – Nov 17, 2003

lore
Share & tools
lore

Stef Coene

author
#0 lore raw
Quoted 5 lines · Suraj Shankar

Hi,
One more of those ...
1) what is a ctoken with regard to HTB? Does the 'c' stand for ceil and if so how is it different from tokens?

Ctokens is used for the ceil, tokens is used for the rate. tokens are used to give a class a minimum bandwidth and ctokens are used to give the class a maximum bandwidth.

Quoted 2 lines

2) Is the difference, only in the generation of these tokens?

For ctokens the ceil parameter is used, for tokens the rate parameter.

Quoted 2 lines

3) Would the ctokens and token be treated equally once borrowed?

What do you mean with this ?

Stef

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

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

Hi,

Quoted 5 lines · --- Stef Coene

Ctokens is used for the ceil, tokens is used for the rate. tokens are used to
give a class a minimum bandwidth and ctokens are used to give the class a
maximum bandwidth.

okay.

Quoted 2 lines

For ctokens the ceil parameter is used, for tokens the rate parameter.

Thank you.

Quoted 4 lines
Quoted 1 line

3) Would the ctokens and token be treated equally

once

Quoted 1 line

borrowed?

What do you mean with this ?

Before that ... do ctokens and tokens have an equal capacity to transfer a packet; meaning can exactly one packet flow through, as long as, for every single ctoken or token?
If this is true, then my question ... would a child class borrowing a token from the parent class treat a ctoken and a token equally? Meaning, are ctokens & tokens qualitatively the same and different only in the fact that ctokens are used at ceil rate and at normal rate a token is used?

I am sorry if I am confusing you, but I am terribly confused, and I am just trying to understand things better :)

Thank you.

Regards,
suraj.

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

author
#2 lore raw
In reply to Stef Coene
Quoted 20 lines · Suraj Shankar

Hi,

Quoted 5 lines · --- Stef Coene

Ctokens is used for the ceil, tokens is used for the rate. tokens are used to
give a class a minimum bandwidth and ctokens are used to give the class a
maximum bandwidth.

okay.

Quoted 2 lines

For ctokens the ceil parameter is used, for tokens the rate parameter.

Thank you.

Quoted 4 lines
Quoted 1 line

3) Would the ctokens and token be treated equally

once

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

borrowed?

What do you mean with this ?

Before that ... do ctokens and tokens have an equal capacity to transfer a packet; meaning can exactly one packet flow through, as long as, for every single ctoken or token?

1 (c)token = 1 packet. So you can only send a packet when you have a token.

Quoted 6 lines

If this is true, then my question ... would a child class borrowing a token from the parent class treat a ctoken and a token equally? Meaning, are ctokens & tokens qualitatively the same and different only in the fact that ctokens are used at ceil rate and at normal rate a token is used?

Euh. Yes.

Quoted 3 lines

I am sorry if I am confusing you, but I am terribly confused, and I am just trying to understand things better :)

I also have think hard about your questions :) And that hurts after sitting 3hrs in a traffic jam.

Stef

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

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