* [LARTC] CBQ.init
@ 2002-12-20 14:37 Emmanuel SIMON
2002-12-20 18:04 ` Stef Coene
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: Emmanuel SIMON @ 2002-12-20 14:37 UTC (permalink / raw)
To: lartc
hi all,
i have read about CBQ.init in the howto, your mails etc...
but what is it exactly and where can i find it and some info : i can't
access the link in the howto ... (ftp://ftp.equinox.gu.net/pub/linux/cbq/)
i hope someone can send it to me on my mailbox, but, please, mail me first.
thank you
Emmanuel
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [LARTC] CBQ.init
2002-12-20 14:37 [LARTC] CBQ.init Emmanuel SIMON
@ 2002-12-20 18:04 ` Stef Coene
2003-04-23 18:58 ` [LARTC] cbq.init larry lefthook
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Stef Coene @ 2002-12-20 18:04 UTC (permalink / raw)
To: lartc
On Friday 20 December 2002 15:37, Emmanuel SIMON wrote:
> hi all,
>
> i have read about CBQ.init in the howto, your mails etc...
> but what is it exactly and where can i find it and some info : i can't
> access the link in the howto ... (ftp://ftp.equinox.gu.net/pub/linux/cbq/)
>
> i hope someone can send it to me on my mailbox, but, please, mail me first.
http://freshmeat.net/projects/cbq.init
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 12+ messages in thread
* [LARTC] cbq.init
2002-12-20 14:37 [LARTC] CBQ.init Emmanuel SIMON
2002-12-20 18:04 ` Stef Coene
@ 2003-04-23 18:58 ` larry lefthook
2003-04-23 19:14 ` Stef Coene
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: larry lefthook @ 2003-04-23 18:58 UTC (permalink / raw)
To: lartc
About the cbq.init. Four machines which traffic to limit in same LAN.
Is the samething if I put limiting rules to four different files or all to
the same file? Like:
DEVICE=eth0,10Mbit,1Mbit
RATEdKbit
WEIGHT=6Kbit
PRIO=5
RULE\x192.168.0.5
RULE\x192.168.0.6
RULE\x192.168.0.7
RULE\x192.168.0.8
OR four equal files with different IPs, Ids and no PARENT rule?
What style of ID numbering you use if there is many conf files?
I read about htb.init problem here:
"<snip>
LEAF=sfq
RULE\x192.168.1.[1..6]
The problem is when user start to download with Flashget,MassDownloader
(with 10 threads) he kills the internet connection (240Kbit) without
overlimiting his 80Kbit. Other users get 1-2kbps, witch is extremely
unpleasant." And the answer: "You can try the esfq qdisc. You can create the
different queues based on ip-addresses and/or ports and this for source
and/or destination."
I have cbq.init and LEAFÞfault (tbf). Can Flashget & others do me the
above thing? Just suspicious...perhaps stupid questions.
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?pageþatures/virus
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [LARTC] cbq.init
2002-12-20 14:37 [LARTC] CBQ.init Emmanuel SIMON
2002-12-20 18:04 ` Stef Coene
2003-04-23 18:58 ` [LARTC] cbq.init larry lefthook
@ 2003-04-23 19:14 ` Stef Coene
2003-09-09 2:42 ` [LARTC] CBQ.init Mitsuru MIZUTANI
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Stef Coene @ 2003-04-23 19:14 UTC (permalink / raw)
To: lartc
On Wednesday 23 April 2003 20:58, larry lefthook wrote:
> About the cbq.init. Four machines which traffic to limit in same LAN.
> Is the samething if I put limiting rules to four different files or all to
> the same file? Like:
>
> DEVICE=eth0,10Mbit,1Mbit
> RATEdKbit
> WEIGHT=6Kbit
> PRIO=5
> RULE\x192.168.0.5
> RULE\x192.168.0.6
> RULE\x192.168.0.7
> RULE\x192.168.0.8
>
> OR four equal files with different IPs, Ids and no PARENT rule?
> What style of ID numbering you use if there is many conf files?
>
> I read about htb.init problem here:
> "<snip>
> LEAF=sfq
> RULE\x192.168.1.[1..6]
> The problem is when user start to download with Flashget,MassDownloader
> (with 10 threads) he kills the internet connection (240Kbit) without
> overlimiting his 80Kbit. Other users get 1-2kbps, witch is extremely
> unpleasant." And the answer: "You can try the esfq qdisc. You can create
> the different queues based on ip-addresses and/or ports and this for source
> and/or destination."
>
> I have cbq.init and LEAFÞfault (tbf). Can Flashget & others do me the
> above thing? Just suspicious...perhaps stupid questions.
Not stupid, but the wrong place. This is not the cbq.init discussion list.
Howerver some remarks. I think the esfq idea came from me. You can use if
you know why. So if you are not satisfied with cbq.init, try to create your
own script.
You can have the sfq "problem" if you add mutliple users in the same class.
With the sfq qdisc, each stream (determined by src/dst and port/ip-address)
has the same opportunity to send something. The esfq qdisc can be configured
to only use the src address to create the streams so the each users has his
own little queue. And so they have the same chance to send something.
Or you can create 1 class for each user.
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 12+ messages in thread
* [LARTC] CBQ.init
2002-12-20 14:37 [LARTC] CBQ.init Emmanuel SIMON
` (2 preceding siblings ...)
2003-04-23 19:14 ` Stef Coene
@ 2003-09-09 2:42 ` Mitsuru MIZUTANI
2003-09-09 2:48 ` Rio Martin
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Mitsuru MIZUTANI @ 2003-09-09 2:42 UTC (permalink / raw)
To: lartc
Hello everyone,
I am using CBQ.init to shape bandwidth but I have a problem.
Linux PC2 (192.168.0.10)
|
+---------------------+
|eth0 192.168.0.1 | ← Linux router
|---------------------|
|eth1 192.168.1.1 |
+---------------------+
|
Linux PC1 (192.168.1.10)
I want to limit bandwidth from "Linux PC1" to "Linux PC2"
more than 10Mbps.
So I set CBQ.init following like this.
/etc/rc.d/CBQ.init
DEVICE=eth0,100Mbit,10Mbit
RATE\x10Mbit
WEIGHT=1Mbit
PRIO=5
When I set RATE=6Mbit,I can limit bandwidth 6Mbps.
But I set RATE=7Mbit,8Mbit,...
I can limit bandwidth only 6.95Mbps everytime.
Why?
Could you tell me how to limit bandwidth more than 7Mbps.
Mitsuru MIZUTANI
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [LARTC] CBQ.init
2002-12-20 14:37 [LARTC] CBQ.init Emmanuel SIMON
` (3 preceding siblings ...)
2003-09-09 2:42 ` [LARTC] CBQ.init Mitsuru MIZUTANI
@ 2003-09-09 2:48 ` Rio Martin
2003-09-09 10:36 ` Mitsuru MIZUTANI
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Rio Martin @ 2003-09-09 2:48 UTC (permalink / raw)
To: lartc
On Tuesday 09 September 2003 09:42, Mitsuru MIZUTANI wrote:
> Hello everyone,
> I am using CBQ.init to shape bandwidth but I have a problem.
> Linux PC2 (192.168.0.10)
> +---------------------+
> |eth0 192.168.0.1 | ← Linux router
> |---------------------|
> |eth1 192.168.1.1 |
> +---------------------+
> Linux PC1 (192.168.1.10)
> I want to limit bandwidth from "Linux PC1" to "Linux PC2"
> more than 10Mbps.
> So I set CBQ.init following like this.
> /etc/rc.d/CBQ.init
> DEVICE=eth0,100Mbit,10Mbit
> RATE\x10Mbit
> WEIGHT=1Mbit
> PRIO=5
> When I set RATE=6Mbit,I can limit bandwidth 6Mbps.
> But I set RATE=7Mbit,8Mbit,...
> I can limit bandwidth only 6.95Mbps everytime.
> Why?
> Could you tell me how to limit bandwidth more than 7Mbps.
Have you checked link quality before you applied CBQ and after you applied CBQ
qdisc ? Perhaps this is caused by your switch, cable, etc.
Once you have checked it all, than we consider to take CBQ as the problem.
Regards,
Rio Martin.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [LARTC] CBQ.init
2002-12-20 14:37 [LARTC] CBQ.init Emmanuel SIMON
` (4 preceding siblings ...)
2003-09-09 2:48 ` Rio Martin
@ 2003-09-09 10:36 ` Mitsuru MIZUTANI
2003-09-09 15:16 ` Stef Coene
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Mitsuru MIZUTANI @ 2003-09-09 10:36 UTC (permalink / raw)
To: lartc
Hello everyone.
Rio Martin <rio@martin.mu> wrote:
> On Tuesday 09 September 2003 09:42, Mitsuru MIZUTANI wrote:
> > Hello everyone,
> > I am using CBQ.init to shape bandwidth but I have a problem.
> >
> > Linux PC2 (192.168.0.10)
> > |
> > +---------------------+
> > |eth0 192.168.0.1 | ← Linux router
> > |---------------------|
> > |eth1 192.168.1.1 |
> > +---------------------+
> > |
> > Linux PC1 (192.168.1.10)
> >
> > I want to limit bandwidth from "Linux PC1" to "Linux PC2"
> > more than 10Mbps.
> > So I set CBQ.init following like this.
> > /etc/rc.d/CBQ.init
> > DEVICE=eth0,100Mbit,10Mbit
> > RATE\x10Mbit
> > WEIGHT=1Mbit
> > PRIO=5
> > When I set RATE=6Mbit,I can limit bandwidth 6Mbps.
> > But I set RATE=7Mbit,8Mbit,...
> > I can limit bandwidth only 6.95Mbps everytime.
> > Why?
> > Could you tell me how to limit bandwidth more than 7Mbps.
>
> Have you checked link quality before you applied CBQ and after you applied CBQ
> qdisc ? Perhaps this is caused by your switch, cable, etc.
>
> Once you have checked it all, than we consider to take CBQ as the problem.
>
> Regards,
> Rio Martin.
Thank you for your advice.
I have checked link quality before I applied CBQ and after I applied CBQ.
And ... I have checked switch, cable, etc.
I confirmed they are 100 Mbps full duplex.
But ... as a result,I could limit bandwidth only 6.95Mbps.
Do you know how to limit bandwidth more than 10 Mbps ?
If you know , please tell me how to limit bandwidth more than 10 Mbps.
Won't you please tell me, everyone ?
Thanks.
Mitsuru MIZUTANI
-----------
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [LARTC] CBQ.init
2002-12-20 14:37 [LARTC] CBQ.init Emmanuel SIMON
` (5 preceding siblings ...)
2003-09-09 10:36 ` Mitsuru MIZUTANI
@ 2003-09-09 15:16 ` Stef Coene
2003-09-09 18:48 ` Catalin Petrescu
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Stef Coene @ 2003-09-09 15:16 UTC (permalink / raw)
To: lartc
> Thank you for your advice.
> I have checked link quality before I applied CBQ and after I applied CBQ.
> And ... I have checked switch, cable, etc.
> I confirmed they are 100 Mbps full duplex.
It's not becaused they are configured as 100Mbps full duplex that you are able
to get 100Mbps. What's the speed you get when there is no cbq rulte?
> But ... as a result,I could limit bandwidth only 6.95Mbps.
> Do you know how to limit bandwidth more than 10 Mbps ?
> If you know , please tell me how to limit bandwidth more than 10 Mbps.
> Won't you please tell me, everyone ?
Can you check resources when you check the speed (cpu, disk, memory, switch)?
And how do you check the speed?
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [LARTC] CBQ.init
2002-12-20 14:37 [LARTC] CBQ.init Emmanuel SIMON
` (6 preceding siblings ...)
2003-09-09 15:16 ` Stef Coene
@ 2003-09-09 18:48 ` Catalin Petrescu
2003-09-09 20:07 ` Mitsuru MIZUTANI
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Catalin Petrescu @ 2003-09-09 18:48 UTC (permalink / raw)
To: lartc
>So I set CBQ.init following like this.
>
>/etc/rc.d/CBQ.init
>DEVICE=eth0,100Mbit,10Mbit
>RATE\x10Mbit
>WEIGHT=1Mbit
>PRIO=5
>
>When I set RATE=6Mbit,I can limit bandwidth 6Mbps.
>But I set RATE=7Mbit,8Mbit,...
> I can limit bandwidth only 6.95Mbps everytime.
>Why?
watch your default tbf settings!
----from cbq.init begin----
# BUFFER=<bytes>[/<bytes>] optional, default "10Kb/8"
#
# This parameter controls the depth of the token bucket. In other
# words it represents the maximal burst size the class can send.
# The optional part of parameter is used to determine the length
# of intervals in packet sizes, for which the transmission times
# are kept.
-----from cbq.init end-----
>Could you tell me how to limit bandwidth more than 7Mbps.
Try BUFFER\x100Kb/8.
--
Catalin Petrescu <taz at dntis dot ro>
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/CC/IT/S/MU d- s+: a- C++ ULAS++++$ P+>+++ L+++ E- W+ N+ o? K?
w-- O-- M- V? PS+ PE Y PGP+>++ t 5? X+ R? tv--() b+>++ DI++ D+ G
e++ h* r-- y?
------END GEEK CODE BLOCK------
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [LARTC] CBQ.init
2002-12-20 14:37 [LARTC] CBQ.init Emmanuel SIMON
` (7 preceding siblings ...)
2003-09-09 18:48 ` Catalin Petrescu
@ 2003-09-09 20:07 ` Mitsuru MIZUTANI
2003-09-10 5:52 ` Raghuveer
2003-09-16 4:08 ` Rio Martin
10 siblings, 0 replies; 12+ messages in thread
From: Mitsuru MIZUTANI @ 2003-09-09 20:07 UTC (permalink / raw)
To: lartc
Hello.
Catalin Petrescu <taz@dntis.ro> wrote:
> >So I set CBQ.init following like this.
> >
> >/etc/rc.d/CBQ.init
> >DEVICE=eth0,100Mbit,10Mbit
> >RATE\x10Mbit
> >WEIGHT=1Mbit
> >PRIO=5
> >
> >When I set RATE=6Mbit,I can limit bandwidth 6Mbps.
> >But I set RATE=7Mbit,8Mbit,...
> > I can limit bandwidth only 6.95Mbps everytime.
> >Why?
>
> watch your default tbf settings!
>
> ----from cbq.init begin----
> # BUFFER=<bytes>[/<bytes>] optional, default "10Kb/8"
> #
> # This parameter controls the depth of the token bucket. In other
> # words it represents the maximal burst size the class can send.
> # The optional part of parameter is used to determine the length
> # of intervals in packet sizes, for which the transmission times
> # are kept.
> -----from cbq.init end-----
>
> >Could you tell me how to limit bandwidth more than 7Mbps.
> Try BUFFER\x100Kb/8.
>
> --
> Catalin Petrescu <taz at dntis dot ro>
Thank you for your advice.
I'll try BUFFER\x100Kb/8.
Mitsuru MIZUTANI
-----------
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [LARTC] CBQ.init
2002-12-20 14:37 [LARTC] CBQ.init Emmanuel SIMON
` (8 preceding siblings ...)
2003-09-09 20:07 ` Mitsuru MIZUTANI
@ 2003-09-10 5:52 ` Raghuveer
2003-09-16 4:08 ` Rio Martin
10 siblings, 0 replies; 12+ messages in thread
From: Raghuveer @ 2003-09-10 5:52 UTC (permalink / raw)
To: lartc
Stef Coene wrote:
>>Thank you for your advice.
>>I have checked link quality before I applied CBQ and after I applied CBQ.
>>And ... I have checked switch, cable, etc.
>>I confirmed they are 100 Mbps full duplex.
>>
>>
>It's not becaused they are configured as 100Mbps full duplex that you are able
>to get 100Mbps. What's the speed you get when there is no cbq rulte?
>
>
100Mbps probably is the device bandwidth, what is the rate..? As
suggested by Stef before, its always better to have rate = 95% of the
rate. Its better to check tbf buffer too.
Regards
-Raghu
>
>
>>But ... as a result,I could limit bandwidth only 6.95Mbps.
>>Do you know how to limit bandwidth more than 10 Mbps ?
>>If you know , please tell me how to limit bandwidth more than 10 Mbps.
>>Won't you please tell me, everyone ?
>>
>>
>Can you check resources when you check the speed (cpu, disk, memory, switch)?
>And how do you check the speed?
>
>Stef
>
>
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [LARTC] CBQ.init
2002-12-20 14:37 [LARTC] CBQ.init Emmanuel SIMON
` (9 preceding siblings ...)
2003-09-10 5:52 ` Raghuveer
@ 2003-09-16 4:08 ` Rio Martin
10 siblings, 0 replies; 12+ messages in thread
From: Rio Martin @ 2003-09-16 4:08 UTC (permalink / raw)
To: lartc
On Tuesday 09 September 2003 17:36, Mitsuru MIZUTANI wrote:
> Hello everyone.
> Rio Martin <rio@martin.mu> wrote:
> > On Tuesday 09 September 2003 09:42, Mitsuru MIZUTANI wrote:
> Thank you for your advice.
> I have checked link quality before I applied CBQ and after I applied CBQ.
> And ... I have checked switch, cable, etc.
> I confirmed they are 100 Mbps full duplex.
> But ... as a result,I could limit bandwidth only 6.95Mbps.
> Do you know how to limit bandwidth more than 10 Mbps ?
> If you know , please tell me how to limit bandwidth more than 10 Mbps.
> Won't you please tell me, everyone ?
Here goes the trouble (:
I m not familiar with CBQ, but i ve tried it once before i step to HTB.
Perhaps by switching the WEIGHT parameter into zero ? and from your script,
you dont add LEAF parameter, so CBQ choose TBF as default leaf. Change it to
SFQ, perhaps it would help.
LEAF = SFQ
Please report your progress back to this list,
thanks.
Regards,
Rio Martin.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2003-09-16 4:08 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-20 14:37 [LARTC] CBQ.init Emmanuel SIMON
2002-12-20 18:04 ` Stef Coene
2003-04-23 18:58 ` [LARTC] cbq.init larry lefthook
2003-04-23 19:14 ` Stef Coene
2003-09-09 2:42 ` [LARTC] CBQ.init Mitsuru MIZUTANI
2003-09-09 2:48 ` Rio Martin
2003-09-09 10:36 ` Mitsuru MIZUTANI
2003-09-09 15:16 ` Stef Coene
2003-09-09 18:48 ` Catalin Petrescu
2003-09-09 20:07 ` Mitsuru MIZUTANI
2003-09-10 5:52 ` Raghuveer
2003-09-16 4:08 ` Rio Martin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox