netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Traffic shaping - class ID 16bit limit?
@ 2011-08-25 16:28 Miroslav Kratochvil
  2011-08-25 16:39 ` Stephen Hemminger
  0 siblings, 1 reply; 6+ messages in thread
From: Miroslav Kratochvil @ 2011-08-25 16:28 UTC (permalink / raw)
  To: netdev

Hello everyone,

the question is simple: What should I do if I need to have more than
2^16 subclasses of a classful queuing discipline (in, say, hfsc or
htb)?

I bumped into this problem while writing some kind of traffic shaping
software and thinking about scalability. As there still are other ways
to have more than 64k "classes" (like grouping some subclasses into
separate qdiscs), those ways have significant drawbacks (require more
tc-filter rules and decisions, generally more processing power, and
the structure is quite hard to maintain).

Technically the ClassID seems to be "hardcoded" as a 16bit value, but
after some source searching, I haven't found any good reason for it to
be 16-bit only.

I understand that those ID's are usually handled together with another
16bit Qdisc ID, which would add up to a quite big number (possibly
unpleasant on some architectures) if those were both 32bit.

I also completely understand that in most cases of common usage
there's absolutely no need to have this big amount of subclasses, but
on the other hand there's still no reason to have "64k classes enough
for everyone". :D

Of course if there's some obvious method to solve this, or a patch, or
some kind of workaround that I haven't found, please let me know about
it, I will happily use it.

Thanks for any suggestions,
Mirek Kratochvil

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-08-26 16:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-25 16:28 Traffic shaping - class ID 16bit limit? Miroslav Kratochvil
2011-08-25 16:39 ` Stephen Hemminger
2011-08-25 17:06   ` Miroslav Kratochvil
2011-08-25 17:10     ` Stephen Hemminger
2011-08-26 16:53     ` David Miller
2011-08-25 20:26   ` jamal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).