Will be attempting my first Tomato install tomorrow!

Discussion in 'Tomato Firmware' started by lateralex, Apr 9, 2010.

  1. lateralex

    lateralex Networkin' Nut Member

    I'm very excited to get started - both to play with QoS but also to check out some of the cool bandwidth monitoring tools. The install seems very straightforward, so I feel confident about that portion.

    I could use some advice on initial setup, as I have been experiencing a specific problem which I hope the new router/Tomato will help resolve.

    I have 4 roomettes, and we are frequently required to reboot our router to restore web browsing. What is odd, is that active services - such as computer games, bitorrent, etc will continue to work. Only the ability to surf to new webpages doesn't work until the router is rebooted (I believe this is a DNS issue?) :confused:

    Anyways, any thoughts on the cause of this issue are most welcome - or any settings you would recommend I setup on the new Tomato setup! :eek:

  2. dkirk

    dkirk Network Guru Member

    First rule: Reset the firmware back to factory default, then reboot the router, leaving it in a pristine and known state.

    After reboot, install Tomato. Once Tomato is installed once again set the firmware configuration to default, this time Tomato's default. Reboot, and enjoy the wonderful world of Tomato, you'll never go back.
  3. Toastman

    Toastman Super Moderator Staff Member Member

    I'm guessing you have a WRT54GL or similar with not such a lot of memory. When the router is running short of memory, dnsmasq is one of the first processes to be killed off. The better your QOS gets, the less problems you'll have. One of the fastest ways to recover this memory is to quickly time out unused and dead connections. An example of how short you can get is towards the end of this post :

  4. EricCartman

    EricCartman LI Guru Member

    Have you flushed your router?
  5. lateralex

    lateralex Networkin' Nut Member

    I've tried everything with this router, and another one that RCN gave us. My new router arrives tomorrow (WRT54GL), I can't wait to setup QoS. :smile:
  6. tomatofan

    tomatofan Addicted to LI Member

    Don't worry, just do the install and my guess is you don't have to change anything. Well, change the password, SSID and WLAN encryption of course, but except for that there's very little you have to, or should, change. There's QoS of course, that one has to be enabled and configured to work, but that's entirely optional.
  7. lateralex

    lateralex Networkin' Nut Member

    Toastman, I've just flashed with Tomato and have begun to follow your guide. I realized immediately that it would be easier if I were using your version of Tomato which has the class names. However, it seems that the site is currently down: http://firmware.mooo.com/Toastman Builds/

    If I were to proceed with the standard Tomato build, I'm assuming I'd substitute class A, B, C where appropriate (although confusing!). One field is missing from my version of Tomato "Qdisc Scheduler". Will there be others that I will notice are missing if I don't use the same version of Tomato as you?

    Edit: Ok, I made it! I was worried I would breath on my PC too hard and somehow delete all the settings I had made. I believe these are correct based on your post (with a 50kb boost to gaming :D )


    I found the option to back-up the configuration file. Hopefully this doesn't get reset each time the router is manually reset (roomettes)
  8. Toastman

    Toastman Super Moderator Staff Member Member

    I think you did a great job, so I hope you find it was worth it. Do post your findings! Anyway, now you have something to work with. If you wish to get the labelled classes, it will just flash and the labels will appear, and change back if you revert to standard tomato.

    Now you have it set up, you can slowly check what each classification does and learn more about how to use the QOS system, I am sure that there are some things you'd like to change.

    The server here isn't down as such - I believe that FreeDNS Update has stopped working, as a bodge I have added it to the router's ddns service while I fix it. We are also having a lot of disruption in our internet services.

    I save the config file every day - and keep backups too.

    Ignore "qdisk scheduler" - that's the default and is the best selection anyway.
  9. lateralex

    lateralex Networkin' Nut Member

    Thanks. So far so good, the network has been snappy and we haven't lost DNS yet. I've noticed the torrents are very slow - which is ok for the time being. I think I will play with giving looser ranges as we only have 5 total users (so I think I understand why you have 1% for your network of 80+ users).

    Really interesting stuff. I love the monitoring section.
  10. Toastman

    Toastman Super Moderator Staff Member Member

    You'll quickly be able to sort it out now.

    Read up on the "rate" and "limit" early in the QOS thread. Set the "rate low, as in 1% makes an immediate guarantee of 1% to that class, but it takes time to increase up to the "limit". Setting "rate" to say 20% makes 20% immediately available, reducing the lag.

    In my network, with 1 Mbps up/16Mbps down the P2P rate - limit can be safely increased to 50% before noticing much effect on others.

    One recent problem is the new uTorrent 2.0+ which swamps the system with UDP. You can control it by dumping UDP into crawl class (E), which is what I do. However, most users have stopped using it because their downloads are too slow. They've gone back to earlier versions. Or you can still use 2+ but turn off UTP and DHT (see below). Whatever works for you!

    On your own machines, you can usually get better download speeds with uTorrent 2+ by changing this parameter in ADVANCED to 5 which will turn off uTp.

    bt.transp_disposition: This option controls µTorrent's level of bias towards using TCP or uTP for transporting data (assuming the peer at the other end of the connection supports both transport protocols). The following is a list of the accepted values:
    1 allows µTorrent to attempt outgoing TCP connections
    2 allows µTorrent to attempt outgoing uTP connections
    4 allows µTorrent to accept incoming TCP connections
    8 allows µTorrent to accept incoming uTP connections
    16 tells µTorrent to use the new uTP header. This is an improved communication header, but is not backwards compatible with clients that do not understand it.

    *This option is interpreted as a bitfield, so values can be added together to obtain a combination of behaviors. Setting this value to 255 guarantees that all behaviors are enabled.
  11. lateralex

    lateralex Networkin' Nut Member

    Great, I'll check this out. Just got back from work so no time to experiement tonight. However, I tried using Google Chat (video) and it was incredibly choppy. Do you know how I can resolve this? I googled "Google Video ports" and added 19295 the "Highest" category of traffic. No luck though :frown:

  12. Toastman

    Toastman Super Moderator Staff Member Member

    Find out what class it is currently ending up in (look at the list ion QOS - View Details) and amend rules if necessary. Placing it in "Highest" will slow down your DNS queries. Better to place it lower down.

    Usually, rather than thinking "I must prioritize this app" it is usually more productive to look why it is failing, what is taking bandwidth. If you identify what other traffic is affecting it and address that, you will be more likely to succeed. If there is no other class competing for bandwidth at the time, but it is still choppy, it may be your connection and there's not much you can do about it.

    If there is a high level of P2P for example, leaving no bandwidth for video, there would be no change by moving something from "Medium" to "Highest" - it would be pointless to do so.

    Google uses:

    TCP - 80,443,5222,5223
    UDP - any port

    Applications that can use any port are very hard to control. Sometimes you may have to experiment with L7 filters.
  13. lateralex

    lateralex Networkin' Nut Member

    Interesting, I have been playing around with it, and looking at the logs when possible. The Google voice issue cleared itself naturally, it might have just been a bad day for my ISP. Consistently I am getting minor minor blips in my favorite game. The problem is, a blip for about 2 seconds is the difference between winning and loosing. I've Google'd the game's ports - and added them to the Games category. There isn't really any other traffic I can see causing the problem. Most of the traffic is currently class D . Is there a clear way for me to track my ports being used by my IP? The log seems like the right place, but I'm not sure what to look for.
  14. lateralex

    lateralex Networkin' Nut Member

    Does this look normal? Seems like I should have more prioritized traffic...
  15. rhester72

    rhester72 Network Guru Member

    The best way to tell is to sort the connections under View Details by Class and see if it lines up with what you expect.

  16. CardinS2U

    CardinS2U Network Guru Member

    can you guys share your qos basic settings..wanna see what you guys put.

    thank you
  17. Toastman

    Toastman Super Moderator Staff Member Member

  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