Please help - Slow down in traffic

Discussion in 'Tomato Firmware' started by kardzzz, Sep 6, 2008.

  1. kardzzz

    kardzzz Addicted to LI Member

    Hi All, I switched to Tomato 1.21 from DD-WRT to try the Qos feature.
    My router is a WRT54GL ver 1.1; I loaded Tomato 1.21 as per instruction and cleared the NVRAM in admin/config before setting my parameters.

    The router seems to run fine for a few hours then slows down to the point where web traffic crawls. I am running torrents on the same PC.

    Please could you look over my settings I've attached and advise what tweaks I should make.


    Attached Files:

  2. TVTV

    TVTV LI Guru Member

    Could you please link us to some higher resolution screenshots, so we can actually SEE your settings? :)
  3. kardzzz

    kardzzz Addicted to LI Member

    TVTV, please see these attachments.
    My load speed average = 3500 down / 600 up, however I sometime see it lower hance use 2500 /300 as inputs.
    I think my classification inputs overlap too much?

    Appreciate your opinion. thx
  4. pharma

    pharma Network Guru Member

    I never revised the default settings included in the Tomato firmware. Instead I resolved the TCPIP "half-open" connection limit found in XP and Vista.

    Look in your Windows Event log for any "4226" errors. If you have any then your problem is most likely related to the Microsoft TCPIP "half-open connection" issue. A google search will point you to "hack" patches available for all flavors of 32/64-bit versions of XP and Vista. I'm currently using a TCPIP patch for my 64-bit Vista and have no more "4226" errors or slowdowns when torrenting, streaming audio, or web surfing simultaneously. Going on 6-months with no problems.

    People with Vista 64-bit machines might also want to do a search on "ReadyDriver Plus 1.1". It basically turns off driver signing enforcement in Vista 64 at boot-up.

    If it's your first time, best read-up and know what you are doing before applying any patches.

  5. spliff

    spliff LI Guru Member

    The red flags to me are the L7 filters especially for bittorrent. The L7 does not work reliably on Tomato or DD-WRT. Use ports and IP's to classify bitorrent traffic, combined with a default catchall rule that sends default traffic to a low priority.
  6. kardzzz

    kardzzz Addicted to LI Member

    pharma, thanks for reply. I've already patched the tcp/ip half-open connections to 50 from 10 so that's taken care of. I've checked the event logs and no 4226 errors. I will keep my settings until someone comes up with another solution. Surfing seems better today, so probably requires frequent reboots.

    I will monitor.

  7. TVTV

    TVTV LI Guru Member


    1) Try setting your default class to "Lowest", so that no outbound unclassified traffic will interfere with any "legit", classified traffic.

    2) QoS works best if the values in the Outbound and Inbound "Max Bandwidth" box are as close to your REAL U/L - D/L as possible. Test your connection on and use those values with QoS.

    3) I see you are using the default "per amount transferred" rules for WWW and DNS traffic. Use one rule for each, and get rid of the "Transferred" sub-rule instead (example).

    4) If you want to speed up WWW traffic (as i understand you want to), try using the "Highest" prio. for DNS and WWW only. This way, your DNS and WWW traffic will override ANY traffic on the network and will work best under any load conditions.

    5) IMHO, your QoS Classification page is a mess. Get rid of the "per MAC" rules and let QoS handle all the traffic from those users instead, by the normal "per port/s" rules. If any of them needs to get High prio. for a particular piece of software, find out what port/s that program uses and add a separate rule for it.

    Resources: Mark Wagner's Blog.

    Keep it SHORT and SIMPLE. :)

    Later Edit - If you want to test new QoS settings "on the fly", please be sure to check the "Re-classify all packets when changing settings" box, otherwise your settings will only take effect after the next reboot.

    Also, if your users are heavy P2P users, you should consider switching to Victek's firmware (a Tomato MOD), as it includes a "speedmod" which makes the router more stable/usable under heavy P2P load. The latest, stable firmware, is 1.21.8005.
  8. bhlonewolf

    bhlonewolf LI Guru Member

    Just my opinion here:

    - I *thought* (could be wrong) rules were evaluated top-down. So, it would make sense to have highest pri or most often hit rules at the top of the list. Like I said, I could very well be wrong.
    - Do you need all those rules? For example, do you have to classify POP3 and SMTP? Unless you're sending a bazillion emails, just don't bother.
    - Speaking of SMTP/POP3, don't use L7 filters if you don't have to. In a nutshell uses REGEX expressions to classify -- much more efficient to do MAC, IP, or port-based filtering if you can. Since SMTP is port 25 and POP3 is 110, there's no reason why you need L7 here.
    - If the first point is true, L7 filters should always be at the bottom of the list.
    - Agree with the comment that it's a mess. You have spaghetti rules. For example, you're saying that all 1024-65k outbound port traffic is Lowest/bulk. But then below it you say everything from Julie-Mac/Mike-xxxxx/XPMAIL is high. So which do you want?
  9. TVTV

    TVTV LI Guru Member

    I thought i'd post some shots of my QoS settings pages.

    Direct links: 1 & 2.

    Could this also be made a sticky?
  10. kardzzz

    kardzzz Addicted to LI Member

    Guys, thanks for the replies. I have made some adjustments and can see a big improvement in service already. 'Less is more' for the classifications page and I got rid of the L7 rules after reading more in the forum pages.
    We should get this thread pinned for newbies like me.

    My Final screenshots for anyone interested in doing the same...

    I will give Tomato Victeck Mods a try next for the speedmod feature

    **I'm converted to Tomato for now and will get another router to play around with DD-WRT.

    Thanks again.
  11. TVTV

    TVTV LI Guru Member

    Anytime! ;)

    Have fun using Tomato!
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice