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

QoS without knowing the exact upload?

Discussion in 'Tomato Firmware' started by chadrew, May 18, 2009.

  1. chadrew

    chadrew LI Guru Member

    I've been using my WRT54GL + Tomato for over a year now on 2 mbps DL / 1 mbps UL connection and sharing it with a neighbor. QoS works perfectly and we can game, browse or use VoIP even when using P2P heavily - I couldn't be happier about Tomato :thumbup:

    I've got a dilemma though: my ISP recently started offering new plans which are 10 mbps DL abroad and unlimited (meaning ~100 mbps) inside my country. I wouldn't want to lose so much speed if I set a lower upload value in my QoS settings to fit both "inside" and "abroad" speeds.

    Is there any way to give priority to certain types of traffic without using an upload value? I might be wrong but I think the default firmware has an option to prioritize games with a single checkmark (can't say how well it actually works though)... Like giving priority to certain types of traffic no matter whether your connection is used fully or not?

    Any thoughts or suggestions?
     
  2. Toastman

    Toastman Super Moderator Staff Member Member

    You only have one upload / download speed. That is the connection speed to your ISP. The value you set in the outbound QOS limit is to enable your router to upload to the ISP while still keeping some space in the transmit buffer for QOS to function. The buffer will empty faster than it fills up, hopefully keeping some RAM empty. So just continue with your QOS setting as normal, set 85% of the maximum upload bandwidth you ever see, which would be the local figure. Then the only way you could give any priority (if it is indeed necessary, I haven't thought deeply about it) would be for some rule to prioritise important foreign traffic individually. But since your foreign traffic is slower anyway, it probably isn't necessary. Actually, whether ISP's tell anyone about it or not, this is normally what they all do anyway!

    Oh, almost forgot, some routers do indeed have a "prioritise everything I want and let the rest wait" button. Needless to say, they are usually quite useless.

    For more information: http://www.linksysinfo.org/forums/showpost.php?p=337410&postcount=2
     
  3. chadrew

    chadrew LI Guru Member

    Thank you Toastman!

    The reason I'm asking is because I've read everywhere that you should set your upload to the 85% or so of your maximum. Which made me think, what if I set it to 85% of my maximum (which would be say maybe ~20 mbps) and then use my "foreign" traffic which is limited to 10 mbps both to download and use something like VoIP or games which need prioritization. Wouldn't that break the QoS? :confused:
     
  4. Toastman

    Toastman Super Moderator Staff Member Member

    Well...

    Your router knows nothing of and does not care about foreign or local traffic, or any so-called "deals" from your ISP. It only sees packets sent to and received from the ISP. The 85% rule is purely to leave some room in the transmit buffer so that QOS will work, your router will always need to upload at a maximum speed of (1Mbps??) and download at maximum of 100Mbps - because that is the speed at which you are connected to your ISP. Just that. The 10Mbps figure has nothing to do with your router...

    By the way, the speeds you are talking about are too high for SOHO routers. You will never achieve those speeds.

    Whatever you do (after you've got QOS working) concerning local or foreign traffic is "your" preference and you have to work out a way to deal with it. In short, every single packet you send to a destination, you would have to define somehow in your QOS rules, by port, application, IP address, etc. in relation to it's country. It's an almost impossible task. If I were you I would just ignore it. It will work itself out. Any odd application that needs priority, just forget about it's being foreign or local, and just deal with the application on its merits.

    I don't think you will have a problem.

    For example here in Thailand we now have cheap(ish) 8Mbps ADSL lines. Infrastructure within Thailand can be quite fast but our international pipe is, to put it bluntly, CRAP. Many countries are just a few hundred k. All my QOS rules ignore the destination. It makes no difference, the speed is still pretty much OK. It's not significantly different to having a direct internet connection.

    There is one possible way to deal with it - suppose you had 2 machines. Use one of them for only foreign traffic and prioritize the IP address. But is this practical? Is it even possible to keep the foreign pipe filled with traffic, is there any need to address it?
     
  5. chadrew

    chadrew LI Guru Member

    Sorry, I didn't explain it that well. I'm pretty sure the upload value is different between "foreign" and "local" as well.

    Well, as long as I can enter the highest upload possible ("local") into the QoS and it will work, I will be happy with that :thumbup:

    Possibly get a new router for that... Dunno.

    Thanks like usual Toastman :)
     

Share This Page