rate limiting unknown number of hosts

From: sting
Date: Sat May 02 2009 - 04:52:17 EST



Is there a way to rate limit traffic incoming from each unique IP address that goes through an interface by a fixed rate when you don't know how many hosts lie on your subnet?

I know it doesn't make sense in theory, since usually you want to simply ensure the available throughput of an interface is shared fairly, rather than allocating a fixed amount of bandwdith to each host. But this is for network simulation purposes.

In theory, the behaviour I am looking for would be like a hybrid between the sfq and tbf qdiscs, but that recognizes individual source IPs instead of TCP/UDP conversations, and is able to limit the rate like the tbf.

Thank you.


--
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html