LARTC
[Top] [All Lists]

Re: [LARTC] Incoming traffic

To: mohican 542003 <thelastmohican54@gmail.com>
Subject: Re: [LARTC] Incoming traffic
From: Andy Furniss <lists@andyfurniss.entadsl.com>
Date: Wed, 04 Apr 2007 21:40:24 +0100
Cc: lartc@mailman.ds9a.nl
Delivered-to: sp-com-lists@consult.net
Delivered-to: lartc-list@securepoint.com
Delivered-to: lartc@outpost.ds9a.nl
In-reply-to: <519f77360704040009l150a36b2p69b6baa253a34f4b@mail.gmail.com>
List-archive: <http://mailman.ds9a.nl/pipermail/lartc>
List-help: <mailto:lartc-request@mailman.ds9a.nl?subject=help>
List-id: "Mailinglist of the Linux Advanced Routing &amp; Traffic Control project" <lartc.mailman.ds9a.nl>
List-post: <mailto:lartc@mailman.ds9a.nl>
List-subscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=subscribe>
List-unsubscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=unsubscribe>
References: <519f77360702270831v2dd01e3bu6af6c75de50d96eb@mail.gmail.com> <4612B03E.7060500@andyfurniss.entadsl.com> <519f77360704040009l150a36b2p69b6baa253a34f4b@mail.gmail.com>
Reply-to: lists@andyfurniss.entadsl.com
Sender: lartc-bounces@mailman.ds9a.nl
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.7.13) Gecko/20060417
mohican 542003 wrote:
Hello,

I would like that .2 and .4 share 10mbit and .3 and .5 share 20 mbit.

I finally use tcindex that works fine. u32 can only be used with one IP,
and iptables cannot mark packet for incoming traffic.

Do you have another suggestion ?

There are things called shared meters - though I think that name is a bit misleading as to their usefullness.

You can use them to make policers from different matches behave as one, so it is possible to do as you want - it won't be a fair share though.

The iptables issue is because the place policers hook changed - on 2.4s and if you config your kernel the right way (don't select packet action, and then select the old/depreciated policer) it will see packets after iptables prerouting, the default on 2.6s is to hook before netfilter.

Andy.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

<Prev in Thread] Current Thread [Next in Thread>