CBQ
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
Quoted 8 lines · Luiz C. Spies
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.
Signature · 7 lines
fingerprint = A3C4 DE50 712D 4FA8 C564 4D96 5E06 C9CC ECFA 19C5 _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
Quoted 5 lines · Luiz C. Spies
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.
Signature · 7 lines
fingerprint = A3C4 DE50 712D 4FA8 C564 4D96 5E06 C9CC ECFA 19C5 _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
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.
Quoted 2 lines · Alexandre M. Mello
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.
Quoted 9 lines
[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}
(...)
Quoted 9 lines
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
Signature · 8 lines
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 / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 10 lines · Netrepreneurs
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
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
In reply to Tzeh Yeu Leanghi :
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Re: [LARTC] cbq
In reply to Tzeh Yeu LeangQuoted 19 lines · Paras pradhan
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--
Quoted 8 lines
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
Signature · 8 lines
[email protected] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.openprojects.net _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
[LARTC] cbq
In reply to Tzeh Yeu Leangbuddies,
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
RULE2.16.7.72/32,
BOUNDED=yes
ISOLATED=yes
----> cbq-072.in-72
DEVICE=eth1,10Mbit,1Mbit
RATE2kbit
WEIGHT=3Kbit
PRIO=5
RULE2.16.7.72/32
BOUNDED=yes
ISOLATED=yes
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Re: [LARTC] cbq
In reply to Tzeh Yeu LeangWitam
Quoted 1 line · you
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 :) )
Signature · 6 lines
Pozdrawiam Marcin, [email protected] _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Re: [LARTC] cbq
In reply to Tzeh Yeu LeangDnia 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
Signature · 7 lines
.: Jakub G³azik (zytek) .: email: [email protected] .: JID: [email protected] .: http://www.misiaj.sie.pl [obsolete] _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/