Traffic shaping issue



Hi!

I administrate a small network - about 20 users, connection downstream
1Mbit/s on DSL. Recently, people started to compain about poor internet
speed. I beleive that some of them use p2p programs all the time and
this is the cause...

I wonder how can I achieve fair connection sharing between all users,
since simple FIFO algorithm doesn't do well here - one who sends more
packets/opens more connections - gets more of available bandwidth. What
I want to do, is something like this:

root (eth)
|
+ (match ip 192.168.1.1) \
+ (match ip 192.168.1.2) | RR alghorithm
+ (match ip 192.168.1.3) /
......

The packets addressed to specific IPs should get into appropriate
classes/queues and then should be dequeued in a round-robin fashion. I
think that this is a goog solution because I don't want to limit the
transfer rate for individual users but on the other hand I need a fair
queuing.

My question is - how to achieve that using tc?
(note: I've already read Traffic-Control-HOWTO;)

Thanks in advance

--
golem

.