Please check my Tomato settings

Discussion in 'Tomato Firmware' started by aayman, Apr 4, 2012.

  1. aayman

    aayman Serious Server Member

    Hey guys,
    I just flashed by ASUS N-16 with tomato-K26USB-1.28.7497.1MIPSR2-Toastman-RT-Lite.trx and so far everything has been running smooth.

    The main reason why I flashed tomato is because of its QoS features, from what I can tell the motives behind this fw goes alongside my intentions, just on a much larger scale.

    Here's my situation, I have 2 other roommates and we share the same internet. I game online a lot hence when they start their downloads or use Skype Video I get ping spikes in the server which affects everything.

    To solve this I got the router and flashed tomato. I set it up with what I thought was right and so far it has been working well. But I'm no guru so I figured I'd post here and see if the situation can be improved further.

    My connection details:
    Comcast XFINITY Bulk (entire building uses the same provider but individual connections for each apartment)
    Max download speed:
    16Mbps (2MBps) with PowerBoost
    8Mbps (1MBps) without PowerBoost

    Max upload speed:
    2Mbps (256KBps) with Powerboost
    1Mbps (128KBps) without PowerBoost

    I have attached images of my settings. I started off with assigning each PC with a static IP, and I gave my PC the utmost priority (check image 2). What I fear is if my normal activity will completely drain their bandwidth, and does the priority only apply for CounterStrike Source? I play Battlefield 3 as well and in the future I'll play other games.

    I personally don't keep anything running when gaming online but I always control what my roommates do. I do have their full cooperation and they'll love it if they don't have to stop what they are doing just so I get to play.

    My goal is to have a universal setup which will prioritize usage as the following:
    Online Gaming
    Web surfing (just sites)
    Skype Video
    Youtube and other streaming services like Netflix
    Downloads (HTTP, P2P and everything else)

    Please suggest any changes I need to make, and thank you for reading this post :D

    Attached Files:

    • 1.JPG
      File size:
      88.6 KB
    • 2.JPG
      File size:
      54.9 KB
  2. CardinS2U

    CardinS2U Network Guru Member

    So far I use everything that toastman has as default. for voip and gaming I only leave it at 20-80...I wouldn't put it at 90......

    no idea why but I tested both and seem like 20 works bettter....
  3. aayman

    aayman Serious Server Member

    I just set it so that there never is a shortage. It'll probably never reach 80% so that shouldn't make a difference. Will there be any negative effects if set too high? I'll try 20-80 in the morning, I'm done for the night.
  4. CardinS2U

    CardinS2U Network Guru Member

    better pings. Games kbs doesn't takes all 1mbs files ..technically speacking its probably takes around 100-200kbps tops.....when I set it too high I get lag spikes but it gets better..I keep the mini at 20 while others are set at gurantee pings are low..then I set a max which to me is the gurantee percantage that it will get.

    play with the settings. Sometimes our understanding of these qos are wrong.

    but what I did to test my settings:
    2xcomputers running 10 torrents with at 4k connections computer lags when I set it at 90-100% for gaming. when I leave it at 20-40-80% everything seem good.

    try it yourself and see how it goes.
    aayman likes this.
  5. aayman

    aayman Serious Server Member

    Ok I'll try those. And do you know anything about that L7: counterstrike source (2nd image)? Does it work for that game only or will it work for all games? Also when adding an IP in the classes, theres Dst IP and Src IP, I used Src, is that correct?
  6. CardinS2U

    CardinS2U Network Guru Member

    yes source is correct. dst is only when the ip's of a server that NEVEr change

    sorry cant help with counter strike. I play League of Legends so I got those settings in place.
  7. aayman

    aayman Serious Server Member

    I just tried it with your settings, I can confirm that the average ping time is at least 5ms lower, down from 40 to 35 in a server I play. So far it has been working really well, 2 other PCs are on the network and previously I lagged when one of them streamed youtube. Now its all smooth :D

    If there is anything else wrong in my setting or could be better please do advise. I have very little experience with this as you can already tell.
  8. CardinS2U

    CardinS2U Network Guru Member

    good, no idea why but from my understanding its a gurantee of 20%-40% of the bandwidth guarantee to online gaming. I play League of Legends so I classify LoL ips to be Gaming ip's.

    QoS will never catch all L7 gaming. Some old games it will but sometimes new games have ways/networkign tweaks to run on other ports so it's not always going to work. I'm a crazy gaming too =). My wife is a crazy youtube. My son is crazy netflix children movies. My jobless brother is a crazy porno addict, my youngest brother is a facebook nerd and Tibia gaming. My dad/mother is a crazy online vietnamese movies.

    with Comcast Business class 12/2 internet it works perfectly for us. Pushing out about 2TB- of data a month =)

    aayman likes this.
  9. aayman

    aayman Serious Server Member

    ahh as suspected activity from my PC (; picture above) gets classified as VOIP (except direct downloads).

    L7 does work for CSS though, but how do I get it to do the same for BF3? Is there anyway to prioritize using exe files?

    Downloads through EA's Origin is classified as VOIP and makes net unusable for everyone else.

    Edit: And what is No Ingress QOS for UDP? Just from the name I can just tell that its QoS for incoming data, and since data is already on the router (and there's no saturation), enabling it shouldn't be a problem.

    But its disabled by default so I'm hesitant of turning it on.
  10. aayman

    aayman Serious Server Member

    I changed a lot of my QoS settings, deleted all existing ones and more or less have an adaptable setting now.

    But I'm confused about something. I gave my PC the highest priority because of my gaming but when I download that gets the highest priority as well. I isolated some cases using port filtering but I would like a universal one. I'm thinking it can be done using the Transferred fields but I don't understand how that works.

    I set it to 100MB+ (2nd field) thinking that as soon as it crosses 100MB my PC on my downloads will be prioritized lower, but thats not working and everything is still the highest priority (unless the port filters kick in). Any advice?
  11. Planiwa

    Planiwa Network Guru Member

    With the TCP protocol, the sender keeps checking for acknowledgements from the recipient that the packets were actually received. If those acknowledgements are incomplete, the sender slows down its transmission, until it gets an acceptable rate of acknowledgements.

    With the UDP protocol, the sender just spews data at the recipient. It does not care or check for feedback.

    Therefore, Ingress QOS will indeed control TCP traffic.

    But for UDP traffic, it makes matters worse.

    If you throw away some UDP traffic, either it is ephemeral, as it might be with VOIP, and all you do is harass your own clients for no good reason -- the packets are already here, why throw them away?

    Or, worse, the data is not ephemeral, as it might be with file transfer, and by throwing away packets you will not be slowing down the transmission rate, as intended. Instead, the application (not the UDP protocol) will say "I missed that, send it again", so now you get double the traffic, which is the opposite of what you intended -- you will end up harassing your TCP traffic, (by reducing its bandwidth because of increased UDP traffic) rather than controlling your UDP traffic.

    The best way to control UDP traffic is to limit UDP connections, by reducing UDP timeouts, setting up UDP connection limits, and controlling outbound UDP traffic.
    aayman likes this.
  12. aayman

    aayman Serious Server Member

    Still quite technical for me but I think I get the jist of it. The data is already in the router and there's no point in throwing it away because my local network is not saturated, and dumping them will only increase bandwidth usage because dropped packets will be requested again.

    So I enable/check "No ingress QoS for UDP"?
  13. Planiwa

    Planiwa Network Guru Member

    Yes, check it. :)

    (I thought that was the default but I was wrong about that.)
    aayman likes this.
  14. Toastman

    Toastman Super Moderator Staff Member Member

    Planiwa's explanation should help you to understand that dropping UDP packets won't slow down the incoming stream.

    When I added the new QOS ingress to Tomato, I was faced with a dilemma which was solved by allowing you to make your own choice. Ticking it removed all UDP from the ingress system and may help VOIP. Leaving it unchecked leaves the incoming UDP in the correct classes for analysis and monitoring purposes.

    There's no harm in trying it, and would be interesting to know if it helped you.
    aayman likes this.
  15. aayman

    aayman Serious Server Member

    Thanks to both of you. I'll try it tomorrow night.

    Any advice on the my downloads though? Like can downloads from my PC be classified as Bulk or Crawl and games get the highest priority?
  16. Planiwa

    Planiwa Network Guru Member

    QOS restricts outbound traffic to control inbound traffic.

    When downloading, the outbound packets are just the brief acknowledgements "I got that, send me more".

    Maybe that's 3% of your inbound traffic.

    So, if you wait for 100MB outbound traffic ("send me more"s) before you decide that it's a download, that means that you are waiting for 3GB of inbound traffic. That's a bit much, don't you think?

    Maybe 1MB instead of 100 MB might have the desired effect?
    txnative likes this.
  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