Skip to contentSkip to conversation

the difference ?!

LARTC raptor 4 participants 4 messages Feb 28, 2003 – Mar 4, 2003

lore
Share & tools
lore
#1 lore raw
Quoted 3 lines · raptor

what is the difference between :

police(....), bucket(...) and SLB(..)/DLB() and friends ?!

Can you be more specific?

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/
#2 lore raw
In reply to raptor
Quoted 10 lines

Message: 6
Date: Fri, 28 Feb 2003 17:40:43 -0500
From: raptor <[email protected]>
To: [email protected]
Subject: [LARTC] [tcng] the difference ?!

what is the difference between :

police(....), bucket(...) and SLB(..)/DLB() and friends ?!

Check
tcng/lib/tcng/include/meters.tc

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

#3 lore raw
In reply to raptor

Whoops, haven't checked LARTC in a while ...

Quoted 3 lines · raptor

what is the difference between :

police(....), bucket(...) and SLB(..)/DLB() and friends ?!

"police" refers to the policing component of the traffic control subsystem in the kernel.

"bucket" (with the "conform" and "count" operators) is an abstracted single bucket. If you actually use it, and you're generating "tc" output, tcc will express its function in terms of "police".

SLB, DLB, etc. are basically expressions that use buckets. Again, tcc will (try to *) express them using "police", plus some classification tricks.

(*) Buckets can be used for arbitrary constructs that exceed what
can be done with the policing mechanisms of kernel traffic control. The "dictionary tcc uses is in tcc/if_u32.c:map

Think of it as "police" being a pocket calculator, "bucket" being the basic arithmetic operations, and SLB, etc. being some common formulas, like the compound interest formula. If presented with such a formula, tcc will then know which buttons to press on the pocket calculator.

- Werner

Signature · 6 lines
  _________________________________________________________________________
 / Werner Almesberger, Buenos Aires, Argentina         [email protected] /
/_http://www.almesberger.net/____________________________________________/
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/