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

QoS question

Discussion in 'DD-WRT Firmware' started by precursor, May 9, 2005.

  1. precursor

    precursor Network Guru Member

    Hey Everyone,

    Just setup DD-WRT today, and I am very very impressed!

    The main thing I am trying to accomplish is to have QoS working properly.. I have bittorrent junkie roommates, and I like to play the occasional game of quake 3 or counter-strike.

    I have entered my bandwidth settings, put some rules in, got them configured, but have noticed something weird.

    My cable modem is supposidly 5mbit/768K. I put in 480kb up, and 4800kb down. I then let a torrent client go ape shit. The torrent client ate up all of the bandwidth (upping at a full 75+K a second), and all of the games I tried lagged like hell.

    I am currently using 3.2 final.. any suggestions?

    Also, one feature I would love to see is the ability to edit l7 profiles (or add new ones). I love the fact that this will do port based, and l7 based though!
     
  2. gotamd

    gotamd Network Guru Member

    I don't think you can control download bandwidth. I believe QoS is only prioritizing upload. That said, maybe you could try setting WDS via MAC address instead of service and set your gaming computer to the Premium bandwidth while everything else gets Bulk. Just a suggestion, I'm not sure myself. Of course, running a lot of BT or anything is going to slow your connection down even if you are running QoS I would think.
     
  3. _Shorty

    _Shorty Network Guru Member

    yeah, an easy way to edit the L7 patterns would be great!

    edit - not to mention the counter-strike pattern doesn't match current clients and their data traffic anymore, so if you were testing with CS that would be one reason you didn't notice QoS helping at all.
     
  4. precursor

    precursor Network Guru Member

    I had that suspicion when I tried alchemy a few weeks ago, so I pulled ethereal and sniffed some connection packets on various versions of CS. I wrote a new l7 pattern (which I have to submit to the list still) and will hopefully be able to get it in soon. It will match patterns for 1.6 and Source.

    For testing the QoS with dd-wrt, I did a ports based rule to cover the common CS/Steam ports (27005-27020) with no avail. I also tried quake3 (with the included l7 config, which I have yet to verify with a packet sniffer) with the same problems.

    Anyways - I am aware that on the download side, it is tough to prioritize stuff, but on the upload side, I figured my bandwidth would be capped at the numbers set in the QoS setup.

    -Adam
     
  5. _Shorty

    _Shorty Network Guru Member

    mind sharing that new pattern for CS/CSS? There is currently a way to use custom patterns involving creating pattern files in /tmp on the router.
     
  6. jagboy

    jagboy Network Guru Member

    ths would be very helpful
     
  7. Lazybones

    Lazybones Network Guru Member

    I had 3 bittorent users in my house here is what I did.

    1. Get all users to set a reasonable number of connections limit. QOS will not do anything to prevent connection flooding. The first thing you will need to do is reduce the total number of possible connection on the network. The router will run out of memory tracking all of the connections. make sure your total number of possible connections is around 1000 or less for a WRT GS unit.

    2. Determine the QOS buffer zone.. find a predictable download that maxes out your download and or upload bandwidth with QOS turned off. Then enable QOS and continue lowering the Upload and bandwidth until it doesn't peak over so much that it reaches your max. Infact, unless you serv files often, you can save a great deal of bandwidth by setting your upload limit ultra low.
    I have a 5Mbit down / 1Mbit up connection with a QOS setting of 4.8Mbit down / 250 Kbit up. This has saved me a great deal on my monthly bandwith use while still providing great download speeds.

    3. The QOS settings.. Here the rule is Less = More. Make all P2P as Bulk, also FTP. Set dhcp and dns as Premium. I have http,HTTPS,msn,SSH, and SSL set as Express. The key is that anything NOT marked is rated as Normal, normal traffic will always get higher priorty than Bulk. This should work with most games. Some services such as VOIP will also need the Express or Premium setting.

    If you have set your QOS up and down limits low enough QOS will always have enough reserve to exceed those limits when Express and Premium service need the bandwidth.
     
  8. precursor

    precursor Network Guru Member

    The link to the pattern I wrote is:

    http://www.7thsphere.com/cstrike.pat

    I am going to go submit it to the l7-list for people to test.

    I used ethereal to capture multiple connection instances from CS 1.6 and CS: Source. The pattern in the file is common between them both. Please note, this is untested, as I haven't been able to get the pattern into dd-wrt - if you can gimme soem guidelines on how to do this, I would really appreciate it.

    In regards to the previous post, I am usign a WRT54G 3.0.. what do you think a good amount of global connections should be for that? 500 or so?

    I think it does make sense to keep the max upload set very low. However, mine is set at roughly 60% of my overall upstream. It doesn't seem like its slowing it down at all.. or is that not what that does?
     
  9. _Shorty

    _Shorty Network Guru Member

  10. precursor

    precursor Network Guru Member

    quick update..

    I tried lowering the max upload threshhold as lazybones suggested, and it seemingly did nothing to my bittorrent traffic.

    It seems as if its doing nothing =/

    -adam
     

Share This Page