Re: [LARTC] Need some help on HTB and IMQ

2003-03-04 Thread hare ram
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" <[EMAIL PROTECTED]>
To: "hare ram" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
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. --- [EMAIL PROTECTED]
>
>

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] Need some help on HTB and IMQ

2003-03-04 Thread Martin A. Brown

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. --- [EMAIL PROTECTED]

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] Need some help on HTB and IMQ

2003-03-03 Thread hare ram
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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of hare ram
> Sent: 04 March 2003 11:54
> To: Stef Coene; [EMAIL PROTECTED]
> 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" <[EMAIL PROTECTED]>
> To: "hanumantha kavuluru" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> 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 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
> >
> > --
> >
> > [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 mailing list / [EMAIL PROTECTED]
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
> ___
> LARTC mailing list / [EMAIL PROTECTED]
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


RE: [LARTC] Need some help on HTB and IMQ

2003-03-03 Thread S Mohan

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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of hare ram
Sent: 04 March 2003 11:54
To: Stef Coene; [EMAIL PROTECTED]
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" <[EMAIL PROTECTED]>
To: "hanumantha kavuluru" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
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 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
>
> --
>
> [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 mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] Need some help on HTB and IMQ

2003-03-03 Thread hare ram
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" <[EMAIL PROTECTED]>
To: "hanumantha kavuluru" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
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 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
>
> --
>
> [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 mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] Need some help on HTB and IMQ

2003-02-25 Thread Stef Coene
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

-- 

[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/


Re: [LARTC] Need some help on HTB and IMQ

2003-02-25 Thread Dragan Zubac

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
> 
> -- 
> 
> [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 mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] Need some help on HTB and IMQ

2003-02-24 Thread hanumantha kavuluru
Stef,
That is right. I want to do up+down = fixed bandwidth. Thanks for your help.
Hemanth
 Stef Coene <[EMAIL PROTECTED]> 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-- [EMAIL PROTECTED]"Using Linux as band
 width 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/Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, and more

Re: [LARTC] Need some help on HTB and IMQ

2003-02-24 Thread Stef Coene
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

-- 

[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/


Re: [LARTC] Need some help on HTB and IMQ

2003-02-24 Thread hanumantha kavuluru
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 <[EMAIL PROTECTED]> 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-- [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/Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, and more

Re: [LARTC] Need some help on HTB and IMQ

2003-02-24 Thread Stef Coene
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

-- 

[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] Need some help on HTB and IMQ

2003-02-24 Thread hanumantha kavuluru
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