All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Furniss <andy.furniss@dsl.pipex.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Too slow computer?
Date: Thu, 11 Aug 2005 16:10:44 +0000	[thread overview]
Message-ID: <42FB7884.3040502@dsl.pipex.com> (raw)
In-Reply-To: <20050809165318.29066.qmail@web32604.mail.mud.yahoo.com>

panca sorin wrote:
> Thanck you for your help!
> I noticed the ipset tools and I tried to use the
> CONNMARK but I don't know how to verify if bitwise
> manipulation works. The IP list is random and the
> router is an Athlon at 1200 MHz with 64 MB of SDRAM
> and a PIO mode 4 harddisk.
> After marking for destination, the packets are marked
> for priorization. I tried to use the dsmark and some
> ingress policing but I've faild to understand how they
> work. Also I'm in a hurry and I try to use what I know
> for now. Since I have to shape for two speeds, now
> I've discovered the --limit filter in iptables and I
> try to match packets based on their speeds.
> Each connected client has its own class on dev eth1.
> There are 38 clients now. On eth2 I shape based on
> connection ports. Audio/video, chat and interactive
> traffic (and connection control packets) have higher
> priority. Here are my script and configuration files
> (is best viewd unwraped with kwrite):

That's a big script - I haven't had time to read it properly and I'd 
still be likely to miss things :-)

Ingress policers won't work with fw if your kernel config has packet 
actions selected. If you don't it will work but only with marks set in 
prerouting.

Bitwise manipulation of normal marks should work for recent iptables 
just remember to use 0x as it uses decimal otherwise. If you want to 
test just make an empty match and look at the counters. So to set bit 2 
of the mark use --or-mark 0x2 instead of --set-mark.

I've never used ipset but it seems suited to what you need.

If you choose to use mark/connmark then you can get htb to treat marks 
like classify - you just put an empty fw on the root and have to make 
sure the marks have the major id in the top 16bits and you have a class 
for the minor.

Andy.

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

      parent reply	other threads:[~2005-08-11 16:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-09 16:53 [LARTC] Too slow computer? panca sorin
2005-08-09 17:12 ` Andreas Klauer
2005-08-09 17:46 ` Andy Furniss
2005-08-09 21:31 ` panca sorin
2005-08-11 16:10 ` Andy Furniss [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42FB7884.3040502@dsl.pipex.com \
    --to=andy.furniss@dsl.pipex.com \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.