From: Johan Cimen <c99jcn@cs.umu.se>
To: lartc@vger.kernel.org
Subject: [LARTC] forwarding in tcng
Date: Tue, 02 Dec 2003 20:02:09 +0000 [thread overview]
Message-ID: <marc-lartc-107039661212864@msgid-missing> (raw)
Hi!
I am learning tcng without having experiance of tc and I am trying to
build something that shall schedule traffic dependent on the value in the
IPv4 packets ip_ttl field.
I have read the tcng reference manual and cannot find information about
forwarding. Is it possible to farward packets from ingress to egress
without sending them upwards in layers?
NIC---->ingress---->forward----->egress---->
In ingress I do some metering and in egress: classifying and Queuing.
Example (basic part of the source):
#includes
#defines
dev eth1 {
$P = bucket(rate 1Mbps, burst 2kB, mpu 64B);
ingress {
class (<>)
if ((ip_ttl & 0x81) = 0x81) &&
(conform $p && count $P);
drop if 1;
}
egress {
class (<$high>) if (((ip_ttl & 0x1E) >> 1) <= 0x0F) &&
(((ip_ttl & 0x1E) >> 1) >= 0x0C);
class (<$mid>)....
class (<$low>)....
prio {
$high = class {fifo (limit 64kB);}
$mid = ...
$low = ...
}
}
}
If forwarding is not possible can I use hash table with tcindex to store
information at ingress, and use this information at egress?
Thanks!
/Johan. C
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next reply other threads:[~2003-12-02 20:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-02 20:02 Johan Cimen [this message]
2003-12-05 6:36 ` [LARTC] forwarding in tcng Martin A. Brown
2003-12-05 8:25 ` Johan Cimen
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-107039661212864@msgid-missing \
--to=c99jcn@cs.umu.se \
--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.