CBQ.init
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 7 lines · Emmanuel SIMON
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
Signature · 8 lines
[email protected] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
[LARTC] cbq.init
In reply to Emmanuel SIMONAbout 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
RULE2.168.0.5
RULE2.168.0.6
RULE2.168.0.7
RULE2.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
RULE2.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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Re: [LARTC] cbq.init
In reply to Emmanuel SIMONQuoted 27 lines · larry lefthook
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
RULE2.168.0.5
RULE2.168.0.6
RULE2.168.0.7
RULE2.168.0.8OR 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
RULE2.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."
Quoted 2 lines
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
Signature · 8 lines
[email protected] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
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
RATEMbit
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 9 lines · Mitsuru MIZUTANI
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)
Quoted 13 lines
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
RATEMbit
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Hello everyone.
Quoted 28 lines · Rio Martin
Quoted 13 lines · Mitsuru MIZUTANI
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)Quoted 13 lines
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
RATEMbit
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.
Quoted 7 lines
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 4 lines
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?
Quoted 4 lines
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
Signature · 8 lines
[email protected] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 8 lines
So I set CBQ.init following like this.
/etc/rc.d/CBQ.init
DEVICE=eth0,100Mbit,10Mbit
RATEMbit
WEIGHT=1Mbit
PRIO=5
Quoted 4 lines
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-----
Quoted 1 line
Could you tell me how to limit bandwidth more than 7Mbps.
Try BUFFER0Kb/8.
Signature · 12 lines
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 / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Hello.
Quoted 23 lines · Catalin Petrescu
Quoted 8 lines
So I set CBQ.init following like this.
/etc/rc.d/CBQ.init
DEVICE=eth0,100Mbit,10Mbit
RATEMbit
WEIGHT=1Mbit
PRIO=5Quoted 4 lines
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.
Quoted 7 lines
-----from cbq.init end-----
Quoted 1 line
Could you tell me how to limit bandwidth more than 7Mbps.
Try BUFFER0Kb/8.
Signature · 1 line
Catalin Petrescu <taz at dntis dot ro>
Thank you for your advice.
I'll try BUFFER0Kb/8.
Mitsuru MIZUTANI
-----------
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 10 lines · Stef Coene
Quoted 6 lines
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
Quoted 8 lines
Quoted 8 lines
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 ?
Quoted 7 lines
Can you check resources when you check the speed (cpu, disk, memory, switch)? And how do you check the speed?
Stef
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 11 lines · Mitsuru MIZUTANI
Hello everyone.
Quoted 1 line · Rio Martin
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/