OpenWrt Forum Archive

Topic: limiting downloads speed with wshaper

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

Hi my neighbour has let me share its connection but I don't want to use all his bandwidth so I want to limit mine to 2 mb download and 512 upload
i have installed wshaper and edit uplink and downlink speeds but result is still the same

My setup on a wr740nd router with barrier braker  I connected to his network then I created my own wifi called casa for my house

I am confused as which interface should wshaper use I tried wwan lan w0 but still the same 10mb downloads 1mb upload

This is config for wshaper now

BARRIER BREAKER (14.07, r42625)
-----------------------------------------------------
  * 1/2 oz Galliano         Pour all ingredients into
  * 4 oz cold Coffee        an irish coffee mug filled
  * 1 1/2 oz Dark Rum       with crushed ice. Stir.
  * 2 tsp. Creme de Cacao
-----------------------------------------------------
root@OpenWrt:~# uci show wshaper
wshaper.settings=wshaper
wshaper.settings.upink=512
wshaper.settings.downlink=128
wshaper.settings.network=w0
root@OpenWrt:~#



I enclose screenshots of my setup

http://i.imgur.com/Vi1CIPl.png

http://i.imgur.com/In0n6i0.png

(Last edited by robi62 on 14 Oct 2015, 11:33)

Hi robie62,

robi62 wrote:

Hi my neighbour has let me share its connection but I don't want to use all his bandwidth so I want to limit mine to 2 mb download and 512 upload
i have installed wshaper and edit uplink and downlink speeds but result is still the same

My setup on a wr740nd router with barrier braker  I connected to his network then I created my own wifi called casa for my house

I am confused as which interface should wshaper use I tried wwan lan w0 but still the same 10mb downloads 1mb upload

This is config for wshaper now

BARRIER BREAKER (14.07, r42625)
-----------------------------------------------------
  * 1/2 oz Galliano         Pour all ingredients into
  * 4 oz cold Coffee        an irish coffee mug filled
  * 1 1/2 oz Dark Rum       with crushed ice. Stir.
  * 2 tsp. Creme de Cacao
-----------------------------------------------------
root@OpenWrt:~# uci show wshaper
wshaper.settings=wshaper
wshaper.settings.upink=512
wshaper.settings.downlink=128
wshaper.settings.network=w0
root@OpenWrt:~#



I enclose screenshots of my setup

http://i.imgur.com/Vi1CIPl.png

http://i.imgur.com/In0n6i0.png


Unfortunately, I will not be able to help you with wonder shaper, but I would recommend you install and use the sqm-scripts and luci-app-sqm packages instead. They should work better than shaper (shaper, for example does not work at all for IPv6). Also in case of problems I might be able to help out a bit...

Best Regards
        M.

moeller0 wrote:

Hi robie62,


Unfortunately, I will not be able to help you with wonder shaper, but I would recommend you install and use the sqm-scripts and luci-app-sqm packages instead. They should work better than shaper (shaper, for example does not work at all for IPv6). Also in case of problems I might be able to help out a bit...

Best Regards
        M.

Hi could not find the app in barrier breaker but i installed the scripts

this is config file what should i do
root@OpenWrt:~# uci show sqm
sqm.eth1=queue
sqm.eth1.enabled=0
sqm.eth1.interface=eth1
sqm.eth1.download=85000
sqm.eth1.upload=10000
sqm.eth1.qdisc=fq_codel
sqm.eth1.script=simple.qos
sqm.eth1.qdisc_advanced=0
sqm.eth1.ingress_ecn=ECN
sqm.eth1.egress_ecn=NOECN
sqm.eth1.qdisc_really_really_advanced=0
sqm.eth1.itarget=auto
sqm.eth1.etarget=auto
sqm.eth1.linklayer=none

In general, you should update to Chaos Calmer 15.05.
SQM packages are found natively there, and also otherwise it is much more modern.

The plain scripts may not help you much, as you need also a ton of kernel modules, which the normal installation would install for you.


EDIT: hmmm. your router has only 4 MB flash. Might be tight with CC15.05.

(Last edited by hnyman on 15 Oct 2015, 09:25)

Hi robi62,

I agree with hnyman, switching to CC would be much nicer, though I share his concern about the flash size. His idea about the required modules also is not completely off the mark manual installation is not going to be simple. I am not 100% certain, but I believe that sqm-scripts also entered the BB repositories, but that certainly is not the most recent version, so if at all possible CC15.05 would be a much better base.

Also I note that you don not really specify on which interface you connect to your neighbor. If you use a wired connection via the WAN port there is a good chance to get out working, if you connect via WLAN it will get trickier...


Best Regards
        M.

hi i mamaged to get app and installed gui in luci and enabled qos i have set download speed to 2000 and 4000 but it starts downloading about 1mb then goes to 0.40 any ideas why????

Actually there is the 1.0.3 sqm-scripts (of September 2015) for the 14.07 branch, so it is recent.
https://github.com/openwrt/packages/blo … s/Makefile

But no binary package is available for download, so it needs to be built by the user. (I did that for my previous BB firmware version, so it works ok.)


EDIT:
To your last message of having got it installed:
What are your settings?
and what is your network config?

(Last edited by hnyman on 15 Oct 2015, 09:50)

i have seem to have managed it set downloads speed to 20000 and that get me about just over two meg download

I set upload to 5000 but uploads still 1 meg so I need to lower that

queue discipline i left default and link layer adaptation I left default

Download Speed: 2.35 Mbps
Upload Speed: 1.13 Mbps
these are test speed results

(Last edited by robi62 on 15 Oct 2015, 10:14)

robi62 wrote:

hi i mamaged to get app and installed gui in luci and enabled qos i have set download speed to 2000 and 4000 but it starts downloading about 1mb then goes to 0.40 any ideas why????

Could you please ost the output of the following commands (assuming you run sqm-scripts):

cat /etc/config/sqm

tc -d qdisc

/etc/init.d/sqm stop

/etc/init.d/sqm start

tc -d qdisc

ifconfig

dmesg


Also do you connect to your neighbor via WLAN/WIFI or via a cable?

Best Regards
        M.

hi moeller0

i have managed to get it working

I wanted to know how do I delete wshaper config file and qos config file?????

I have removed programs but config files still exists
will they interfere with sqm ????
Regards

(Last edited by robi62 on 15 Oct 2015, 11:17)

Hi robi62,


robi62 wrote:

hi moeller0

i have managed to get it working

I wanted to know how do I delete wshaper config file and qos config file?????

I have removed programs but config files still exists
will they interfere with sqm ????
Regards

Great that you got it working (not exactly sure which version of what). I have never used wonder-shaper myself, but looking at https://github.com/openwrt/packages/blo … r/Makefile I believe the following files should be removed:
/etc/init.d/wshaper
/etc/hotplug.d/iface/10-wshaper
/etc/config/wshaper

Now, I am not sure which of those will be removed by "opkg remove wshaper" but I believe you can go and manually delete any leftovers...

Best Regards
        M.

Ok I have tried to in install Chaos Calmer 15.05 but then there was not enough space to install anything

so I reflashed barrier braker and now its working as it should after testing different interfaces in sqm

I set downloads to 2000 and uploads to 500 so I am only using 2mb out of 10 which its enough for me

Thank you guys for help I appreciate it

The discussion might have continued from here.