Skip to contentSkip to conversation

qdisc statistics

LARTC felix 2 participants 2 messages Dec 31, 2004

lore
Share & tools
lore

felix

author
#0 lore raw

Hi,
I am trying to relate the lended and borrowed statistics to the others and, in particular, compare them with the assigned rates for each class.

My understanding is that the lended and borrowed stats are expressed as a number of packets but over what time period do the numbers refer?

In addition, for a particular class why do the lended and borrowed figures add up to the sent value? That is, if a class 'lends' bandwidth, why do the packets still appear in its 'sent' stat alongside those it borrowed?

How do I obtain the actual rate used for a class - as opposed to the assigned rate? This is what I really want and I was hoping there would be some relationship such as:

actual rate = assigned rate + borrowing rate - lending rate

except, as mentioned above, I need to know the time period over which the lended and borrowed stats refer. Also, lended and borrowed are given in packets, the rates are expressed in bytes or bits per second, so presumably, I will need to calculate an average packet size.

Many thanks for your help,
Happy New Year,
-Paul

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

#1 lore raw

* felix <[email protected]> 2004-12-31 13:35

Quoted 2 lines

My understanding is that the lended and borrowed stats are expressed as a number of packets but over what time period do the numbers refer?

Since the qdisc/class was loaded or since the last overflow. For the sent statistics, both byte and packet counter exist.

Quoted 4 lines

In addition, for a particular class why do the lended and borrowed figures add up to the sent value? That is, if a class 'lends' bandwidth, why do the packets still appear in its 'sent' stat alongside those it borrowed?

Those are qdisc specific statistics. borrowed may even have a different unit depending on your compile time options. What particular qdisc are you refering to?

Quoted 3 lines

How do I obtain the actual rate used for a class - as opposed to the assigned rate? This is what I really want and I was hoping there would be some relationship such as:

Set up a rate estimator it will return the current estimated rate in pps/bps. You may specify whatever time interval you prefer.
Note: the rate estimator uses sent statistics which are counted in enqueue, therefore no borrowing taken into account.

Quoted 3 lines

the lended and borrowed stats refer. Also, lended and borrowed are given in packets, the rates are expressed in bytes or bits per second, so presumably, I will need to calculate an average packet size.

In HTB yes, CBQ can also count in bytes.
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/