# Bandwidth limit by consumption

**URL:** <https://forum.openwrt.org/t/bandwidth-limit-by-consumption/149180>\
**Category:** Network and Wireless Configuration\
**Created:** [January 23, 2023, 1:42am UTC](https://forum.openwrt.org/t/bandwidth-limit-by-consumption/149180 "2023-01-23T01:42:37Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![EvDiegoth](https://forum.openwrt.org/letter_avatar/evdiegoth/32/6_449c533f586939b6e5f246632a46421f.png) [@EvDiegoth](https://forum.openwrt.org/u/EvDiegoth)\
**Post date:** [January 23, 2023, 1:42am UTC](https://forum.openwrt.org/t/bandwidth-limit-by-consumption/149180/1 "2023-01-23T01:42:37Z")

</div>

Hi guys! Im new here.  
Im looking for a solution to limit the bandwidth by consumption. My wish is that the .1/24 device consumes 35mbps/5mpbs (down/up), the .2/24 device 70mbps/15mbps and so on. I am going to buy an Archer C6 or C80 at the end of the month (as my wallet can) and I am observing that the TP Link firmware no longer has this function like years ago.

Please I need help. Thanks for reading me.

PD: This week an ISP is going to install 300mbps/30mbps for me. I will finally put aside my obsolete 10mbps hahaha

---

<div class="post-metadata">

**Author:** ![slh](https://forum.openwrt.org/user_avatar/forum.openwrt.org/slh/32/113591_2.png) [@slh](https://forum.openwrt.org/u/slh)\
**Post date:** [January 23, 2023, 2:18am UTC](https://forum.openwrt.org/t/bandwidth-limit-by-consumption/149180/2 "2023-01-23T02:18:38Z")

</div>

What investigations did you make about your desired hardware?

> [@EvDiegoth](#):
>
> Archer C6

Depending on the hardware revision, this device will not even route 300 MBit/s without any kind of QoS[0] or hit a brick wall with sqm/cake around 200-250 MBit/s at most[1].

> [@EvDiegoth](#):
>
> Archer […] C80

What does the [ToH](https://openwrt.org/toh/start) say about this device[2]?

With 300/30 MBit/s **and** QoS, you should have a good read at[4]:

> [@So you have 500Mbps-1Gbps fiber and need a router READ THIS FIRST](https://forum.openwrt.org/t/so-you-have-500mbps-1gbps-fiber-and-need-a-router-read-this-first/90305):
>
> It's such a frequently asked question over the last few years that we really need a post we can point people to. So your cable company rolled out 500Mbps or 1Gbps download speeds, or you have 1Gbps symmetric fiber (GPON/EPON) from ATT or Centurylink or Orange or whoever. You realize your old all in one router from 2009 is not up to the task of handling this, but hey by now stuff should be cheap and available that will handle your new fiber connection right? So you want advice about a router for…

While I can understand where you're coming from, this

> [@EvDiegoth](#):
>
> My wish is that the .1/24 device consumes 35mbps/5mpbs (down/up), the .2/24 device 70mbps/15mbps and so on.

is not quite what you're looking for either, nor easy to implement.

--   
[0] QCA9563 in rev 1.x, 2.x  
[1] mt7621a in rev 3.x  
[2] Hint, it isn't supported - and never will be. Unsupported SOC and not meeting bare minimum system requirements.  
[3] mt7622bv, filogic 820/ 830 and ipq8072a+ would probably cope with that, but without much of margin for future speed increases; details will have to be tested.

---

<div class="post-metadata">

**Author:** ![eduperez](https://forum.openwrt.org/user_avatar/forum.openwrt.org/eduperez/32/2066_2.png) [@eduperez](https://forum.openwrt.org/u/eduperez)\
**Post date:** [January 23, 2023, 7:14am UTC](https://forum.openwrt.org/t/bandwidth-limit-by-consumption/149180/3 "2023-01-23T07:14:18Z")

</div>

> [@EvDiegoth](#):
>
> PD: This week an ISP is going to install 300mbps/30mbps for me. I will finally put aside my obsolete 10mbps hahaha

This looks to me like a solution looking for a problem... Wait until you have the new speeds available, and use some QOS to distribute traffic evenly among your devices. Then, if you still have issues with traffic, look for a solution to your actual problems.

---

<div class="post-metadata">

**Author:** ![moeller0](https://forum.openwrt.org/user_avatar/forum.openwrt.org/moeller0/32/1591_2.png) [@moeller0](https://forum.openwrt.org/u/moeller0)\
**Post date:** [January 23, 2023, 7:38am UTC](https://forum.openwrt.org/t/bandwidth-limit-by-consumption/149180/4 "2023-01-23T07:38:50Z")

</div>

> [@EvDiegoth](#):
>
> My wish is that the .1/24 device consumes 35mbps/5mpbs (down/up), the .2/24 device 70mbps/15mbps and so on. I am going to buy an Archer C6 or C80 at the end of the month (as my wallet can) and I am observing that the TP Link firmware no longer has this function like years ago.

I think nft-qos allows per device limits if you really require that. However as @eduperez indicates sqm-scripts with cake can be configured to equitably share your link capacity among all active machines in your internal network.  
So .1/24 will get 100% of capacity if nothing else wants to use the network and say .2/24 also has greedy flows, both machines will get 50% of capacity. If one host actually does not use its 'fair' share of capacity that capacity is given to those flows that can use that capacity.  
Unlike your desired 'fixed configurable' limits per Internal IP address this 'equitable sharing' model works without the need to manually configure rates for each host. Often that solves most of what people want to use per-device limits for, for those cases it does not, one traditionally needs to built one's own hierarchical traffic-shaper tree with a leaf shaper for each device needing special limits. Nft-qos approximates this, but I have never used it myself, so all I can recommend there to google it....

---

<div class="post-metadata">

**Author:** ![RuralRoots](https://forum.openwrt.org/letter_avatar/ruralroots/32/6_449c533f586939b6e5f246632a46421f.png) [@RuralRoots](https://forum.openwrt.org/u/RuralRoots)\
**Post date:** [January 23, 2023, 12:03pm UTC](https://forum.openwrt.org/t/bandwidth-limit-by-consumption/149180/5 "2023-01-23T12:03:10Z")

</div>

> [@EvDiegoth](#):
>
> Im looking for a solution to limit the bandwidth by consumption. My wish is that the .1/24 device consumes 35mbps/5mpbs (down/up), the .2/24 device 70mbps/15mbps and so on.

Might be worth a look - [Migrating from Gargoyle - Bandwidth Management](https://forum.openwrt.org/t/migrating-from-gargoyle-bandwidth-management/135872/1)

---

<div class="post-metadata">

**Author:** ![EvDiegoth](https://forum.openwrt.org/letter_avatar/evdiegoth/32/6_449c533f586939b6e5f246632a46421f.png) [@EvDiegoth](https://forum.openwrt.org/u/EvDiegoth)\
**Post date:** [January 25, 2023, 12:43pm UTC](https://forum.openwrt.org/t/bandwidth-limit-by-consumption/149180/6 "2023-01-25T12:43:11Z")

</div>

(post deleted by author)

---

<div class="post-metadata">

**Author:** ![EvDiegoth](https://forum.openwrt.org/letter_avatar/evdiegoth/32/6_449c533f586939b6e5f246632a46421f.png) [@EvDiegoth](https://forum.openwrt.org/u/EvDiegoth)\
**Post date:** [January 25, 2023, 12:43pm UTC](https://forum.openwrt.org/t/bandwidth-limit-by-consumption/149180/7 "2023-01-25T12:43:47Z")

</div>

(post deleted by author)

---

<div class="post-metadata">

**Author:** ![EvDiegoth](https://forum.openwrt.org/letter_avatar/evdiegoth/32/6_449c533f586939b6e5f246632a46421f.png) [@EvDiegoth](https://forum.openwrt.org/u/EvDiegoth)\
**Post date:** [January 25, 2023, 12:52pm UTC](https://forum.openwrt.org/t/bandwidth-limit-by-consumption/149180/8 "2023-01-25T12:52:15Z")

</div>

I have been talking about limiting the download and upload speed.  
I can't put a link because it tells me it's an ad and it considers me spam 🙄.

I will put a reference image:

 ![image-20220222111815-3_20220222032445y](https://forum.openwrt.org/uploads/default/original/3X/d/f/df04064e0ce2212c3f513dc078f7ab768029b0a1.jpeg)

---

<div class="post-metadata">

**Author:** ![EvDiegoth](https://forum.openwrt.org/letter_avatar/evdiegoth/32/6_449c533f586939b6e5f246632a46421f.png) [@EvDiegoth](https://forum.openwrt.org/u/EvDiegoth)\
**Post date:** [January 25, 2023, 12:53pm UTC](https://forum.openwrt.org/t/bandwidth-limit-by-consumption/149180/9 "2023-01-25T12:53:39Z")

</div>

I was talking about this (see image). Perhaps I have not been clear with my text.

 ![image-20220222111815-3_20220222032445y](https://forum.openwrt.org/uploads/default/original/3X/d/f/df04064e0ce2212c3f513dc078f7ab768029b0a1.jpeg)

---

<div class="post-metadata">

**Author:** ![EvDiegoth](https://forum.openwrt.org/letter_avatar/evdiegoth/32/6_449c533f586939b6e5f246632a46421f.png) [@EvDiegoth](https://forum.openwrt.org/u/EvDiegoth)\
**Post date:** [January 25, 2023, 12:54pm UTC](https://forum.openwrt.org/t/bandwidth-limit-by-consumption/149180/10 "2023-01-25T12:54:40Z")

</div>

Please look at the picture. I was talking about this.

 ![image-20220222111815-3_20220222032445y](https://forum.openwrt.org/uploads/default/original/3X/d/f/df04064e0ce2212c3f513dc078f7ab768029b0a1.jpeg)

---

<div class="post-metadata">

**Author:** ![moeller0](https://forum.openwrt.org/user_avatar/forum.openwrt.org/moeller0/32/1591_2.png) [@moeller0](https://forum.openwrt.org/u/moeller0)\
**Post date:** [January 25, 2023, 1:11pm UTC](https://forum.openwrt.org/t/bandwidth-limit-by-consumption/149180/11 "2023-01-25T13:11:09Z")

</div>

Oh, I understood your request, all I wanted to say is that if you are not explicitly requiring fixed limits per device, then cake's per-internal-IP-fairness mode might offer something that is already useful, if only as a stop-gap measure while you research/test finer-grained control measures.  
As I mentioned, in the past, a number of people (certainly not all) asking similar questions actually found that per-internal-IP-fairness was good enough for their use-cases.

BTW, 1/0.2Mbps is pretty harsh for even "web browsing", as it turns out that up to 10-20 Mbps increasing the access rate actually helps in reducing page loading times (reducing access latency always helps). But that is a different issue.

---

<div class="post-metadata">

**Author:** ![eduperez](https://forum.openwrt.org/user_avatar/forum.openwrt.org/eduperez/32/2066_2.png) [@eduperez](https://forum.openwrt.org/u/eduperez)\
**Post date:** [January 26, 2023, 10:39pm UTC](https://forum.openwrt.org/t/bandwidth-limit-by-consumption/149180/12 "2023-01-26T22:39:53Z")

</div>

Yes, your message was clear; perhaps mine wasn't: you want to fix a problem that only exists in your imagination.

Your ISP still hasn't installed the new line, and you still have not tried a simple SQM configuration; however, you seem to think that you need to have strict rues on how to distribute traffic.

---

<div class="post-metadata">

**Author:** ![EvDiegoth](https://forum.openwrt.org/letter_avatar/evdiegoth/32/6_449c533f586939b6e5f246632a46421f.png) [@EvDiegoth](https://forum.openwrt.org/u/EvDiegoth)\
**Post date:** [January 27, 2023, 1:40pm UTC](https://forum.openwrt.org/t/bandwidth-limit-by-consumption/149180/13 "2023-01-27T13:40:50Z")

</div>

Good morning Sir.  
Let me make a few things clear.  
It is true that at the moment my knowledge in networks is of a "beginner" level (I am not ashamed to say it). But one thing is my "academic" level and another thing is that I create "imaginary problems".  
I came to this forum of this important firmware to seek guidance if I can perform some functions of commercial brands of router models "N".  
I understand that you infinitely surpass my networking knowledge but it would be good if you avoid having the arrogance to know what someone else wants or that you know their life.  
I send you greetings and thank you very much for your response. It is not necessary to answer me again. I have already understood you with your attitude.

PD: Sorry for my bad english too.

---

<div class="post-metadata">

**Author:** ![moeller0](https://forum.openwrt.org/user_avatar/forum.openwrt.org/moeller0/32/1591_2.png) [@moeller0](https://forum.openwrt.org/u/moeller0)\
**Post date:** [January 27, 2023, 1:54pm UTC](https://forum.openwrt.org/t/bandwidth-limit-by-consumption/149180/14 "2023-01-27T13:54:57Z")

</div>

Please chill a bit. This is a volunteer forum, no one owes you a response, let a lone a response that solves your problem. The best way to deal with responses you deem unhelpful is to politely ignore them.

> **click at own risk....**
>
> Now, @eduperez actually brings up an important question, what do you want to achieve with the bandwidth limit? Because there might be different way to achieve your higher level goal.

---

<div class="post-metadata">

**Author:** ![EvDiegoth](https://forum.openwrt.org/letter_avatar/evdiegoth/32/6_449c533f586939b6e5f246632a46421f.png) [@EvDiegoth](https://forum.openwrt.org/u/EvDiegoth)\
**Post date:** [January 27, 2023, 3:18pm UTC](https://forum.openwrt.org/t/bandwidth-limit-by-consumption/149180/15 "2023-01-27T15:18:02Z")

</div>

Good morning, sir.  
Yes, I am relaxed. Maybe he didn't use the right words. I also know that no one is obliged to give me a 100% accurate answer or possible ways of solution.  
I understand that I am going to have 300mbps which is awesome. The problem is that there are three of us in this house that are going to pay for the service and we really want to limit the speed (plus there are kids).  
So, for example the idea is:  
Person1: 100mbps/10mbps (down/up)  
Person2: 100/10  
Person3: 50/5  
child1: 25/2  
child2: 25/2

Yes, I also know that I will not have 100% of my ISP contract. They are just round numbers.

Anyway, I find it very curious that a function of N routers, old hardware, is so difficult to do on new equipment and "current" hardware.

Thank you very much for reading.

---

<div class="post-metadata">

**Author:** ![moeller0](https://forum.openwrt.org/user_avatar/forum.openwrt.org/moeller0/32/1591_2.png) [@moeller0](https://forum.openwrt.org/u/moeller0)\
**Post date:** [January 27, 2023, 4:41pm UTC](https://forum.openwrt.org/t/bandwidth-limit-by-consumption/149180/16 "2023-01-27T16:41:34Z")

</div>

> [@EvDiegoth](#):
>
> Maybe he didn't use the right words.

It often takes two to tango, so maybe consider whether did your best trying to defuse/deescalate the situation? In the end this looks more like a misunderstandig of 'tone'.

> [@EvDiegoth](#):
>
> The problem is that there are three of us in this house that are going to pay for the service and we really want to limit the speed (plus there are kids).

well, split the cost in three and use cake's per IP fairness... and you solved most of the challenge. Or read up on how to implement your own hierarchical traffic shaper tree to implement the strict sharing regime you described.

> [@EvDiegoth](#):
>
> Anyway, I find it very curious that a function of N routers, old hardware, is so difficult to do on new equipment and "current" hardware.

Well have you tried nft-qos already and found it lacking? Or if you want ISP-grade configuration capabilities search for libreqos on github... (which requires beefy hardware to run on and is not something to run on OpenWrt....  
That stock OpenWrt does not offer something like this out of the box just seems to imply that most users get by without such a feature...

---

<div class="post-metadata">

**Author:** ![eduperez](https://forum.openwrt.org/user_avatar/forum.openwrt.org/eduperez/32/2066_2.png) [@eduperez](https://forum.openwrt.org/u/eduperez)\
**Post date:** [January 31, 2023, 8:50am UTC](https://forum.openwrt.org/t/bandwidth-limit-by-consumption/149180/17 "2023-01-31T08:50:20Z")

</div>

So, do you want to limit the bandwidth, per device (as you stated on your first post)? or per person (as you stated on your last post)? Because (I guess) one person might have several devices (a laptop plus a phone, for example), and a device might have several owners (a TV in a common area, for example). Guests pose another challenge: whose bandwidth do they consume? How easily do you need to enroll their devices?

Depending on your answer, we will go down one rabbit hole or another.
