OpenWrt Forum Archive

Topic: Need help for limiting bandwidth for a subnet mask

The content of this topic has been archived on 22 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello!

I'm coming from DDWRT and I had an ability to limit the bandwidth only for a whole subnet mask.
My previous setup on DDWRT was limiting the bandwidth for 192.168.1.1/25 and my DHCP pool was 192.168.1.2-192.168.1.126.
The bandwidth limitation for this subnet mask was 16000kbps(DOWN)/3500kbps(UP). My internet connection can go up to 20048kbps download and 4048kbps upload.

I don't find how to replicate the same thing on OpenWRT. Can someone help me?

Why I do this?
When someone of my family by downloading reach the maximum of my internet connection the ping goes high and playing online games is impossible.
This way only selected devices by me out of the subnet mask limited range can affect the ping.

(Last edited by unixfox on 24 Dec 2017, 01:15)

WWTK wrote:

have a peek at the sqm package and LEDE (a newer openwrt)

Unfortunately I can't do what I said with SQM.

I explain you in details what I want to do.
My main subnet mask is 192.168.1.1/24 with my routers and the others devices in my house.
My DHCP distribute only IPs from 192.168.1.2 to 192.168.1.126.
I want to only limit the bandwidth for the range from 192.168.1.2 to 192.168.1.126, a whole subnet mask of 192.168.1.1/25.
This way the others devices (192.168.1.127 to 192.168.1.254) will never be rate limited and I’ll set the IP of my devices to the range that it’s not rate limited. For example my personal computer will have this IP: 192.168.1.180.

I opened a thread on the LEDE forum (category "Network and Wireless Configuration"), I can't send you the link because I'm not allowed to paste links on this forum.

you don't need to do what you said with sqm it manages it all for you so everyone gets great speed without impacting gaming ping times.

its what is was created to do, but does need some tuning.

you could use qos with classes and get what you want but i think the dynamically flexible sqm is better

(Last edited by WWTK on 24 Dec 2017, 14:22)

WWTK wrote:

you don't need to do what you said with sqm it manages it all for you so everyone gets great speed without impacting gaming ping times.

its what is was created to do, but does need some tuning.

you could use qos with classes and get what you want but i think the dynamically flexible sqm is better

If I use SQM and follow the tutorial I will lose bandwidth because my ISP is letting me having more bandwidth than my line can offer and when someone download something at 20048kbps (MAX of the router) the ping goes really high like 300ms.
I found the values where the ping stay stable, at 16000kbps(DOWN)/3500kbps(UP).

In my scenario no bandwidth will be lost because only my devices (not the devices of my family) will be capable of using the maximum of the internet connection and thus affecting the ping when I don't play.

(Last edited by unixfox on 24 Dec 2017, 14:39)

it accounts for that and is talked about specifically in the tutorial.  SQM manages based on the tx and rx management queues not based on bw alone.  It is far more sophisticated.

As I said above, the qos package can manage bandwidth by assigning ip addresses to different classes giving you what you are asking for.

I live in a house where everyone is constantly streaming some kind of garbage from the internet, to the tune of over 2tb/mo and one user in the house is an avid online gamer who basically only plays mmo games on xbox and pc.  All I can tell you is after I started using sqm he stopped complaining and our overall internet experience for everyone is significantly better.

(Last edited by WWTK on 24 Dec 2017, 17:25)

Try putting SQM only on the ISP interface first.  This can be very effective and not need to limit users into different classes.

If you want to set up different classes of users I think you will need to put them into different networks and apply SQM at the network interface level.  Possibly there is a way to configure outside of luci-app-sqm to use IP ranges.

The discussion might have continued from here.