Styno, please remove bootCmd stuff, it's not correct.
In an efford to try to keep the firmware topics clean, this thread will discuss all questions and remarks regarding Wondershaper' QoS (or Bandwidth control).
Some must-read info:
Wondershaper info
Oleg' FAQ for v1.7.5.9 firmwares
WIKI (dynamic information system)
Last edited by Styno; 30-10-2005 at 20:08.
Styno, please remove bootCmd stuff, it's not correct.
ghehe hit the EditText button thenOriginally Posted by Oleg
My little Asus Collection: Too much to fit inhere, my 2 babies:WL500w 1.9.2.7-10(OLEG) VX2SE Yellow Lamborghini notebook
WL500g Forum Asus Files OpenDir
Asusforum.NL -- Asusforum.DE -- Asusforum.RU -- Asusforum.PL -- Asusforum.NET -- Asusforum.EU -- Asusforum.BE -- Asusforum.ES -- Asusforum.INFO
Too simple.Originally Posted by Antiloop
Hmm, i didn't add the bootCmd section at all , someone else did. It's a WIKI...
Last edited by Styno; 18-08-2004 at 09:31.
Okay ontopic now:
I configured the router with post-boot scripts to enable wondershaper and did a test:
On the router I did: 'ping www.tweakers.net -t' and the pings returned in approximately 15 ms.
Then I started a download and the pings went up to approximately 500 ms instantly.
I reviewed the wshaper script and it explicitly provides priority to ICMP (ping e.g.) over other traffic. Why is my ping going sky high then? Queueing on the ISP side?
Reduce traffic rate settings.
In fact, downloading should not make any impact on pings. Upload does make difference.
Thanks ,Oleg and everybody here first
I have read these 2 links as follow already,
Oleg' FAQ for v1.7.5.9 firmwares
WIKI (dynamic information system)
but I still confuse about the wshaper.
see my settings first.(I'm a newbie in linux)
1.telnet to the wl500g
2.mkdir /usr/local/init
3.cp /init/functions /usr/local/init/functions
4.add 1 line command /init/wshaper start "eth1" 1024 100
in the /usr/local/init/functions (at the bottom of this file)
5.flashfs save
6.flashfs commit
7.flashfs enable
7.reboot
is it correct?
and for example :
if I want to let 192.168.1.3 with (200k/10k)
192.168.1.4 with (150k/20k)
192.168.1.5 with (100k/10k)
192.168.1.6 with (300k/30k)
what should I do?
add 4 lines commands in the /usr/local/init/functions ??
/init/wshaper start "eth1" 200 10 192.168.1.3/32
/init/wshaper start "eth1" 150 20 192.168.1.4/32
/init/wshaper start "eth1" 100 10 192.168.1.5/32
/init/wshaper start "eth1" 300 30 192.168.1.6/32
I think it's wrong!
because when i use it but all ip run with 300k/30k
how I can do?? or it's impossible?
or I just can let 192.168.1.3 192.168.1.4 192.168.5 as low priority source?
like that command
/init/wshaper start "eth1" 1024 64 192.168.1.3/32,192.168.1.4/32,192.168.5/32
then the ip 192.168.1.6 can get the highest priority??
appreciate your answers in advanced.
Hi
I´m not that deep into wondershaper but to shap single ip´s i think you have to modify the script itself, after all its just an convenient front-ent to the kernel QoS services and intendet for single line usage on a router (shaps for all connektions then) or to be run on your local linux machine. Will look into it when my Asus arives (Antiloop, waiting was useless this morning ).
My Stuff: WL-500g, Mapower H31x 10GB HD, Philips Webcam Vesta PRO, TerraTec Webcam PRO, USB Hub
Step 3 is wrong:Originally Posted by adar
3.create /usr/local/init/post-firewall with vi
4.add: /init/wshaper start "$1" 1024 100
4a.make script executable with chmod +x /usr/local/init/post-firewall
Do you really want this because if 192.168.1.4 is the only one generating traffic it can't use the full bandwidth.and for example :
if I want to let 192.168.1.3 with (200k/10k)
192.168.1.4 with (150k/20k)
192.168.1.5 with (100k/10k)
192.168.1.6 with (300k/30k)
what should I do?
Wrong againadd 4 lines commands in the /usr/local/init/functions ??
/init/wshaper start "eth1" 200 10 192.168.1.3/32
/init/wshaper start "eth1" 150 20 192.168.1.4/32
/init/wshaper start "eth1" 100 10 192.168.1.5/32
/init/wshaper start "eth1" 300 30 192.168.1.6/32
I think it's wrong!
because when i use it but all ip run with 300k/30k
how I can do?? or it's impossible?
You have to modify the /init/wshaper script to do this. How? I don't know yet.
Probably just copy it to /usr/local/init and edit it with vi to apply the rules. Don't forget to set the right path in the post-firewall script in this case.
Thats the most realistic option.or I just can let 192.168.1.3 192.168.1.4 192.168.5 as low priority source?
like that command
/init/wshaper start "eth1" 1024 64 192.168.1.3/32,192.168.1.4/32,192.168.5/32
then the ip 192.168.1.6 can get the highest priority??
appreciate your answers in advanced.
Last edited by Styno; 19-09-2004 at 13:41.
telnet to the wl500gOriginally Posted by adar
Code:mkdir /usr/local/init echo "/init/wshaper start \"\$1\" 1024 100" > /usr/local/init/post-firewall chmod +x /usr/local/init/post-firewall flashfs save flashfs commit flashfs enable rebootrewrite the wshaper script completely, to put every IP in different class
and for example :
if I want to let 192.168.1.3 with (200k/10k)
192.168.1.4 with (150k/20k)
192.168.1.5 with (100k/10k)
192.168.1.6 with (300k/30k)
what should I do?
Sure.
add 4 lines commands in the /usr/local/init/functions ??
/init/wshaper start "eth1" 200 10 192.168.1.3/32
/init/wshaper start "eth1" 150 20 192.168.1.4/32
/init/wshaper start "eth1" 100 10 192.168.1.5/32
/init/wshaper start "eth1" 300 30 192.168.1.6/32
I think it's wrong!because when i use it but all ip run with 300k/30k
how I can do?? or it's impossible?
or I just can let 192.168.1.3 192.168.1.4 192.168.5 as low priority source?
like that command
/init/wshaper start "eth1" 1024 64 192.168.1.3/32,192.168.1.4/32,192.168.5/32Code:/init/wshaper start eth1 1024 64 "192.168.1.3 192.168.1.4 192.168.1.5"yes
then the ip 192.168.1.6 can get the highest priority??
But this probably will not work due to NAT. You may want try shaping br0 instead, swapping upload/download.
I've updated the WIKI page and added a new page on howto migrate from BootCmd's to post-boot scripts (flashfs-boot).
Last edited by Styno; 19-09-2004 at 13:22.
I've never had the idea that Wondershaper worked for me but I didn't have problems with my bandwidth either so I didn't investigate it. This changed yesterday: I was playing an online first person shooter when someone started a download from my FTP server. The game became unplayable because of high pings (lag) so I had to disable te FTP server and start again. This problem should have been avoided by the Wondershaper script so I started looking into the problem:
I've done some tests where I was pinging to 'www.tweakers.net' while downloading a large file from 'www.chupa.nl' and this is what i've found out:
The following command placed at the first line in the post-firewall script does not work at all:
But when I give the following command on the command-line, Wondershaper does work:Code:/init/wshaper start "$1" 976 460
as does:Code:/init/wshaper start "br0" 976 460
So I've removed the command from the post-firewall script and placed the following command on the first line in the post-boot script:Code:/init/wshaper start "eth0" 976 460
Now it does work for me , any ideas on the cause?Code:/init/wshaper start "br0" 976 460
The idea to this to post-firewall was as following - 1) automagically determine WAN port name; 2) possible wshaper changes to properly handle NATed connections with mangle table.
As for you problems. You've effectively switched upload/download rates by starting shaping LAN side (yes, LAN, not WAN). So your config in terms of post-firewall is in fact become
which is not, that is you expectingCode:/init/wshaper start "$1" 460 976
Finally, as seems your download rate is not 1Mbit, it's lower. Try lowering it from 976 down to 460 looking for better results.
Hello,
is their a way to see if woundershaper is running and what is going on ?
I configured the post-firewall script, but it seems not to change anything.
Thx
Lionking