OpenWrt Forum Archive

Topic: QoS only on specified WAN IP address(es)?

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

Hello.

I have the following situation here:

My ISP has a PPPoE WAN interface, and on that same WAN interface it has a big peering network, 10.0.0.0/8, spanning over multiple cities. My traffic to the big Internet is throttled to 3Mbit/s, and the traffic to the regional network is unlimited 100 Mbit/s, so I don't want any shaping/QoS on that traffic.

After playing a bit with iptables/mangle I realized that the actual shaping is done on the tc's side. But I don't know how to tell Nbd's QoS scripts to ignore some IP ranges then.

How do I should set up Nbd's QoS scripts for that to work?

PS. (and how the hell the ISP manages to get 100Mbit/s over PPPoE? That's a huge load on the backbone hardware, AFAIK. Wow!)

I don't know how to do it with anyones QoS scripts, but in general I can tell you that if you QoS, you always QoS everything.

So what if you can use 100mbit in the local network? Just make a global QoS and allocate a class for the nearly 100mbit (measure actual throughput if possible or use a moderate value please). If you got all traffic accounted for in your QoS tree, you can make sure, that a local 100mbit connection on the same interface as the 3mbit internet one, the local one does not choke the (much more important) internet bandwidth.

For example with HTB, you could have a 100mbit root class, a 3mbit internet child to that class, and a 97mbit local traffic class. That's the only way to actually guarantee the 3mbit window to the internet. And that's the way I did things when I had a file server running on the router as well, as to make sure that file server traffic (which could easily occupy 100% of the 100mbit available in the LAN) does not choke internet traffic (which was only 1mbit at the time and became unuseable when dominated by local traffic).

Oh...
I'm a newbie in QoS's wrapper, and am too lazy to set up a tc/tcng with my own hands. Maybe someone will pop up with a suggestion regarding this technique?

Anyway, I'm very glad to see the community responding that fast.
Will be trying to set up it in the meanwhile... but other solutions are always welcome...

The discussion might have continued from here.