Hi All, I am fairly new to Linux and TC. I am currently implementing Bandwidth Management/Traffic Control for a gateway product which is based on Linux 2.4.18 kernel. I am required to implement some kind of a user based traffic control where each user(source IP) is allocated a fixed amount of bandwidth. I also need to do traffic shaping both for the eggress and ingress traffic. Going through LARTC documentation , I found that IMQ with HTB will suit my requirement. Is anybody using IMQ with HTB? Can HTB and IMQ work with 2.4.18 kernel? If so, where can i download all the patches? It is difficult for us to migrate to 2.4.20 kernel as most of the software has already been developed using 2.4.18 kernel. I really appreciate any help in this regard. Thanks, Hemanth --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more
On Monday 24 February 2003 20:24, hanumantha kavuluru wrote:> Hi All, > > I am fairly new to Linux and TC. I am currently implementing Bandwidth > Management/Traffic Control for a gateway product which is based on Linux > 2.4.18 kernel. I am required to implement some kind of a user based traffic > control where each user(source IP) is allocated a fixed amount of > bandwidth. I also need to do traffic shaping both for the eggress and > ingress traffic. Going through LARTC documentation , I found that IMQ with > HTB will suit my requirement. Is anybody using IMQ with HTB? Can HTB and > IMQ work with 2.4.18 kernel? If so, where can i download all the patches? > It is difficult for us to migrate to 2.4.20 kernel as most of the software > has already been developed using 2.4.18 kernel.http://luxik.cdi.cz/~patrick/imq/ http://luxik.cdi.cz/~devik/qos/htb/ And you don''t need imq. If you have a gateway, you can shape on both interface so you can control up- and download traffic. Just wondering, what kind of software do you developped so you can not use kernel 2.4.20 ?? 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/
Hi All, Thanks for the help. Stef, our product is already out in the market with 2.4.18 kernel. So if we change the kernel, we will have to go through a full QA cycle which is something we don''t want to do :). BTW, I would like to have global limits on the Bandwidth per user irrespective of which interface the traffic might go.Can i do this without using IMQ? Also i want to do my own classification by setting the skb->priority field with the appropriate class ID. Is it possible to use this kind of classification with IMQ and HTB? i really appreciate your help. Thanks, Hemanth Stef Coene <stef.coene@docum.org> wrote:On Monday 24 February 2003 20:24, hanumantha kavuluru wrote:> Hi All, > > I am fairly new to Linux and TC. I am currently implementing Bandwidth > Management/Traffic Control for a gateway product which is based on Linux > 2.4.18 kernel. I am required to implement some kind of a user based traffic > control where each user(source IP) is allocated a fixed amount of > bandwidth. I also need to do traffic shaping both for the eggress and > ingress traffic. Going through LARTC documentation , I found that IMQ with > HTB will suit my requirement. Is anybody using IMQ with HTB? Can HTB and > IMQ work with 2.4.18 kernel? If so, where can i download all the patches? > It is difficult for us to migrate to 2.4.20 kernel as most of the software > has already been developed using 2.4.18 kernel.http://luxik.cdi.cz/~patrick/imq/ http://luxik.cdi.cz/~devik/qos/htb/ And you don''t need imq. If you have a gateway, you can shape on both interface so you can control up- and download traffic. Just wondering, what kind of software do you developped so you can not use kernel 2.4.20 ?? 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/ --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more
On Monday 24 February 2003 21:19, hanumantha kavuluru wrote:> Hi All, > Thanks for the help. Stef, our product is already out in the market with > 2.4.18 kernel. So if we change the kernel, we will have to go through a > full QA cycle which is something we don''t want to do :).Ok> BTW, I would like > to have global limits on the Bandwidth per user irrespective of which > interface the traffic might go.Can i do this without using IMQ?So you want up + down = fixed bandwidth? Then you need IMQ.> Also i want > to do my own classification by setting the skb->priority field with the > appropriate class ID. Is it possible to use this kind of classification > with IMQ and HTB?I don''t know the internals of tc, but I think you can do. 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/
Stef, That is right. I want to do up+down = fixed bandwidth. Thanks for your help. Hemanth Stef Coene <stef.coene@docum.org> wrote:On Monday 24 February 2003 21:19, hanumantha kavuluru wrote:> Hi All, > Thanks for the help. Stef, our product is already out in the market with > 2.4.18 kernel. So if we change the kernel, we will have to go through a > full QA cycle which is something we don''t want to do :).Ok> BTW, I would like > to have global limits on the Bandwidth per user irrespective of which > interface the traffic might go.Can i do this without using IMQ?So you want up + down = fixed bandwidth? Then you need IMQ.> Also i want > to do my own classification by setting the skb->priority field with the > appropriate class ID. Is it possible to use this kind of classification > with IMQ and HTB?I don''t know the internals of tc, but I think you can do. 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/ --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more
Hi, There is no options at all to ''shape'' upload+download=fixed bandwidth without using IMQ virtual device ? So if somebody is planning to give customer fixed bandwidth regarless if a customer is ''uploading'' or ''downloading'',he (or she:) MUST use IMQ virtual device ? Anybody did some tests of configuring same traffic shaping with and without using IMQ device ? How IMQ device (kernel) will behave on heavy load traffic (like VoIP,gaming,other ''real-time'' traffic) comparing on mashine without using IMQ virtual device ? Does anybody did some test on using u32 filter and fw filter ? How does each one behave on same mashine,same kernel,same traffic shaping configuration ? f2zubac On Mon, 24 Feb 2003, Stef Coene wrote:> On Monday 24 February 2003 21:19, hanumantha kavuluru wrote: > > Hi All, > > Thanks for the help. Stef, our product is already out in the market with > > 2.4.18 kernel. So if we change the kernel, we will have to go through a > > full QA cycle which is something we don''t want to do :). > Ok > > > BTW, I would like > > to have global limits on the Bandwidth per user irrespective of which > > interface the traffic might go.Can i do this without using IMQ? > So you want up + down = fixed bandwidth? Then you need IMQ. > > > Also i want > > to do my own classification by setting the skb->priority field with the > > appropriate class ID. Is it possible to use this kind of classification > > with IMQ and HTB? > I don''t know the internals of tc, but I think you can do. > > 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/ >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Tuesday 25 February 2003 11:38, Dragan Zubac wrote:> Hi, > > There is no options at all to ''shape'' upload+download=fixed bandwidth > without using IMQ virtual device ?You can only control traffic that leaves an interface and you can''t combine 2 interfaces. But with the imq device, you can redirect whatever-you-want traffic to the 1 device. So you can redirect traffic that leaves eth0 and eth1 to the same device, you can combine both interfaces.> So if somebody is planning to give > customer fixed bandwidth regarless if a customer is ''uploading'' or > ''downloading'',he (or she:) MUST use IMQ virtual device ? Anybody did some > tests of configuring same traffic shaping with and without using IMQ > device ?No. But sometimes you need the imq device.> How IMQ device (kernel) will behave on heavy load traffic > (like VoIP,gaming,other ''real-time'' traffic) comparing on mashine without > using IMQ virtual device ?Good.> Does anybody did some test on using u32 filter and fw filter ? How does > each one behave on same mashine,same kernel,same traffic shaping > configuration ?As long as you don''t have more then 10^6 filter rules, you are fine :) You should be more worry about active classes. I once created 5000 active classes on a 486, 25Mhz, 8MB Ram and I was able to shape 10mbit without remarkable delays. 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/
Hi Stef i was going through this thread you mentioned if iam using this Linux box as a gateway, i dont required IMQ to control ingress and egress how can do with out IMQ, can you point me i have 2 interface eth0 and eth1 like to control bandwidth for my users both up and down thanks hare ----- Original Message ----- From: "Stef Coene" <stef.coene@docum.org> To: "hanumantha kavuluru" <hkavuluru@yahoo.com>; <lartc@mailman.ds9a.nl> Sent: Tuesday, February 25, 2003 1:12 AM Subject: Re: [LARTC] Need some help on HTB and IMQ> On Monday 24 February 2003 20:24, hanumantha kavuluru wrote: > > Hi All, > > > > I am fairly new to Linux and TC. I am currently implementing Bandwidth > > Management/Traffic Control for a gateway product which is based on Linux > > 2.4.18 kernel. I am required to implement some kind of a user basedtraffic> > control where each user(source IP) is allocated a fixed amount of > > bandwidth. I also need to do traffic shaping both for the eggress and > > ingress traffic. Going through LARTC documentation , I found that IMQwith> > HTB will suit my requirement. Is anybody using IMQ with HTB? Can HTB and > > IMQ work with 2.4.18 kernel? If so, where can i download all thepatches?> > It is difficult for us to migrate to 2.4.20 kernel as most of thesoftware> > has already been developed using 2.4.18 kernel. > http://luxik.cdi.cz/~patrick/imq/ > http://luxik.cdi.cz/~devik/qos/htb/ > And you don''t need imq. If you have a gateway, you can shape on both > interface so you can control up- and download traffic. > > Just wondering, what kind of software do you developped so you can not use > kernel 2.4.20 ?? > > 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/ >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
This question comes up pretty often. Conceptually, we can do it in two ways. 1. All outgoing traffic is shaped on the interface which is internet facing say eth0. Then the incoming traffic will go the LAN thro'' eth1. In this case shaping outgoing traffic on eth1 is nearly equivalent to shaping incoming traffic on eth0 ( assuming all traffic is for the LAN and not for the host). Another option to limit incoming traffic on eth0 is to use the ingress qdisc and police rates to a cap and shape the bandwidth utilised on eth1 to the LAN. In the case above, bandwidth is apportioned as incoming and outgoing separately. In the case of many ISPs, they would like to allocate bandwidth for incoming + outgoing instead of dividing what is allotted further between incoming and outgoing. In such a case, IMQ device is used. Shaping IMQ will shape the aggregated traffic of incoming+outgoing. Mohan -----Original Message----- From: lartc-admin@mailman.ds9a.nl [mailto:lartc-admin@mailman.ds9a.nl]On Behalf Of hare ram Sent: 04 March 2003 11:54 To: Stef Coene; lartc@mailman.ds9a.nl Subject: Re: [LARTC] Need some help on HTB and IMQ Hi Stef i was going through this thread you mentioned if iam using this Linux box as a gateway, i dont required IMQ to control ingress and egress how can do with out IMQ, can you point me i have 2 interface eth0 and eth1 like to control bandwidth for my users both up and down thanks hare ----- Original Message ----- From: "Stef Coene" <stef.coene@docum.org> To: "hanumantha kavuluru" <hkavuluru@yahoo.com>; <lartc@mailman.ds9a.nl> Sent: Tuesday, February 25, 2003 1:12 AM Subject: Re: [LARTC] Need some help on HTB and IMQ> On Monday 24 February 2003 20:24, hanumantha kavuluru wrote: > > Hi All, > > > > I am fairly new to Linux and TC. I am currently implementing Bandwidth > > Management/Traffic Control for a gateway product which is based on Linux > > 2.4.18 kernel. I am required to implement some kind of a user basedtraffic> > control where each user(source IP) is allocated a fixed amount of > > bandwidth. I also need to do traffic shaping both for the eggress and > > ingress traffic. Going through LARTC documentation , I found that IMQwith> > HTB will suit my requirement. Is anybody using IMQ with HTB? Can HTB and > > IMQ work with 2.4.18 kernel? If so, where can i download all thepatches?> > It is difficult for us to migrate to 2.4.20 kernel as most of thesoftware> > has already been developed using 2.4.18 kernel. > http://luxik.cdi.cz/~patrick/imq/ > http://luxik.cdi.cz/~devik/qos/htb/ > And you don''t need imq. If you have a gateway, you can shape on both > interface so you can control up- and download traffic. > > Just wondering, what kind of software do you developped so you can not use > kernel 2.4.20 ?? > > 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/ >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Hi Mohan thanks for the brief explanation... about the IMQ so when IMQ should be used when the both in/out traffic same ? like fixed ( 64kbps, irrespective of in and out) or like IN is less and OUT is more ? or IN more and OUT less ? ( like 32 up and 32 down or 16 up and 48 down) thanks hare ----- Original Message ----- From: "S Mohan" <smohan@vsnl.com> To: <lartc@mailman.ds9a.nl> Sent: Tuesday, March 04, 2003 11:57 AM Subject: RE: [LARTC] Need some help on HTB and IMQ> > This question comes up pretty often. Conceptually, we can do it in twoways.> > 1. All outgoing traffic is shaped on the interface which is internetfacing> say eth0. Then the incoming traffic will go the LAN thro'' eth1. In thiscase> shaping outgoing traffic on eth1 is nearly equivalent to shaping incoming > traffic on eth0 ( assuming all traffic is for the LAN and not for thehost).> Another option to limit incoming traffic on eth0 is to use the ingressqdisc> and police rates to a cap and shape the bandwidth utilised on eth1 to the > LAN. > > In the case above, bandwidth is apportioned as incoming and outgoing > separately. In the case of many ISPs, they would like to allocatebandwidth> for incoming + outgoing instead of dividing what is allotted furtherbetween> incoming and outgoing. > > In such a case, IMQ device is used. Shaping IMQ will shape the aggregated > traffic of incoming+outgoing. > > Mohan > -----Original Message----- > From: lartc-admin@mailman.ds9a.nl [mailto:lartc-admin@mailman.ds9a.nl]On > Behalf Of hare ram > Sent: 04 March 2003 11:54 > To: Stef Coene; lartc@mailman.ds9a.nl > Subject: Re: [LARTC] Need some help on HTB and IMQ > > > Hi Stef > > i was going through this thread > you mentioned if iam using this Linux box as a gateway, > i dont required IMQ to control ingress and egress > > how can do with out IMQ, can you point me > > i have 2 interface eth0 and eth1 > like to control bandwidth for my users > both up and down > > thanks > hare > ----- Original Message ----- > From: "Stef Coene" <stef.coene@docum.org> > To: "hanumantha kavuluru" <hkavuluru@yahoo.com>; <lartc@mailman.ds9a.nl> > Sent: Tuesday, February 25, 2003 1:12 AM > Subject: Re: [LARTC] Need some help on HTB and IMQ > > > > On Monday 24 February 2003 20:24, hanumantha kavuluru wrote: > > > Hi All, > > > > > > I am fairly new to Linux and TC. I am currently implementing Bandwidth > > > Management/Traffic Control for a gateway product which is based onLinux> > > 2.4.18 kernel. I am required to implement some kind of a user based > traffic > > > control where each user(source IP) is allocated a fixed amount of > > > bandwidth. I also need to do traffic shaping both for the eggress and > > > ingress traffic. Going through LARTC documentation , I found that IMQ > with > > > HTB will suit my requirement. Is anybody using IMQ with HTB? Can HTBand> > > IMQ work with 2.4.18 kernel? If so, where can i download all the > patches? > > > It is difficult for us to migrate to 2.4.20 kernel as most of the > software > > > has already been developed using 2.4.18 kernel. > > http://luxik.cdi.cz/~patrick/imq/ > > http://luxik.cdi.cz/~devik/qos/htb/ > > And you don''t need imq. If you have a gateway, you can shape on both > > interface so you can control up- and download traffic. > > > > Just wondering, what kind of software do you developped so you can notuse> > kernel 2.4.20 ?? > > > > 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/ > > > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Hare, : i was going through this thread you mentioned if iam using this Linux : box as a gateway, i dont required IMQ to control ingress and egress how : can do with out IMQ, can you point me : : i have 2 interface eth0 and eth1 like to control bandwidth for my users : both up and down Since the router can only shape traffic it sends, you can shape your outbound (upload) traffic on your Internet connected interface, and you can shape your inbound (download) traffic on the internal interface as you transmit to your internal network. Another way to shape the download bandwidth is to use policing or ingress filters with IMQ. http://linux-ip.net/htb-script As Mohan explained, traffic control can delay packets already received from the Internet before sending them to the internal network application, thus simulating a user-specified download bandwidth. Similarly, upload bandwidth can be controlled/shaped by delaying packets bound for the Internet before sending them up to the gateway. By the way, Stef is on vacation this week. I believe he said he''d be skiing. Good luck, -Martin P.S. I''m thinking of changing my name to "A-router-can-only-shape-the- traffic-it-sends." I forgot this *again* when I was writing this script. Maybe then I''d remember! -- Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Hi tthanks, if the IMQ used, then if its keep queing the packets and send and receive. how about the performance, if like 2000 users or more connection. and latency of the box hare ----- Original Message ----- From: "Martin A. Brown" <mabrown-lartc@securepipe.com> To: "hare ram" <hareram@sol.net.in> Cc: <lartc@mailman.ds9a.nl> Sent: Tuesday, March 04, 2003 2:03 PM Subject: Re: [LARTC] Need some help on HTB and IMQ> > Hare, > > : i was going through this thread you mentioned if iam using this Linux > : box as a gateway, i dont required IMQ to control ingress and egress how > : can do with out IMQ, can you point me > : > : i have 2 interface eth0 and eth1 like to control bandwidth for my users > : both up and down > > Since the router can only shape traffic it sends, you can shape your > outbound (upload) traffic on your Internet connected interface, and you > can shape your inbound (download) traffic on the internal interface as you > transmit to your internal network. Another way to shape the download > bandwidth is to use policing or ingress filters with IMQ. > > http://linux-ip.net/htb-script > > As Mohan explained, traffic control can delay packets already received > from the Internet before sending them to the internal network application, > thus simulating a user-specified download bandwidth. Similarly, upload > bandwidth can be controlled/shaped by delaying packets bound for the > Internet before sending them up to the gateway. > > By the way, Stef is on vacation this week. I believe he said he''d be > skiing. > > Good luck, > > -Martin > > P.S. I''m thinking of changing my name to "A-router-can-only-shape-the- > traffic-it-sends." I forgot this *again* when I was writing this > script. Maybe then I''d remember! > > -- > Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com > >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/