* [LARTC] Class ID limits
@ 2004-06-16 20:06 Adam Towarnyckyj
2004-06-17 7:20 ` Catalin BOIE
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Adam Towarnyckyj @ 2004-06-16 20:06 UTC (permalink / raw)
To: lartc
Hey everyone,
I had a question about the class id's using the TC command. I'm
using a command that looks something like this:
tc class add dev eth1 parent 10: classid 10:$variable cbq bandwidth
200Mbit rate 512Kbit allot 1514 prio 5 maxburst 20 avpkt 1000 bounded
That's just an example. My problem is I'm guessing the $variable is not
allowed to be anything over 9999. I'm getting an error when I run that
command with anything over 4 digits as a $variable. The error is:
RTNETLINK answers: Invalid argument
I've also tried just entering that in at the command prompt and using
10000 as the variable and that error shows up.
I actually have a few questions. First, am I right in assuming this or
is the reason something totally different? And, if I'm right, is there
any way around the limit other than creating a new qdisc? I'm trying to
use a number we have set up in our database and sometimes it goes into
the 5 digit range. Any help would be greatly appreciated. Thanks!
Adam Towarnyckyj
Network Operations
CommSpeed AZ, LLC
http://www.commspeed.net/
Phone: 928-772-1111 x131
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LARTC] Class ID limits
2004-06-16 20:06 [LARTC] Class ID limits Adam Towarnyckyj
@ 2004-06-17 7:20 ` Catalin BOIE
2004-06-17 7:53 ` Nikolay Datchev
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Catalin BOIE @ 2004-06-17 7:20 UTC (permalink / raw)
To: lartc
> tc class add dev eth1 parent 10: classid 10:$variable cbq bandwidth
> 200Mbit rate 512Kbit allot 1514 prio 5 maxburst 20 avpkt 1000 bounded
>
> That's just an example. My problem is I'm guessing the $variable is not
> allowed to be anything over 9999. I'm getting an error when I run that
> command with anything over 4 digits as a $variable. The error is:
>
> RTNETLINK answers: Invalid argument
>
> I've also tried just entering that in at the command prompt and using
> 10000 as the variable and that error shows up.
>
> I actually have a few questions. First, am I right in assuming this or
> is the reason something totally different? And, if I'm right, is there
> any way around the limit other than creating a new qdisc? I'm trying to
> use a number we have set up in our database and sometimes it goes into
> the 5 digit range. Any help would be greatly appreciated. Thanks!
Class parameters to tc are hexa numbers so you can use from x:1 to x:ffff,
meaning 65535 classes.
>
>
> Adam Towarnyckyj
> Network Operations
> CommSpeed AZ, LLC
> http://www.commspeed.net/
> Phone: 928-772-1111 x131
>
>
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
---
Catalin(ux aka Dino) BOIE
catab at deuroconsult.ro
http://kernel.umbrella.ro/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LARTC] Class ID limits
2004-06-16 20:06 [LARTC] Class ID limits Adam Towarnyckyj
2004-06-17 7:20 ` Catalin BOIE
@ 2004-06-17 7:53 ` Nikolay Datchev
2004-06-17 8:00 ` Nikolay Datchev
2004-06-17 16:05 ` Adam Towarnyckyj
3 siblings, 0 replies; 5+ messages in thread
From: Nikolay Datchev @ 2004-06-17 7:53 UTC (permalink / raw)
To: lartc
> > I actually have a few questions. First, am I right in assuming this or
> > is the reason something totally different? And, if I'm right, is there
> > any way around the limit other than creating a new qdisc? I'm trying to
> > use a number we have set up in our database and sometimes it goes into
> > the 5 digit range. Any help would be greatly appreciated. Thanks!
>
> Class parameters to tc are hexa numbers so you can use from x:1 to x:ffff,
> meaning 65535 classes.
>
And note that you must supply the classid in hex. Try searching google for
a small tool like dec2hex, which converts decimal numbers to hex.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LARTC] Class ID limits
2004-06-16 20:06 [LARTC] Class ID limits Adam Towarnyckyj
2004-06-17 7:20 ` Catalin BOIE
2004-06-17 7:53 ` Nikolay Datchev
@ 2004-06-17 8:00 ` Nikolay Datchev
2004-06-17 16:05 ` Adam Towarnyckyj
3 siblings, 0 replies; 5+ messages in thread
From: Nikolay Datchev @ 2004-06-17 8:00 UTC (permalink / raw)
To: lartc
> And note that you must supply the classid in hex. Try searching google for
> a small tool like dec2hex, which converts decimal numbers to hex.
>
http://improv.sapp.org/doc/examples/improv/tohex/tohex.html
This works perfect for me.
>
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [LARTC] Class ID limits
2004-06-16 20:06 [LARTC] Class ID limits Adam Towarnyckyj
` (2 preceding siblings ...)
2004-06-17 8:00 ` Nikolay Datchev
@ 2004-06-17 16:05 ` Adam Towarnyckyj
3 siblings, 0 replies; 5+ messages in thread
From: Adam Towarnyckyj @ 2004-06-17 16:05 UTC (permalink / raw)
To: lartc
Thank you very much for your help. I couldn't seem to find that anywhere
in the documentation. Maybe I wasn't looking in the right place.
Anyways, thanks again.
Adam
-----Original Message-----
From: lartc-admin@mailman.ds9a.nl [mailto:lartc-admin@mailman.ds9a.nl]
On Behalf Of Nikolay Datchev
Sent: Thursday, June 17, 2004 12:54 AM
To: Catalin BOIE
Cc: Adam Towarnyckyj; lartc@mailman.ds9a.nl
Subject: Re: [LARTC] Class ID limits
> > I actually have a few questions. First, am I right in assuming this
or
> > is the reason something totally different? And, if I'm right, is
there
> > any way around the limit other than creating a new qdisc? I'm trying
to
> > use a number we have set up in our database and sometimes it goes
into
> > the 5 digit range. Any help would be greatly appreciated. Thanks!
>
> Class parameters to tc are hexa numbers so you can use from x:1 to
x:ffff,
> meaning 65535 classes.
>
And note that you must supply the classid in hex. Try searching google
for
a small tool like dec2hex, which converts decimal numbers to hex.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-06-17 16:05 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-16 20:06 [LARTC] Class ID limits Adam Towarnyckyj
2004-06-17 7:20 ` Catalin BOIE
2004-06-17 7:53 ` Nikolay Datchev
2004-06-17 8:00 ` Nikolay Datchev
2004-06-17 16:05 ` Adam Towarnyckyj
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox