All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] converging the flow
@ 2004-06-28  9:41 Hideaki Nemoto
  2004-06-28 22:43 ` Francesco Del Degan
  2004-06-29  7:11 ` Hideaki Nemoto
  0 siblings, 2 replies; 3+ messages in thread
From: Hideaki Nemoto @ 2004-06-28  9:41 UTC (permalink / raw)
  To: lartc

Hi everyone,

I had a question about linux qos using the tc command.
I'm sorry if I'm mailing to the wrong list. I'd appreciate
any redirection to the right one.

What I want to do is to converge several flows.
Is this possible with Linux ?I only found examples that fan out,
like the tree structure.
And was wondering if it's possible to converge it.

I'll show what I tried to do, in the drawing below.
And the script, half way done.

          many flows here
                -------
              +-O O O O -
              | -------  \  +---------+    only 3output queues
              | -------   \ |         |           -------
              +-O O O O ----|         |         +-O O O O(EF)
input  filter | -------     |         |         | -------
---   +-----+ | -------     |         | +-----+ | -------
O O --| u32 |-+-O O O O ----|scheduler|-| u32 |-+-O O O O(AF1)
---   +-----+ | -------     |         | +-----+ | -------
              | -------     |         |         | -------
              +-O O O O ----|         |         +-O O O O(AF2)
              | -------   / |         |           -------
              | -------  /  +---------+
              +-O O O O -
                -------


# HTB qdisc
$ /sbin/tc qdisc add dev eth0 handle 1: root htb

# HTB classes
$ /sbin/tc class add dev eth0 parent 1:1 classid 1:11 \
			htb rate 3Mbit burst 1000 prio 1

$ /sbin/tc class add dev eth0 parent 1:2 classid 1:12 \
			htb rate 4Mbit burst 2000 prio 2
...
...
(say there's N classes, m priorities)

$ /sbin/tc class add dev eth0 parent 1:3 classid 1:N \
			htb rate 4Mbit burst 3000 prio m

# Filters
$ /sbin/tc filter add dev eth0 parent 1: protocol ip \
                u32 match ip src 192.168.10.10 \
                match ip dst 192.168.0.1 \
                match ip dport 5001 0xff \
                classid 1:1

$ /sbin/tc filter add dev eth0 parent 1: protocol ip \
                u32 match ip src 192.168.10.10 \
                match ip dst 192.168.0.1 \
                match ip dport 5002 0xff \
                classid 1:2

$ /sbin/tc filter add dev eth0 parent 1: protocol ip \
                u32 match ip src 192.168.10.10 \
                match ip dst 192.168.0.1 \
                match ip dport 5003 0xff \
                classid 1:3

I want to define another 3 QUEUES after this, and make all the
flows converge into those 3 QUEUES.
Would anyone please give me a clue, or an answer to this ?

Thanks in advance,
Hideaki

-----
Hideaki Nemoto

NTT Software Corporation
Network Service Solution Business Group
Network Appliance Business Unit

TEL:+81 045-212-7391
FAX:+81 045-212-7397
Email:nemo-h@po.ntts.co.jp

_______________________________________________
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:[~2004-06-29  7:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-28  9:41 [LARTC] converging the flow Hideaki Nemoto
2004-06-28 22:43 ` Francesco Del Degan
2004-06-29  7:11 ` Hideaki Nemoto

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.