Re: [LARTC] New Qdisc - How to

2004-05-21 Thread Stephen Hemminger
On Thu, 20 May 2004 20:08:31 +0200
Andreas Klauer <[EMAIL PROTECTED]> wrote:

> Am Thursday 20 May 2004 19:04 schrieb Ricardo Leite:
> > - Put the new qdisc routine "sch_ric.c" into the directory
> > "/usr/src/linux/net/sched/" ,
> > - Insert a new line on the file "/net/sched/Makefile",
> > - Insert a new line on the file "/net/sched/Config.in",
> > - Insert a new line on the file "/include/linux/pkt_sched.h",
> > - Insert a new line on the file "/net/sched/sch_api.c"
> 
> That's the kernel part.
> 
> > tc qdisc add dev eth0 root bric limit 10
> >
> > the kernel (or the tc command) couldn't find the the bric qdisc.
> 
> I haven't read the source, but I assume - seeing how tc needs to be patched 
> in order to support HTB - that you need to add support for your scheduler 
> to the tc program itself too.

Actually, the tc program supports adding disciplines w/o recompiling. 
Haven't tried it, but it looks for a shared library called q_XXX.so
(where XXX is the new queue name).  The shared object needs to define
a struct qdisc_util that defines the new disciplines handles.
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] fwmark / MARK / --set-mark syntax never run on my system!Search step by step help.

2004-05-21 Thread Holger
Thanks for the comments!

