1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

LAN QoS

Discussion in 'Tomato Firmware' started by joek1010, Jan 30, 2010.

  1. joek1010

    joek1010 Addicted to LI Member

    Hi,

    Couple of day ago, I got a new Asus WL500g Premium V2, and straight away flashed it with Tomato because I had heard good things. Overall everything is working great, with just one caveat.

    Any large LAN activity over wireless, like scp or even plain http, is very slow (around 500 kilobytes/s) and latency shoots through the roof (1000+ ping times just to the router). I've set some of the QoS settings up (max bandwidth, some class stuff, etc), but my understanding is that this only affects WAN traffic. Has any one else had problems like this? Is there a way to manage QoS for LAN traffic?

    Thanks in advance.
     
  2. rkloost

    rkloost Addicted to LI Member

    Can you add a little bit more information?

    You did flash your ASUS with the ND-version of the firmware?
     
  3. joek1010

    joek1010 Addicted to LI Member

    Sure,

    I did flash with the ND-version.

    Basically, I have a file server connected to a LAN port on the router, and several wireless clients. Wireless is setup to use WPA2 w/TKIP in mixed B/G mode on channel 1.

    When I attempt to transfer files to or from one of the wireless clients to the server, ping time from the wireless client to the router shoots up (1000+ ms). Interestingly, the wired server sees no change in ping time, either to the router (~0.7ms) or to hosts on the internet (google: ~40 ms).

    One other thing: I also have an xbox 360 connected to a LAN port on the router. I use the file server to stream video/audio to the 360 using upnp. When I play large (HD) files on the xbox (streaming them from the server to the xbox), I don't see any performance degradation with either the wired or wireless clients.

    Any ideas? Need any more information?
     
  4. joek1010

    joek1010 Addicted to LI Member

    Hmm, no one else has had this problem, huh. Maybe its specific to the Asus hardware. I'm going to keep messing with it and see if I can't get it to work a little better. If anyone has any suggestions, please post.
     
  5. Toastman

    Toastman Super Moderator Staff Member Member

    It isn't common to WL-500gP V2's - I have several. I've never seen ping times to the router over 1mS. I can't give you any surefire answer, but I wonder if something you are unaware of is just blasting thousands of packets a second (especially UDP) at your router. This is known as a connection storm. It will overload your router, push up the processor "CPU Load" indicator, use up the router's memory, and cause the problems you mention. Look for Bit Torrent DNA, DHT or a trojan/bulk mailer/etc running on one of your PC's. P2P clients are the usual source of the commonest problems.

    To eliminate causes, switch on only one PC at a time until you have the problem. Then you know where it originates.

    I can't think of anything in your setup that can cause this. However, a common cause of weird happenings is corrupt NVRAM. This is cured by erasing NVRAM and then entering all your config again by hand from scratch.

    Good luck!
     
  6. joek1010

    joek1010 Addicted to LI Member

    Thanks for the reply, I'm going to try erasing the NVRAM.

    I don't think its P2P or anything because the high ping times correspond exactly with when I transfer files (and ping times return to normal when I stop it). Interestingly the cpu load indicator stays around ~.05 when ping times skyrocket. Most (~60% memory) is free.
     
  7. Toastman

    Toastman Super Moderator Staff Member Member

    OK, file transfer could be overloading the wireless connection. Normal TCP backoff should take care of that though, so lets hope an NVRAM erase cures it. Otherwise, your hair is gonna fall out.

    I would also try it with all wireless encryption disabled to eliminate that from the list.

    Maybe someone else that has experience of file transfers over wireless could comment.
     
  8. joek1010

    joek1010 Addicted to LI Member

    Ok, finally got around to erasing the NVRAM. Unfortunately, it didn't work. Also tried disabling wireless encryption, which also didn't work.

    Any other reason why file transfers over LAN would destroy latency?
     
  9. RonWessels

    RonWessels Network Guru Member

    Do you perhaps have one of your computers hard-coded to full-duplex? That could cause a duplex mismatch which would only show up with higher network traffic.
     
  10. joek1010

    joek1010 Addicted to LI Member

    Thanks for the suggestion, but I don't think that's it.

    My fileserver is a linux box. According to "mii-tool" the link is autonegotiated (at 100mbps full-duplex). Just for good measure I tried 100 mbps and 10 mbps both full-duplex and half-duplex. None of these settings seemed to have any effect on latency during file transfers.
     
  11. Sarkelaru

    Sarkelaru Addicted to LI Member

    Check for wireless interferences, change channel of your router.
     
  12. joek1010

    joek1010 Addicted to LI Member

    Yeah, I have it set to channel 1. There's only one other AP on channel 1 and it's signal strength is around -86dB. I switched to 1 because 6 had like 5 AP's.
     
  13. joek1010

    joek1010 Addicted to LI Member

    Ok, spent a few hours messing around with the router today and found something interesting:

    I flashed it with the TeddyBear mod, then mounted an external hard drive and shared it with FTP. When using this setup I see a huge improvement during file transfers (time to the router is between 0-20ms). Figuring it might have something to do with the FTP protocol, I mounted the external HD back on my wired linux box, installed vsftpd and tried a transfer. With that setup, I got the same high latency (1k+ ms ping times) problem. It seems that this problem then isn't related to my wireless connection (its not poor signal strength or interference).

    Unfortunately, this really doesn't solve my problem. I'd still like to be able to transfer files over wireless/wired LAN. In addition, mounting the HD on the router is less than ideal; I have a dedicated linux box that can handle it, plus several other services (UPNP to the 360, for example).

    I'm going to keep working on this. Any suggestions would be appreciated.
     

Share This Page