OpenWrt Forum Archive

Topic: QoS - badnwidth limit works on wan but not lan ?

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

Hi,
I'm playing with the QoS to limit the download bandwidth on "lan_public" lan.

First I tried to limiting the bandwidth every using the default qos config file  /etc/config/qos  and it works fine.

INTERFACES:
config interface wan
       option classgroup  "Default"
       option enabled      1
       option overhead     1
       option upload       128
       option download     1024
       ....

With QoS disabled I have my 20Mbps download, if I enable the QoS it drops correctly to 1Mbps

Now, instead of applying this setting to the "wan" interface, I would like to apply it to my public vlan called "lan_public" in /etc/init.d/network. I tried simply replacing the interface option in the qos config:

INTERFACES:
config interface lan_public
       option classgroup  "Default"
       option enabled      1
       option overhead     1
       option upload       128
       option download     1024
       ....

In this case, when I enable the QoS, the bandwidth drops to ... 15KB/s !?

First of all, is this the correct approach ? If yes, what am I doing wrong ?

Thanks for your kind help.

cheers wink
Tex

(Last edited by Tex-Twil on 1 Jul 2008, 17:56)

15k x 8 = 120 change the values or swap the values 128 and 1024 for upload and download. I might be rectified
norms

normunds wrote:

15k x 8 = 120 change the values or swap the values 128 and 1024 for upload and download. I might be rectified
norms

I don't really get what you mean. 15KB/s = 15x8 Kbps = 120 Kbps. Ok but this is far from being the 1024Kbps specified.

Tex

oh now I know what you mean. It looks like the "upload" and "download" are realative to the opewrt system:


option upload -> upload from the lan interface to a lan host = download for the host
option download -> download to the lan interface from a lan host = upload for the host

so I set:

config interface lan_public
    option classgroup  "Default"
    option enabled      1
    option overhead     1
    option upload       1024
    option download     512

and this actually works wink

It was working for the wan cos the wan interface is on the "other side" so a download for a wan = download for a lan host smile

thanks,
Tex

(Last edited by Tex-Twil on 1 Jul 2008, 18:11)

The discussion might have continued from here.