dslreports logo
    All Forums Hot Topics Gallery


how-to block ads

Search Topic:
share rss forum feed

Aptos, CA
reply to maxtor

Re: Bandwidth shaping only on port 80. Penalize heavy http.

Yeah, that's not typically what linux traffic shaping is going for.

How would your router know which user is which based on tcp/ip packets?

Also, note that you can't really shape/limit inbound traffic, only outbound traffic - you have no control over what the internet sends to you, unless you can get to whatever is upstream of you and shape it's outbound traffic - to your inbound side.

Here's a possible way to think about it (although this is not a solution, just something to maybe get you thinking...)

You could mark traffic from specific ip addresses on your network that you associate with various users (or at least various devices that belong to various users.)

Now, you can use the different marks you gave each of those packets to put those packets into different buckets.

From there, it's up to you to figure out how you want to divvy up your outbound pipe among them.
My place : »www.schettino.us


HI John,

Thanks for replying.
said by JohnInSJ:

How would your router know which user is which based on tcp/ip packets?

Wouldn't the linux routing / nat table maintain a list of connections. I think that's how ntop is able to detect the top talker ? And then we can inject a delay to the top talker after a certain threshold, or based on the top talker data delay the ack packets ? Well....something of that sort.

I agree with you totally traffic shaping on the outbound traffic. But still need some guidance.
Thanks a lot again.