* Re: Re: [LARTC] How to use tc to limit bandwidth of a special IP in LAN
@ 2001-06-13 3:14 Chuanbo Xu
2001-06-13 10:00 ` Re: [LARTC] How to use tc to limit bandwidth of a special IP in Wingtung.Leung
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: Chuanbo Xu @ 2001-06-13 3:14 UTC (permalink / raw)
To: lartc
I have seen this document, but I don't understand means of options.
Usage: tc qdisc [ add | del | replace | change | get ] dev STRING
[ handle QHANDLE ] [ root | ingress | parent CLASSID ]
[ estimator INTERVAL TIME_CONSTANT ]
[ [ QDISC_KIND ] [ help | OPTIONS ] ]
What are root,ingress and parent?
What is CLASSID?
What is handle?
..
>http://www.ibiblio.org/pub/Linux/docs/HOWTO/Adv-Routing-HOWTO
>
>----- Original Message -----
>From: "Chuanbo Xu" <iproute2@btamail.net.cn>
>To: <lartc@mailman.ds9a.nl>
>Sent: Tuesday, June 12, 2001 1:00 AM
>Subject: [LARTC] How to use tc to limit bandwidth of a special IP in LAN
>
>
>> hi,
>>
>> I want to limit bandwidth of a special IP in LAN, when it upload or
>download from Internet through Linux server. How to use tc to do?
>>
>> Thanks.
>>
>>
>> _______________________________________________
>> LARTC mailing list / LARTC@mailman.ds9a.nl
>> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a
>..nl/2.4Routing/
>>
Chuanbo Xu
iproute2@btamail.net.cn
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Re: [LARTC] How to use tc to limit bandwidth of a special IP in
2001-06-13 3:14 Re: [LARTC] How to use tc to limit bandwidth of a special IP in LAN Chuanbo Xu
@ 2001-06-13 10:00 ` Wingtung.Leung
2001-06-13 18:51 ` Re: [LARTC] How to use tc to limit bandwidth of a special IP in LAN Ramin Alidousti
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Wingtung.Leung @ 2001-06-13 10:00 UTC (permalink / raw)
To: lartc
On Wed, 13 Jun 2001, Chuanbo Xu wrote:
> I have seen this document, but I don't understand means of options.
> Usage: tc qdisc [ add | del | replace | change | get ] dev STRING
> [ handle QHANDLE ] [ root | ingress | parent CLASSID ]
> [ estimator INTERVAL TIME_CONSTANT ]
> [ [ QDISC_KIND ] [ help | OPTIONS ] ]
>
> What are root,ingress and parent?
> What is CLASSID?
> What is handle?
You don't have to understand all details to setup a working bandwidth
limiting Linux router, try the example setups and experiment. That's the
only way to lear to use it.
CLASSID and handle are just identifiers to point the the right classes.
Just think about them like names. Root is the root of the class tree.
RTFM means "Read The Fucking Manual". You can find it back at:
http://www.astro.umd.edu/~marshall/abbrev.html#R
There is even a Chinese version of the manual:
http://www.e-infomax.com/ipmasq/ipmasq-howto.html
--
GnuPG public key: http://win-www.uia.ac.be/u/s965817/pub.key
fingerprint = A3C4 DE50 712D 4FA8 C564 4D96 5E06 C9CC ECFA 19C5
Please type your text BELOW the qoute.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Re: [LARTC] How to use tc to limit bandwidth of a special IP in LAN
2001-06-13 3:14 Re: [LARTC] How to use tc to limit bandwidth of a special IP in LAN Chuanbo Xu
2001-06-13 10:00 ` Re: [LARTC] How to use tc to limit bandwidth of a special IP in Wingtung.Leung
@ 2001-06-13 18:51 ` Ramin Alidousti
2001-06-13 18:55 ` Ramin Alidousti
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Ramin Alidousti @ 2001-06-13 18:51 UTC (permalink / raw)
To: lartc
On Wed, Jun 13, 2001 at 11:14:24AM +0800, Chuanbo Xu wrote:
> I have seen this document, but I don't understand means of options.
> Usage: tc qdisc [ add | del | replace | change | get ] dev STRING
> [ handle QHANDLE ] [ root | ingress | parent CLASSID ]
> [ estimator INTERVAL TIME_CONSTANT ]
> [ [ QDISC_KIND ] [ help | OPTIONS ] ]
>
> What are root,ingress and parent?
> What is CLASSID?
> What is handle?
Good question. If anybody has any idea what all these keywords mean
I'd really appreciate the answer.
Ramin
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Re: [LARTC] How to use tc to limit bandwidth of a special IP in LAN
2001-06-13 3:14 Re: [LARTC] How to use tc to limit bandwidth of a special IP in LAN Chuanbo Xu
2001-06-13 10:00 ` Re: [LARTC] How to use tc to limit bandwidth of a special IP in Wingtung.Leung
2001-06-13 18:51 ` Re: [LARTC] How to use tc to limit bandwidth of a special IP in LAN Ramin Alidousti
@ 2001-06-13 18:55 ` Ramin Alidousti
2001-06-13 23:02 ` Re: [LARTC] How to use tc to limit bandwidth of a special IP in Wingtung.Leung
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Ramin Alidousti @ 2001-06-13 18:55 UTC (permalink / raw)
To: lartc
On Wed, Jun 13, 2001 at 12:00:27PM +0200, Wingtung.Leung wrote:
> On Wed, 13 Jun 2001, Chuanbo Xu wrote:
>
> > I have seen this document, but I don't understand means of options.
> > Usage: tc qdisc [ add | del | replace | change | get ] dev STRING
> > [ handle QHANDLE ] [ root | ingress | parent CLASSID ]
> > [ estimator INTERVAL TIME_CONSTANT ]
> > [ [ QDISC_KIND ] [ help | OPTIONS ] ]
> >
> > What are root,ingress and parent?
> > What is CLASSID?
> > What is handle?
>
> You don't have to understand all details to setup a working bandwidth
> limiting Linux router, try the example setups and experiment. That's the
> only way to lear to use it.
You mean there is no-one (even not the one who wrote this QoS thing)
has a decent doc on that? Trial and error is evil and waste of time.
Ramin
>
> CLASSID and handle are just identifiers to point the the right classes.
> Just think about them like names. Root is the root of the class tree.
>
> RTFM means "Read The Fucking Manual". You can find it back at:
> http://www.astro.umd.edu/~marshall/abbrev.html#R
>
> There is even a Chinese version of the manual:
> http://www.e-infomax.com/ipmasq/ipmasq-howto.html
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Re: [LARTC] How to use tc to limit bandwidth of a special IP in
2001-06-13 3:14 Re: [LARTC] How to use tc to limit bandwidth of a special IP in LAN Chuanbo Xu
` (2 preceding siblings ...)
2001-06-13 18:55 ` Ramin Alidousti
@ 2001-06-13 23:02 ` Wingtung.Leung
2001-06-13 23:49 ` Re: [LARTC] How to use tc to limit bandwidth of a special IP in LAN Ramin Alidousti
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Wingtung.Leung @ 2001-06-13 23:02 UTC (permalink / raw)
To: lartc
On Wed, 13 Jun 2001, Ramin Alidousti wrote:
> You mean there is no-one (even not the one who wrote this QoS thing)
> has a decent doc on that? Trial and error is evil and waste of time.
First, the best way to learn things is to try it. If you think that's a
waste of time, you shouldn't be using GNU/Linux in the first place, but
consider a commercial boxed Cisco router or something alike.
And secondly, the best and most accurate documentation: the source code.
Every detail is explained there.
No offence.
A handle is just a tool or way to hold something, in this case a pointer
or reference to the previously constructed class.
(Please don't CC me, I'm already subscribed to the list.)
--
GnuPG public key: http://www.keyserver.net
fingerprint = A3C4 DE50 712D 4FA8 C564 4D96 5E06 C9CC ECFA 19C5
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Re: [LARTC] How to use tc to limit bandwidth of a special IP in LAN
2001-06-13 3:14 Re: [LARTC] How to use tc to limit bandwidth of a special IP in LAN Chuanbo Xu
` (3 preceding siblings ...)
2001-06-13 23:02 ` Re: [LARTC] How to use tc to limit bandwidth of a special IP in Wingtung.Leung
@ 2001-06-13 23:49 ` Ramin Alidousti
2001-06-14 1:59 ` streeterk
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Ramin Alidousti @ 2001-06-13 23:49 UTC (permalink / raw)
To: lartc
On Thu, Jun 14, 2001 at 01:02:19AM +0200, Wingtung.Leung wrote:
> First, the best way to learn things is to try it. If you think that's a
I'm not opposed to trying. But just think how much time you'd waste if you had
to start from nowhere with apache/sendmail/bash/netfilter and many many other
applications. Of course you have the source and can figure out what they do
by going through the code line by line, but that's not the point.
Why do you think that your "GNU/Linux" has "Linux Documentation Project"????
> waste of time, you shouldn't be using GNU/Linux in the first place, but
> consider a commercial boxed Cisco router or something alike.
Actually, one of the reasons that I don't like the commercial products like
cisco is that you get:
Command Comment
------- -------
ip cef enables cef
no ip cef disables cef
but what the heck is cef in the first place?
Most of the Linux applications have an excellent documentation. iproute2 is
an exception.
> And secondly, the best and most accurate documentation: the source code.
> Every detail is explained there.
I'm glad that it's not coded in machine language...
> No offence.
non taken.
> A handle is just a tool or way to hold something, in this case a pointer
> or reference to the previously constructed class.
>
> (Please don't CC me, I'm already subscribed to the list.)
I'd expected more from an academicus as yourself. They used to have many
courses like "formele specificaties". Did they remove them from the programs?
Ramin
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Re: [LARTC] How to use tc to limit bandwidth of a special IP in LAN
2001-06-13 3:14 Re: [LARTC] How to use tc to limit bandwidth of a special IP in LAN Chuanbo Xu
` (4 preceding siblings ...)
2001-06-13 23:49 ` Re: [LARTC] How to use tc to limit bandwidth of a special IP in LAN Ramin Alidousti
@ 2001-06-14 1:59 ` streeterk
2001-06-14 2:10 ` Re: [LARTC] How to use tc to limit bandwidth of a special IP in Jeffrey W. Baker
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: streeterk @ 2001-06-14 1:59 UTC (permalink / raw)
To: lartc
Nothing like trial and error, but cone on, let's not have have each person
individually reinvent the wheel. Many man hours are wasted trying to figure
out how the most basic commands work by experimentation, when it would be so
easy to just make a clear explanation of them in the documentation. Some
examples of the command line would be most helpful.
While Linux, in general is not for the faint of heart, the doccumentation
for this particular set of tools is overly cryptic. I, for one, am not a
programmer and can't "read the source code". Not that that should be
necessary for anyone not refining it anyway. With a good explanation of the
cammands and variables, those man hours could be spent working on innovative
ways to impliment these wonderful tools, rather than trying to figure out
which end goes up.
I have spent days trying to do the most basic things with these new tools
that I accomplished in hours with 2.2.x, and have made some progress but it
does not have to be so difficult.
The Linux project is a wonderful thing! Millons of people from all over the
world, working together and sharing their knowledge and ideas. And creating
a first rate OS in the process. Linux is gaining more and more support
every day. I believe that it will soon find it's place in the commonwealth
that it is so deserving of, but for that to happen it's features must be
accessable to users other than the Elete.
Finally, the power is in the right place. In the hands of the users. Let's
try and get along. We are all on the same team.
----- Original Message -----
From: "Ramin Alidousti" <ramin@UU.NET>
To: <lartc@mailman.ds9a.nl>
Sent: Wednesday, June 13, 2001 4:49 PM
Subject: Re: Re: [LARTC] How to use tc to limit bandwidth of a special IP in
LAN
> On Thu, Jun 14, 2001 at 01:02:19AM +0200, Wingtung.Leung wrote:
>
> > First, the best way to learn things is to try it. If you think that's a
>
> I'm not opposed to trying. But just think how much time you'd waste if you
had
> to start from nowhere with apache/sendmail/bash/netfilter and many many
other
> applications. Of course you have the source and can figure out what they
do
> by going through the code line by line, but that's not the point.
>
> Why do you think that your "GNU/Linux" has "Linux Documentation
Project"????
>
> > waste of time, you shouldn't be using GNU/Linux in the first place, but
> > consider a commercial boxed Cisco router or something alike.
>
> Actually, one of the reasons that I don't like the commercial products
like
> cisco is that you get:
>
> Command Comment
> ------- -------
> ip cef enables cef
> no ip cef disables cef
>
> but what the heck is cef in the first place?
>
> Most of the Linux applications have an excellent documentation. iproute2
is
> an exception.
>
> > And secondly, the best and most accurate documentation: the source code.
> > Every detail is explained there.
>
> I'm glad that it's not coded in machine language...
>
> > No offence.
>
> non taken.
>
> > A handle is just a tool or way to hold something, in this case a pointer
> > or reference to the previously constructed class.
> >
> > (Please don't CC me, I'm already subscribed to the list.)
>
> I'd expected more from an academicus as yourself. They used to have many
> courses like "formele specificaties". Did they remove them from the
programs?
>
> Ramin
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO:
http://ds9a.nl/2.4Routing/
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Re: [LARTC] How to use tc to limit bandwidth of a special IP in
2001-06-13 3:14 Re: [LARTC] How to use tc to limit bandwidth of a special IP in LAN Chuanbo Xu
` (5 preceding siblings ...)
2001-06-14 1:59 ` streeterk
@ 2001-06-14 2:10 ` Jeffrey W. Baker
2001-06-14 3:18 ` Re: [LARTC] How to use tc to limit bandwidth of a special IP in LAN Ramin Alidousti
2001-06-14 8:44 ` FW: " Daniel Bergqvist
8 siblings, 0 replies; 10+ messages in thread
From: Jeffrey W. Baker @ 2001-06-14 2:10 UTC (permalink / raw)
To: lartc
On Wed, 13 Jun 2001, streeterk wrote:
> Nothing like trial and error, but cone on, let's not have have each person
> individually reinvent the wheel. Many man hours are wasted trying to figure
> out how the most basic commands work by experimentation, when it would be so
> easy to just make a clear explanation of them in the documentation. Some
> examples of the command line would be most helpful.
>
> While Linux, in general is not for the faint of heart, the doccumentation
> for this particular set of tools is overly cryptic.
Maybe I'm using a different iproute2 package than you, but my iproute2
came with a massive 60 page manual: ip-cref.dvi. It really is way more
documentation than you get with most tools.
I've often cursed iproute2 for its command syntax, but the root problem
always turns out to be my own ignorance of routing and internetworking.
-jwb
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Re: [LARTC] How to use tc to limit bandwidth of a special IP in LAN
2001-06-13 3:14 Re: [LARTC] How to use tc to limit bandwidth of a special IP in LAN Chuanbo Xu
` (6 preceding siblings ...)
2001-06-14 2:10 ` Re: [LARTC] How to use tc to limit bandwidth of a special IP in Jeffrey W. Baker
@ 2001-06-14 3:18 ` Ramin Alidousti
2001-06-14 8:44 ` FW: " Daniel Bergqvist
8 siblings, 0 replies; 10+ messages in thread
From: Ramin Alidousti @ 2001-06-14 3:18 UTC (permalink / raw)
To: lartc
On Wed, Jun 13, 2001 at 07:10:00PM -0700, Jeffrey W. Baker wrote:
> On Wed, 13 Jun 2001, streeterk wrote:
>
> > Nothing like trial and error, but cone on, let's not have have each person
> > individually reinvent the wheel. Many man hours are wasted trying to figure
> > out how the most basic commands work by experimentation, when it would be so
> > easy to just make a clear explanation of them in the documentation. Some
> > examples of the command line would be most helpful.
> >
> > While Linux, in general is not for the faint of heart, the doccumentation
> > for this particular set of tools is overly cryptic.
>
> Maybe I'm using a different iproute2 package than you, but my iproute2
> came with a massive 60 page manual: ip-cref.dvi. It really is way more
> documentation than you get with most tools.
>
> I've often cursed iproute2 for its command syntax, but the root problem
> always turns out to be my own ignorance of routing and internetworking.
Yes. I have these .tex files as well. Much beter than scanning through the
source code...
"ip" is kind of easy to follow (maybe because I already know what I'm looking
for) but when it comes down to "tc", my head spins. Take the following (easy)
example:
tc class add dev eth1 parent 1:1 classid 1:2 cbq bandwidth 10Mbit rate 1Mbit \
allot 1514 cell 8 weight 100Kbit prio 3 maxburst 20 avpkt 1000 split 1:0 \
defmap c0
A small note on all these options would have saved me a lot of guess-work.
But anyway, don't take me wrong. I think that iproute2 is one of the coolest
networking tools I've ever seen.
Ramin
>
> -jwb
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
^ permalink raw reply [flat|nested] 10+ messages in thread
* FW: Re: [LARTC] How to use tc to limit bandwidth of a special IP in LAN
2001-06-13 3:14 Re: [LARTC] How to use tc to limit bandwidth of a special IP in LAN Chuanbo Xu
` (7 preceding siblings ...)
2001-06-14 3:18 ` Re: [LARTC] How to use tc to limit bandwidth of a special IP in LAN Ramin Alidousti
@ 2001-06-14 8:44 ` Daniel Bergqvist
8 siblings, 0 replies; 10+ messages in thread
From: Daniel Bergqvist @ 2001-06-14 8:44 UTC (permalink / raw)
To: lartc
Due to the lack of documentation for TC, I have started to write a TC
command reference. It's not finished but maybe you will find it usefull.
http://linux.bergqvist.se/tc/
Regards,
Daniel
-----Original Message-----
From: lartc-admin@mailman.ds9a.nl [mailto:lartc-admin@mailman.ds9a.nl]On
Behalf Of Ramin Alidousti
Sent: Thursday, June 14, 2001 5:18 AM
To: Jeffrey W. Baker
Cc: streeterk; Linux Advanced Routing
Subject: Re: Re: [LARTC] How to use tc to limit bandwidth of a special IP in
LAN
On Wed, Jun 13, 2001 at 07:10:00PM -0700, Jeffrey W. Baker wrote:
Yes. I have these .tex files as well. Much beter than scanning through the
source code...
"ip" is kind of easy to follow (maybe because I already know what I'm
looking
for) but when it comes down to "tc", my head spins. Take the following
(easy)
example:
tc class add dev eth1 parent 1:1 classid 1:2 cbq bandwidth 10Mbit rate 1Mbit
\
allot 1514 cell 8 weight 100Kbit prio 3 maxburst 20 avpkt 1000 split 1:0 \
defmap c0
A small note on all these options would have saved me a lot of guess-work.
But anyway, don't take me wrong. I think that iproute2 is one of the coolest
networking tools I've ever seen.
Ramin
>
> -jwb
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO:
http://ds9a.nl/2.4Routing/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2001-06-14 8:44 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-13 3:14 Re: [LARTC] How to use tc to limit bandwidth of a special IP in LAN Chuanbo Xu
2001-06-13 10:00 ` Re: [LARTC] How to use tc to limit bandwidth of a special IP in Wingtung.Leung
2001-06-13 18:51 ` Re: [LARTC] How to use tc to limit bandwidth of a special IP in LAN Ramin Alidousti
2001-06-13 18:55 ` Ramin Alidousti
2001-06-13 23:02 ` Re: [LARTC] How to use tc to limit bandwidth of a special IP in Wingtung.Leung
2001-06-13 23:49 ` Re: [LARTC] How to use tc to limit bandwidth of a special IP in LAN Ramin Alidousti
2001-06-14 1:59 ` streeterk
2001-06-14 2:10 ` Re: [LARTC] How to use tc to limit bandwidth of a special IP in Jeffrey W. Baker
2001-06-14 3:18 ` Re: [LARTC] How to use tc to limit bandwidth of a special IP in LAN Ramin Alidousti
2001-06-14 8:44 ` FW: " Daniel Bergqvist
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox