* [LARTC] CBQ
@ 2001-04-19 4:32 Tzeh Yeu Leang
2001-06-29 12:41 ` Luiz C. Spies
` (12 more replies)
0 siblings, 13 replies; 14+ messages in thread
From: Tzeh Yeu Leang @ 2001-04-19 4:32 UTC (permalink / raw)
To: lartc
Hi,
I have set up sth very similar to the example "efcbq" in TC. Here is my
network setup:
[Host1]---------eth0[router]eth1----------[Host2]
I send udp traffic from Host1 to Host2, passing thru router. I run the efcbq
code on dev eth1. After that, i run "tc -s qdisc". For each of the class
(pfifo for EF; red for BE), there are parameters "drop" and "overlimit". For
the drop parameter, is it supposed to mean how many packets is drop by the
class. Eg: if i limit EF to be 3Mbps, and i send 4Mbps, shouldn't i supposed
to see some number in the drop parameter? But i only see zero for the drop
parameter. Another thing, for the paramter "sent 10000 packets" shown, does
it mean that i should also receive 10000 packets in Host2? I have packet
loss from router to Host2. So, in Host2 i do not get 10000 packets. Any
advice?
How do you guys graph in order to get statistics like delay and throughput?
Which software, at the router or Host2 side?
Thanks in advance.
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
_______________________________________________
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] 14+ messages in thread
* [LARTC] CBQ
2001-04-19 4:32 [LARTC] CBQ Tzeh Yeu Leang
@ 2001-06-29 12:41 ` Luiz C. Spies
2001-06-29 13:51 ` Wingtung.Leung
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: Luiz C. Spies @ 2001-06-29 12:41 UTC (permalink / raw)
To: lartc
Hi everyone, i use CBQ to limit my bandwidth and works, but sometimes when
the traffic is very hard, the CBQ generates delay, 2000 MS 3500MS and my
clients, don't have internet, because de delay is very hight this problem
have a solution, i try use redhat 7.1 with kernel 2.4.5 iptables nat and all
features i need to router firewall, and masquerade, the kernel works good the
squid to, but de CBQ not, i learn a little of CBQ and my CBQ are using TBF
module, i think is this module generate a delay if someone know the answer of
my problem, send to me the solution or the cause of delays....
Thank's
Luiz
_______________________________________________
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] 14+ messages in thread
* Re: [LARTC] CBQ
2001-04-19 4:32 [LARTC] CBQ Tzeh Yeu Leang
2001-06-29 12:41 ` Luiz C. Spies
@ 2001-06-29 13:51 ` Wingtung.Leung
2001-06-30 11:46 ` Wingtung.Leung
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: Wingtung.Leung @ 2001-06-29 13:51 UTC (permalink / raw)
To: lartc
On Fri, 29 Jun 2001, Luiz C. Spies wrote:
> Hi everyone, i use CBQ to limit my bandwidth and works, but sometimes when
> the traffic is very hard, the CBQ generates delay, 2000 MS 3500MS and my
> clients, don't have internet, because de delay is very hight this problem
> have a solution, i try use redhat 7.1 with kernel 2.4.5 iptables nat and all
> features i need to router firewall, and masquerade, the kernel works good the
> squid to, but de CBQ not, i learn a little of CBQ and my CBQ are using TBF
> module, i think is this module generate a delay if someone know the answer of
> my problem, send to me the solution or the cause of delays....
I think the high delay is normal because of your limit. What is your rate
limit? If your clients would try to push 10Mbit, but the limit is set to
100Kbit, you can expect to have the delay increased extremely.
Please try to explain your setup in more detail and tell what you really
want to achieve.
--
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] 14+ messages in thread
* Re: [LARTC] CBQ
2001-04-19 4:32 [LARTC] CBQ Tzeh Yeu Leang
2001-06-29 12:41 ` Luiz C. Spies
2001-06-29 13:51 ` Wingtung.Leung
@ 2001-06-30 11:46 ` Wingtung.Leung
2001-07-07 12:00 ` Khaled Eshah
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: Wingtung.Leung @ 2001-06-30 11:46 UTC (permalink / raw)
To: lartc
On Fri, 29 Jun 2001, Luiz C. Spies wrote:
> Ok i work in a ISP all my clients are company's ok? i put a server LINUX in
> my client's and i share INTERNET with IP MASQUERADE, but my clients user
> full bandwidth i need limit de internet traffic, ok? not the internal
> traffic, Internet TRaffic only uderstand??? please give a idea to resolv
> this problem, what you sugest??
(Please quote only relevant parts and type your message below the quote.)
The basic idea to solve it is to create two seperate classes, one for
internal traffic and the other one for internet traffic. If you need to
limit both downstream as upstream, you need to create those classes on
both your interfaces.
Then use the tc general filter to redirect the packets into the correct
class depending on the source or target address.
Please study the setup in the HOWTO and read through the mailing list
archive, there have been a few messages about masquerading + traffic
control in the last months.
--
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] 14+ messages in thread
* [LARTC] CBQ
2001-04-19 4:32 [LARTC] CBQ Tzeh Yeu Leang
` (2 preceding siblings ...)
2001-06-30 11:46 ` Wingtung.Leung
@ 2001-07-07 12:00 ` Khaled Eshah
2001-12-06 14:36 ` Alexandre M. Mello
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: Khaled Eshah @ 2001-07-07 12:00 UTC (permalink / raw)
To: lartc
Hi
Here is our problem :
______________
eth1 | | eth0
INTERNET--------| LINUX router |---------- LAN
|______________|
we want to allow our LAN users to use only 128Kbit (16KB/s) of our total bandwidth.
I'm using these rules to do that :
tc qdisc add dev eth0 root handle 10: cbq bandwidth 10Mbit avpkt 1000
tc class add dev eth0 parent 10:0 classid 10:200 cbq bandwidth 10Mbit rate 128Kbit allot 1514 weight 12Kbit prio 5 maxburst 20 avpkt 1000 bounded
tc qdisc add dev eth0 parent 10:200 sfq quantum 1514b perturb 15
tc filter add dev eth0 parent 10:0 rotocol ip prio 3 u32 match ip dst 192.168.1.0/24 flowid 10:200
but when I'm teting these rules by downloading some files to our LAN, The traffic always begins with a high traffic ~100KB/s for several seconds then the traffic dropped to the desired level 16KB/s
I also notice when I'm doing several ftp's the traffic exceeded the desired level by a liitle KB/s
How can resolve this ?
_______________________________________________
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] 14+ messages in thread
* [LARTC] CBQ
2001-04-19 4:32 [LARTC] CBQ Tzeh Yeu Leang
` (3 preceding siblings ...)
2001-07-07 12:00 ` Khaled Eshah
@ 2001-12-06 14:36 ` Alexandre M. Mello
2001-12-06 14:46 ` bert hubert
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: Alexandre M. Mello @ 2001-12-06 14:36 UTC (permalink / raw)
To: lartc
[-- Attachment #1: Type: text/plain, Size: 1363 bytes --]
I am a user of CBQ that have bean proving to be an excellent software for
traffic control, I am having a difficulty to implement the following case:
[INTERNET]
|
512
|
(eth1)
[computer 1](eth2)<<---(eth1)[computer2](eth0)<<--{B1}
(eth0) \\---- (eth1)[computer 3](eth0)<<--{B2}
{A} \\--- (eth1)[computer 4](eth0)<<--{B3}
\\-- (eth1)[computer 5](eth0)<<--{B4}
The computer with CBQ has 3 interfaces:
The eth1 is connected to the Internet in a 512k link
The eth0 is linked to a network(A):
- 10.0.0.0
The eth2 (10.0.1.1) is linked to the other network (B):
- 10.0.1.0
The network B possesses 4 computers (10.0.1.2, 10.0.1.3, 10.0.1.4,
10.0.1.5)
that sustain each one its own network respectively:
- (B1) 10.0.2.0
- (B2) 10.0.3.0
- (B3) 10.0.4.0
- (B4) 10.0.5.0
I would like to configure CBQ to balance the traffic in at the 5 networks
(A, B1, B2, B3 and B4) and still borrow the remaining band for the nets
that
are using.
For example, if the net B4 is alone in a certain moment, it will have a
512k
link, if the net B3 begin to use the Internet both they will have 256k and
if all begin, all will have 102k.
Thank you very much for your attention in reading this e-mail and for any
help that could give me.
Alexandre.
[-- Attachment #2: cbq.gif --]
[-- Type: application/octet-stream, Size: 9682 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [LARTC] CBQ
2001-04-19 4:32 [LARTC] CBQ Tzeh Yeu Leang
` (4 preceding siblings ...)
2001-12-06 14:36 ` Alexandre M. Mello
@ 2001-12-06 14:46 ` bert hubert
2003-01-17 9:11 ` Netrepreneurs
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: bert hubert @ 2001-12-06 14:46 UTC (permalink / raw)
To: lartc
On Thu, Dec 06, 2001 at 12:36:18PM -0200, Alexandre M. Mello wrote:
> I am a user of CBQ that have bean proving to be an excellent software for
> traffic control, I am having a difficulty to implement the following case:
I think you just resent your message. This is not the way to get more
attention.
> [INTERNET]
> |
> 512
> |
> (eth1)
> [computer 1](eth2)<<---(eth1)[computer2](eth0)<<--{B1}
> (eth0) \\---- (eth1)[computer 3](eth0)<<--{B2}
> {A} \\--- (eth1)[computer 4](eth0)<<--{B3}
> \\-- (eth1)[computer 5](eth0)<<--{B4}
(...)
> I would like to configure CBQ to balance the traffic in at the 5 networks
> (A, B1, B2, B3 and B4) and still borrow the remaining band for the nets
> that
> are using.
> For example, if the net B4 is alone in a certain moment, it will have a
> 512k
> link, if the net B3 begin to use the Internet both they will have 256k and
> if all begin, all will have 102k.
Define 'alone'. That is the hard part of your question, telling us exacly
what you want. Basically you want 2^5 configurations:
00000: nobody 'active'
00001: only B4 active
..
11111: everybody active
You need some kind of script to determine activity, and chose the right
configuration.
But do you really want this? I would suggest a HTB configuration whereby you
guarantee everybody 102K, and put the ceiling at 512kb. This way, all
bandwidth is available, but everbody gets a least 102kbit/s.
Regards,
bert
--
http://www.PowerDNS.com Versatile DNS Software & Services
Trilab The Technology People
Netherlabs BV / Rent-a-Nerd.nl - Nerd Available -
'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet
_______________________________________________
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] 14+ messages in thread
* [LARTC] CBQ
2001-04-19 4:32 [LARTC] CBQ Tzeh Yeu Leang
` (5 preceding siblings ...)
2001-12-06 14:46 ` bert hubert
@ 2003-01-17 9:11 ` Netrepreneurs
2003-01-18 14:04 ` Stef Coene
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: Netrepreneurs @ 2003-01-17 9:11 UTC (permalink / raw)
To: lartc
Hello
I have been trying to download CBQ but cant seem to
find a valid link. From what i know this is the right place
but i cant seem to get in to the ftp site are there any
other URL's that i can get it from?
ftp://ftp.equinox.gu.net/pub/linux/cbq/
All assistance is appreciated.
Glen Young
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [LARTC] CBQ
2001-04-19 4:32 [LARTC] CBQ Tzeh Yeu Leang
` (6 preceding siblings ...)
2003-01-17 9:11 ` Netrepreneurs
@ 2003-01-18 14:04 ` Stef Coene
2003-09-21 11:08 ` [LARTC] cbq Paras pradhan
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: Stef Coene @ 2003-01-18 14:04 UTC (permalink / raw)
To: lartc
On Friday 17 January 2003 10:11, Netrepreneurs wrote:
> Hello
>
> I have been trying to download CBQ but cant seem to
> find a valid link. From what i know this is the right place
> but i cant seem to get in to the ftp site are there any
> other URL's that i can get it from?
>
> ftp://ftp.equinox.gu.net/pub/linux/cbq/
>
> All assistance is appreciated.
Do you mean cbq.init ?
https://sourceforge.net/projects/cbqinit
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] 14+ messages in thread
* [LARTC] cbq
2001-04-19 4:32 [LARTC] CBQ Tzeh Yeu Leang
` (7 preceding siblings ...)
2003-01-18 14:04 ` Stef Coene
@ 2003-09-21 11:08 ` Paras pradhan
2003-09-22 18:22 ` Stef Coene
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: Paras pradhan @ 2003-09-21 11:08 UTC (permalink / raw)
To: lartc
hi :
On one of my severs i have a shoutcast audio streaming server running at
ports 8000 and 8001.
Now my cbq rule in my gateway is as:
DEVICE=eth1,100Mbit,10Mbit
BOUNDED=yes
ISOLATED=yes
PRIO=5
RATE=2Kbit
WEIGHT=2Kbit
RULE=:8000,x.x.x.3
RULE=:8001,x.x.x.3
--
Now my question is, do the ppl from internet cannot cross the limit 2Kbit
of my uplink.
What i want is: for example:
I don't want the streaming eat my uplink bandwidth more than 2Kbit.
What i have do?
Thanks
Paras pradhan
Systems Dept.
Bajranet PVT LTD
Kathmandu
Nepal.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [LARTC] cbq
2001-04-19 4:32 [LARTC] CBQ Tzeh Yeu Leang
` (8 preceding siblings ...)
2003-09-21 11:08 ` [LARTC] cbq Paras pradhan
@ 2003-09-22 18:22 ` Stef Coene
2004-10-01 12:35 ` James Lista
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: Stef Coene @ 2003-09-22 18:22 UTC (permalink / raw)
To: lartc
On Sunday 21 September 2003 12:50, Paras pradhan wrote:
> hi :
>
>
> On one of my severs i have a shoutcast audio streaming server running at
> ports 8000 and 8001.
>
> Now my cbq rule in my gateway is as:
>
> DEVICE=eth1,100Mbit,10Mbit
> BOUNDED=yes
> ISOLATED=yes
> PRIO=5
> RATE=2Kbit
> WEIGHT=2Kbit
> RULE=:8000,x.x.x.3
> RULE=:8001,x.x.x.3
>
> --
>
> Now my question is, do the ppl from internet cannot cross the limit 2Kbit
> of my uplink.
>
>
> What i want is: for example:
> I don't want the streaming eat my uplink bandwidth more than 2Kbit.
>
> What i have do?
2kbit is too low to shape. Is eth1 your uplink?
And you use the cbq.init script. This is not the mailing list for the
cbq.init script.
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 14+ messages in thread
* [LARTC] cbq
2001-04-19 4:32 [LARTC] CBQ Tzeh Yeu Leang
` (9 preceding siblings ...)
2003-09-22 18:22 ` Stef Coene
@ 2004-10-01 12:35 ` James Lista
2004-10-01 12:54 ` Marcin Sura
2004-10-01 23:15 ` zytek
12 siblings, 0 replies; 14+ messages in thread
From: James Lista @ 2004-10-01 12:35 UTC (permalink / raw)
To: lartc
buddies,
I am totally newbie to band control... I created a shell script that
generates cbq files like below (for example, someone in my lan with IP
172.16.7.72).
my question is: is the file name format and are the lines below right to
limit band for this one with this IP ?? ( I read cbq.ini 0.7.3.. and cannot
understand it well)..
thanks for you attention
----------------------------------------------------------------------------
--------------
----> cbq-072.out-72
DEVICE=eth0,10Mbit,1Mbit
RATE2kbit
WEIGHT=3Kbit
PRIO=5
RULE\x172.16.7.72/32,
BOUNDED=yes
ISOLATED=yes
----> cbq-072.in-72
DEVICE=eth1,10Mbit,1Mbit
RATE2kbit
WEIGHT=3Kbit
PRIO=5
RULE\x172.16.7.72/32
BOUNDED=yes
ISOLATED=yes
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [LARTC] cbq
2001-04-19 4:32 [LARTC] CBQ Tzeh Yeu Leang
` (10 preceding siblings ...)
2004-10-01 12:35 ` James Lista
@ 2004-10-01 12:54 ` Marcin Sura
2004-10-01 23:15 ` zytek
12 siblings, 0 replies; 14+ messages in thread
From: Marcin Sura @ 2004-10-01 12:54 UTC (permalink / raw)
To: lartc
Witam
Friday, October 1, 2004, 2:35:16 PM, you wrote:
> I am totally newbie to band control...
If you are newbie, then better focus on htb or hfsc. CBQ is very
unfriendly, specially for newbies :) (And that's a reason why i'm
using htb :) )
--
Pozdrawiam
Marcin, slacklist@op.pl
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [LARTC] cbq
2001-04-19 4:32 [LARTC] CBQ Tzeh Yeu Leang
` (11 preceding siblings ...)
2004-10-01 12:54 ` Marcin Sura
@ 2004-10-01 23:15 ` zytek
12 siblings, 0 replies; 14+ messages in thread
From: zytek @ 2004-10-01 23:15 UTC (permalink / raw)
To: lartc
Dnia pi±tek 01 pa¼dziernik 2004 14:35, James Lista napisa³:
[...]
remember, that when you are shaping traffic on your link to your ISP (host's
upload) then you cannot use it's IP because it has been already NATed.
try marking packets outgoing from this IP with iptables and then shape it
using MARK value in htb/cbq.init
--
.: Jakub G³azik (zytek)
.: email: zytek@ostrow-wlkp.net
.: JID: zytek@azazel.ostrow-wlkp.net
.: http://www.misiaj.sie.pl [obsolete]
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2004-10-01 23:15 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-19 4:32 [LARTC] CBQ Tzeh Yeu Leang
2001-06-29 12:41 ` Luiz C. Spies
2001-06-29 13:51 ` Wingtung.Leung
2001-06-30 11:46 ` Wingtung.Leung
2001-07-07 12:00 ` Khaled Eshah
2001-12-06 14:36 ` Alexandre M. Mello
2001-12-06 14:46 ` bert hubert
2003-01-17 9:11 ` Netrepreneurs
2003-01-18 14:04 ` Stef Coene
2003-09-21 11:08 ` [LARTC] cbq Paras pradhan
2003-09-22 18:22 ` Stef Coene
2004-10-01 12:35 ` James Lista
2004-10-01 12:54 ` Marcin Sura
2004-10-01 23:15 ` zytek
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.