All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] forwarding in tcng
@ 2003-12-02 20:02 Johan Cimen
  2003-12-05  6:36 ` Martin A. Brown
  2003-12-05  8:25 ` Johan Cimen
  0 siblings, 2 replies; 3+ messages in thread
From: Johan Cimen @ 2003-12-02 20:02 UTC (permalink / raw)
  To: lartc

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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-12-05  8:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-02 20:02 [LARTC] forwarding in tcng Johan Cimen
2003-12-05  6:36 ` Martin A. Brown
2003-12-05  8:25 ` Johan Cimen

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.