OpenWrt Forum Archive

Topic: question about qos

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

Hi all
I'm a newbie on Qos.

I want to use qos to balance my bandwidth, but I found it make my p2p download too slow.
If I turn qos off, my mldonkey will get a 100+ kB/s, but once I turn it on, it will slow down right away.

I think during idle time, p2p will get a max speed, isn't it?
How can I improve this.

PS: I install the default qos-scripts via ipkg
Thanks!!

(Last edited by hayate on 27 Oct 2007, 21:21)

need I change the upload option to a higher value.
my line limit is DL: 128KB/s UL: 60KB/s
What is the proper value for them?
Thanks

If you haven't already done so, check /etc/config/qos

Thanks
I set option download to 1200  upload to 600
seems better

And also QoS can be configured using UCI. Basic QoS configuration looks like this:

1. Install qos-scripts package via ipkg

ipkg install qos-scripts

2. Set the speed of your upload and download link (in KB) via UCI

uci set qos.wan.upload=460
uci set qos.wan.download=6000
uci commit qos

3. Enable QoS at boot and start it

/etc/init.d/qos enable
/etc/init.d/qos start

4. With the qos-stat command you can check if QoS is working.

(Last edited by forum2006 on 28 Oct 2007, 10:32)

@forum2006
Hi,
I follow your guide, but when I set upload to 50, and download to 140, it says
HFSC: Service Curve has two zero slopes
HFSC: Illegal "ls"
RTNETLINK answers: Invalid argument

my bandwidth is 1Mbit, so I think my speed be at most 128KByte/s.
so what the above errors means?

many thanks

I am pretty sure the configuration values are in kilobits per second and not kilobytes, so you should be using 1024 or so for download. Your errors might indicate that the script cannot deal with such low values as you have specified?

I use 1024 and 512 qos settings for my 1 Mbit/512 Kbit ADSL service.

The discussion might have continued from here.