[LARTC] htb ceiling

2002-04-04 Thread Gavin

Hello,

I'm using HTB (through htb.init :) and it's nearly perfect, but the CEIL
directive seems to have no effect.

The relevant lines are:

tc qdisc add dev eth1 root handle 1 htb default 10 r2q 100
tc class add dev eth1 parent 1: classid 1:2 htb rate 5Mbit burst 15k
tc class add dev eth1 parent 1:2 classid 1:40 htb rate 256Kbit ceil 512Kbit
burst 15k
tc qdisc add dev eth1 parent 1:40 handle 40 sfq perturb 10
tc filter add dev eth1 parent 1:0 protocol ip prio 100 u32 match ip dst
10.0.0.2 classid 1:40

 - this allows 10.0.0.2 to download at 256Kbit, even when it is the only
machine doing any downloading.  I can affect this speed by changing the
$rate, but changing $ceil has no effect whatsoever.

Platform:
RH7.2, 2.4.9-31 (patched for htb)
tc patched for htb
iproute2-ss001007 (Tried the patch for htb, but compilation failed with
/usr/include/arpa/inet.h:74: warning: data definition has no type or storage
class
/usr/include/arpa/inet.h:78: parse error before `__net'
)

Is there something wrong with the above commands?

Thanks,

Gavin

http://www.raha.com

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



[LARTC] QOS

2002-04-04 Thread George Tsuladze

i want to priorize UDP on  eth0 internal and eth1 external interfaces.
which command i have to use? can u write me an example?

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



Re: [LARTC] New IMQ device available

2002-04-04 Thread Julián Muñoz


>  - Ingress support (egress qdiscs can be used for ingress traffic control!)

Ehh, I can't believe it !!
Yahgo

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



Re: [LARTC] New IMQ device available

2002-04-04 Thread Patrick McHardy

Oops, forgot to reply to the list.

On Thu, 4 Apr 2002, Martin Devera wrote:

> Also why there are four imqs ? I can't find way how to
> direct packet to partiticular one 

The IMQ iptables target has an option --todev to specify
to which imq device a packet should go. if it's not specified
it defaults to 0.

Bye Patrick

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



Re: [LARTC] New IMQ device available

2002-04-04 Thread Martin Devera

good work ;) Please change Devara=>Devera .. I also
changed original page http://luxik.cdi.cz/~devik/qos/imq.htm
to mention your new one at beginning.

Also why there are four imqs ? I can't find way how to
direct packet to partiticular one 
devik

On Thu, 4 Apr 2002, Patrick McHardy wrote:

> Hi!
> 
> I've completed a pre-release of the new IMQ device.
> Changes include:
>  - Multiple IMQ devices
>  - Selection of what gets queued to which device is done using an iptables
>target, nothing gets queued be default
>  - Ingress support (egress qdiscs can be used for ingress traffic control!)
>  - Possible to build as a module
> 
> Sources and somewhat confuse instructions can be found at 
>http://luxik.cdi.cz/~patrick/imq .
> 
> Bye,
> Patrick
> 
> ___
> 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] typo ?

2002-04-04 Thread Soulfly

"Mihai RUSU" wrote

> Hi
>
> While reading the HOWTO (pdf downloaded and printed last night) I have
> noticed a little strange thing. In the 9.2.1 chapter, explaining the
> pfifo_fast qdisc, it is shown a TOS field mapping table and also it
> appears a command line version:
>
> "The last column shows the result of the default priomap. On the
> commandline, the default priomap looks like this:
> 1, 2, 2, 2, 1, 2, 0, 0 , 1, 1, 1, 1, 1, 1, 1, 1
>
> This means that priority 4, for example, gets mapped to band number 1. The
> priomap also allows you to list higher priorities (> 7) which do not
> correspond to TOS mappings, but which are set by other means."
>
> The numbers on the command line version are 16, thus I presume its a one
> to one corespondation to the table, only that it is completly different. I
> dont see any explanation why it is like that. Shouldnt that be:
> 1,2,1,1,2,2,2,2,0,0,0,0,1,1,1,1 ?
>
> Thanks
>
> 
> Mihai RUSU
>

nope. Try the following:

# tc qdisc del dev eth0 root
# tc qdisc add dev eth0 root handle 1: prio
# tc -s qdisc ls dev eth0
qdisc prio 1: bands 3 priomap  1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
 Sent 455336 bytes 1237 pkts (dropped 0, overlimits 0)

which is the default priomap on the commandline. The one you mention is the
priomap in the kernel for pfifo_fast.

I usually set the priomap manually to get the latter priomap. example:
tc qdisc add dev eth0 root handle 1: prio bands 4 priomap 2 3 2 2 3 3 3 3 1
1 1 1 2 2 2 2
(which is the kernels default + 1, here I use the 0 band for very important
traffic which goes above the TOS-field.)

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



[LARTC] New IMQ device available

2002-04-04 Thread Patrick McHardy

Hi!

I've completed a pre-release of the new IMQ device.
Changes include:
 - Multiple IMQ devices
 - Selection of what gets queued to which device is done using an iptables
   target, nothing gets queued be default
 - Ingress support (egress qdiscs can be used for ingress traffic control!)
 - Possible to build as a module

Sources and somewhat confuse instructions can be found at 
http://luxik.cdi.cz/~patrick/imq .

Bye,
Patrick

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



Re: [LARTC] bandwidth allocation

2002-04-04 Thread Vincent AE Scott

Julián Muñoz([EMAIL PROTECTED])@Thu, Apr 04, 2002 at 01:14:44PM +:
> On Thu, 4 Apr 2002, Vincent AE Scott wrote:
> 
> > i have no experience with the products you mention, but there was a
> > comparsion made recently on this list between PIX and linux advanaced
> > routing features.  The archives are located here:
> >
> >  http://mailman.ds9a.nl/pipermail/lartc/
> 
> I doesn't find nothing about this on the archive (searching "cisco",
> "pix", or "comparison"). I what month could it be ?

oops.  i think i might be suffering from list overload.  maybe it was on
the netfilter list.  just checked, i never kept a copy, but it was
within the last couple of weeks.

sorry 'bout that.


-- 
PGP key:  http://codex.net/pgp/pgp.asc

 2 + 2 = 5 for extremely large values of 2. 

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



Re: [LARTC] bandwidth allocation

2002-04-04 Thread Julián Muñoz

On Thu, 4 Apr 2002, Vincent AE Scott wrote:

> i have no experience with the products you mention, but there was a
> comparsion made recently on this list between PIX and linux advanaced
> routing features.  The archives are located here:
>
>  http://mailman.ds9a.nl/pipermail/lartc/

I doesn't find nothing about this on the archive (searching "cisco",
"pix", or "comparison"). I what month could it be ?


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



Re: [LARTC] bandwidth allocation

2002-04-04 Thread Vincent AE Scott

simbo adeyemi([EMAIL PROTECTED])@Thu, Apr 04, 2002 at 10:30:48AM -0800:
> 
> pls, i'd like to perform traffic shapping and bandwidth allocation on my
> linux server.
> I want to be able to do everything that a device like packeteer
>  floodgate's)and cisco's PIX would do.
> I am using linux redhat v 6.2.
> How do i go about this?

i am no expert, but i reckon a good starting point would be:
 
 http://www.lartc.org/HOWTO//cvs/2.4routing/output/2.4routing.html
 http://lartc.org/docbook-html/

i have no experience with the products you mention, but there was a
comparsion made recently on this list between PIX and linux advanaced
routing features.  The archives are located here:

 http://mailman.ds9a.nl/pipermail/lartc/

HTH,
-vince

-- 
PGP key:  http://codex.net/pgp/pgp.asc

 Smash forehead on keyboard to continue... 

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



[LARTC] bandwidth allocation

2002-04-04 Thread simbo adeyemi


pls, i'd like to perform traffic shapping and bandwidth allocation on my
linux server.
I want to be able to do everything that a device like packeteer
 floodgate's)and cisco's PIX would do.
I am using linux redhat v 6.2.
How do i go about this?

lara

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