All of lore.kernel.org
 help / color / mirror / Atom feed
From: raptor <raptor@tvskat.net>
To: lartc@vger.kernel.org
Subject: [LARTC] [tcng] example
Date: Thu, 20 Feb 2003 08:32:38 +0000	[thread overview]
Message-ID: <marc-lartc-104572995707793@msgid-missing> (raw)

hi,
i would like to use just one interface to shape/police traffic, lets have following config :


users -----[eth1]==[eth0]------ Internet


what I think to do is :

$m1 = SLB(cir 20kbps, cbs 10kB);

dev eth1 {
 
ingress{
	class(<$i1>) if ip_dst = 192.168.0.5 && SLB_else_drop($m1);
	class(<$i2>) if ip_dst = 192.168.0.5 && SLB_else_drop($m1);
	drop if 1;
}
egress {
	class(<$c1>) if ip_dst = 192.168.0.5;
	class(<$c2>) if ip_dst = 192.168.0.6;
	 ......
	drop if 1;

	htb() {
		$c1 = class(rate 20kbps, rq2 1) {sfq;};
		$c2 = class(rate 100kbps, rq2 10) {sfq;};
	}
}
}


My main question is about INGRESS.. I see in the docs there is many other metering primitives and can't find which one is better to use.. From what I know it is not possible to shape traffic on ingress interface..
What about this instead of SLB:

	$m1 = bucket(rate 20kbps, burst 10kB);

	class(<$i1>) if ip_dst = 192.168.0.5 && conform $m1;

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

                 reply	other threads:[~2003-02-20  8:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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-104572995707793@msgid-missing \
    --to=raptor@tvskat.net \
    --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.