Sorry, I`m a technical study on a school and newcomer in linux routing, but
I have a project to shaping multiple dual DSL line at school.

The LARTC multiple providers makes the job very well, but I must try control
the traffic per ports (port80 oder port21 and so on).

I have made the changes:

__

#!/bin/bash -x

echo "1"
iptables -t mangle -I FORWARD -p tcp -d 0/0 --dport 80 -j MARK --set-mark 2

echo "2"
echo "201 T1" >> /etc/iproute2/rt_tables

echo "3"
ip rule add fwmark 2 lookup T1

echo "4"
ip route add default via 192.168.21.2 dev eth1 table T1

echo "5"
ip route flush cache

__

but the old FWMARK-problem:

debian:~# sh portroute
1
2
3
RTNETLINK answers: Invalid argument
4
5



I search the problem until this time in kernel options, but I never find a
fwmark-option or modul.
I use Debian Woody or Debian on 2.4.26 Kernel.

Thanks very, very much, Holger





- Original Message -
From: Artūras Šlajus <[EMAIL PROTECTED]>
To: Holger <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, May 21, 2004 12:33 PM
Subject: Re: [LARTC] fwmark / MARK / --set-mark syntax never run on my
system!Search step by step help.


> Holger wrote:
> > Hello!
> >
> > This arguments never run on my system, but I need this:
> >
> >
> > #!/bin/bash -x
> >
> > echo "1"
> > iptables -t mangle -p tcp -d 0/0 --dport 80 -j MARK --set-mark 2
> To what chain this rule goes? Probably FORWARD
> iptables -t mangle -I FORWARD -p tcp -d 0/0 --dport 80 -j MARK --set-mark
2
>
> > echo "2"
> > echo "201 T1" >> /etc/iproute2/rt_tables
> >
> > echo "3"
> > ip rule add fwmark 2 table T1
> ip rule add fwmark 2 lookup T1
>
> > echo "4"
> > ip route add default via 192.168.21.2 dev eth1 table T1
> You probably still have old route
>
> > When you know what is wrong, please send a step by step tutorial or
> > personal in german at my e-mail addy.
> I think it's lame to be admin and ask step by step tutorials
> Afterall, what is your head meant for?
>
> > Thank you very much.
> You're welcome.
>

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


[LARTC] Parametre of performance of HTB class

2004-05-21 Thread derbel hajer
Hi,
I developed diffserv architecture by using the features of tc of iproute2. I used for the management of the bandwidth in the core router the Qdisc HTB. I have defines for every class of service a class HTB.
 
My purpose is to calculate the various parameters of performance (bandwidth used , rate of loss …) for every class HTB.
 
Which tool I chosen to make the calculation of these parameters.
 
Thanks in advance for your helps.
 
		
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
Créez votre Yahoo! Mail

Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !

Re: [LARTC] fwmark / MARK / --set-mark syntax never run on my system! Search step by step help.

2004-05-21 Thread Artūras Šlajus
Holger wrote:
Hello!
 
This arguments never run on my system, but I need this:
 
 
#!/bin/bash -x
 
echo "1"
iptables -t mangle -p tcp -d 0/0 --dport 80 -j MARK --set-mark 2
To what chain this rule goes? Probably FORWARD
iptables -t mangle -I FORWARD -p tcp -d 0/0 --dport 80 -j MARK --set-mark 2
echo "2"
echo "201 T1" >> /etc/iproute2/rt_tables
 
echo "3"
ip rule add fwmark 2 table T1
ip rule add fwmark 2 lookup T1
echo "4"
ip route add default via 192.168.21.2 dev eth1 table T1
You probably still have old route
When you know what is wrong, please send a step by step tutorial or 
personal in german at my e-mail addy.
I think it's lame to be admin and ask step by step tutorials
Afterall, what is your head meant for?
Thank you very much.
You're welcome.
begin:vcard
fn;quoted-printable:Art=C5=ABras =C5=A0lajus
n;quoted-printable;quoted-printable:=C5=A0lajus;Art=C5=ABras
email;internet:[EMAIL PROTECTED]
tel;cell:+37068958733
x-mozilla-html:FALSE
url:http://h2o.sky.lt/
version:2.1
end:vcard



Re: [LARTC] iproute2 updates, anybody ?

2004-05-21 Thread Stef Coene
On Thursday 20 May 2004 20:52, Damjan wrote:
> The latest iproute2 software on its site ftp://ftp.inr.ac.ru/ip-routing/
> is from 2002 iproute2-2.4.7-now-ss020116-try and even that is marked
> with "try" ... since then we've seen a lot of patches for it, some
> solving bugs some adding support for HTB, esfq, hfsc, wirr etc.
>
> I think, someone mentioned on this list that he has collected all the
> patches and updates for iproute2 ... but then my HDD died and I couldn't
> find anything on Google... so ... is there a more recent iproute2
> release?
I don't think there is an official new tc release.
But you are right, it's time for a new tc release.  There are some new qdiscs 
and bug fixes.  I also think it's best if we change the way tc uses bits and 
bytes.  But this can breaks custom scripts.
Maybe it's time to collect the tc patches and send them to Alexey Kuznetsov.

Stef

-- 
[EMAIL PROTECTED]
Â"Using Linux as bandwidth manager"
  Âhttp://www.docum.org/
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] HTB MPU

2004-05-21 Thread syrius . ml

[...]
> I've just noticed that there is a patch on devik's site which does mpu
> and overhead.
> For dsl users mpu is, for practical purposes going to be 106 -
> overhead is still variable though, depending on packet size.
> Having these should let you push upstream bandwidth rates a bit closer
> to the limit.

Hmm now I'm trying to use HFSC, I'd love to see a similar feature with
HFSC :)

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


[LARTC] fwmark / MARK / --set-mark syntax never run on my system! Search step by step help.

2004-05-21 Thread Holger



Hello!
 
This arguments never run on my system, but I need 
this:
 
 
#!/bin/bash -x
 
echo "1"iptables -t mangle -p tcp -d 0/0 
--dport 80 -j MARK --set-mark 2
 
echo "2"echo "201 T1" >> 
/etc/iproute2/rt_tables
 
echo "3"ip rule add fwmark 2 table 
T1
 
echo "4"ip route add default via 192.168.21.2 
dev eth1 table T1
 
echo "5"ip route flush cache
 
Errors:
 
debian:~# sh portroute1iptables v1.2.6a: no 
command specifiedTry `iptables -h' or 'iptables --help' for more 
information.23RTNETLINK answers: Invalid argument4RTNETLINK 
answers: File exists5
 
When you know what is wrong, please send a step by 
step tutorial or personal in german at my e-mail addy.
 
Thank you very much.