All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jean-Francois Levesque <jfl@groupeiweb.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] 1 MBS per server Linux router
Date: Wed, 25 Jun 2003 18:53:28 +0000	[thread overview]
Message-ID: <marc-lartc-105656724212960@msgid-missing> (raw)
In-Reply-To: <marc-lartc-105656659812218@msgid-missing>

Hi!

I have done that script to test my router :


#include "fields.tc"
#include "ports.tc"
                                                                                                                                                            
#define INTERFACE  eth0
#define LIMITEDRATE 1kBps
                                                                                                                                                            
dev INTERFACE {
    egress {
                                                                                                                                                            
        /* In class selection path, the filters come first!  DSmark */
                                                                                                                                                            
        class ( <$AB10CL> )    if ip_dst = 10.1.1.10 || ip_src = 
10.1.1.10;
        class ( <$AB11CL> )    if ip_dst = 10.1.1.11 || ip_src = 
10.1.1.11;
        class ( <$AB12CL> )    if ip_dst = 10.1.1.12 || ip_src = 
10.1.1.12;
        class ( <$other> )  if 1 ;
                                                                                                                                                            
        /* section in which we configure the qdiscs and classes */
                                                                                                                                                            
        htb () {
            class ( rate 10kBps, ceil 10kBps ) {
                $AB10CL   = class ( rate LIMITEDRATE, ceil LIMITEDRATE ) 
{ sfq; } ;
                $AB11CL   = class ( rate LIMITEDRATE, ceil LIMITEDRATE ) 
{ sfq; } ;
                $AB12CL   = class ( rate LIMITEDRATE, ceil LIMITEDRATE ) 
{ sfq; } ;
                $other    = class ( rate 1kBps, ceil 1kBps ) { sfq; } ;
            }
        }
    }
}


I have plugged my machine behind the router but I see no difference when 
I download  :-(

What is wrong with that script?

If this is not working, I'll try wrr.

Thanks!

Jean-Francois


Trevor Warren wrote:

>Hello,
>
> If you just wanna reduce the b/w pipe per server wrr could be a
>simplistic implementation that would work.
>
> For real functionality see htb which works like a charm. For something
>more complex see cbq.
>
>Trevor
>  
>


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

  parent reply	other threads:[~2003-06-25 18:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-25  6:42 [LARTC] 1 MBS per server Linux router Trevor Warren
2003-06-25  7:12 ` Trevor Warren
2003-06-25 16:17 ` Jean-Francois Levesque
2003-06-25 18:53 ` Jean-Francois Levesque [this message]
2003-06-25 19:31 ` Jean-Francois Levesque

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=marc-lartc-105656724212960@msgid-missing \
    --to=jfl@groupeiweb.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.