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
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
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
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 ?