* QoS limitations ....
@ 2002-12-17 11:16 Raymond Leach
2002-12-17 19:17 ` Marcello Scacchetti
0 siblings, 1 reply; 2+ messages in thread
From: Raymond Leach @ 2002-12-17 11:16 UTC (permalink / raw)
To: Netfilter Mailing List
[-- Attachment #1: Type: text/plain, Size: 1102 bytes --]
Hi all
Does anyone know of a limit to the number of filters or classes that can
be attached to a single qdisc (let's say CBQ or HTB)?
I have a client that want to do bandwidth throttling per ip across 10
class C subnets.
What problems can I expect, and does anyone have any other suggestions
on how to accomplish this?
Ray
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
( Raymond Leach )
) Knowledge Factory (
( )
) Tel: +27 11 445 8100 (
( Fax: +27 11 445 8101 )
) (
( http://www.knowledgefactory.co.za/ )
) http://www.saptg.co.za/ (
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
o o
o o
.--. .--.
| o_o| |o_o |
| \_:| |:_/ |
/ / \\ // \ \
( | |) (| | )
/`\_ _/'\ /'\_ _/`\
\___)=(___/ \___)=(___/
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: QoS limitations ....
2002-12-17 11:16 QoS limitations Raymond Leach
@ 2002-12-17 19:17 ` Marcello Scacchetti
0 siblings, 0 replies; 2+ messages in thread
From: Marcello Scacchetti @ 2002-12-17 19:17 UTC (permalink / raw)
To: raymondl; +Cc: Netfilter Mailing List
After some checking i found this:
/* "Handles"
---------
All the traffic control objects have 32bit identifiers, or
"handles".
They can be considered as opaque numbers from user API viewpoint,
but actually they always consist of two fields: major and
minor numbers, which are interpreted by kernel specially,
that may be used by applications, though not recommended.
F.e. qdisc handles always have minor number equal to zero,
classes (or flows) have major equal to parent qdisc major, and
minor uniquely identifying class inside qdisc.
Macros to manipulate handles:
*/
#define TC_H_MAJ_MASK (0xFFFF0000U)
#define TC_H_MIN_MASK (0x0000FFFFU)
#define TC_H_MAJ(h) ((h)&TC_H_MAJ_MASK)
#define TC_H_MIN(h) ((h)&TC_H_MIN_MASK)
#define TC_H_MAKE(maj,min) (((maj)&TC_H_MAJ_MASK)|((min)&TC_H_MIN_MASK))
#define TC_H_UNSPEC (0U)
#define TC_H_ROOT (0xFFFFFFFFU)
#define TC_H_INGRESS (0xFFFFFFF1U)
inside include/linux/pkt_sched.h (linux 2.4.19 kernel tree).
It seems that you can set FFFF class ids as stated by the minor mask.
Hope to be right,
Marcello
Il mar, 2002-12-17 alle 12:16, Raymond Leach ha scritto:
> Hi all
>
> Does anyone know of a limit to the number of filters or classes that can
> be attached to a single qdisc (let's say CBQ or HTB)?
>
> I have a client that want to do bandwidth throttling per ip across 10
> class C subnets.
>
> What problems can I expect, and does anyone have any other suggestions
> on how to accomplish this?
>
> Ray
--
Marcello Scacchetti <marcello.scacchetti@nextrem.it>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-12-17 19:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-17 11:16 QoS limitations Raymond Leach
2002-12-17 19:17 ` Marcello Scacchetti
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.