converging the flow

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx

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


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux