SQM per IP/client

Hello,

I have a OpenWRT router and I add one AP/router to have more than 20 wireless clients.

I have installed sqm and I am able to adjust the wan traffic in the AP. But now I want to limit the traffic per client/IP.

Is this possible?

The idea is to limit the WAN traffic to 50/20 mbps and each client/IP have maximun of 5/2 mbps.

I will appreciate your help.

Kind regards.

Take a look here: Bandwidth limit per IP/Mac

Maybe you can find something interesting.

Thanks,

The only thing that SQM offers is per internal IP fairness so that each active IP address get an equal share of the available capacity. That is with only one active machine it would get 50/20 with all 20 active each would only get 2.5/1, but it is rather rare for all machines to be active all of the time.

See the sing and dance section here if you want to try that. But again this is NOT exactly what you asked for and might not be acceptable for your requirements.

Thanks both for the replies.

I want to archive 2 things:

  1. The total bandwith not get more than 50/20 mbps: This is working configured in the WAN interface.
  2. All user have same priority, I don't want to have one massive user that could affect to other users, this is way I want to assign 5/2 mbps for IP. Maybe this is not necessary? By default the traffic is shared equal to all clients?

I am new with SQM, I see there is lot of tecnical reading about it.

I will appreciate any help.

Regards.

That is exactly the kind of guarantee SQM delivers if configured as described. It will try to serve each IP-address equitably, sharing capacity between nodes that actually require data. In theory that can be gamed if a user on a machine creates a lot of IP addresses, but while possible that is not terribly straight forward to implement. It mostly does the right thing with minimal configuration required.
But please note that making SQM/cake do this will cost you some CPU cycles, but for a 50/20 link most router's made in the last decade should be powerful enough.

Please do not hesitate to ask questions and also, if you try it, report your experience (bad or good) back to the list.

2 Likes