wshaper : How to prevent it from slowing down LAN file transfers?
I don't know what the Asus WL500G is (I assume it's an ADSL router/modem), but I googled for Wonder Shaper discussion groups, and since people here seem knowledgeable about Wonder Shaper, I thought I might as well ask here. (To be honest, there were a lot of posts, and I didn't read them all. The first post seemed to start in the middle of a discussion.)
I'm referring to the Wonder Shaper script published at http://lartc.org/wondershaper/.
I have two computers, a server (Fedora Core 3) that I use as an experimental apache server (http://marco75.no-ip.info) and a bit torrent client, and a workstation (Windows XP).
They connect through a 5 port switch to an ADSL router/modem.
My ADSL connection speed is 1500/256 kbps downstream/upstream
When I apply the /usr/bin/wshaper script, it prevents the bit torrent client (Azureus) from flooding the router's queue, stabilizing it. However, this makes samba traffic between server and workstation really slow, like Internet speeds in fact.
I have edited the top of the wshaper script like so:
DOWNLINK=1400
UPLINK=240
DEV=eth0
How do I prevent the script from throttling SAMBA packets (TCP port 401, I believe)?
Also, web server traffic should be given priority over P2P traffic.
Thanks for Reading.
Marco
Other sources for WL500g WIKI? - WONDERSHAPER
Can anybody point me where to find the WL500 WIKI pages?
I am trying yo figure out how to configure wondershaper. I've read the documentation I found on the script on othr places, but need to get more backgroung on its use on the WL500 (establish the difference between the different DEV's for example).
I'm not used to daily work with linux but try to keep an open mind. If there is any other well documented reference on wondershaper and related topics I would appreciate your feedback.
Thanks.
1 Attachment(s)
high priority for VoIP on WL-500g
Hi,
it seems to be pretty quiet in this thread... :)
I'm still using my old WL-500g (at the moment with Oleg's 1.9.2.7-7e) and I'm very happy with it.
Now I wanted to teach my WL-500g to prioritize the VoIP traffic from an ATA connected to one of the LAN ports. My first try was to do it by using "Bandwith Management" (over the WEB interface) but I failed because of the upload policy. I have reserved 100 kb min. for the port 5004 (RTP) but it didn't work, I don't know why...
My second try was to do it by using the wondershaper script. So I did a copy from "/sbin/wshaper" to "/usr/local/sbin/wshaper", then I created a new executable script-file "/usr/local/sbin/post-firewall" and I filled it with
Code:
#!/bin/sh
/usr/local/sbin/wshaper start "$1" 1300 300
My internet connection has 1024/256 kbps, but starting the script with values like "1000 250" has reduced my download speed to 700 - 800 kbps.
Then I modified (or let me say I tried to modify :o ) the wshaper script for a prioritization of the VoIP traffic. I didn't want to define som new priority clases, I just wanted to save some time and to use the script stuture as is. So I added following lines to the script:
Code:
# high priority for VoIP traffic
tc filter add dev $DEV parent 1:0 protocol ip prio 10 u32 \
match ip tos 0x68 0xff \
match ip protocol 0x11 0xff \
flowid 1:10
tc filter add dev $DEV parent 1:0 protocol ip prio 10 u32 \
match ip tos 0xb8 0xff \
match ip protocol 0x11 0xff \
flowid 1:10
I'm not really sure, if this lazy modification is enough for solving my problem or not. Wat do you think about this modification?
In fact, I couldn't solve my problem by using wondershaper yet. As soon as I start an upload (FTP, SMTP, ...) from my computer, my voice on the phone becomes stuttering. I also tried to reduce the upload speed at the script-call (like this: /usr/local/sbin wshaper start eth1 1000 180) and I tried alternatley to set the IP of my PC to low priority by using $5 and $6 (like this: /usr/local/sbin wshaper start eth1 1300 300 192.168.1.100 192.168.1.100) but it didn't work either.
Does wondershaper work on WL-500g at all? Do it probably work only on Deluxe version? Please help me to get it running correctly!
regards
Robert