Slashdot Mirror


Can Any Router Guarantee Bandwidth For VoIP?

cartman94501 writes "My wife and I use Vonage for Voice over IP at home, mainly for work-related phone calls so we don't have to give out our home number to clients and colleagues. Most of the time it works fine, but when I'm using BitTorrent or other high-bandwidth applications (purely for legal and non-copyright-violating purposes, of course), the call quality gets choppy. I have used my Linksys (not a WRT54G, so 'upgrading' it to Linux probably won't work) router's QoS feature to assign high priority to the MAC address of the Vonage box, low priority to the BitTorrent box, and medium quality to everything else, which helps a little, but not enough. Is there a router out there that would allow me to reserve, say, 75-90kbps of bandwidth off the top for VoIP and never, ever allow any application to use that, regardless of whether there's a VoIP call going on at the moment or not?" (More below) cartman 94501 continues: "That would solve my problem, but I fear I'd have to build a Linux box and learn all sorts of esoteric commands to really make that work. Are you aware of a commercially-available router that would allow me to accomplish this goal with some sort of ease? While I'm not prepared to pay four figures, I'm certainly not naïve enough to expect such a device to be available in the $50-100 range of your garden-variety wireless router. Wireless would be ideal, but if I could patch it in between my existing wireless router and the cable modem, and turn off QoS entirely on the existing router, that would work, too."

414 comments

  1. Gaming Router by seanalltogether · · Score: 5, Insightful

    Most gaming routers allow for this kind of functionality. In fact the first search result on google for 'gaming router' brought me to a product from dlink that provided exactly that.

    1. Re:Gaming Router by OAB_X · · Score: 4, Informative

      While limiting bandwidth might help, VOIP applications are much more sensitive to ping than BitTorrent, so even if you save bandwidth just for the vonage box, you will still need to customize packet priority. My D-Link gaming router has some ability to do it, but if you want real QoS stuff, a linux firewall box is the way to go.

    2. Re:Gaming Router by Telecommando · · Score: 5, Informative

      So don't keep us in suspense submitter, which model do you have?

      You can load software on more than just the WRT54G.

      DD-wrt works on quite a few devices:
      http://www.dd-wrt.com/wiki/index.php/Supported_Devices

      Used Linksys APs are fairly cheap and available. I bought a used WRT54GS V2.1 last weekend for $30. Loaded DD-wrt on it this afternoon.

      --
      Beta sux! Join the Slashcott! http://hardware.slashdot.org/comments.pl?sid=4760465&cid=46173047
    3. Re:Gaming Router by timeOday · · Score: 3, Interesting
      Since I run a PVR/Webserver at home anyways, I did just that (routed all traffic and ran lartc to prioritize VOIP) for a couple years. But in the end, I stopped because the uptime wasn't good enough for phone service. A fan in the PC fails = no phone until you get a new fan. In my experience a router device with no fans and no hard drives is much more reliable, so I took the PC out of the loop. The downside is now bittorrent messes up the phone again.

      PS you don't need to statically reserve upstream for the phone, just set VOIP to have the highest priority, then limit total upstream to about 10% less than your ISP upstream so your modem buffers don't fill up. However, nothing will save you if your ISP isn't delivering reliable upstream bandwidth.

    4. Re:Gaming Router by c_forq · · Score: 5, Interesting

      Couldn't you do a low heat/low power CPU that doesn't need active cooling, RAM, and a USB thumb-drive to boot off of?

      --
      Computers allow humans to make mistakes at the fastest speeds known, with the possible exception of tequila and handguns
    5. Re:Gaming Router by bonehead · · Score: 5, Informative

      Most gaming routers allow for this kind of functionality. In fact the first search result on google for 'gaming router' brought me to a product from dlink that provided exactly that. Not exactly true. Sure, it might be a bullet point on their feature list, but in practice it doesn't really work.

      I've installed many VOIP systems in small to medium sized companies, and back when I first started doing it I learned a valuable lesson:

      Your router can only control what it sees.

      Seems obvious, but let's consider the implications.... Your router cannot do anything of meaning about incoming data. By the time your router sees it, it's already traversed your cable or DSL line and the damage has been done. Something like bittorent is throwing a ton of incoming bandwidth at you, and there's not much a consumer grade router can do about it.

      The way I approach it is to use a small, but fully functional Cisco router at the client side, and work with a mom & pop ISP who will also throw some QoS on their router for that link. I won't accept a job installing a VOIP system for a client who isn't willing to go that route.

      You have to give the *incoming* VOIP priority over the incoming torrent traffic, and for good results, this must be done at the ISP, before it has already clogged up your personal "last mile" link.

      If you want to run bittorrent and VOIP on the same connection, you need a *real* router, and a cooperative ISP.

      Torrents kill VOIP. The method I outlined is the only way, after several years of trying every idea and product out there, that actually produces reliably stable results.

    6. Re:Gaming Router by bfizzle · · Score: 2, Informative

      The problem I have ran into time and time again is the WRT54G just doesn't have enough CPU power and RAM to handle the mess torrents make. Throw VOIP into the mix everything comes to a stand still.

      I used pfSense but several distros as supported by some micro pc manufactures.
      http://www.pfsense.org/index.php?option=com_content&task=view&id=44&Itemid=50

      I'm currently running a NetGate device with a 500MHz AMD Geode processor and 256MB of RAM. $200 is a little bit on the pricey side, but it is tiny and fanless.

    7. Re:Gaming Router by Anonymous Coward · · Score: 0

      I have a dlink router and it has specific settings for gaming and VoIP.

      OTOH, I would adjust the bandwidth on the settings of bittorrent and iptables.

    8. Re:Gaming Router by hjf · · Score: 1

      mikrotik? soekris?

    9. Re:Gaming Router by cciRRus · · Score: 5, Interesting

      I'm not sure how you found your WRT54G lacking in CPU power because on my WRT54G v4, I had actually underclocked it to 183MHz and yet it worked just as well.

      I run BitTorrent actively on two separate PCs, and at the same time, we have VoIP and we play delay-sensitive online games.

      I did some crucial settings though... like setting the correct upstream and downstream capacities, reducing the TCP and UDP timeouts, and using HFSC as the packet scheduling algorithm (some have reported to try HTB if HFSC fails).

      --
      w00t
    10. Re:Gaming Router by hjf · · Score: 1

      well, there is one thing you can do at your side: sacrifice half your incoming bandwidth. this way you leave enough headroom to allow quick bursts of bulk data (leaves web browsing unaffected) and enough for voip.

      it's a bad way to do it but if your ISP is uncooperative, it's better than nothing.

    11. Re:Gaming Router by Barny · · Score: 4, Informative

      Yeah, basic VIA board, under clock the cpu and remove its fan, thumb stick booting Monowall.

      Never get any issues with that, and the cpu (even heavily under-clocked) never passes 5% usage.

      --
      ...
      /me sighs
    12. Re:Gaming Router by timeOday · · Score: 1

      The PVR, no, because it records and plays TV, and is also a general-use PC for my wife and kids. I could buy a micro PC like you suggest and run it in addition to the PVR, but the administration burden isn't worth it for me. I've drawn the line at 1 home PC.

    13. Re:Gaming Router by chdig · · Score: 1

      so let me get this straight: are you proposing an argument against net neutrality?

    14. Re:Gaming Router by Anonymous Coward · · Score: 1, Informative

      you might want to check out Astaro. There's a free home use license. Traffic shaping lets you cap your p2p bandwidth, or guarantee bandwidth for your voip traffic. It can install on x86 hardware, so plenty of horsepower.

    15. Re:Gaming Router by c_forq · · Score: 1

      If you do it right you should be able to have an insane uptime, and not have to administer it. It would say there will be about a month of tinkering and tweaking, then after that you should be able to let it chug away and only have to remember to turn it back on after a power-outage.

      --
      Computers allow humans to make mistakes at the fastest speeds known, with the possible exception of tequila and handguns
    16. Re:Gaming Router by BLKMGK · · Score: 1

      Ditto! Although mine is slightly overclocked. I do see a 100kbps drop vs going straight to my upstream primary router but it does handle Torrents and VOIP no problem. I think having enough bandwidth is part of it, another LARGE part is throttling my Torrents - I use uTorrent. I use way less than half of my available bandwidth for torrent uploads - patience is a virtue.

      --
      Build it, Drive it, Improve it! Hybridz.org
    17. Re:Gaming Router by ACMENEWSLLC · · Score: 2, Interesting

      >>You have to give the *incoming* VOIP priority over the incoming torrent traffic, and for good results, this must be done at the ISP, before it has already clogged up your personal "last mile" link. I concur. While I use QoS to rate limit incoming connections to many T1 & frame links, there is just so much you can do with an incoming stream which is congested. We have a Packeteer 6Mb/s device at Corp throttling about 10 remote sites. Handles incoming/outgoing pretty well. But when the incoming traffic from a remote site to Corp get saturated, the user complain. We took our patch servers at rate limited them to 80%. Even when they are at 80% incoming and the graphs show this, the users still complain because the damage has been done already. You need QoS on both ends of the link to stop the choppyness. The outbound can be 100% and the users don't complain because it can prioritize that traffic prior to going over the link. Odds are you are not going to go to your ISP and get them to QoS for you. So here are some other options; Now if you don't mind slowing down your P2P, you can do something pretty simple. Most P2P clients allow you to limit incoming/outgoing bandwidth. Go into our client and set your download rate to 30% your bandwidth, and your upload rate to 30% your upload bandwidth (async probably.) If you can't control your client this way (WoW?) Smoothwall with the QoS option does very good. We have a 100Mb/s bidir connection at work. We pay based on usage and have open WIFI. Well, first qtr the bill came in and P2P traffic added $1500 that month. We setup ALL ports > 1024 bidir in Smoothwall w/QoS add on to LOW priority and maximum bandwidth cap.) The setting gives me about 50kb/s of P2P bandwidth over my 100Mb/s pipe.

    18. Re:Gaming Router by Anonymous Coward · · Score: 0

      linksysinfo.org
      ddwrt
      it will pretty much do whatever you need it to do as long as you have a compatable linksys WRT router.

    19. Re:Gaming Router by Binestar · · Score: 4, Insightful

      You can just get the Vonage Linksys: WRT54GP2. Has built in vonage and QOS for it.

      --
      Do you Gentoo!?
    20. Re:Gaming Router by Ichijo · · Score: 1

      The way I approach it is to use a small, but fully functional Cisco router at the client side, and work with a mom & pop ISP who will also throw some QoS on their router for that link.

      If you're with an ISP that's unwilling to work with you on the above, would it be possible to setup a server somewhere (probably collocated) and have your home network's router VPN into it? Then you could traffic shape both sides of the connection to your heart's content.

      --
      Any sufficiently unpopular but cohesive argument is indistinguishable from trolling.
    21. Re:Gaming Router by Anonymous Coward · · Score: 1, Informative

      If you do decide to use DD-WRT, consider the add-on scripts described here for TCP Vegas:

      http://www.dd-wrt.com/phpBB2/viewtopic.php?t=28816

    22. Re:Gaming Router by duffbeer703 · · Score: 4, Informative

      To hell with DD-WRT, Tomato is a much, much better firmware with QoS services that work better than the Cisco gear I have at work. You can prioritize traffic to/from hosts, specific ports or even application signatures (note that if you do alot of sig matching it may affect performance)

      I have a RR Pro account, and I can have a torrent box churn away while I play Counterstrike and my wife talks on the VoIP phone with zero problems.

      --
      Conformity is the jailer of freedom and enemy of growth. -JFK
    23. Re:Gaming Router by duffbeer703 · · Score: 1

      There' nothing wrong with the 54G, it's DD-WRT which is the problem.

      --
      Conformity is the jailer of freedom and enemy of growth. -JFK
    24. Re:Gaming Router by Anonymous Coward · · Score: 0

      Bingo. That's the answer. I tried many "gaming" routers and none did the Voip QoS right. Only DD-WRT and OpenWRT did it right. (Ok IPCop worked perfectly as well on a old P-II pc here.)

      One other that worked was the now illegal HP Buffalo wireless router that I could set QOS on a per port basis, so I had the VoIP port with the highest priority. It worked until I flashed it also to DD-WRT and got even more stability and performance...

    25. Re:Gaming Router by Anonymous Coward · · Score: 0

      I agree, stay away from toy routers.

      But skip cisco...

      Get IPCop on a old P-II or P-III pc and get real router capabilities. I replaced many Cisco routers that were too old with IpCop and a old PC for clients. those old worn out PC's still chug away, give them more features than Cisco can offer, AND cost less than the cisco gear with me charging $100.00 an hour maintainers fees on it over the past 4 years. (I give a $50.00 an hour discount on all linux gear. Yes my side consulting is getting big enough that I turn away clients so it does not interfere with my day job... 45 clients with another 30 wanting lil' ol' me over the local IT bungling companies like Next-IT and Dweeb-Squad.)

      Cisco is great for rich corporations. For small companies there are more and better options if their IT support companies are educated enough and experienced enough.

    26. Re:Gaming Router by enigmatics · · Score: 1

      Get a bit torrent client like uTorrent that has built in bandwidth throttling. No hardware to mess with. Plus with uTorrent you can set up bandwidth schedules so during the day you have torrents use 50% bandwidth and at night 90%.

    27. Re:Gaming Router by WeblionX · · Score: 1

      Or you could change the BIOS setting to make it start again after a power outage. Most computers have that.

      --
      (\(\
      (=_=) Bani!
      (")")
    28. Re:Gaming Router by mysidia · · Score: 1

      If torrent traffic is the issue@home, I suggest setting up policing of the torrent traffic on your router.

      It may be _helpful_ if the ISP can apply QoS on their end, as it would allow you to still make more efficient use of your connection. Obtaining a special setup such as that is ilkely to have a cost.

      You can still obtain good results by limiting TCP traffic, provided you allow for enough overhead.

      Limit torrent traffic to 30Kb/sec outbound and 100Kb/sec inbound, assuming you have a 3 megabit connection.

      The policing limit needs to be defined as a global limit (not 100KB/sec _per_ connection, 100KB/sec for all bittorrent connections)

      Apply suitable limits to every protocol, and then exempt your VoIP ports from the limits.

      This is very different from using CoS or QoS to prioritize traffic. Unless you can get your ISP to prioritize VoIP traffic down your link, right: prioritization is not good enough.

      No, you cannot create precise constraints on the incoming bittorrent traffic, so you need to limit well below the downstream amount that causes problems.

      Nevertheless, short of an outright attack, the TCP throughput will reduce towards the limited level, because the TCP/IP protocol itself utilizes a congestion avoidance algorithm. And dropped packets (when the speed exceeds the limit), will force the inbound throughput of the TCP connection to be reduced by the foreign end of the connection.

      The transmit window of the sender will normally be reduced to a size that avoids a certain percentage packet loss.

      (Packets dropped by your end because the inbound rate is exceeded contribute to the loss measured by the other side of the TCP stack connecting to your bittorrent)

      By limiting your upload speed, you may reduce other clients' eagerness to send you data at a faster rate than you want.

      The nature of the bittorrent protocol is also, that your client can self-limit its download rate, if you use an approprient client program such as uTorrent or Azureus.

      Using bittorrent clients that let you set maximum download and maximum upload speed in the client should come before you look for user-friendly gear that can help you try to implement QoS.

    29. Re:Gaming Router by MidnightBrewer · · Score: 1

      Even without that much effort, it's so rare for a fan to fail that I've never had to worry about it. What about keeping a few spares around for the one time every five years that a fan might quit without warning?

      Course, by then, you've probably already bought a new computer, anyway...

      --
      "Give a man fire, and he'll be warm for a day; set a man on fire, and he'll be warm for the rest of his life
    30. Re:Gaming Router by Anonymous Coward · · Score: 0

      Good.

      Have you ever seen one of these? I saw one in a PC Club one time, but I decided not to buy it. Do you have one?

      Ah - Verizon repossession. Vonage and Verizon. What would I repo that anyway?

    31. Re:Gaming Router by Kompressor · · Score: 1

      would it be possible to setup a server somewhere (probably collocated) and have your home network's router VPN into it? Then you could traffic shape both sides of the connection to your heart's content

      Yes-ish. That would allow you to adjust the rates of the traffic in both directions, however the overhead added by the VPN tunnel would kill any efficiency gained.

      --
      kmem russian roulette: Aquillar> dd if=/dev/urandom of=/dev/kmem bs=1 count=1 seek=$RANDOM
    32. Re:Gaming Router by Anonymous Coward · · Score: 0

      Your router cannot do anything of meaning about incoming data.

      Bingo. And this is the big selling point for Speakeasy's VOIP. I had Speakeasy for my ISP for a while, and Vonage for phone because it was cheap.

      (I have no association with Speakeasy, other than that they used to be my ISP. I think they're kind of "meh" these days, but they're the only example of an ISP I know who also sells prioritized VOIP.)

      The Speakeasy people were happy to sell me DSL only, but they tried to get me to buy VOIP from them, and strongly suggested that if I cared about phone service (I really didn't), I should get VOIP and internet from the same provider (whether from them or not).

      Apparently they've got their network set up so VOIP always get priority, even on the line to your house. Short of an end-to-end solution like this, there's probably not much you can do.

    33. Re:Gaming Router by bobbozzo · · Score: 2, Informative

      you might want to check out Astaro. There's a free home use license. Traffic shaping lets you cap your p2p bandwidth, or guarantee bandwidth for your voip traffic. It can install on x86 hardware, so plenty of horsepower.

      Astaro's web site is http://www.astaro.com/ and their community support forums are at http://www.astaro.org/

      It needs a PIII or better, with 512MB RAM or more, but is VERY full-featured... VPNS, SMTP relay, http content filtering and antivirus, QOS, ...

      --
      Nothing to see here; Move along.
    34. Re:Gaming Router by ZakMcRofl · · Score: 3, Informative

      I agree, Tomato is a great firmware. Two important tips: 1) Do NOT set any of the "Prioritize small packets with these control flags" boxes. If a high/full speed torrent runs it will have a lot of those packets and it will kill any potential benefit of the QOS. 2) After trying Tomato, if you want to get even more speed out of your router try the speedmod: http://touristinparadise.blogspot.com/2008/04/linksys-wrt54gl-routers-improving.html More details there. PS: DD-WRT works fine too but the GUI of Tomato is so slick and user friendly that I don't want to miss it anymore.

    35. Re:Gaming Router by jimfrost · · Score: 3, Informative
      Let me pile on to this as well. I have a WRT54GL acting as my router. While I eventually gave up on Vonage I ran it plus my regular loads (web server, a whole lot of SMTP, bulk downloads, interactive browsing) simultaneously for a couple of years.

      The stock Linksys firmware didn't do it; its QoS features were pretty much worthless IMO and the stock tuning was regularly overloaded due to too-long TCP timeouts and the pounding the thing got from The Bad Guys.

      DD-WRT allowed me to tune the settings to the point that it worked slick-as-you-please. There were a couple of critical settings.

      First, I boosted the number of active connections allowed to the maximum, 4096. Second, I dropped the TCP/UDP timeout to 10 minutes. These two made all the difference in terms of stability; without them the connection count would rise to saturate the table and things would fall apart fast.

      With stability in hand the next thing to do was QoS. I chose to cap bandwidth at about 80% of available and then give priority to the Vonage box's port. This worked neat-as-you-please; the phone never had dropouts and everything else kept going smoothly.

      --
      jim frost
      jimf@frostbytes.com
    36. Re:Gaming Router by Bert64 · · Score: 1

      Well...
      I have a Cisco 1701, and the ISP already prioritises voip traffic for me... Any pointers on how to configure the router my end appropriately?

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    37. Re:Gaming Router by Bandman · · Score: 1

      Or get a battery backup. With the low power draw, it should last quite a while, and you should really have phones in the event of a general power outage anyway

    38. Re:Gaming Router by timeOday · · Score: 1

      I have fans fail all too often. Wild guess here, but perhaps it's because I live in a desert and my home has a "swamp cooler" rather than A/C.

    39. Re:Gaming Router by batemanm · · Score: 2, Informative

      Your router can only control what it sees.

      Seems obvious, but let's consider the implications.... Your router cannot do anything of meaning about incoming data. By the time your router sees it, it's already traversed your cable or DSL line and the damage has been done.

      For TCP connections your router could control the window size of the connection by rewriting outgoing packets. If you put a cap on the window size it would keep your throughput low. Your router would need to keep some state on TCP connections, you could probably get away with just the number of active TCP connections. Of course this wouldn't help with anything UDP based.

    40. Re:Gaming Router by RandyOo · · Score: 2, Informative

      You can just get the Vonage Linksys: WRT54GP2. Has built in vonage and QOS for it.

      Yeah, then watch it crash on a daily basis if you try to run bittorrent? No thanks. (speaking from experience here)

      After plenty of trial-and-error, I've found a router with Tomato installed and QOS properly configured to be the best solution.

    41. Re:Gaming Router by BBandCMKRNL · · Score: 1

      I have fans fail all too often. Wild guess here, but perhaps it's because I live in a desert and my home has a "swamp cooler" rather than A/C.


      No, your problem is you're trying to cool a non-existent swamp :-)

      Given the low humidity I would expect your fans to be more effcient than if you lived in say, Houston. I've been in houses cooled by swamp coolers and couldn't tell the difference between that and A/C.

      I've got a case with 5 fans plus the one in the power supply, I've been using for the past 7 years and haven't had a fan failure, but I do open up the case quarterly and clean all the gunk out of everything.

      --
      Without the 2nd Amendment, the others are just suggestions.
    42. Re:Gaming Router by Andy+Dodd · · Score: 1

      This is exactly how I have my Buffalo WHR-G54S (not available currently due to patent trolls) running DD-WRT set up.

      The active connections and connection tracking timeout values are critical if you're torrenting - Without them BT will kill the router. With them, the router handles BT easily.

      Similarly, packet prioritization at the router doesn't help unless you cap bandwidth at something somewhat below your connection's maximum, like you did.

      To the original person that asked the question - Unless you do extreme customization, there is never any need to touch the commandline with many of the Linux-based router packages. DD-WRT is easy to install and the configuration interface is 100% web-based unless you do some really crazy and nonstandard stuff.

      --
      retrorocket.o not found, launch anyway?
    43. Re:Gaming Router by jrjarrett · · Score: 1

      Yes, but if you rely on VOIP, and the power goes off, doesn't that also typically take out your modem? So you're still without phone service...

    44. Re:Gaming Router by Miros · · Score: 1

      This isnt really true though. TCP/IP as it's designed sends packets at a faster and faster rate until it ends up with loss, and then scales back. You can't control how fast data comes in, but you can control how fast you forward it. Therefore, QOS/Scheduling on the internal interface of any router can be used to scale the incoming traffic on the other side by keeping the connections from becoming too hot in the first place. Can you truly limit the incoming bandwidth of your router? not really. But, you can truly limit the incoming bandwidth of all the hosts on the internal interface of the router, which amounts to the same thing in the end. I would suggest reading through the advanced linux router and traffic control howto. it's a very good document.

    45. Re:Gaming Router by Anonymous Coward · · Score: 0

      QoS can only get you so far.
      If you provider's equipment does not support diffserv, you are better off with a router that throttles the traffic.
      Yes, you heard right, throttle your own traffic, more bandwidth for VOIP and streaming/gaming, and the rest for P2P, Web Browsing.

      If you had an ATM switch you would assign three circuits:

      UBR to P2P and Web
      CBR to voip
      VBR to streaming video/gaming

      And in a way your router will discard packets and generate icmp according to the type of traffic by inspecting the TCP and UDP headers.

      The underlying problem is that TCP is not up to the job.
      It was designed to have only one connection or many connections with the same bandwidth.

    46. Re:Gaming Router by sumdumass · · Score: 1

      Batery backup.

      Simply hook the modem up to one too or use the same ones.

      One of the problems is that we are starting to replicate telecom infrastructure and there is no real savings for Voip if it gets too far out of hand. And all your preparedness is moot if the ISP doesn't have a backup generator or some way to offer seamless internet during a power outage. I had an ISP that "lost power" more then I did back in the 90's. Actually, they were overloading the circuit coming into them but that is something the power company had to correct. But nothing is going to come close to the reliability of a land line and traditional telecom unless you state spending that type of money. Your almost better off biting the bullet and forwarding the calls to a cell phone or something.

    47. Re:Gaming Router by dknj · · Score: 1

      we just dusted off our wrt54gp2 when we moved and we have no problems using bittorrent and voip behind this router. i haven't gotten around to breaking the vonage-only sip configuration, but that will be happening shortly. even when we were using vonage, we didnt have any problems with bittorrent, vonage, and two xbox 360s. don't fault an entire line of products based on a single piece of bad hardware. if i were to follow your lead, i would recommend you never buy a netgear wireless router....

    48. Re:Gaming Router by Anonymous Coward · · Score: 0

      Alix boards work great for this. They run off an amd geode (x86) and run so cool they don't even need a heat sink. I'm using one based on the lx800 (500mhz) for a router and voip phone server (asterisk) and its not had any problems. It has 256MB of ram and and has a compact flash/IDE port so you run it off that and it looks like a harddrive. It also has miniPCI ports so you could put a wireless card in it if you wanted. I purchased mine from mini-box.com but they are probably available other places as well.

      The traffic shaping/Qos worked great but you also need to have the upstream incoming shaped as well otherwise your pipe can get swamped and your voip calls will have problems, especially if you run servers like email/ftp/web.

    49. Re:Gaming Router by darguskelen · · Score: 1

      The OP said that they were using VoIP to service pretty much just business clients. It sounds like they have a home phone as well.

    50. Re:Gaming Router by pak9rabid · · Score: 1

      Couldn't you do a low heat/low power CPU that doesn't need active cooling, RAM, and a USB thumb-drive to boot off of?

      If you're really serious about having a good router with excellent uptime, runs Linux, doesn't use much power, you can build yoursel, and has no moving partsf, I'd recommend the the following configuration (this is what I run at my house with zero problems:

      Load a CF card with Pyramid Linux, pop it into the CF slot on the Soekris board, ssh into it, configure to your liking and away you go. I've been running one of these guys for years w/no problems (other than the ones I created thru experimentation ;) ). I have a firewall script setup utilizing QoS that gives all of my 'interactive' application-based traffic higher priority over my 'bulk-download' traffic. I can completely max out my upload/download with FTP/Bittorrent/usenet/etc and still have zero lag while I'm gaming/browsing/etc.

    51. Re:Gaming Router by Anonymous Coward · · Score: 0

      I agree with that assertion. Any kind of prioritization works best when both sides of the link are set to the same priorities. It's true that outbound is easier to control and shape. In bound can be shaped somewhat if the far end isn't shaping as well, but there is a lag when a data stream is established. Graphing it looks like a burst and then it flattens out. That doesn't help much with VOIP if you happen to be in the middle of a call when another stream is established and "bursts" until the router can get a grasp on it.

      Also keep in mind that with a cable modem you are on a shared segment with your neighbors. If they kick off something big, you wmay suffer as well.

      Nature of the beast I'm afraid.

    52. Re:Gaming Router by Atticka · · Score: 1

      Agreed, Astaro is an excellent choice.

      To get your free copy (10 ip limit) you will need to create a "myAstaro" account, here is direct link:
      https://www.astaro.com/user/login

      Once logged in you can download the "Astaro Security Gateway" as a bootable ISO, this will install the gateway on your PC of choice (make sure you have two network cards, one for WAN and one for LAN). Please keep in mind this will completely format the PC.

      --
      No sig here...
    53. Re:Gaming Router by sciurus0 · · Score: 1

      Here's OpenWrt's table of supported hardware. I like to think of OpenWRT as the Debian of router firmwares: customizable, modular, and free. In this analogy, X-WRT is Ubuntu; they take OpenWRT and add a web interface to make it simpler to use.

    54. Re:Gaming Router by timeOday · · Score: 1

      What I meant was, the swamp cooler doesn't seem to filter dust from the air as well as A/C. At work we have A/C and when I take machines apart they look brand new inside. At home when I take them apart they look like the inside of a cave from Indiana Jones.

    55. Re:Gaming Router by bonehead · · Score: 1

      well, there is one thing you can do at your side: sacrifice half your incoming bandwidth.

      Sadly, in many cases that's not even an option. There's nothing much you can do at your end about traffic that you didn't initiate: worms, spam attempts, etc...

      I don't do VOIP at home, we just use our cell phones. I install VOIP systems for businesses, in settings where good performance 99% of the time is unacceptable, I have to deliver 100%. My clients bitch up a storm if they hear one or two garbled words over the course of an entire day.

      I've seen several installations where it took nothing more than the spam attempts coming into the mail server to kill the VOIP quality, even with NO locally initiated traffic going on.

      I've been doing VOIP for quite a few years now, and believe me, I've done my research. I've implemented and tested every idea I've seen mentioned in this discussion. Many of them aren't bad, and will produce "pretty good" results. Probably good enough for home use.

      But in real world application where you're expected to deliver telco quality service, you simply must have the ability to do something about inbound traffic before it traverses your internet connection.

      I'm very fortunate in that I have a strong relationship with a locally owned ISP who is willing to put some QoS at their end for my customers. My method has allowed me to provide call quality that exceeds landlines, even on completely saturated connections. Everything else only gets you about 95% of the way there.

    56. Re:Gaming Router by Rod+Beauvex · · Score: 1

      Arris (sp?) makes a modem with a back up battery.

    57. Re:Gaming Router by sumdumass · · Score: 1

      Nice, you have any idea for the time is can last without power?

      I'll just google for it. But thanks, I didn't know those were available.

    58. Re:Gaming Router by Solosoft · · Score: 1

      It all depends on the amount of connections you cram through that router. I have a 6mbit/784kbit Cable line and if im running more then 2000 connections (which the WRT54GL does just fine) then everything goes to a halt. The overhead of all those connections just consumes the line. If you limit the amount of open connections in your torrent program you'll notice the QoS works quite well even for voip.

      Bittorrent and Limewire have to be the worst for consuming the entire line with it's overhead. If you don't limit those down (usually ~ 250 connections max) and limit the upload lots lots (ie I send at ~ 70k/s I usually limit my torrents to ~ 20k/s) I notice almost nothing from those torrents.

      My girlfriend on the other hand has 15mbit fibre in her home and her WRT54GS v5 (with 2mb/12mb) can't handle 14mbit of bandwidth (up and down) just constantly reboots. For most residental lines tho the trick is all in the open UDP/TCP connections. (I know UDP isn't technically a connection but UDP shows up as a open connection to the router.

      If you SSH/Telnet into the router and "type" this command.
      sed -n 's%.* src=\(192.168.[0-9.]*\).*%\1%p' /proc/net/ip_conntrack | sort | uniq -c
      It will show you the active amount of connections. You should keep the total under ~ 1500 ... if your pushing that many connections you should maybe consider getting a bigger internet package as most residental lines won't handle it. Esp PPPoE DSL ... throwing another layer (PPP) just makes things worse.

      DD-WRT's QoS is pretty good you just need to play with some of the numbers. If you have them too low then your losing out on speed. If you keep them too high then you'll notice things slowing down. Convienently I made a simple QoS startup guide to kinda get you started. This Page.

      Im pretty good with these routers (having setup many many for people) any little questions I could prolly help out.

    59. Re:Gaming Router by rootooftheworld · · Score: 1

      heat cynk/syphone, immersive cooling, intake air filter

      --
      I know full well that tobacco is bad for you, so I smoke weed with crack
    60. Re:Gaming Router by fubar1971 · · Score: 1

      ...but if you want real QoS stuff, a linux firewall box is the way to go...

      That's why I use IPCOP It has traffic shaping abilities, and you can run it on any first gen Pentium Box. Right now mine is routing for VoIP, my personal web surfing, and a business that I am trying to get off the ground. Works great. If the PC dies, then I just re-install IPCop on a recyled PC, and restore a backup of my configuration. I picked up a P90 and threw in 3 spare 10/100 cards I had laying around. Presto instant Firewall with LAN/WAN/DMZ, traffic shapping, and Bandwidth throttling. All for about $10. Works great, really cheap, and saves an old PC from littering the land fill. You can't go wrong.

    61. Re:Gaming Router by jonadab · · Score: 1

      So leave the phone on the outside but put the torrent client (or whatever) behind the traffic-control box. A Linux router should be sufficiently high-availability for BitTorrent purposes, I would think, and if it fails, the VOIP keeps going.

      The real trouble I forsee is trying to shape or prioritize the bandwidth of a bottleneck last-mile link when you only control one end of the link. You can delay or drop low-priority outgoing packets, but by the time you see the downstream packets it's too late to do anything about them -- they've already had whatever effect on the network they're going to have. Somebody clicks on a torrent with a lot of seeders (say, a Debian release that came out several days ago), and suddenly you've got a veritable deluge of downstream packets coming in, even though very few upstream packets are going out. It wouldn't hurt anything to delay the BitTorrent packets -- they're not really sensitive to latency -- but it also won't do any good once they've already passed the bottleneck.

      You really need to do coordinated shaping on both ends of the link, but I'm not aware of any consumer-level ISPs who provide that sort of thing to ordinary home users.

      --
      Cut that out, or I will ship you to Norilsk in a box.
    62. Re:Gaming Router by klubar · · Score: 1

      i believe that's what you get if you buy a COTS (commercial off the shelf) router from linksys, d-link, etc. Depending on the brand they will either use a flavor of linux or a proprietary RTOS. Other than using built-in flash rather than USB that's what you've just recommended. In addition, the board, cooling, ram and everthing else will be designed for 24x7 operation with an expected unit life of 3+ years. Even better, it will cost around $100 and probably use less power than anything you put together yourself--and come with a 1 year (or more) warantee.

    63. Re:Gaming Router by Binestar · · Score: 1

      I will have to concur with not having any problems with bittorrent behind this router. I'd say the grandparent got a piece of bum hardware.

      --
      Do you Gentoo!?
    64. Re:Gaming Router by hjf · · Score: 1

      well if you're installing to businesses it's another story.

      also where I live there are no mom and pop ISPs. there is an ISP that sells voip, and the telco monopoly (good luck asking them to QoS your voip). there is a newer one that is said to actively block SIP but I didn't have a chance to check... do you know about a good softphone and echo test server I can use?

    65. Re:Gaming Router by BBandCMKRNL · · Score: 1

      What I meant was, the swamp cooler doesn't seem to filter dust from the air as well as A/C. At work we have A/C and when I take machines apart they look brand new inside. At home when I take them apart they look like the inside of a cave from Indiana Jones.

      I wish I had your work environment at home. I get plenty of dust out of mine with A/C. I wonder if your place of work has some sort of electronic dust zapper in the duct work.

      --
      Without the 2nd Amendment, the others are just suggestions.
    66. Re:Gaming Router by pnutjam · · Score: 1

      I have an old HP celeron that I use at home. It never craps out on me. Granted I don't do PVR. I use it for owl-dms, torrentflux, SAMBA.

    67. Re:Gaming Router by Mr.+Slippery · · Score: 1

      Couldn't you do a low heat/low power CPU that doesn't need active cooling, RAM, and a USB thumb-drive to boot off of?

      Sounds like a job for an OpenBrick. Or a decTOP (nee AMC PIC), if you can find one.

      --
      Tom Swiss | the infamous tms | my blog
      You cannot wash away blood with blood
    68. Re:Gaming Router by owlstead · · Score: 1

      For anyone reading this old news, you can buy them fanless, saves you the underclocking.

  2. Tomato by Anonymous Coward · · Score: 2, Interesting

    Perhaps try picking up a WRT54GL and installing Tomato on it.

    1. Re:Tomato by ScrewMaster · · Score: 2, Interesting

      I agree. I was running Smoothwall for a while, but then I got hold of a WRT54GL V4 and started playing around with alternate firmware. I eventually settled on Tomato. I use AT&T's CallVantage VoIP service, and it works great with Tomato. I can have my line maxed out running a bunch of torrents, or playing live video from Netflix, and the phone never stutters.

      Frankly, I think Linksys ought to hire the guy that wrote Tomato. His stuff is light years ahead of the stock firmware.

      --
      The higher the technology, the sharper that two-edged sword.
  3. Many linksys models can use dd-wrt or other by zonky · · Score: 1

    firmwares. It would help to know what router you have.

    1. Re:Many linksys models can use dd-wrt or other by zonky · · Score: 2, Informative

      and a WRT54GL cost me $100 (NZD) so i'm assuming it's $60-70 USD and with DD-WRT will do what you want and more.

    2. Re:Many linksys models can use dd-wrt or other by Anonymous Coward · · Score: 0

      and a WRT54GL cost me $100 (NZD) so i'm assuming it's $60-70 USD and with DD-WRT will do what you want and more. Including your mom!
    3. Re:Many linksys models can use dd-wrt or other by T3Tech · · Score: 1

      ~$50 (USD) after rebate at newegg last I checked, though I'd use OpenWRT personally.

      Hardware compatability for OpenWRT

      --
      Of course I didn't RTFA... why would I do that? You really are new here aren't you? Don't let my UID fool you.
  4. Quality of Service by Anonymous Coward · · Score: 0

    If you have the Vonage box prioritized, and the BT box bulked,(set for low priority) that should completely eliminate your problems, if it isn't, either you didn't set up QoS properly, or the QoS sucks and doesn't work.

    For my setup with VOIP, I use a WRT54GL, with OpenWRT. Before I setup QoS, I experienced the same problems you did, but after I did all the problems went away.

  5. Build one... by kwabbles · · Score: 5, Informative

    www.ipcop.org
    www.endian.com
    www.smoothwall.org

    Full-featured firewalls, will run on old crappy hardware you got laying around the garage. All you need is two NICs. Viola. QoS no problemo.

    --
    Just disrupt the deflector shield with a tachyon burst.
    1. Re:Build one... by NFN_NLN · · Score: 4, Informative
    2. Re:Build one... by aliquis · · Score: 4, Informative

      Exactly, that or http://www.pfsense.com/

    3. Re:Build one... by neocrono · · Score: 5, Funny

      All you need is two NICs. Viola.

      I have a cello, will that work?

    4. Re:Build one... by Anonymous Coward · · Score: 0

      'viola'? I don't think he wants a musical instrument ;)

    5. Re:Build one... by pvera · · Score: 1

      "Old crappy hardware" is not an exaggeration. At my previous job one of the employees was cleaning his basement and found a handful of old monitors, so he sold them to the boss/owner for $100, to use them in the server room. He also threw in his very first PC, an old clunker piece of crap he considered worthless.

      We burned a Smoothwall CD, booted it up and 15 minutes later we had a basic firewall that for all I know it is still up and running. It still took us a few days to go over some weird nuisances (for example, the freebie version was a bit harder to setup with multiple external IPs) but the basic functionality was a no brainer, and you couldn't tell that it was running pn a very old PC.

      --
      Pedro
      ----
      The Insomniac Coder
    6. Re:Build one... by mea_culpa · · Score: 1

      I run 2 VOIP adapters, one for NextAlarm, and the other for iTaklBB for local and international calls.
      m0n0 has a very good traffic shaping configuration tool. When configured properly it will always grant the highest priority to the VOIP ports. And set P2P traffic as bulk/hated status. Even giving you good performance for web,im,etc without having to shape it as it falls in the everything else category.
      Even under full load, several torrents running, ReplayTVs sending shows, it has never given me a problem.

      You can even get it in a nice power saving box at Soekris
      Write the m0n0 image to a CF card and you are ready to go. With it's very intuitive web interface you will be up and running without having to learn any command lines, etc.
      Any old PC with a couple NICs and a bootable CD or USB flash will work too, but in the long run the PC will cost you about $15/month in power.

      There are many howtos etc at http://m0n0.ch
      I can't recommend it more. I have deployed dozens of these to replace underpowered routers and pretend firewalls.

      One thing you will need to learn is how NAT and Rules work on this FW. You first need to create NATs for incoming ports that you want open. During the NAT creation process there is an option to auto-add it to the firewall Rules to make it easier. But creating a NAT alone without a Rule will not allow incoming traffic. Plenty of tutorials are on their site.

    7. Re:Build one... by Anonymous Coward · · Score: 0

      However, this will waste a LOT of energy. Those little Linksys/Asus/what-ever routers use 5 to 10 watt. An old PC easily uses 40 watt usually much much more.

    8. Re:Build one... by Bert64 · · Score: 1

      How many old monitors fit in a handful?

      Putting monitors in a server room defeats the purpose... You should run everything from serial console or remotely over the network.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    9. Re:Build one... by iviv66 · · Score: 5, Funny

      I have a cello, will that work?

      Not out of the box, you'll need to fiddle around with it first.

    10. Re:Build one... by superwormy · · Score: 1

      How do you reserve bandwidth in pfSense? I have been unable to find a way to reserve bandwidth on an interface for VoIP/an alias/an IP address. The traffic shaper provided with 1.2 *does not* seem to work well at all. I would *pay* someone to tell me how to do this... keith@academickeys.com

    11. Re:Build one... by Anonymous Coward · · Score: 0

      I'd second the ipcop recommendation. It's pretty easy to setup and has a very nice web menu driven config. There's not much of a required learning curve to use it (other than setting up the PC).

      I expect carefully setting the bandwidth limits on the custom firmware could give good results, as mentioned above depending on your usage.

      With the number of open connections, my old wrt54g kept melting down even with some tweaking to dd-wrt. I run OpenBSD for my firewall with my linksys as the switch and wireless gateway. pf was easier to me than ipchains. (Also solved issues with connectivity between wired and wireless units.)

    12. Re:Build one... by aliquis · · Score: 1

      I have no idea, I haven't used it and probably haven't had that need either. All I've used is m0n0nwall but then I know pfsense are based on newer freebsd releases and have more (but heavier) functionality. I just linked it aswell as an alternative to m0n0wall for those who need the functionality and/or have a machine which can handle it.

    13. Re:Build one... by Stavr0 · · Score: 1

      All you need is two NICs. Viola. QoS no problemo.

      I don't understand the need for a musical instrument to create a firewall.

    14. Re:Build one... by pvera · · Score: 1

      Well, yeah. This was an arrangement between that employee and our boss. I still ended up grabbing two KVM switches to redo the server room as soon as I got the budget for it.

      I think it was three 14" monitors, plus the clunker that became the Smoothwall. Sometimes we would freak out because we forgot the Smoothwall was there, it takes the brain a split second to realize that had the damn thing died, the whole company (15) would have been whining about how "the internets were broken."

      --
      Pedro
      ----
      The Insomniac Coder
  6. Voip packet queuing by whatmot · · Score: 5, Informative

    I use a Dlink appliance that works well, requires zero configuration and is placed in between the router and the modem - Voip Internet Accelerator Intelligent Packet Priority Engine Manufacturer Part Number: DI-102 Never had a single problem over more than a year of use.

    1. Re:Voip packet queuing by BulletMagnet · · Score: 3, Informative

      One little problem - your DI-102 unit is EOL'ed and no longer available.

    2. Re:Voip packet queuing by aaronmarks · · Score: 1

      I have one of these as well and it is great! I can't believe that D-Link would consider discontinuing it.

    3. Re:Voip packet queuing by jiggers069 · · Score: 1

      I just purchased the Hawking Cable / DSL AMP Network Broadband Booster for the same purpose. Just put it between my router and cable modem and is seems to work like a charm. Good deal here: http://www.techsunny.com/Hawking_Cable_DSL_AMP_Network_Broadband/HBB1/partinfo-id-3222199.html

    4. Re:Voip packet queuing by ScottFree2600 · · Score: 1

      We use these and the Hawking Broadband Booster (~$60). These devices can make a DSL or cable modem usable and pretty consistent. HIGHLY RECOMMENDED!

  7. Get another internet connection by fat_mike · · Score: 5, Insightful

    If you're running a business, your first worry should be about servicing your customers not using Bittorent. Get another DSL/Cable/Wifi connection for your business and run your VOIP over that.

    If you only need the limited bandwidth that you are looking for you'd be fine with the lowest speed (read cheapest) connection any ISP offered.

    1. Re:Get another internet connection by geekoid · · Score: 1

      true, OTOH if there is a solution for this, why not use it?

      --
      The Kruger Dunning explains most post on /. http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
    2. Re:Get another internet connection by Rushowr · · Score: 1

      Uhm...the poster already mentioned that the bittorrent box on the network was low priority, and was actually asking for help further improving the bandwidth restrictions... Gawd I hate people who just want to be rude to people instead of possibly helping them

    3. Re:Get another internet connection by mollymoo · · Score: 1

      If you're using it for work get work to pay for a second phone line and unplug it after hours.

      --
      Chernobyl 'not a wildlife haven' - BBC News
    4. Re:Get another internet connection by Anonymous Coward · · Score: 0

      Great answer bosco. So you think an answer to the question of "which router to use" is "do something else"? Moron.

    5. Re:Get another internet connection by d34thm0nk3y · · Score: 1

      If you're running a business, your first worry should be about servicing your customers not using Bittorent. Get another DSL/Cable/Wifi connection for your business and run your VOIP over that.

      Excellent suggestion! Instead of a one-time cost of $50 for a gadget to salve the problem the submitter can pay $50 every month! That ought to stimulate the economy!

    6. Re:Get another internet connection by d34thm0nk3y · · Score: 1

      Hehe, nice. Not only am I, apparently, quoting myself. I am rubbing lotion on a router box.

    7. Re:Get another internet connection by fat_mike · · Score: 1

      Did you hear that? That was the sound of the point going completely over your head.

      If you're going to run a business, run a business. Run your personal stuff somewhere else.

      See that sentence above, that's helpful. I'm not being rude, I'm being honest. Rude would be saying, "Good luck using GAWD! or any other LOL,ROFL,U,R,PEEPS,P0WNED word in a business environment kid because bosses, managers, owners will laugh your ass back on the street where you'll say, 'GAWD! How Rude!' while they're standing at the windows laughing at you and getting blowjobs from $5000 hookers, counting their money with one hand and trying to decide which angle to throw the clue stick with the other while offering up odds to the other employees."

      Now that would be rude. True, but rude.

    8. Re:Get another internet connection by Eskarel · · Score: 1
      Just because it's cheaper doesn't mean it's better. You should never combine your business and home internet connections unless you're business doesn't really need the internet connection because it's just not worth it. There are a number of reasons for this.
      • You can write off a purely business internet connection as a legitimate business expense, if you use it for personal use as well you've got to do things like work out the percentage of business use vs personal use, this is unnecessary hassle. If you never use it for anything but work you'll never have any problems with the IRS.
      • You can get yourself a business connection with an SLA which means that you can rely on your connection. If your connection being down costs your business money paying money to make sure it's up is worth it.
      • No matter how clever you make your router there's still a chance that personal use will affect your VOIP services. If you're using your VOIP to talk to customers, then you look unprofessional, if your business is IT related and you can't get simple stuff like VOIP to work you look worse than unprofessional.
      Realistically speaking if you're serious about your business and it has developed to the stage where it's providing a reasonable income you should have infrastructure(internet connection, phone line, and likely PC) dedicated to the purpose because the risks of not doing so aren't worth the piddling amount it costs you to do it properly($100 a month written off as a business expense shouldn't be a particularly huge burden for any business which is generating enough money to be your primary source of income, and paying it is substantially better than losing income because you didn't.
    9. Re:Get another internet connection by Anonymous Coward · · Score: 0

      Bullshit. They BOTH run a business. She may be taking a call from a client after 'official' hours, he's downloading Get Smart. This should be doable without a second connection.

    10. Re:Get another internet connection by c_jonescc · · Score: 1

      You're making quite the assumption that he's not using bittorent FOR his business. It could be low priority, and still be business necessary. He made it clear that his bittorent use was above board, yet you're still deciding that it's inappropriate.

      Of course, then you wouldn't get to be high and mighty about separating business stuff from personal stuff, and you'd actually have to address his question.

      --
      Getting diabetes AND salmonella would be a bad weekend.
    11. Re:Get another internet connection by Rushowr · · Score: 1

      Perhaps you missed my atheist reasoning for posting "GAWD" instead of "GOD"...Some of us do not believe in the general population's monotheism, but still find that the phonetic "GAWD/GOD" causes the believer to respond appropriately.... No, on to your next "issue"....Not everyone can afford to pay their local phone/cable company for a second connection to the internet just because they're running a business out of their homes. Stop being asinine and do one of the following: 1. STFU 2. Help helpful In the user's constrains as mentioned in the post, and in the general spirit of the article, the request was about routers that could allocate SPECIFIC BANDWIDTH to a port/service. You in turn, insult the poster for even asking a question. That, my friend, is pretty much on my definition list of /. elitist asshole mentality... Have a nice day

    12. Re:Get another internet connection by cartman94501 · · Score: 1

      I am the OP. I wasn't asking for your priorities or a value judgment, merely for a proposed solution to the problem as stated. My wife and I don't run a business, but we often work our corporate jobs from home. We currently turn off BitTorrent during working hours, but I'd like to keep it running, though throttled, during those times. Hence my original question.

  8. bittorrent latency by markjhood2003 · · Score: 3, Informative

    Interesting exploration of the issues here: http://www.formortals.com/Home/tabid/36/EntryID/57/Default.aspx

    1. Re:bittorrent latency by NeoNorm · · Score: 1

      The problem is likely not with your router, but is an inherent issue with bittorrent. The above article explains it very well. Mod Parent up.

      --
      /* insert witty comment here */
    2. Re:bittorrent latency by colsandurz45 · · Score: 1

      one also has to consider that bandwidth is particularly important as delay is when considering VoIP (this is why when you sniff your skype call all you see is UDP packets -- no TCP packets) And since BT makes latency increase it is especially bad to use while using VoIP... this is one of the fundamental problems (and strengths) with thte internet -- it is a packet switched network, not one of direct connections

  9. QOS should work by corsec67 · · Score: 5, Interesting

    QOS should work if you set it up properly.

    On my WRT-54GL with Tomato (others might work, Tomato is the easiest of ddwrt, openwrt in my experience), the QOS settings can be limited in just the way you want, with everything except the highest only being allowed only 75% of your upload, or whatever you want.

    Downstream is a bit harder to restrict, since the queue is on the Telcom side of things, but you could do some QOS in your router there as well.

    --
    If I have nothing to hide, don't search me
    1. Re:QOS should work by pyite · · Score: 5, Informative

      QOS should work if you set it up properly.

      No, it shouldn't. QoS only works on egress. You can't do any meaningful ingress QoS. All you can do is stop packets from coming past the router. That doesn't address the real problem which is that the ISP link is maxed out. In fact, if you start dropping TCP data that's in a lower priority queue than your UDP voice, it will cause even further issues as the sender will retransmit those lost TCP packets.

      --

      "Nature doesn't care how smart you are. You can still be wrong." - Richard Feynman

    2. Re:QOS should work by afidel · · Score: 1

      For VoIP there's really no need for QoS on the downstream. Personally I've found that the best QoS is to simply limit my torrent client to about 1/3rd of my total available (150/500 kbps) upload bandwidth. That works better than the QoS on any low or midrange router/firewall I've ever run.

      --
      There are 4 boxes to use in the defense of liberty: soap, ballot, jury, ammo. Use in that order. Starting now.
    3. Re:QOS should work by wolf12886 · · Score: 2, Insightful

      I wish I had mod points today, most people don't understand this, and wonder why even throttled BT kills their connections.

    4. Re:QOS should work by wolf12886 · · Score: 1

      sorry, ignore parent, I meant to reply to a nested post

    5. Re:QOS should work by Anonymous Coward · · Score: 0

      "as the sender will retransmit those lost TCP packets"

      With exponential back-off. You should look up 'slow start' as well.

    6. Re:QOS should work by morgan_greywolf · · Score: 1

      Disabling uploading works better, but sucks for the torrent.

    7. Re:QOS should work by Anonymous Coward · · Score: 2, Informative

      I disagree with this and a number of other comments that say you can't do ingress qos.

      Your voip traffic can get hung up in a lot of different places, but by far the most common trouble spots are your router (on the way out) and your ISP's router (on the way in). Other than those two spots (and the same pair for the party you are talking to), it is quite rare to experience jitter that would affect voip call quality. Egress is completely within your control, provided you know what you are doing and/or have the right equipment.

      Ingress can also be controlled at your router in at least two ways:

      1. modification of TCP window sizes (Packeteer has done this for years, and probably others do too these days).

      2. selectively dropping packets to cause TCP flows to back off.

      Number 2 is relatively easy to do with any device that can place bandwidth caps on particular flows. There is a common argument that says it does no good to drop a packet after it has already traversed the bottleneck. For UDP or most other connectionless protocols this is true, but for TCP (including bittorrent and every other bandwidth-hungry protocol out there) this is a misconception. TCP will respond to dropped packets by lowering throughput. It isn't as elegant or efficient a method as TCP window modification, but it is very effective.

      Oh, and you can ignore pretty much everything anyone here has said about tagging unless you have a specific agreement in place with your ISP regarding tagged packets.

    8. Re:QOS should work by Dan9999 · · Score: 1
      The ISP being maxed out is not always the problem, in fact personally it is rarely the problem in my case. If I plug my modem directly to to the computer I never have a problem, but after an hour of bt over the router I can no longer even do nslookups. I haven't had time to look into it but I would wager that it's the cpu on the router that cannot handle the amount of connections. I rarely max out my 10/1Mb.

      Although I cannot say that your situation is not also a problem, I think that I'd really like to see some easy ways for people to get info about their situation with packet-captures-on-each-side and process-debugging-within-the-router output that they can post so that more informed answers can be given.

      Admit it, no matter how much you know, there is too much guesswork about other peoples setup and isp.

    9. Re:QOS should work by pyite · · Score: 1

      With exponential back-off. You should look up 'slow start' as well.

      You can't control the other end. It might back off considerably and go into slow start, or it might marginally shrink the window and still send a considerable amount of data. I also don't need to lookup "slow start," but I appreciate the snide comment. I'm a network engineer so I know the only way you control these things with any sort of true success is to have end to end QoS.

      --

      "Nature doesn't care how smart you are. You can still be wrong." - Richard Feynman

    10. Re:QOS should work by pyite · · Score: 1

      I disagree with this and a number of other comments that say you can't do ingress qos.

      I'll respond to this as I did to a similar post. You can't control the other end. You can't control how much data they send and what backoff algorithm they use for TCP. If you could, no one would ever have to worry about a DoS attack with too much TCP data. End to end QoS is the only true solution to the problem.

      --

      "Nature doesn't care how smart you are. You can still be wrong." - Richard Feynman

    11. Re:QOS should work by gnuman99 · · Score: 1

      Ingres is not the problem, 99% of the time. In VoiP, ingres congestion will only cause small problems on your side of the conversation, not your customers. Also, the incoming is >> than outgoing. Incoming data rate is faster, meaning a full link will result in less latency for incoming anyway. Finally, you can limit your incoming bit torrent in the actual torrent application!! I know! Wow!

      If you want to throttle all, add ingress queuing so all TCP connections like BitTorrent are slowed down to 75 or 80% of max bandwidth. If more, just queue or even drop the packets. TCP handles that and your incoming rate will slow down nicely :)

    12. Re:QOS should work by Cantinflas · · Score: 1

      Actually, if you set it up properly, QoS should work.

      First of all, you need to combine QoS with traffic-shaping. (QoS tagging doesn't do you any good if you don't act on those tags) Second of all, you need to use that traffic-shaping to limit both the egress AND ingress BT traffic to reserve enough bandwidth for your VoIP traffic (e.g. 90% of your bandwidth, or something like that). It helps to have the type of internet connection where your bandwidth rates are constant so that it's easier to calculate how much to allow for BT traffic. The back-off algorithms in the TCP stacks will throttle back when you start dropping packets.

      Anyways, it IS possible to throttle ingress traffic, but only if you're trying to throttle TCP traffic. Ingress throttling isn't quite as effective because you're on the wrong side of the bottleneck, so you might need to add a little more margin to your ingress traffic-shaping.

    13. Re:QOS should work by ArbitraryConstant · · Score: 4, Informative

      No, it shouldn't. QoS only works on egress. You can't do any meaningful ingress QoS. All you can do is stop packets from coming past the router. That doesn't address the real problem which is that the ISP link is maxed out. In fact, if you start dropping TCP data that's in a lower priority queue than your UDP voice, it will cause even further issues as the sender will retransmit those lost TCP packets.

      You can indeed do ingress QoS. It's not as good as egress, but it's a very good approximation that provides perfectly adequate results in most situations. In response to packet loss, TCP and other protocols throttle themselves. You're helpless if someone wants to DoS you, but in almost any circumstances short of that, you'll be okay.

      What you do is figure out your real-world downstream speed, then set your downstream speed to somewhat less than that (say 80%) to allow for a bit of overflow from TCP retransmits and higher priority traffic. Give the higher priority traffic a big queue that doesn't drop packets (eg no RED), and you'll get very good results unless someone is really out to get you.

      The inability to QoS ingress traffic is very widely accepted, but what people neglect to consider is that we can use an approximation. A lot of problems never get solved beyond workable approximations. You're not going to get a network suitable for hard realtime data, but it'll be good enough for VoIP.

      --
      I rarely criticize things I don't care about.
    14. Re:QOS should work by Anonymous Coward · · Score: 0

      You can't control the other end. You can't control how much data they send and what backoff algorithm they use for TCP.

      Wow, I must have failed terribly in my explanation.

      You can control how much data they send by adjusting your outbound advertised window sizes. Sure, they could have a weird implementation that ignores window sizes, but that would be extremely unusual and antisocial.

      You know what backoff algorithm they use for TCP, because it is a standard behaviour that everyone follows. Again, there is a tiny chance that the remote party uses a nonstandard algorithm, but it would be extremely antisocial to have none (not to mention that it would break all kinds of things for them too).

      You are certainly correct that these techniques provide no DoS protection, but that isn't relevant to the original question. In the vast majority of congestion situations for a home voip/p2p user, these techniques work fine.

    15. Re:QOS should work by mollymoo · · Score: 1

      Without QoS at the ISP end you can't control every possibility, but your attitude seems to be that the fact that it can't cover every eventuality means it's a waste of time. How often do home users get DOSed? How many bandwidth-hungry protocols that people actually use don't back off when packets are dropped? The fact is that you can control the other end the majority of the time, because the majority of the time you're connected with reasonably well-behaved protocols. Ingress QoS isn't perfect, but for a home network it sure as hell helps, is often good enough, and unless you want to spend 10x as much for your connection it's frequently your only option. The perfect is the enemy of the good.

      --
      Chernobyl 'not a wildlife haven' - BBC News
    16. Re:QOS should work by drmerope · · Score: 1

      Sorry, no. These problems arise because of the puny uplink capacity. Your downstream flows require acks which saturate your upstream bandwidth. Your VoIP session coexists in this upstream. Ergo, dropping acks by putting them in a low priority queue:

      1) Gives you VoIP the upstream bandwidth it needs
      2) Forces the people sending you data to reduce their window sizes (bandwidth) leaving room for your downstream VoIP.

    17. Re:QOS should work by afidel · · Score: 1

      Sucks for you too on most good trackers, a share ratio below ~1 for very long and you are banned. I would give examples but most aren't slashdot appropriate =)

      --
      There are 4 boxes to use in the defense of liberty: soap, ballot, jury, ammo. Use in that order. Starting now.
    18. Re:QOS should work by zolf13 · · Score: 1

      I use ingress shaping (via IMQ) and it seems to move the downstream bottleneck for TCP traffic to my WRT54. Of course I loose 5% of DL bandwidth, but every traffic control has a price.

      And I agree that any TCP traffic control involving packet droping is useless (ingress policing, RED, etc).

    19. Re:QOS should work by Anonymous Coward · · Score: 0

      Could you provide a link to a webpage that explains this?

      I am really really curious on reading a complete explaniation of this. I have experienced it even when I limit my bittorrent client speed.

      I would glady appreciate (with mod points!) if you could do that.

    20. Re:QOS should work by morgan_greywolf · · Score: 1

      That's what I meant by 'sucks for the torrent'.

    21. Re:QOS should work by Miros · · Score: 1

      you're way overstating this. Nobody will deny that true end-to-end QOS is the best solution. However, saying that you can't get any 'true success' with traffic shaping is just bunk! As a network engineer you should appreciate that so many problems are caused by misconfiguration and not any fault with (or the pricetag on) the hardware.

    22. Re:QOS should work by wolf12886 · · Score: 1

      Alright, I spent the last 45 minutes googling, but I can't find the page I read the explanation on. I'll reply again if I find it.

    23. Re:QOS should work by Anonymous Coward · · Score: 0

      Another network engineer here, who forgot my slashdot login.

      >"back off considerably"

      I suggest that would be the normal TCP reaction to a missing ack.

      >"marginally shrink the window and still send a considerable amount of data"

      Not necessarily marginally. The sending host has a transmit window, defined roughly as the bandwidth*delay product. All you need is to queue/delay the ack's a little, and the sender WILL slow down.

      It works very well. And PCube/Cisco/Allot Communications/Packeteer sell loads of expensive equipment to ISPs, because it works.

  10. ISP to blame? by jrronimo · · Score: 3, Insightful

    I have heard that most ISPs put VOIP packets on super-low priority anyway, so even your setup at home won't affect it a whole lot. I may have heard wrong, though.

    1. Re:ISP to blame? by Starteck81 · · Score: 1

      I have talked with a number of clients and friends that have had their Vonage service unofficially blocked by Comcast.

      As a side not I have also had plenty of clients have their IPSEC VPN traffic blocked by Comcast as well.

      --
      "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed H
    2. Re:ISP to blame? by ScrewMaster · · Score: 1

      Well, Comcast may be blocking Vonage but so far they've left AT&T's CallVantage alone so far as I can tell. Which is probably smart: AT&T has deeper pockets, more lawyers and more Congressmen.

      --
      The higher the technology, the sharper that two-edged sword.
    3. Re:ISP to blame? by Anonymous Coward · · Score: 0

      I have Vonage, it isn't blocked but they are definitely doing something to fuck with it. It started soon after they started offering their own phone service. Most of the time it works decently enough though.

    4. Re:ISP to blame? by Anonymous Coward · · Score: 0

      Not at all. The load on the router, and administrative hassle to actually remark and handle traffic to be low-priority is just not worth the time (along with providing zero benefit to either party), let alone with customer complaints. The deal is, the traffic gets there when it gets there, if you decide to gank your line with torrent-like traffic, then you deal with the repercussions of that action.

    5. Re:ISP to blame? by Anonymous Coward · · Score: 0

      Kristi Rocks!

    6. Re:ISP to blame? by neowolf · · Score: 1

      I use Qwest DSL and I'm pretty much convinced they do this. I have the same problems with both Vonage and T-Mobile's @Home mobile VoIP, as well as several tests I've done using other VoIP providers, and my company's VoIP system.

      Both inbound and outbound VoIP packets are being dropped with high frequency, regardless of QoS tweaking using two different routers. I've got 7mbit/1mbit D/U service too- so bandwidth certainly shouldn't be an issue. I very seldom use BitTorrent for anything. Just surfing the Web or downloading software updates is enough to kill VoIP for me. It's even gotten really bad with NO OTHER Internet traffic on my link.

      I've complained to Qwest and they have sent techs out several times to check the connection- naturally they can find nothing wrong with it. Of course- their solution to the problem is to buy their own VoIP service, which costs more than a standard phone line while offering less than Vonage for services.

      As someone else said- at least then THEY would have to fix the problem.

  11. One packet at a time by feenberg · · Score: 5, Informative

    Suppose your upload speed is 150Kbps. A single bittorrent packet is 15,000 bits, so it takes a tenth of a second. If there is a bittorrent packet in the router when the VOIP packet arrives, the VOIP packet still has to wait for the bittorrent packet to finish, which means waiting up to a tenth of a second. Even though the VOIP packet always gets priority over other waiting packets, it will often arrive when the router is otherwise engaged, and therefore likely to endure a tenth of a second delay, which is probably noticable. I suppose reducing the MTU might be a help.

    1. Re:One packet at a time by Anonymous Coward · · Score: 0

      That isn't the problem. The maximum length Ethernet packet is 1500bytes or 12000 bits. These days upstreams are usually faster than 384kbps, which translates to a maximum latency caused by an in-transfer packet of 30ms, which isn't nice but not really a problem for voice communication. This latency can be further reduced by lowering the MTU on the outbound interface of the router, at a small throughput penalty. However, no latency of this kind would cause choppiness. What the poster experiences is most likely saturation of the inbound channel. TCP flow control should avoid this, and as long as the number of streams and their individual flows are steady, it does. Then a traffic shaper can reduce the senders' packet rates far enough by throttling the local acceptance rate to avoid the buildup of a queue on the other side of the DSL connection. But remember that this is indirect: It is the senders' TCP stack which adjusts the packet rate to minimize packet loss and maximize throughput. The problem stems from BitTorrent's erratic traffic patterns. New peers join, other peers leave. All flows fluctuate heavily. Under these circumstances, the local traffic shaper can not effectively limit the inbound rate, and then the inbound VoIP packets are queued behind a random number of inbound P2P packets on the other side of the DSL connection. That's where the choppiness comes from and there are only two ways to solve the problem: Throttle the inbound P2P traffic far lower than the available bandwidth or get a separate connection.

    2. Re:One packet at a time by afidel · · Score: 1

      Yeah setting my PC MTU to 576 instead of 1500 made a big difference for me, not as much as limiting my upload in the torrent client, but the two together work very well.

      --
      There are 4 boxes to use in the defense of liberty: soap, ballot, jury, ammo. Use in that order. Starting now.
    3. Re:One packet at a time by Anonymous Coward · · Score: 0

      IP allows fragmentation. Good routers will automatically fragment the large packets to reduce the latency. Several gaming routers on the market advertise this functionality, but I've never tested to make sure it actually works.

    4. Re:One packet at a time by Anonymous Coward · · Score: 0

      Really interesting, I actually almost always modify the router's MTU down to 1200. When it comes to wireless it always increases performance by a lot.

    5. Re:One packet at a time by Anonymous Coward · · Score: 0

      > A single bittorrent packet is 15,000 bits

      Unless you reduce your MTU. With IPv4 the minimum MTU is 68 bytes, but you had trouble communicating to some sites with it. 576 bytes used to be very common. I had good luck using a 296 byte MTU when I did some web surfing, Napster, and VoIP over a analog modem.

      The only problem I had with the 296 byte MTU was with applications that use UDP like PointCast (with the client that did a real UDP push to the clients rather than the more common periodic HTTP pull one that wasn't real push). UDP doesn't handle small MTU's very well.

    6. Re:One packet at a time by Anonymous Coward · · Score: 0

      15 kbits is 1875 bytes. The MTU on Ethernet is about 1500 bytes. Do you use large frames?

      Reducing the MTU might not help much because the real issue with QoS is bursts. Any consumer router can do effective QoS if all of the flows are well-behaved. But they aren't, so the algorithms have to be designed to handle bursty traffic effectively. Expensive routers accomplish good QoS with a combination of advanced schedulers and hardware packet processing, and even they don't get it right 100% of the time. Certain burst patterns on one QoS class (contract exceeded) can cause problems for other classes sharing the port. Back to the MTU idea, if you reduce the MTU to something like 500 bytes, then your TCP/IP stack will just fragment the packets into multiple 500-byte frames before putting them on the wire, but it will send the packets in quick succession. That still might cause problems for the VoIP class.

      Moral of the story: Cisco, Juniper, etc. spend millions of dollars developing equipment that can deliver business-class QoS for things like VoIP and IPTV. Rumor has it that when Cisco bought Linksys, there were less than 10 engineers in their development department, and most of them were testers. You get what you pay for.

    7. Re:One packet at a time by Anonymous Coward · · Score: 0

      You just missed the tiny fact that most (~all) ehternet packages are 1500 at max.

    8. Re:One packet at a time by Trekologer · · Score: 1

      No! Do not reduce your MTU. If your VoIP telephone adapter and/or VoIP provider set don't fragment, your data won't get to the other end at all.

    9. Re:One packet at a time by bugs2squash · · Score: 1

      you might try increasing the jitter buffer size in the VOIP solution (if it is configurable at all)

      --
      Nullius in verba
    10. Re:One packet at a time by Anonymous Coward · · Score: 0

      From whose arse did you pull that number?

      Last time I checked there were 8 bits in a byte making 15000 bits == 1875 bytes...

      The MTU of The Internet is 1500 bytes and of ADSL connections is usually 1492.

      And you got modded informative.

      Pah /me goes back to reddit

    11. Re:One packet at a time by Bandit2 · · Score: 1

      That's what jitter buffers on SIP endpoints are for... They increase voice latency a bit, but you won't be affected by small latency variations...

      I personally use Openwrt on my WRT54 router. My VOIP calls don't suffer even when I have emule and bittorrent working.

      ipkg install qos-scripts

      Then setup /etc/config/qos

    12. Re:One packet at a time by Anonymous Coward · · Score: 0

      That's incorrect.

      The standard ethernet MTU is 1500 bits so this "single" bittorent packet has already been split into 10 pieces.

      Each packet takes about 1/100th of a second to transmit on 150Kbps so the maximum delay caused by this for the VOIP packet is around 1ms.

    13. Re:One packet at a time by Anonymous Coward · · Score: 0

      Your comment is just asinine. No one is talking about reducing the MTU of the VoIP device. That would hurt performance. We're talking about changing it on the other devices that are causing the problem.

    14. Re:One packet at a time by Anonymous Coward · · Score: 0

      This fact is *so* often overlooked. I managed to shave an average of 30ms of jitter off the VoIP traffic on a nationwide network (ok, so it's a relatively small nation) without applying any extra QoS - but by dropping the MTU on a couple of servers that I'd identified as "big packet" culprits.

      Voice quality complaints dropped off to almost nothing immediately.

  12. Re:John Handy by TheDarkener · · Score: 1

    Handy man!!!

    --
    It is pitch black. You are likely to be eaten by a grue.
  13. OpenWRT or dd-wrt by Britz · · Score: 1

    http://openwrt.org/ (extend yourself, open, maybe takes longer to set up)

    http://www.dd-wrt.com/dd-wrtv3/index.php (web interface like normal, just tons more options)

    both should do the trick and maybe even run on your router

    check:
    http://www.dd-wrt.com/wiki/index.php/Supported_Devices

    1. Re:OpenWRT or dd-wrt by thatskinnyguy · · Score: 1

      I have installed DD-WRT on many Linksys WRT54G's like the poster said he has. I find it to be very useful and I find the vpn endpoint capabilities totally amazing. One thing to look out for is the version of the default firmware. Versions 1-5, installing is like a walk in the park. Version 6 needs a bit of voodoo trickery and more 3rd party software. All of that is documented on DD-WRTs Hardware Compatibility List under Linsys. Version 7 is unsupported altogether so I would recommend fleabay for an older model.

      --
      The game.
    2. Re:OpenWRT or dd-wrt by cam312 · · Score: 1
      A couple notes on this.

      I run VOIP over a cable connection, and fought with quality of voice call whenever I e-mailed out a large attachment, or had my file server DFS sync in the background.

      - I found that QoS on the router by itself didn't help a whole lot. It made a small difference, but not the big one I was expecting.
      - upgrading my bandwidth made a significant difference, even when doing large transfers. There was more space for the VOIP packets to "slip in", I guess. Still not acceptable performance though.
      - throttling my upstream to 90% of my bandwidth made all the difference in the world. I was no longer creating a queue at the ISP end where apparently VOIP packets (being UDP?) were being bypassed by the TCP traffic I was sending. Even high priority UDP were below normal priority TCP.

      So - my solution - which works for large outgoing transfers (e-mail and DFS sync) - is to get a Linksys WRT54GL and put dd-wrt on it. Set it up so that the VOIP device is the highest priority for QoS. Then set it up to limit your upstream traffic to 90% of your actual upstream bandwidth.

      I use this for my daily use business phone. (remotely hosted VOIP switchboard)

  14. Linksys Sunrocket router doesn't even do this by Lord+Byron+II · · Score: 3, Informative

    I have the Sunrocket "widget" (Linksys voip adapter) plugged directly into my dsl modem, and my router plugged into the widget. The widget is supposed to give its own data priority, but I've never seen any evidence of that.

    But if all you care about is keeping BT from using the last XX amount of bandwidth, just dial your max upload and download speeds down in the BT client.

  15. DD-WRT hardware support list by Anonymous Coward · · Score: 0

    You can check the DD-WRT support list at
    http://www.dd-wrt.com/wiki/index.php/Supported_Devices
    to see if your router can maybe use that firmware which supports the reserving of bandwidth. It might be complicated to install for some routers but there are often step by step instructions that work out pretty well.
    The easiest solution for you is probably just to limit your bittorrent client's upload and download rate to maybe 70-80% of your maximum so that there is always enough bandwidth available.

  16. Not a specific answer but some advice. by pandrijeczko · · Score: 1
    I do work as a techie for a telecoms company putting in VoIP systems and, yes, I know of systems that will do it but they are all at business-level prices and far too expensive for a home user.

    However, there are a couple of things to bear in mind before you go to any expense in buying a bandwidth reservation device.

    1. Yes, prioritisation of VoIP packets is part of the way to go but even though you set up prioritisation at your end of things, how do you know your ISP or any of the interconnecting providers are going to preserve that prioritisation? Routers do weird and wonderful things with packet queues and remarking packets such that the priority you sent the packet with is not necessarily the same the far end receives it with.

    2. Bandwidth reservation is all fine and dandy as long as reserved ALONG THE ENTIRE PATH of the call. Sure, your broadband connection is theoretically the lowest bandwidth part of the path - but what happens if your ISP hits a congested period?

    With point 1., you can at least packet sniff both ends to see if the prioritisation is preserved but unless your ISP can reserve bandwidth for VoIP, I'm not sure that a router that does it at your end only is going to be much of a guarantee of overall service.

    --
    Gentoo Linux - another day, another USE flag.
    1. Re:Not a specific answer but some advice. by loudmax · · Score: 2, Informative

      I work as a techie for a company that makes some of those business-level priced routers.

      Obviously, you don't have any control of the prioritization of the packets after they've been sent upstream to your ISP; if ISPs were let you do that, it would allow everyone to mark all of their traffic as high priority voice packets, and all prioritization would go out the window. The best you can do is to make sure your outgoing voice packets are prioritized over other outgoing traffic.

      It is possible to influence the speed of incoming packets using TCP windowing. When devices establish a TCP connection over the net, they gradually increase the number of packets they send before waiting for a response from the receiver. This is the TCP window size. As long as there are no dropped packets, you normally want the devices at each end to use a large window size so more data is transmitted before the sender stops to wait for an acknowledgment. Some QoS-geared routers
      (like the ones made by the company I work for) can be made to voluntarily limit the TCP window size of incoming data, so the device at the far end will pause more frequently to wait for acknowledgment. This has the effect of slowing incoming TCP traffic. Since voice packets are transmitted as UDP, this can help make more bandwidth available for them. Bittorrent traffic is transmitted TCP, so this kind of traffic limiting may help in this situation.

      --
      KTHXBYE
    2. Re:Not a specific answer but some advice. by pandrijeczko · · Score: 1

      I should say I am more of an OS & LANs guy rather than a WAN guy but your post above was useful because I noticed the very same thing when I was doing a two-ended packet sniff a while ago - namely that the TCP Window size had changed somewhere en route. I could see it had changed from the traces & although it wasn't relevant to the problem I was looking at, I couldn't figure out why it would need to be changed - but your post explains why so thanks.

      --
      Gentoo Linux - another day, another USE flag.
  17. Put the Vonage adapter in front of your Linksys... by grandfenwick · · Score: 3, Informative

    Between the modem and the router. Hook the phone into the adapter as usual.

    The adapter is what guarantees bandwidth for your phone.

  18. WRT54GL with the right firmware is the answer by irving · · Score: 2, Informative

    Purchase a WRT54GL (not any other WRT54G, unless you know what you're doing) and install the Tomato firmware on it. Not DD-WRT, not OpenWRT or any of the others. Tomato has better QoS and Traffic shaping functionality than most commercial firewalls I run.

  19. You know the answer by Tweaker_Phreaker · · Score: 1

    You answered your own question, buy a newer Linksys (or other supported brand) router model that you can get one of the many Linux firmwares (dd-wrt, open-wrt, etc.) onto. They all have QoS sections in their web gui's that are somewhat simple to use. The big thing to remember though is that bit torrent uses hundreds of connections that can build up at the ISP side and give you horrible latency and jitter so to avoid that you may have to severely restrain your torrents.

  20. It's not your router... by acvolt · · Score: 3, Insightful

    The problem is related to the amount of traffic coming to you from the internet. No amount of QoS applied to your router will be able to shape the traffic that is piling up against the provider's side of the link to your house. That leaves you with 2 options:
    1. If your BitTorrent client supports it, set the maximum download rate to less than what your internet connection speed is. I won't guarantee this will completely solve the issue, but it should help.
    2. Don't download big files while you are using your VoIP phone.

    1. Re:It's not your router... by Anonymous Coward · · Score: 0

      > No amount of QoS applied to your router will be able to shape the traffic that is piling up against the provider's side of the link to your house.

      Of course, this isn't true. TCP is a two-way protocol, so you can slow down the sender(s) - google for (as an example) the 'Wondershaper'

    2. Re:It's not your router... by gatfirls · · Score: 1

      Bingo. Save the money and just learn a bit. There is no such as inbound QoS. No matter what the product. The calls are choppy to you because of inbound traffic.

    3. Re:It's not your router... by mrbooze · · Score: 1

      But that TCP flow control process is not instantaneous. And with bittorrent you are very likely to have a constant stream of new connections replacing old ones. Each new connection will attempt to start at full speed thus creating frequent little bursts of high incoming data before the dropped packets force retransmits and slower rates, no?

    4. Re:It's not your router... by Bandit2 · · Score: 1

      The problem is related to the amount of traffic coming to you from the internet. No amount of QoS applied to your router will be able to shape the traffic that is piling up against the provider's side of the link to your house. That leaves you with 2 options:
      1. If your BitTorrent client supports it, set the maximum download rate to less than what your internet connection speed is. I won't guarantee this will completely solve the issue, but it should help.
      2. Don't download big files while you are using your VoIP phone.

      You're wrong... You can do ingress shaping.. sure it's not perfect, but the trick is to give up on using all incoming bandwidth... I have a 3000/320kbps DSL... I've setup incoming limit at 2200... Sure i'm loosing 800kpbs, but I'm fine with it... Unless I'm being DoSed, as soon as the router starts discarding packets, the TCP stack will on the sending side will lower the speed to accomodate to the enforced bandwidth.

  21. In my case, this helped... by bogaboga · · Score: 2, Interesting
    ...I called my VOIP provider (PrimusTel) and talked technically to the representative on the other side. I asked him to increase the compression ratio to allow near quality calls. I also used the web interface and "told" my router that trhe maximum available bandwidth available was 50kbs.

    This has worked for me, no regrets.

    1. Re:In my case, this helped... by Anonymous Coward · · Score: 0

      I called my VOIP provider (PrimusTel) and talked technically to the representative on the other side.

      So YOU were that weirdo that wanted me to "plug my cable into your back hole". I'm still having nightmares, thankyouverymuch.

  22. Make Vonage first... by Andraax · · Score: 1

    Hook the Vonage box up to your cable / DSL modem, then hook the router up to your Vonage box. This way, Vonage can starve the network when you're on the phone.

    1. Re:Make Vonage first... by indian_rediff · · Score: 1

      This is exactly what I have tried and I find that the Vonage box is able to take whatever BW it needs. Of course, it also helps that I don't use BitTorrent these days :-)

      --
      All views my own. Anyone else with the same views needs to have his/her head examined.
  23. Once you're past the router... by Ungrounded+Lightning · · Score: 3, Interesting

    Once you're past the router you'll also have the problem that your ISP may not be honoring the QoS tagging of the VoIP traffic or otherwise identifying it and giving it priority. (In fact they may chose to identify it and give it LOWER priority if it's not theirs.)

    So fixing your router may only be half the solution: It may throttle back your BitTorrent traffic to keep from stepping on the VoIP packets on the way to your ISP's first box, only to have it stomped by somebody ELSE's BitTorrent (or whatever) traffic on the next hop.

    This, by the way, illustrates both halves of why "network neutrality" can't be just "treat all packets the same". You have to give the VoIP packets priority in scheduling over the BitTorrent packets to get them to work well (which doesn't do anything but slightly slow BitTorrent). But the tools to do that also give an ISP the ability to give the VoIP packets for their high-dollar service priority over BitTorrent while letting their competitors' VoIP packets fight it out, or even be handicapped further. Now try writing legislation to mandate the first while forbidding the second.

    --
    Bantam Dominique roosters crow a four-note song. Once you've heard it as "Happy BIRTHday" you can't NOT hear it that way
    1. Re:Once you're past the router... by kandresen · · Score: 1

      The network MUST be neutral EXACTLY for this reason - the ISP cannot prioritize Movie service provider 1 above Movie service provider 2, or VoIP provider 1 above VoIP provider 2. Should btw. Live Football websites have priority over your WOW and/or Conan net games? Many would say yes, many would say no. I just see how this will turn : "This ISP is for Football entusiasts" "This one prioritize XBOX over Playstation", etc, etc. We cannot allow the ISP to control whether you will watch your news on an ISP approved website or not.

      This discussion has happened before - should the ISP control what is SPAM and what is not? Imagine how that would be for the System Administrator or AV developers who need information and samples of viruses, the doctors that need emails about pills and effects. The Adult movie raters that need updates on what is happening in their field, and so on and so on. The ISP cannot prioritize our traffic any more than they can filter what is good and what is bad mail for us - they must remain neutral.

      As with SPAM - note that the ISP often allow us to put our own Bayesian filters and other rules to our e-mail on the server side! The same can be done with our traffic - Give us the power to control what sites we want to prioritize - Give us the power to select what kind of packets that should have priority - the port numbers important for us and so on.

      The Internet would then remain neutral and all essentially all problems would be solved - except ISP's selling services they are not able to deliver...

      It was another poster here in this tread somewhere who claims that some smaller mom and dad size ISP's in fact often offer such services!!! I believe this would be a great reason for dropping the big ones!

      As a Gamer I know I frequently bought much more bandwidth than what I really needed. I would hardly use any of it at all - it was just about latency. This would in fact likely change the picture! I would require much lower bandwidth connection if QoS in both directions always prioritized what I indeed wanted to prioritize!

    2. Re:Once you're past the router... by Ungrounded+Lightning · · Score: 1

      The network MUST be neutral EXACTLY for this reason - the ISP cannot prioritize Movie service provider 1 above Movie service provider 2, or VoIP provider 1 above VoIP provider 2.

      Agreed.

      However the ISP MUST prioritize stream traffic (such as VoIP) above traffic such as file transfers (which can be slowed down but will crank itself up until it clogs the narrowest bottleneck) for both to work well on a common transport.

      Also: It's good for him to apply other, compensating, penalties to streams: Bandwidth limits are OK (they won't hurt streams but will keep file transfers from masquerading as streams to get better service). Drop packets that had been delayed until they're no longer timely. Etc. This keeps streams from interfering too much with file transfers and the like.

      My point is that you can't implement "neutrality" by treating all PACKETS the same if you want diverse services to all work on a converged infrastructure.

      --
      Bantam Dominique roosters crow a four-note song. Once you've heard it as "Happy BIRTHday" you can't NOT hear it that way
    3. Re:Once you're past the router... by Spy+Hunter · · Score: 2, Interesting

      QoS via tagging packets is and has always been a stupid idea. There are so many reasons: the core backbone routers can't be bothered preferentially queueing packets based on QoS tags; you can't get everyone to agree to enforce the same set of priority classes; abuse is too easy by raising the priority of every packet; etc etc.

      QoS can be much better enforced at the edges of the network, using TCP congestion control. TCP congestion control allows your router to control the bandwidth (upstream *and* downstream) used by all of your TCP connections. It's already universally implemented, it doesn't require any cooperation or management from ISPs, and it doesn't conflict with network neutrality at all.

      --
      main(c,r){for(r=32;r;) printf(++c>31?c=!r--,"\n":c<r?" ":~c&r?" `":" #");}
    4. Re:Once you're past the router... by Anonymous Coward · · Score: 0

      uhhh.....

      "you're allowed to prioritize based on equivalent packet type, not by source, destination, owner or service provider"

    5. Re:Once you're past the router... by The+Master+Control+P · · Score: 1

      Network neutrality isn't about treating all packets the same!

      It's a universally accepted principle that discrimination based on data type is acceptable and necessary to manage network congestion. What is not accepted and is in fact anathema to the very concept of the internet is discrimination based on source/destination. That is what network neutrality means: all packets in a given data class have the same priority, regardless of the packet's SRC or DST fields.

      The legislation would be as simple as "Networking Service Providers will not interfere with data flow based on source or destination for non-security reasons."

    6. Re:Once you're past the router... by zolf13 · · Score: 1
      Define neutral. I would follow ITU-T NGN approach:
      • there are 3 groups of entities: users, service providers and network providers
      • network provides network services, e.g. real time traffic handing, guranteed bandwidth traffic handling, ...
      • every user/service provider has open access to the network resource management; you can ask for "better service" for your TCP/UDP streams
      • yes, you are going to pay for "better" - it seems to be unavoidable
    7. Re:Once you're past the router... by zolf13 · · Score: 1

      There is only one usable/scalable QoS tag - DSCP. And it seems that finally there may be agreement on common classes, see RFC 4594 and RFC 5127.

    8. Re:Once you're past the router... by Anonymous Coward · · Score: 0

      It should be up to the user to prioritise traffic. Allowing a user to prioritise their VoIP traffic over their own BitTorrent traffic is reasonable. Prioritising one user's VoIP over another user's BitTorrent should only be done by mutual consent.

      Essentially, ISPs should honour the IPTOS_* bits, and provide incentives to use IPTOS_MINCOST where appropriate, and not to use the others unnecessarily.

    9. Re:Once you're past the router... by Anonymous Coward · · Score: 0

      > Now try writing legislation to mandate the first while forbidding the second.

      How about "don't modify the packet at all", which would include not modifying QoS bits?

    10. Re:Once you're past the router... by Anonymous Coward · · Score: 0

      Sorry, that won't work at all. If the ISP honors your Qos, then I'll just Qos ALL my bittorrent traffic to the highest priority so I get first shot at the ISP's bandwidth. Of course, then everybody else will do the same thing, and the ISP's network will get really hosed since there won't be any difference in any traffic.

      Just go to an ISP that offers phone service as well, then they'll give you a modem that will Qos your VOIP on their network both in and outbound. The best part is that their edge providers will generally honor their Qos settings as well, giving you great voice quality.

  24. Try Sonicwall by ghost_of_mrchicken · · Score: 1

    I've tried Sonicwall in the past, and it had a bandwidth limiter in its configuration. The price is reasonable and the configuration doesn't require extensive knowledge of routers.

    1. Re:Try Sonicwall by DigiShaman · · Score: 1

      The cheapest wireless Sonicwall router (TZ 150) goes for arround $300. And that's not including all of the yearly subscriptions you can add on too such as anti-spyware/virus filtering. Besides, Sonicwall GUIs are so user-unfriendly.

      I'm sorry, but I can't recommend any Sonicwall device for a home user or someone with little to no previous router/networking knowledge. Great products for the office however.

      --
      Life is not for the lazy.
  25. WRT54GL and dd-wrt are they way to go by mnmoore · · Score: 1

    Routers are cheap. Buy a WRT54GL. Note the 'L', this is the "Linux" version and is more or less equivalent to a WRT54G, version 4 (v5 is when they started to suck). Install dd-wrt, the flavor with QoS.

    I have basically the same setup as you, Vonage, home network, occasional BT use. dd-wrt is configured to give highest priority to the port the Vonage box is plugged in to, and bulk (lowest) priority to traffic in the bittorrent port range. Works very well for me.

    All the QoS settings are in the dd-wrt GUI, you don't need to know Linux per se.

  26. Simpler Solution by Anonymous Coward · · Score: 0

    Wouldn't it be a lot easier/cheaper to just use your bittorrent client, almost all of which let you configure the amount of bandwith it uses and when?

  27. DD-WRT by na1led · · Score: 1

    DD-WRT is your answer. Google it!

    --
    -- By all means let's be open-minded, but not so open-minded that our brains drop out.
  28. Get a real router by dondelelcaro · · Score: 1

    You might as well just get yourself a power-efficient linux-powered router and set up tc properly to guarantee an uplink bandwidth slice to VOIP. (There are various recipes on lartc.org to help you with this.

    Downlink bandwidth management is slightly more complicated, but you can sort of manage it by droping or delaying non-voip packets which are coming in too fast to keep your ISPs queue empty.

    --
    http://www.donarmstrong.com
  29. Vonage by ThundrNeon · · Score: 1

    I also use vonage and had similiar issues. To fix them we delved into the vonage box and gave it a static IP that wasn't assigned by our router. Next turn on DMZ Host for that specific static IP address. Then we also turned on QOS to highest level for the port it was plugged into or you can do it by IP depending upon your router. QOS, DMZ host, and a static IP like that fixed all of our problems with quality. Now we get excellent call quality even while downloading at 1.5 Mb/s and uploading at 95Mb/s (nearly max for my house's connection).

    --
    Inherited Will. The Destiny of the Age, and the Dreams of the People. These are things that will not be stopped. As l
  30. BitTorrent Client by Bobfrankly1 · · Score: 2, Interesting

    I know you're looking into the router, but another option is to impose a limit in your BitTorrent client. I know UTorrent has functionality for restricting upstream and downstream speeds. Perhaps the client you are using has the same capabilities. Or perhaps I'm just made a worthless point, let the mods decide!
    -
    Soon to be modded -5 retarded, Bob

  31. pfSense by adrianhensler · · Score: 1

    In a word: pfSense. There are other options; but this 'appliance' installation is a solid, free, powerful product. I suggest you take a look. Just turn off dhcp on your linksys and use it as a wireless access point. I also suggest using a mini-itx board and case to keep power and size low. Possibly using the new Intel Atom; but you'd have to verify it will work on that hardware; I expect that it would.

    1. Re:pfSense by ottawanker · · Score: 1

      I would recommend pfSense or m0n0wall, but I would stay away from the Atom.. I would use one of the Intel D201GLY2 mini-itx boards with the Celeron processors, as the boards use about the same amount of power, and the Celeron will be much aster (the Atom has a terrible northbridge that results in both boards using the same amount of power).

      I use m0n0wall at home with my cable modem running VOIP, lots of NNTP, and lots of torrents, without any problems. It also means that web pages load as quickly when maxing out the bandwidth as when no ones doing anything, and that ping times generally stay pretty low. My m0n0wall box also has an uptime of over 300 days, way better than I've ever been able to do with my Linksys router.

    2. Re:pfSense by PylonHead · · Score: 1

      We've been using pfSense as the firewall for our business for the last couple of months.

      We tried some of the other open source install on a PC firewall packages, but they didn't offer the features or the user interface that pfsense offers.

      The quality of service graphing was very useful for us. You can select a router for your firewall to ping every minute. The pfsense web interface will display a real-time graph of the ping time/packet loss to this machine. It shows various time intervals from the last four hours, to the last year.

      We used it to monitor a bad router a few hops out from us, in order to have data to present to our ISP.

      I haven't used the traffic shaping portions of the firewall yet, but I've heard good things about the software that it's based on.

      --
      # (/.);;
      - : float -> float -> float =
    3. Re:pfSense by darkpixel2k · · Score: 1

      I have got a fanless 1GHz Via C7 based pfSense box that has really nice QoS support for VoIP. Not to be trifled with..

      I'll second that. Whenever I'm downloading the latest release of Ubuntu via torrent, my VoIP would get all choppy, but after I turned on the traffic shaper on my pfsense box, the problem disappeared. pfSense has an easy to use GUI, can run off a liveCD, so you can play around with it if you have a spare computer without trashing it, and if you decide to get more technical you can always drop to the command line in all it's FreeBSD glory.

      --
      There's no place like ::1 (I've completed my transition to IPv6)
  32. QoS on consumer grade circuits.... by DeadBeef · · Score: 2, Informative

    Short answer, not really.

    Longer answer, any circuit where you don't have a predictable amount of bandwidth will be hell to build any QoS with. Pretty well any home user connection will be in this class. Most of the cheap consumer devices that claim to do this are relying on tricks that won't work in a heap of cases or worse are snake oil.

    No device is going to be able to do a good job without a heap of background information on what your connection is an how it behaves, things like when the buffers for outbound traffic on the other end of your DSL line kick in and behave etc.

    If you want to learn a whole bunch of esoteric commands and a bit about networking you should be just fine building something to do it with a Linux box =)

    Alternatively you might get a 95% successful solution if you buy a consumer device and shape the internet facing interface down to a speed that you hope your circuit will never drop below.

    --
    I am a lawyer and this constitutes legal advice and I shall indemnify you against any losses arising from taking it.
  33. QOS != bandwidth by Anonymous Coward · · Score: 0

    Proper QOS is not the same as bandwidth. You could reserve all the bandwidth you want but if you've got bad jitter then the call will still be hopeless.
    Pausing bittorrent during calls is one solution. You could implement QoS so the other party can hear you, but for you to hear them your ISP really needs to apply QoS

  34. It's not only bandwidth by ForestGrump · · Score: 1

    Bandwidth is important to make sure your data arrives in a timely manner. However, there are other considerations when you are dealing with VOIP- mainly packet order and jitter.

    I would recommend that you do a packet capture (wireshark) and take a look at the time between packets arriving. Also, pay attenation to sequence numbers. One or two every here and there can be compensated with, but if yours or the ISP's router buffer is delivering packets out of order (or even worse, dropped packets), then that's another problem you need to look into.

    Grump
    (former VOIP engineer)

    --
    Is it true that more people vote for the winner of American Idol, than vote for the president? -Ali G.
  35. Speedtouch by mollymoo · · Score: 1

    My SpeedTouch 546 will do this, I think all the SpeedTouch routers will. I don't think you can do it with the web interface, but you can with telnet or by editing a config file. You just turn IPQoS on and the default ruleset prioritises VOIP and shares bandwidth fairly between the four ethernet ports. In fact, it might be on by default.

    Speedtouches are very capable little routers under the hood. In addition to the usual 1:many NAT, firewalling and port forwarding, mine is currently also doing proper NAT (I have a public IP block) and IPQoS. The firewall is based on chains, so is pretty flexible. I think they run pretty much the same firmware as the "business" routers which are 5x the price, but with a dumbed-down web interface. If you don't mind a command line (it's quite a nice CLI for an embedded system - on-line help, interactive command entry and a command history) they'll probably do everything you'd want a router for a small network to do.

    --
    Chernobyl 'not a wildlife haven' - BBC News
    1. Re:Speedtouch by Terrasque · · Score: 1

      SpeedTouch is quite capable for upload QoS. I've experimented a bit on my own, and have almost solid shaping. The low priority queue drops packets like there was no tomorrow, but the realtime queue is .. well, solid. No packet loss, and no variance in ping.

      http://www.speedtouch.nl/docs/ConfigGuides/ConfigGuide_IPQoS.pdf - QoS config guide, the lowend routers don't have the web interface, but do have all the command line options. At least on those I've looked at.

      --
      It's The Golden Rule: "He who has the gold makes the rules."
  36. Not possible by gweihir · · Score: 1

    You can shape the outgoing traffic, but not the incomming one. Even if that is bandwidth-limited by the application, different bittorrent senders will create bursts of incomming traffic when their traffic combines. There ia absolutely nothing you can do about this, except haveing more bandwidth available than the combined maximum burst speed of the incomming traffic.

    --
    Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    1. Re:Not possible by Anonymous Coward · · Score: 0

      You can use a linux box as the router and cbq to do traffic shaping. As far as i know, there is nothing commercially available that can match the ability. I have used it on a condominium wifi network and was able to give different levels of bandwith to particular mac addresses. It worked great for inbound/outbound traffic, but took forever to figure out how to implement. Limiting the bandwith on the BT client is the easiest way to fix the problem.

  37. pfsense by Anonymous Coward · · Score: 0

    pfsense

  38. Torrent client with throttle by Anonymous Coward · · Score: 0

    I use Vuze (Azureus) as a torrent client, which lets you limit the up and down bandwidth of torrents. Not sure what you can do for intensive browsing, non p2p downloading and voip though.

  39. Too bad it's Vonage and not direct from the ISP. by Anonymous Coward · · Score: 0

    Too bad it's Vonage. If you get VoIP through your ISP and they provide services such as 911, chances are they already do this kind of thing for you out of necessity. VoIP traffic is generally given the highest priority in order to ensure call quality for emergency situations. It would rather suck if a torrent kept the ambulance from being dispatched while you're having a heart attack, so ISP's have the ability on their end to isolate the VoIP traffic in a way that not all services can (Vonage) in order to make sure this doesn't happen. /disclosure: I work for a business that provides VoIP to Cable Companies

  40. Learn DD-WRT by Raineer · · Score: 1

    It isn't "esoteric". Do some research and you will find it is not that hard, and it does work fine. However, I have to dump Vonage anyways... Even with it being plugged DIRECTLY into the cable modem it doesn't work as well as it should. I've been a Vonage customer for 3 years...and I'm canceling my number this weekend to switch to Skype. I have had zero Skype problems whatsoever, and it is 1/3 the cost for the same features (minus 911, but you can always call the emergency departments directly)

  41. A software solution? by Anonymous Coward · · Score: 0

    I use Vonage for VOIP as well and I use BitComet. I too has the same problem, but I solved it without a router.

    Vonage requires a minimum of 20-30 KB/s upload and download to work well. BitComet (and other clients) allow you set the maximum bandwidth usage. When I limited the maximum bandwidth in the BitComet settings to 30 KB/s less than my maximum upload/download bandwidth, it solved all of my problems.

    Perhaps this would work for you too and be a less expensive option than purchasing a new router that would effectively do the same thing.

  42. I have a similar problem by Anonymous Coward · · Score: 0

    I have found that when I'm riding my motorcycle down the freeway at 90 mph, it becomes difficult to light my cigarette. Can anyone recommend a better lighter?

  43. Traffic goes the wrong direction by billstewart · · Score: 1

    VOIP traffic needs to get good bandwidth in both directions - inbound and outbound. Your router can prioritize outbound traffic so that VOIP packets always go first (assuming it can recognize VOIP), but there's it can't control inbound traffic because the bottleneck in that direction is the DSL/cable link from your broadband provider to your router, not the Ethernet from the router to your PC. In theory, your ISP could offer QoS features and if the people you're talking with sent you properly marked packets it could do the same, but it practice that never happens with consumer-priced services.


    So how can you restrict the speed of incoming BitTorrent traffic or other kinds of high-volume traffic? You're basically trying to get your router or your computers to tell the far end to slow down.

    • Some link-level protocols like Frame Relay have mechanisms for this, but DSL generally doesn't, and that's not end-to-end anyway.
    • ICMP Source Quench can theoretically help at an IP level, but it's very crude and everybody blocks ICMP anyway.
    • TCP has two mechanisms - Explicit Congestion Notification (ECN) and windowing/acknowledgments. ECN isn't universally supported, but sometimes works, by sending slow-down messages to the senders. Alternatively, your router could get fancy by messing with queuing and TCP ACKs as a much cruder way to get distant senders to slow down. I don't think I've seen any routers that have implemented that, but I've seen some host-based applications that can sort of do that from a per-host level, which doesn't quite match what you want.


    If you're only running one BT system, you can use a BT client that throttles traffic, and set it to a level that'll usually leave your voice usable. It's not perfect - BT is typically sending requests for blocks to a bunch of different peers, and the peers are sending those blocks when they get around to it, and if you're talking to four peers they might all transmit the same millisecond, but at least on average you can get some control that'll help.

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
    1. Re:Traffic goes the wrong direction by Curmudgeonlyoldbloke · · Score: 1

      In theory, your ISP could offer QoS features ... but it practice that never happens with consumer-priced services. For good or ill, I bet that will change (at least at the cheap "home" end of the ISP market). At least one ISP in the UK does this - VOIP etc. sits at the top of the table, so-called "interactive" traffic such as web browsing is next, and P2P scratches around on the floor.

      It'd solve your problem, but at the expense of your P2P traffic being slow because everyone else is browsing the web. You pays your money and takes your choice...

    2. Re:Traffic goes the wrong direction by mzs · · Score: 1

      This is the finest answer. I would like to add that a simple thing to do regarding the 'messing with queuing and TCP ACKs' is to simply drop the inbound packets over a set limit. Yes this is yucky and it causes the retransmits but each time it happens the sender will halve the transmit window thinking it has detected congestion. It is pretty easy to make some firewall rules this this as well, but the easy rules do not take into account the sending host but an aggregate per type. This ends-up leading to slower than expected torrent downloads because what often happens is each peer sending to you gets throttled more than it should and when other peers do not send to you for a while it takes a long time for the TCP transmit window to increase on the sender's end. In practice I see my downloads be 50-75% slower than they otherwise would be. But at least the Skype and iChat are useable.

      The other thing that helps is to lower your MTU. Yes I know it seems counter intuitive but it seems to improve the outgoing QoS queuing.

    3. Re:Traffic goes the wrong direction by yabos · · Score: 1

      See my reply here: http://ask.slashdot.org/comments.pl?sid=596703&cid=23961053
      You can do inbound traffic shaping with iptables and it works well but it requires a little bit of tweaking.

  44. The age old battle by Anonymous Coward · · Score: 0

    You're fighting the age old P2P battle my friend. Sysadmins and service providers have been waging this war for years; how do we allow for both... truth is, you don't. Because P2P applications more often become popular because of their illegal content avilability they are developed with this in mind. QoS unfortunately can help but it is marginal at best. QoS prioritizes packets based on characteristic matching, be it DSCP flags, IP address, port matching, w/e. The fact of the matter is the router has to do SOMETHING with each of these packets. P2P apps often create massive amounts of SYN traffic as it tries to establish connections with peers in the "swarm". The cheap $40 off the shelf "home-use" routers may have 8MB of RAM, and maybe a Citrix 133MHz (if your lucky) processor. As it attempts to throttle the traffic it has to work very hard. If QoS is available for your computer (where the traffic is originating) you may be able to configure it to shape the traffic before it overwhlems your box. Long story short, use a separate connection for your P2P stuff or upgrade to a business class router that can handle the traffic. A nice Cisco unit will run you about $3,000 or a second ISP $40/mo. You can sometimes find used equipment from businesses upgrading or going out of business that can still meet these needs but give you a nice price break. I would expect to spend about $1,000 for something worthy of attempting P2P traffic shaping.

    1. Re:The age old battle by bonehead · · Score: 1

      I would expect to spend about $1,000 for something worthy of attempting P2P traffic shaping.

      I just installed a bonded DSL setup for a customer using a used 2621XM and a pair of ADSL WICs. Ran right at $700. With proper QoS on that router and the ISPs router, they're getting excellent VOIP performance with 10-15 simultaneous calls plus heavy data traffic.

  45. DDWRT QoS doesn't work in latest release by tknd · · Score: 1

    In my experience DD-WRT QoS features don't work in the latest release. You're better off buying a tomato compatible router and flashing it with that firmware. The other option is OpenWRT but after reading the installation guides it doesn't seem so easy to get working.

  46. Understanding QoS on the Internet by Adeptus_Luminati · · Score: 5, Informative
    Firstly, there are routers out there, or perhaps more specifically, firmware (i.e. DDWRT), which support detailed QoS schemes such as allocating 100Kbits for VoIP at high priority, 512K for http web surfing at medium priority and whatever is left over can be used for torrenting.


    What such routers are doing is only "outbound packet DSCP marking". In English this means that once you configure such routers, only the packets that you send out to the Internet will be marked to exibit the behaviour you desire; however... and this is a BIG however, the fact of the matter is that:


    1) Whilst you have marked some packets high, medium and low pririty, your ISP and every other Telco/ISP on the Internet may completely ignore those markings (preferences) of yours.


    2) In fact, some of them may "remark" all your packets back to the same level, effectively disabling QoS.


    3) Most routers mark packets outbound, and little emphasis is placed on inbound marking. This is because by the time the packet gets to you, unless YOUR router is saturated the packet will get through with low latency.


    In order for QoS to work effectively the following things must be in place:


    1) Every single network device along your network path must support QoS. This is NOT the case with 99% of the Internet. Not because the routers aren't capable of such, but rather because the ISPs disable this function for customer marked traffic.


    2) Even if every network device from your home PC, router, to your ISP, the 6 telcos in the middle of the Internet cloud and your destination website in China supported QoS, chances are they would not all agree on what each marking would mean, and therfore they would interpret them incorrectly (from your perspective).


    3) QoS only comes into effect when a network point is saturated, during all other times of bandwidth being available, QoS has next to no effect.


    Further,


    VoIP is UDP based, and is highly sensitive to latency. The Internet is a place where latency is highly unpredictable and the more network hops (the further geographically) your packets have to travel, the higher the end to end latency will be; as such, VoIP is likely to remain a low quality voice transport for a while. Contrastly, your analogue telephone line, when you make a call from US to China, actually reserves an entire set of *dedicated* DS1 (64Kbits/sec) analogue pipes from one end to the other. In other words, there is zero sharing; hence the guarantee and high quality.


    Perhaps one day, when all the major Telcos and ISPs have more pipe than they know what to do with, long distance VoIP will come close in quality to analogue phones... until then it's a complete crap shoot. You might get amazing quality to some locations on some days, at certain times 99/100 times, and to other locations 80/100 times the VoIP call is utterly useless.


    In resume, you can tweak your home router all you want. It might help slightly since your router would become a saturated network point due to you using bitorrent simultaneously; however, the other 8+ hops to get to "China" are completely out of your control.


    My recommendation is that if you have a say 1Mbit Up/Down pipe for broadband internet; that before you make your VoIP call, that you throttle your bittorent software (in the software itself) to use only 850Kbits up/down. VoIP protocols can suck up anywhere between 8Kbit/sec (highly compressed) to 110 Kbits/sec (uncompressed). So by leaving 150Kbits for VoIP, there's a good chance the VoIP and torrents can co-exist peacefully.


    Cheers, ADeptus

    --
    No trees were killed in the making of this post; however, many trillions of electrons were horribly inconvenienced.
    1. Re:Understanding QoS on the Internet by dave562 · · Score: 1
      1) Whilst you have marked some packets high, medium and low pririty, your ISP and every other Telco/ISP on the Internet may completely ignore those markings (preferences) of yours.

      This is right on the money. The only time I've dealt with QoS was configuring it on our Verizon MPLS links. The engineer and I had to hash out the QoS tagging over the phone. He configured his end and I configured mine. There aren't any default QoS mechanisms built into the routers at the ISP that are going to tell them how to deal with your packets. Unless you're paying extra money for private circuits, the ISP is just going to at best ignore, and possibly strip your QoS tags when they pass the packets along.

    2. Re:Understanding QoS on the Internet by ClownPenis · · Score: 3, Informative

      ....

      3) Most routers mark packets outbound, and little emphasis is placed on inbound marking. This is because by the time the packet gets to you, unless YOUR router is saturated the packet will get through with low latency.

      "outbound" depends on your perspective. "YOUR router is saturated" (If your router is saturated, I would recommend drying if out.) Usually the links that routers are connected to become saturated. Marking the pakets on the way in may or may not happen, but the net result would be the the same. (Unless your WAN (outbound) connection was faster than your LAN (inbound)).

      Further,

      VoIP is UDP based, and is highly sensitive to latency. The Internet is a place where latency is highly unpredictable and the more network hops (the further geographically) your packets have to travel, the higher the end to end latency will be; as such, VoIP is likely to remain a low quality voice transport for a while. Contrastly, your analogue telephone line, when you make a call from US to China, actually reserves an entire set of *dedicated* DS1 (64Kbits/sec) analogue pipes from one end to the other. In other words, there is zero sharing; hence the guarantee and high quality.

      Actually you get less than 64Bbit/second dedicated if your telco is in the US. Google "Robbed Bit Signaling"

      VoIP is UDP based, and is highly sensitive to latency. Bad generalization there. RTP is UDP, but not all VoIP protocals use RTP. I assume you understand that while SIP is a VoIP standard, the standard for VoIP isn't SIP.

      Perhaps one day, when all the major Telcos and ISPs have more pipe than they know what to do with, long distance VoIP will come close in quality to analogue phones... until then it's a complete crap shoot. You might get amazing quality to some locations on some days, at certain times 99/100 times, and to other locations 80/100 times the VoIP call is utterly useless.

      The setup and codecs I use actually exceed carrier quality "G711" codecs. If you aren't an expert, don't try to sell yourself as one.

      In resume, you can tweak your home router all you want. It might help slightly since your router would become a saturated network point due to you using bitorrent simultaneously; however, the other 8+ hops to get to "China" are completely out of your control.

      Like I said before. The "router" isn't getting saturated. Why are you pushing this fallacy? Who is calling China via VoIP? Why would you even mention china? My IP phones register with an asterisk server in texas. I can handle the 20 milliseconds, and so can sensitive UDP packets.

      My recommendation is that if you have a say 1Mbit Up/Down pipe for broadband internet; that before you make your VoIP call, that you throttle your bittorent software (in the software itself) to use only 850Kbits up/down. VoIP protocols can suck up anywhere between 8Kbit/sec (highly compressed) to 110 Kbits/sec (uncompressed). So by leaving 150Kbits for VoIP, there's a good chance the VoIP and torrents can co-exist peacefully.

      Cheers, ADeptus

    3. Re:Understanding QoS on the Internet by Spy+Hunter · · Score: 1

      QoS via marking packets is worthless for all the reasons you suggest and more. But there is a better way: QoS via TCP congestion control. A router can control the bandwidth used by TCP streams (upstream *and* downstream) by purposely dropping or delaying packets. A smart router can identify VoIP packets, and when they are detected, throttle all TCP connections enough to ensure sufficient leftover bandwidth for VoIP. It's a simple and automatic solution which doesn't require you to configure your BitTorrent software or your ISP's cooperation.

      --
      main(c,r){for(r=32;r;) printf(++c>31?c=!r--,"\n":c<r?" ":~c&r?" `":" #");}
    4. Re:Understanding QoS on the Internet by Anonymous Coward · · Score: 1, Informative

      "but rather because the ISPs disable this function for customer marked traffic"

      Disable? It's not on by default in any router (arguments can be made for T1s in Cisco gear where fair-queue is enabled). Enabling QOS and prioritization is a feature, this is by no means something disabled, but rather enabled.

    5. Re:Understanding QoS on the Internet by Anonymous Coward · · Score: 1, Informative

      reserves an entire set of *dedicated* DS1 (64Kbits/sec) analogue pipes from one end to the other

      Nitpick: it's a DS0, and only a single one is dedicated to a voice conversation, not a "set". A DS0 is bidirectional.

    6. Re:Understanding QoS on the Internet by Anonymous Coward · · Score: 0

      "In resume"? Really? =(

  47. Is your problem upstream or downstream? by Anonymous Coward · · Score: 0

    I've been a VOIP user in Australia almost since the very first VOIP PSTN services were offered to the general public about four years ago. I understand entirely the issues described in this posting. But its more complex than what you might thing.

    What exactly sounds choppy? Does the far end caller sound choppy to you, or do the people you're talking to complain that you sound choppy, or both???

    Implementing a QOS router only helps in the UPSTREAM direction - that means the people on the far end are likely to hear you better (less choppy for them) but it will make NO DIFFERENCE to you. I'm presuming you've got switched and wired Ethernet between your router and your VOIP Analogue Telephone Adapter and the Ethernet is substantially faster / non-blocking compared to your broadband connection.

    After years of complaints from my wife and family, I finally got a workable solution that pretty much makes VOIP sound better than our crappy 5km analogue PSTN line....

    1) I implemented QOS in my router

    2) I got the router to identify P2P traffic specifically and limit its maximum rate both upstream and downstream to about 100 kbit/s less than the nominal DSL line rate.

    3) I configure my bittorrent clients to limit traffic anyway, although this is probably paranoid.

    4) When my wife calls down expletives from upstairs, I immediately stop the bittorrent client and go and hide.

    Are you getting a feeling now for how the problem can be addressed??? I suspect that while ISPs offer 'best effort' internet services, VOIP and Bittorrent are going to be difficult to mix.

    I also took a fifth action which was the best 'solution' of all - but still not perfect.

    5) Subscribed to the fastest DSL service I could get - which for me turns out to be about 4M downstream and 384k upstream (sadly, that's all you can achieve on long crappy lines like mine) - but it worked. Mind you, It was the FOURTH ISP I churned to that got it working - the other three implement 'shaping' which (GRRRRR) cannot discriminate between P2P and VOIP - and VOIP calls were constantly dropped after about a minute if I had a torrent running.

    Good luck. But watch out for QOS services from your ISP some time in the next decade.

  48. Enough! by fabs64 · · Score: 1

    Do we really need requests for commercial product recommendations on the front page?

  49. A simple solution by Duncan+Blackthorne · · Score: 4, Funny

    Why not just get your VoIP through Comcast? They'll have no problems throttling your bandwidth for you for no extra charge.

  50. You sure that's the problem? by nsayer · · Score: 1

    If the calls sound choppy to you, then the problem probably is the incoming bandwidth, which a router on your premises is not going to be equipped to solve. By the time the packets come in to your border router, they've already occupied the bandwidth that you would be attempting to reserve.

    1. Re:You sure that's the problem? by element-o.p. · · Score: 1

      It could also be the processor on the router. If you are using very many firewall rules, etc. on the router, you could be maxing out the processor.

      I used to have a Cisco 801 router that was just fine for HTTP, SMTP, POP3, etc., even with publicly accessible servers on the inside network. However, the minute I added an Asterisk server inside my network, I started seeing performance problems (testing showed about 2-3 seconds latency through the router on an IAX call). In a nutshell, the 801 didn't have the horsepower to ACL my servers and internal network *and* send VoIP packets through. I replaced the 801 with an old NexLan router, and it worked just fine. Then I replaced the NexLan with an ImageStream Transport (http://www.imagestream.com), ACL'd the heck out of my network, set up NAT/PAT, added QoS, started an SSH daemon, etc., and it doesn't even break a sweat.

      Could you configure an old PC (200MHz would be plenty) with Linux and iptables to replace your Linksys, just for testing?

      --
      MCSE? No, sir...I don't do Windows. Yes, I am an idealist. What's your point?
    2. Re:You sure that's the problem? by LinuxLlama · · Score: 1

      "Most of the time it works fine, but when I'm using BitTorrent or other high-bandwidth applications (purely for legal and non-copyright-violating purposes, of course), the call quality gets choppy"

    3. Re:You sure that's the problem? by element-o.p. · · Score: 1

      Yeah, I caught that. It doesn't matter though -- high bandwidth == lots of packets, all other things being equal. If the router has to inspect each packet coming through the interfaces due to QoS or ACL configurations, then more packets == more processing overhead. While you might not notice the extra latency caused by inspecting each packet coming in or out of the router when browsing the web or running P2P applications, you absolutely will notice the latency on a VoIP call, since VoIP is highly sensitive to latency and jitter.

      In other words, I stand by my post above -- it could be lack of bandwidth, but it could also be a lack of processor horsepower, especially in a small consumer-grade router like a Linksys.

      --
      MCSE? No, sir...I don't do Windows. Yes, I am an idealist. What's your point?
  51. Re:Get a better firewall by FAEK · · Score: 0

    May I suggest this fine combination between a firewall and a VOIP system. Just look here for more info.

  52. Common Error by Some+guy+named+Chris · · Score: 1

    See, here's the problem. With QoS on these routers, you only have actual REAL control over what you transmit, not what you receive, and since you're receiving data across the internet, all the QoS bits on your inbound traffic from Vonage are thrown away as soon as they hit a backbone router.

    So, yeah, you can control how much bandwidth on your outbound you allocate to VOIP traffic, but your bottleneck is not on outbound (if Bittorrent is what is causing your problems), but on traffic coming in. The best you can do is have your router drop non-voip packets inbound, and trust that the sender will slow their rate and retransmit. But, if they do, your BT client might try to compensate by the reduced flow by trying to connect to more peers. And, even if it doesn't, you're still having to receive the connections, determine whether they're VOIP traffic or not, and either pass or drop them. Your pipe is hammered and filled before your router ever gets a chance to do any QoS.

    Basically, unless you control both endpoints and all the links in between, you cannot have real, hard QoS. You can "hope for the best", which is what you've got now.

  53. Type of Bandwidth Limitation by bill_mcgonigle · · Score: 1

    Some routers do bandwidth limitation by limiting average bandwidth. That is they send at full speed, pause, send at full speed, pause.

    That's not good for VOIP as it hoses your latency, but it's going to be fine for SMTP. Maybe yours does that.

    --
    My God, it's Full of Source!
    OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
  54. Known Problem by storm_guardian · · Score: 1

    Basically the issue is that your router can prioritize outgoing packets, but your ISP controls the priority of incoming packets. The only sensible solution is to bandwidth limit your other uses (most bittorrent clients can do this) so that there's always spare capacity for VOIP.

  55. Call forwarding by Andy_R · · Score: 1

    If only there was some way to route analogue sounds signals over some unused bandwidth in those internet wires that you have coming into your house...

    Why not just set up plain old telephone call forwarding, and get calls to your business number routed to your home number?

    --
    A pizza of radius z and thickness a has a volume of pi z z a
  56. If you're calls SOUND choppy to YOU... by volxdragon · · Score: 1

    The problem isn't your upstream (IE, from you to the ISP), it's your downstream (from the ISP to you). You can control your upstream with QoS settings on most good routers (although you need a 'real' router to get true QoS handled in hardware - most of the software implementations in the little SOHO routers suck badly), but you are at the mercy of your ISP for your downstream. If you are doing anything that pulls large amounts of data toward you (IE, downloading), it is far more effective to have the application do the throttling than the router (the router will just drop a ton of inbound traffic on the floor which is rather ineffective since you will usually have a much higher bandwidth on the LAN side than the WAN side in the first place). As for bittorrent, limit the number of inbound connections and limit the bandwidth per connection in the application, that will be most effective...

  57. Your best/cheapest option is an ATA with a router by peskypescado · · Score: 1

    Your best option is to get a SIP ATA (analog telephone adapter) that has a router built-in. I have personally used a Grandstream 486,and they work great. Vonage uses SIP and I have read (but never tested myself) that you can use any SIP compliant device with it. The difference between Vonage's ATAs and others' like Grandstream's is that Vonage's are locked down to only work with Vonage.

    So you would go from your DSL/Cable modem to the ATA/Router then to your Wireless/LAN access point or switch. If you would prefer to still use your wireless router for everything you could set it up in a DMZ on the ATA and put the ATA on a different subnet than the wireless router.

  58. QoS by commking · · Score: 1

    You can only half do it. QoS means prioritising packets - sending important packets before less important packets. So, you can prioritise VoIP, outbound. You can't do it inbound - only the router at the other end of the link can do that - and since that belongs to your ISP, you can only do it in one direction, unless your ISP offers it (unlikely on a non-business type product). You've also talked about bandwidth reservation - same deal applies. Since a voice call goes in both ways, I think you can get the idea. Good luck!

  59. No, that's not how it works by billstewart · · Score: 3, Informative

    There are a few ISPs that have blocked VOIP, mostly (ex-) monopoly telcos in various countries that want to charge you by the minute for voice. But most ISPs, and especially non-telco ISPs, don't care, because voice doesn't use that much bandwidth (especially if you're using compression.) BitTorrent's a different game - it's using something in excess of 1/3 of the bandwidth on the internet, so there are reasons for some ISPs to care about it other than just greed and spite :-)


    The real problem is that ISPs don't put VOIP on high priority, and applications like BitTorrent, ftp, and to some extent http want to suck down all the bandwidth they can get and fill up any network queues they can to keep the data flowing. ISP backbones are fat enough that it doesn't matter that they don't prioritize VOIP, but the link from their last switch or router to your house is a finite size, and BitTorrent can not only crowd out the downstream link, but can queue up enough packets that your VOIP traffic needs to wait a while for its packets to get through, and the gaps kill your audio quality.


    Also, the most critical thing for your router to control is prioritizing VOIP packets on the upstream, but apparently that wasn't enough to keep the article poster's calls working well.


    don't know if you were serious or trolling anyway...

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  60. Seconded for Tomato by PCM2 · · Score: 3, Informative

    I also use the Tomato firmware on a WRT54G, and I have exactly the kind of setup the OP describes. I don't even remember what kind of QoS came with the default firmware, but I never had any kind of luck with it, nor with DD-WRT. Tomato has been great so far.

    Tomato actually offers fairly sophisticated QoS rules. You can set priorities by MAC address, IP address, port, etc. You can even set bandwidth caps for specific protocols/ports; so, for example, you can set the first 512KB of data transferred over port 80 to "Highest" priority, while anything after that drops back down to "Lowest" -- the effect being that regular ol' Web surfing gets a little kick in the pants, but extended transfers are given less priority. The latest release even added the ability to prioritize small packets (ACK, SYN, etc.)

    What's more, Tomato also offers really neat graphing of your traffic. You can actually see, in near real time, what percentage of your outbound traffic falls under which priority category, with a nice pie graph. This is especially helpful when you want to double check that your rules are actually working (and you didn't make a typo when you were entering in a Mac address, for example).

    One thing to remember when you're setting up QoS on a router like this, though, is that you need to reserve a certain amount of upstream bandwidth just to manage to QoS overhead. So, say you have 384KB/sec upstream bandwidth. You'll probably want to tell the router to reserve 40KB/sec or so for QoS. YES, that means your maximum upstream bandwidth will in effect be lower than what your provider advertised; call it the cost of doing business with QoS.

    I have no empirical measurements to offer. All I know is that with the original, official WRT54G firmware and also DD-WRT I saw virtually no difference whatsoever when QoS was enabled. My outbound voice quality on my VoIP line was very choppy, particularly (but not limited to) when I was doing BitTorrent. With Tomato, on the other hand, there seems to be a marked improvement. I can actually hear the difference when I check and uncheck the "enable QoS" checkbox.

    --
    Breakfast served all day!
    1. Re:Seconded for Tomato by PCM2 · · Score: 1

      Incidentally, other posters are correct when they say that QoS can only really manage your upstream bandwidth. When I say the voice quality was bad, I'm talking about the sound of my own voice. The way I check the quality is by calling a different number and leaving a voicemail message. Everything sounds fine to me when I'm speaking, but the voicemail message tends to sound pretty choppy upon playback if there was other traffic on the line at the time and QoS was not enabled.

      --
      Breakfast served all day!
  61. BitTorrent Throttling? by nko321 · · Score: 1

    Don't most of the good BitTorrent clients let you throttle how much bandwidth you want to let it use?

    1. Re:BitTorrent Throttling? by bonehead · · Score: 1

      Of course. But that doesn't necessarily solve the problem. Hook a sniffer up to a cable or DSL modem and I think you'd be amazed at the amount of random, unsolicited traffic that gets thrown down your pipe.

      Do spammers call you and ask how much bandwidth you'd be willing to let them consume tomorrow morning when they hammer your mail server? Nope. If you want rock solid VOIP, you need to get cooperation from your ISP.

    2. Re:BitTorrent Throttling? by nko321 · · Score: 1

      Definitely. I was just referring to his mention of BT downloads correlating to the problem.

  62. A couple ideas... by vux984 · · Score: 1

    I have used my Linksys (not a WRT54G, so 'upgrading' it to Linux probably won't work) router's QoS feature to assign high priority to the MAC address of the Vonage box, low priority to the BitTorrent box, and medium quality to everything else,

    Check for firmware updates for your router. Consider purchasing a new router. At most it will help a bit.

    which helps a little, but not enough.

    As you've noticed, evidently.

    Is there a router out there that would allow me to reserve, say, 75-90kbps of bandwidth off the top for VOIP and never, ever allow any application to use that, regardless of whether there's a VOIP call going on at the moment or not?"

    Well, first off that would be a pretty stupid waste of capacity. And secondly, no, if the packets are flooding in from the outside, even if your router is rejecting them, they are still flooding in saturating the pipe.

    There are 2 things you can do:

    1) Throttle down your bittorrent at your end, to limit its download rate. That will keep peers from saturating your incoming link.

    2a) Contact your ISP and see if they offer QoS service, which means they will prioritize your VOIP packets through their network, and their routers.

    Shaw in Canada for example offers it for $10/mo

    http://www.shaw.ca/en-ca/ProductsServices/Internet/Internet+Explained/QoSVoIP.htm

    In theory this is the best solution. In practice, its somewhat controversial.

    Some have alleged shaw and other ISPs deliberately manipulate competitors voip traffic to promote its own voip offering. While this is possible, in my experience that isn't the case at all [at least with shaw].

    Others allege that its a 'scam' to let shaw squeeze more money out of people and has no effect. But to counter that I have heard of cases where people have found QoS made a big difference.

    Still others claim that QoS should be free and automatically applied to real-time apps like voip, video chat, etc and refuse to pay for it. But that's a separate economics issue.

    In my case (on Shaw) I use primus voip and have no trouble, except when torrenting, but throttling my torrents seems to generally resolve the issue, and I've never tried their QoS service. I also mostly torrent at night.

  63. Don't bother with consumer routers for VOIP by Darkk · · Score: 1

    Bit-torrent is a HUGE resource hog and pretty much all consumer routers barely can keep up. Bit-torrent can generate hundreds up to several thousands of connections which fills up the iptables in the consumer router very quickly. There isn't enough memory or horsepower in a typical Linksys or D-Link router that can really keep up with it. Poor VOIP connections confirms this. Best bet is setup a Linux router using IPCOP (www.ipcop.org) and it's really easy to setup and configure. This way you can customize the hardware anyway you want to suit your needs. What's more you can easily add more features to it like OpenVPN. If IPCop isn't to your liking there are plenty of others out there. Take my word for it, you outgrew that Linksys router and no firmware will 100% fix it regardless of what people say. Good luck.

  64. Get a D-Link gaming router by Anonymous Coward · · Score: 0

    Dlink DGL-4100 router has traffic shaping that YOU specify. I play online games and use BitTorrent at the same time with no trouble now that I got the gaming router with the traffic shaping ability. It's WICKED nice. A bit pricey, but my lag spikes are gone, and it goes nice and smooth. This may help your VOIP blues.

  65. Edgewater Edgemarc might be your answer by sasso · · Score: 1

    I used to work for a VoIP company, although on the IP side of things (so i'm no expert on the edgemarc), and we looked at using Edgemarc as our CPE for businesses. These devices can be statefully aware of active voip calls and when there is bandwidth contention, it can adjust the tcp windowing of your non-voip traffic which slows the remote host's transmission of data. it's a reactive solution and the edgemarcs aren't cheap, but businesses use them. don't hold me to it, but it might be worth checking out. i think they make a few SOHO models.

    1. Re:Edgewater Edgemarc might be your answer by rhs408 · · Score: 1

      I work for a small California VoIP company that implements mostly Edgewater routers for our customers. For the most part, Edgewaters are awesome. But I did have one customer about a month ago that had call quality issues whenever a download occurred. They have only a few phones and a T-1 connection. I worked with an engineer at Edgewater and he ran a packet capture on their router while they did a large file download and had one active call. What we noticed is that incoming packets were being buffered, and there was also quite a bit of jitter. The outgoing packet stream was flawless. After first trying making adjustments to the traffic shaper (which did not help), the Edgewater engineer's suggestion was contacting their T-1 provider to see if they could do any sort of packet prioritization. They could not. So I told the customer that they either needed to get a separate circuit for their data, or they needed to be more careful about downloading files while people are on the phone. The Edgewater engineer agreed with me.

      Just this morning, we got a notice of termination of service from that customer.

      So while the Edgewater routers are very good quality, even they cannot do anything about how incoming packets are being transmitted to the customer premises. If incoming voice packets are being buffered, there's not much that the Edgewater can do about it.

    2. Re:Edgewater Edgemarc might be your answer by rhs408 · · Score: 1

      I work for a small California VoIP company that implements mostly Edgewater routers for our customers. For the most part, Edgewaters are awesome. But I did have one customer about a month ago that had call quality issues whenever a download occurred. They have only a few phones and a T-1 connection. I worked with an engineer at Edgewater and he ran a packet capture on their router while they did a large file download and had one active call. What we noticed is that incoming packets were being buffered, and there was also quite a bit of jitter. The outgoing packet stream was flawless. After first trying making adjustments to the traffic shaper (which did not help), the Edgewater engineer's suggestion was contacting their T-1 provider to see if they could do any sort of packet prioritization. They could not. So I told the customer that they either needed to get a separate circuit for their data, or they needed to be more careful about downloading files while people are on the phone. The Edgewater engineer agreed with me. Just this morning, we got a notice of termination of service from that customer. So while the Edgewater routers are very good quality, even they cannot do anything about how incoming packets are being transmitted to the customer premises. If incoming voice packets are being buffered, there's not much that the Edgewater can do about it.

  66. ImageStream by element-o.p. · · Score: 1

    Call up ImageStream (http://www.imagestream.com) and check out a Transport router. They are essentially just a small PC running Linux. I believe they go for about $800, but they are rock solid and extremely beefy.

    --
    MCSE? No, sir...I don't do Windows. Yes, I am an idealist. What's your point?
  67. that seems silly by JustNiz · · Score: 1

    >> Is there a router out there that would allow me to reserve, say, 75-90kbps of bandwidth off the top for VOIP and never, ever allow any application to use that, regardless of whether there's a VOIP call going on at the moment or not?"

    Why completely block out bandwidth even when you're not using the service that uses it? that seems kinda silly overkill to me. Packet prioritisation is much better.

    I expect your actual problem is either:
    1) Your bittorrent client doing all it can to make your bittorrent traffic not look like bitttorrent traffic so that your ISP won't throttle it, so your router can't prioritise it either.

    2) Your ISP is recognising you have a bittorrent going on, and is flooding you with RST or SYN packets in order to limit your download speed, which is also having an effect on your voip call.
    see http://torrentfreak.com/comcast-throttles-bittorrent-traffic-seeding-impossible/

     

  68. 2 things. by Krneki · · Score: 0

    1. If you have a good ISP all you need to do, it's to make sure you never use 100% of available upload or download. To limit it to 99% use NetLimiter on the PC or configure QoS on the router. Linksys WRT5GL + tomato firmware is probably the cheapest and still fully reliable device to use. 2. Your ISP sucks, in this case you have to limit also the number of connections you make. Tune down Torrents max inbound and outbound connection until your VOIP is working properly.

    --
    Love many, trust a few, do harm to none.
  69. Yes, but it has to be done on both ends by Punker22 · · Score: 1

    It is not possible to QoS inbound traffic, so you have to QoS outbound traffic on both sides. We are a Business VoIP service provider and here is what we do:

    Juniper M20 QPP CHDS3 QoS / Tag VoIP traffic with highest priority ==T1== Customer Adtran 1224STR with QoS

    This allows us to QoS traffic in both directions on the T1. You cannot do proper QoS with just one end device... sorry.

  70. Mikrotik - RB450 by Anonymous Coward · · Score: 0

    I would recommend a Mikrotik, fairly cheap for all the options you get on then. I got one of the 450 models, and the board, case, and power supply will hit you for around ~100. It has a nice GUI interface for configuring everything.

    Mikrotik Website
    Router Boards

  71. You are Doing it Wrong: you need THROTTLING by IBitOBear · · Score: 3, Interesting

    I use a reasonably cheap PC setup for my boarder router (used to be just a 486) and have flawless Vonage VoIP service.

    The thing you are doing wrong is that you are not _THROTTLING_ the link from your router to your cable modem.

    In point of fact, and sadly, there is virtually no buffer for outgoing data on a cable modem. If you are configured for 768kbps upstream then sending data any faster than that will lead to all sorts of misery.

    So in a properly configured firewall you want to throttle your _outgoing_ data to about 99% of your rated upstream bandwidth and _then_ use packet shaping to make sure that the right kind of packets get to "go first" in the QOS stack.

    This turns your router into the buffer that your boundary modem lacks and will both make your VoIP flawless _AND_ _VASTLY_ improve your TCP/IP (web etc) throughput.

    I have six ranks in my QOS gateway:
    1) TCP ACKs (actually tcp packets less than 80 chars in length)
    2) SSH (for emergencies)
    3) VoIP (udp from my vonage device)
    4) special occasions (none of your business 8-)
    5) Games (udp in general)
    6) Everything else.

    Doing both of these things together will speed up everything in your house (including bittorrent) and leave you with outstanding voice quality even when gaming and running bittorrent while watching video on demand.

    If found the basic rules files searching aroud the net, and then tweaked them with dynamic math and weightings.

    Flawless.

    --
    Innocent people shouldn't be forced to pay for inferior software development.
    --"Code Complete" Microsoft Press
    1. Re:You are Doing it Wrong: you need THROTTLING by Saturn49 · · Score: 1

      Mod parent up. These other replies talking about marking packets and the whole stream of routers needing to respect them don't seem to have a clue about your standard home Internet connection.

      Here's the deal, in a nutshell: Your cable modem or DSL line is the bottleneck. Your LAN is very fast and so is the rest if the Internet, if you can get your packet past your modem. It is your cable modem or DSL modem that is actually dropping packets when you saturate your upload bandwidth. It doesn't matter whether or not they have buffers or not (many cable modems have BIG upload buffers, causing all kinds of latency problems) the fact is, your DSL modem or cable modem DOES NOT RESPECT QoS priority flags on packets when it starts dropping. Sorry, they just don't.

      So you need to do what the parent said and artifically limit your bandwidth in your router, so every packet your router sends to your cable modem or DSL modem WILL go out, because it hasn't hit its own limit. Then, with prioritization rules, you can make sure your outgoing VoIP packets will not be dropped - there's no need to reserve upload bandwidth for this.

      The same thing works for downloading. You can't directly control what the other side sends you, but you CAN artificially limit your download speed, in your router, to make it the bottleneck. What happens is that your router will start dropping packets before your cable modem or DSL modem's download stream gets saturated. These dropped packets will cause a TCP connection's window to drop and the other end will be forced to resend data and slow down its sending rate. This achieves exactly what you want - the other end to stop saturating your connection (or close to it). In this way you can indirectly control what the other side sends you and which streams get priority.

      The download throttling and prioritization obviously doesn't work (well) unless the majority of the traffic coming in is TCP. Otherwise reserving bandwidth for VoIP in this case works too.

      You can do a great job of QoS on a typical DD-WRT modem, if you make it the bottleneck, which obviously requires knowing your sustainable upload and download rates on your connection. In my experience most DSL and cable limits are very stable. The exception might be cable connections in neighborhoods where they've oversold the headend and your bandwidth suffers during peek hours (6pm to midnight.)

  72. Juniper/Netscreens do an even better job by ZWithaPGGB · · Score: 1

    You can set a set of bandwidth priorities in rules, which can be protocol and/or IP based, and when that rule is not in use, the bandwidth is available for other apps, but when it is, it gets its guaranteed bandwidth.

    It's even got a topic in the Vonage Forum (which would have been the right place to ask this question).

  73. Software solution? by BungaDunga · · Score: 1

    I've tried a program called cFosSpeed (Windows only I think?) that prioritizes packets quite well. The main point is to keep latency as low as possible, especially during uploads, and I think it would work quite well for VOIP.

    1. Re:Software solution? by dafradu · · Score: 1

      I use this software, works quite well. I can play online and people on the network can browse the web without lagging me out. But you have to install it in the gateway. If your using a router and install the software on 1 machine it won't have the same efficiency.

  74. pfSense can do it by AmiMoJo · · Score: 1

    Most QOS stuff on routers is rubbish, the pfSense system works very well. It needs some understanding and effort to set up (the wizard isn't that good) but you won't find a more effective system.

    --
    const int one = 65536; (Silvermoon, Texture.cs)
    SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
  75. Communication must be understood b4 QoS by PacketU · · Score: 1

    I totally agree with what CommKing said. You can only do half of it. You can prioritize traffic from you to your ISP. They must prioritize traffic outbound from them (inbound to you). Also, you cannot deal with congestion in any other part of the network, than the link that you are connected to. There are things that you can do to mark your traffic, but you cannot force a certain behavior at equipment that you do not have control over. Most VoIP happen to work as well as they do because a lot of traffic is TCP and VoIP streams are usually UDP. A lot of UDP traffic will cause the TCP to slow down because it will cause some packet loss. UDP is connectionless and can easily consume bandwidth. So if there is a case of multiple UDP streams fighting for bw, there can be some issues. Also keep in mind that the ISP can choose to throttle you based on your use of bitTorrent. Whether one agrees or disagrees with that is another topic. So to answer the question you asked, yes a router can guarantee bandwidth. However, a single router cannot guarantee two way bandwidth through a network with many hops.

  76. Sonicwall by dave562 · · Score: 1

    Have you looked into the Sonicwall TZ line? I have a TZ-170 that will do QoS tagging. The TZ-170 is a few years old at this point. They offer a wireless version of it. You're probably looking at ~$500 once you include the advanced firmware. It might be overkill for your situation.

  77. It will work if by addikt10 · · Score: 2, Interesting

    Actually, yes it should, as long as you also set your bit torrent to use a maximum of download bandwidth, and report as choked to the "supplier".

    1. Re:It will work if by pyite · · Score: 2, Informative

      Actually, yes it should, as long as you also set your bit torrent to use a maximum of download bandwidth, and report as choked to the "supplier".

      My parent was talking about QoS at the router, not at the application. There's a difference. In any event, bit torrent is one protocol. The original question was more general and mentions "other high-bandwidth applications." Most protocols have no BCN (backwards congestion notification) nor is there any link layer method for allocating bandwidth a la fibre channel, which uses buffer credits. TCP is an inherently greedy protocol. It takes all the bandwidth it can until it starts dropping packets and then backs off a bit until it does the same thing over and over again. This does not play well with VoIP and the only way to truly control it is end to end QoS, like what is done in the enterprise.

      --

      "Nature doesn't care how smart you are. You can still be wrong." - Richard Feynman

    2. Re:It will work if by mysidia · · Score: 1

      TCP is an inherently greedy protocol. It takes all the bandwidth it can until it starts dropping packets and then backs off a bit until it does the same thing over and over again.

      TCP's behavior is why you need to set limits on your local router for both outbound and inbound.

      It is greedy in the sense that it makes sure to utilize all the throughput available to TCP.

      But if the inbound exceeds your limit, inbound packets will start being dropped, and TCP will react.

      The sender will immediately back off by briefly ceasing transmission and cutting a huge chunk out of the transmit window.

      It will happen again as the transmit window is gradually expanded back.

      But if your rate limit is low enough, the rate of inbound transmissions can be kept below a desired rate.

      There _is_ a level you can set your bandwidth throttle at that will mostly guarantee that normal operation of TCP for the limited protocol will not reduce the throughput available to the unlimited protocol below X.

      *At the cost of additional bandwidth being unavailable to BT that wouldn't need to be: if you had more granular control of your downstream traffic.

    3. Re:It will work if by Anonymous Coward · · Score: 0

      Not quite. UDP traffic is the one that is hard to shape. TCP you can do, with it's built-in congestion avoidance.

      Say you have internet - eth0 - computer - eth1 - lan

      You can indeed do some incoming shaping by simply doing egress shaping on eth1. If a TCP flow can't exceed Xkbps, it will end up only being transmitted at that rate by the sending host out on the internet. Now, this won't work for UDP, but is close-enough for practical use normally.

    4. Re:It will work if by Spy+Hunter · · Score: 1

      TCP is an inherently greedy protocol. [...] he only way to truly control it is end to end QoS

      True, TCP is greedy; however you are wrong about QoS. TCP is quite controllable. Your router has complete control over upstream *and* downstream TCP bandwidth. All it has to do is purposely delay or drop TCP packets and it can throttle TCP to any desired level, leaving as much room as necessary for VoIP, gaming, or other low-bandwidth latency-sensitive applications.

      --
      main(c,r){for(r=32;r;) printf(++c>31?c=!r--,"\n":c<r?" ":~c&r?" `":" #");}
    5. Re:It will work if by Bert64 · · Score: 1

      Legitimate established TCP connections perhaps, where the remote end backs off like it should when congested...
      What about traffic that is not part of an established connection (ie all the SYN packets from other bittorrent peers trying to connect to you), some misconfigured torrent clients and bad tcp stacks can be incredibly aggressive, and congestion/shaping makes the problem worse because the packets get dropped causing the aggressive client to retransmit when it doesn't receive a response.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
  78. Simple ... by fahrbot-bot · · Score: 1
    Most of the time it works fine, but when I'm using BitTorrent or other high-bandwidth applications ... the call quality gets choppy.

    ... stop downloading (I'm guessing, porn) while you're on the phone.

    --
    It must have been something you assimilated. . . .
  79. Router Setting by kdekorte · · Score: 1

    I run a WRT-54G router with the stock firmware. And I run two Vonage lines over my cable modem which has about 256Kbps upload rate. the easiest thing to do is to find the mac address of your phone adapter and set that device to be high priority and then set your upstream bandwidth setting just a little below what you get from your ISP and it works everytime. I've done this on two ISPs and never had a Vonage problem since doing that.

  80. Hm. I thought I was the only one. by Fantastic+Lad · · Score: 1

    Whenever my phone rings, first thing I do is kill the bit torrent client if I have one running. People come first. Other than that, VOIP totally rocks.

    I wonder how much longer that will be the case. --I seem to recall some companies were getting hit hard with law suit losses.


    -FL

  81. Re:It's not your router...Throttle your torrents by bwcbwc · · Score: 2

    Most BitTorrent clients allow you to control the upload and download bandwidth consumed by the torrent(s). Limit the total of your torrents to about 1/3 of your measured (as opposed to advertised) available bandwidth in each direction. I had the same issue with VPN connections to remote desktops and found that this was enough to restore performance.

    If the torrents are saturating your bandwidth, there isn't a lot a router can do with QoS to avoid choppiness. And if you keep your torrents to less than half your bandwidth QoS isn't necessary. QoS could possibly help you run at the maximum possible torrent speed without losing VOIP clarity, but you'd still have to fiddle around with the bandwidth limits on the Torrents.

    --
    We are the 198 proof..
  82. Configure your bittorent client. by Awptimus+Prime · · Score: 1

    It seems a lot of people in this thread are throwing battle ships at a job a jon boat could do. Why not just set your torrent client's bandwidth limits to something sane? I use VoIP with no QoS, my torrent client is configured to allow 15K ingress/egress, and I've never had a problem. Sure, the torrents take a little longer to complete, but more people get their fair share of downloading from my client in the process.

    I wasn't under the impression torrents were ever intended to be a fast way to transfer, just a shared method of distribution. The eager beavers with no bandwidth limitations in their clients have a lot to do with ISPs trying to come up with new ways to slow it down or block it.

  83. You can guarantee BW, but downstream latency prob by George_Ou · · Score: 1
    You can reserve bandwidth on the upstream and downstream for VoIP or any other real-time application on your own router and you can even guarantee low latency/jitter on the UPSTREAM with packet scheduling. However, downstream latency and jitter is something that needs packet scheduling on the CMTS (if you're using Cable) or DSLAM (if you're using DSL). Just because you reserve downstream bandwidth on your own router for VoIP doesn't mean you won't ever see spikes in the downstream latency (jitter).

    See: Why BitTorrent causes so much latency
    http://www.formortals.com/Home/tabid/36/EntryID/57/Default.aspx

    But if you can deal with 3 out of 4 things, you can make VoIP usable with a low enough ping. I can't say the same if you want a perfect gaming experience though.

  84. D-Link DGL-4100 by Elias+Israel · · Score: 1

    I had this exact problem and after much research I found that the D-Link DGL-4100 has the QoS features needed to make sure VOIP works smoothly even when downloads are going on.

    It sets up easily and handles different network setups flexibly. And it processes packets fast. It easily keeps up with my 5Mbps WAN connection

    Well worth it; highly recommended.

  85. Not to self reply (the scripts are in my journal) by IBitOBear · · Score: 1

    Not to self reply... I put my firewall and traffic shaper scripts in my slashdot user journal so that people may share and enjoy. Note that you will want to set some of the variables (like INTERRFACE_SPEED and the numerator in CEILING to fine-tune for best performance on your link). Weight can also play a nice trick or two. Note that you need both scripts, or at least all of shaper and the CLASSIFY bits of firewall to make this work right. The firewall script is something I found on the internet and its a better companion/primer example of IPTABLES than any other script or article I have ever found. It is somewhat customized but should work "damn well" as posted. You might want to junk the various LOG elements from the firewall if you use your console as root much. Another super feature is that I added a ssh throttle so that if an ip address starts probing your site with random SSH attempts (more than three an hour) it will get blocked till it goes away for at least a day. Enough access for you but not a gaping hole for bots! 8-) Share and enjoy.

    --
    Innocent people shouldn't be forced to pay for inferior software development.
    --"Code Complete" Microsoft Press
  86. Traffic Shaping != QoS by guruevi · · Score: 1

    There is a difference between QoS and Traffic Shaping. On a big gigabit network you can permit just using QoS to set preferred priorities which certain routers and level 3 switches can follow. That is most likely what the router does, just tag the packets that are passing through which might not always work.

    You also have Traffic Shaping (in Linux this is very simple to set up look up tc) where you reserve pipes of your total guaranteed bandwidth which are reserved for certain traffic (packet-based, port-based or ip-based). Now before you go ahead and set these up: what is your guaranteed bandwidth? If you have a home internet connection, this could be as low as 64kbit/s for cable/dsl to 16k for dial-up or wireless. Of course, traffic shaping so that you'll ALWAYS have that available is not possible unless you want to have that low of a bandwidth. So try to figure out what your minimum practical bandwidth is throughout the day and see if you're happy with that (that's why businesses have contracts and expensive pipes for VoIP).

    The other issue is: what happens with the traffic that can't pass through the pipe at a certain moment? Does the router drop it? Technically you should traffic shape on the host that is sending the packets because that is the only one that can shape without having to drop packets and all overhead associated with that.

    Read up on the traffic shaping (tc) documentation for linux to find out more about it and find out about how some practical shaping implementations work

    --
    Custom electronics and digital signage for your business: www.evcircuits.com
  87. D-Link DIR-655 by snsr · · Score: 1

    Picked this up recently; after some configuration the D-Link DIR-655 has become far and away my favorite router. It's also a gigabit switch, and includes a gigabit WAN port just in case.

    Incredibly fast (when configured properly) it's able to keep up with my 30Mbps connection no problem.
    The QoS actually works, too.

    I paid $119, but I saw them at Costco for $90, so it's within your stated budget. Some people have had issues (re Newegg reviews) but I have a suspicion they don't know how to properly configure the beast.

  88. Well by Anonymous Coward · · Score: 0

    My router/modem/(mostly)ISP can't even guarantee 6mbps for 80 bucks a month. No point in getting a router since all their modems are combined with routers and allow 0 cusomizability. I can only see the status for it.

    It's the only ISP in the area, that's decent. It's either 6mbps 40% of the time or 512kbps 100% of the time....

  89. Not actually true, you are doing it wrong... 8-) by IBitOBear · · Score: 5, Informative

    What most people don't understand about TCP (and therefore bittorrent etc) and Cable Modems could fill a book.

    The thing most people don't understand about cable modem is that it has virtually no buffer for outbound traffic (e.g. the traffic you do control) so subsequently it is almost a given that you will overrun the transmit buffer on your cable modem doing the simplest of things. This in turn will destroy all your throughput because...

    The thing most people don't understand about TCP is that it accelerates linearly and falls back exponentially. So whenever you drop an acknowledgment frame (outgoing) then your incoming data session tends to stumble to a near halt. (that is each successful frame you send increases the transmit window by one frame, but each failure cuts the transmit window in half, and most failures cause at least two drops.)

    This can be seen when you use a "near by" internet speed test (a la speakeasy) and you see the speedometer surge and fall like someone revving their engine. But each "fall" is actually a bunch of trash hitting your system and then getting discarded as the stream colapses back on itself.

    Now for a cable modem provider, they have no interest in throttling data coming to you to your downstream cap. That would be expensive and would just clog up the memory in their routers. your downstream limit is really implemented as an aggregate of your upstream capabilities and how their time division multiplexer is configured to cascade into statistical multiplexing. (See Comcast's "speed boost" as an example of free-wheeling and only cutting back if it must.)

    So anyway, I have posted my firewall and traffic shaper scripts to my slashdot journal. They are drop-in ready for Ubuntu and Slackware, minimal editing may be needed for RedHat or others.

    Try them out. Be particular to tune the top of the shaper file for the upstream speed to match your _advertised_ cable modem rate (INTERFACE_SPEED=768 in the file) and then you can fine tune the numerator part of the fraction in CEILING=... (98 worked best for me).

    I get my full 8M down PLUS whatever speed boost is doing (24M down often) and my VoIP works great, even during peak usage etc, while people are gaming and web surfing in the house (my house is a high usage environment with multiple housemates skyping and gaming etc).

    On top of that, the script is actually _BENEFICIAL_ to my ISP. By shaping my outgoing traffic I waste virtually zero bandwidth on retransmits so I am a great net citizen.

    (If you set your firefox to enable pipelining and set max pipeline requests to a value like eighty (yes 80) you will find that you are a most efficent and therefore quite spunky web citizen.)

    Share and Enjoy...

    --
    Innocent people shouldn't be forced to pay for inferior software development.
    --"Code Complete" Microsoft Press
  90. dlink gaming router + utorrent scheduler by Anonymous Coward · · Score: 0

    I use the dlink 8100 gaming router that has excellent QoS.

    But I also use uTorrent which has a scheduler. You can set it to throttle down during the working day and then back to full speed evenings, nights and weekends.

    The combo of the 2 has kept my torrents and Vonage living happily together.

  91. Your ISP is throttling you by toque · · Score: 1

    Uh, I don't think anyone has given him the right answer yet.

    The problem doesn't have anything to do with his router... the problem is that his ISP recognizes that he's using BitTorrent and is throttling his entire connection.

    I have exactly this problem with Rogers in Canada: if I start a BitTorrent session, the total bandwidth of my ISP connection drops precipitously. Stop the BitTorrent session, my overall bandwidth pops back up.

    Both of us need new ISPs.

    --
    Beware of this and that
  92. TCP Vegas (DD-WRT) by Fry-kun · · Score: 1

    Sounds like what you need is TCP Vegas. It emphasizes packet delay, not loss, so it should work well for you. DD-WRT supports it: see this thread.

    --
    Did you know that "FTW" ("for the win") is a direct translation of "Sieg Heil"?
  93. which end is choppy ? by bugs2squash · · Score: 1

    If what you hear is bad, then there's a problem delivering packets to you. There may be little you can do about this.

    If your speech is getting broken up on the way to the far end, then you may be able to re-prioritise packets out of your router, but the broadband company is unlikely to honor any QoS markings you put on them.

    Finally, you might try deliberately rate limiting your reception of the bit torrent (if it is TCP - idunno, are torrents TCP ?). Any good PC operating system should be able to do this ;)

    That should persuade the far end to slow down through back pressure on the TCP windowing system.

    --
    Nullius in verba
  94. Re:It's not your router...Throttle your torrents by Anonymous Coward · · Score: 0

    - and turn the throttle back on to full-blast over-night. That's when must of my bit-torrenting gets done.

  95. Works but not with built in QoS by yabos · · Score: 2, Informative

    The built in QoS on all the open linux firmwares only does outbound QoS. You can use iptables on the linux firmware to do prioritization. Slashdot's filter won't let me post the script because of "too many junk characters" so sorry I can't post it. I didn't make the whole script up myself. There is a program called WRT54 Script Generator v1.02. What I've done is prioritize nntp based on ports and gave it 2-5000Kbps and TCP on port 80 and port 443 to something like 90% minimum of my max connection speed. The script uses the mangle option of iptables to effectively prioritize DOWNSTREAM http over nntp.

    This was a huge find for me because an nntp download using 8 connections would kill my connection and trying to download a new podcast for example would take forever. Now, when something on http starts downloading, nntp goes to almost zero, and I really mean zero. It effectively gets killed until the http is finished. All this is running on a WRT54GL with dd-wrt but you should be able to use any of the other firmwares out there. You could easily do this same thing for VOIP. Just tell the script generator that you want your VOIP port to get a minimum of 500Kbps or whatever and it can get a minimum of that speed if it really needs it all.

  96. Cisco 800 series by ckhorne · · Score: 1
    The Cisco 800 series (http://www.cisco.com/en/US/products/hw/routers/ps380/prod_models_comparison.html) will do everything you're asking for and more, and they're in the $500 range (you only mentioned that you didn't want to spend 4 figures. There's about a dozen routers, each with certain features.

    I recently bought one for my home office after having trouble with inbound port mapping for static IPs couple with outbound GRE packets for VPN - the netgear I was using before just wasn't able to keep up. QoS, both inbound and outbound, and scheduled based on bandwidth or percentage is allowed. DMZ, virtual networks, and other stuff as well are included as well.

  97. Re:Gaming Router...or utorrent program by Anonymous Coward · · Score: 0

    utorrent as a program can limit the bandwidth by right clicking the icon near the windows clock. set to 80-90kb/second on a shaw cable (100kb max...ish) and i've saved 10-20% for my voip phone (have this problem myself)

    good to just get everyone in the house using utorrent. then just talk between yourselves on whos doing their bandwidth binge at the time.

  98. IIRC, this model has the feature you requested by Lacrocivious+Acropho · · Score: 1

    It has been some months since I read the manual for this thing -- to help a client in Italy solve a connection problem -- but I remember being impressed by its feature set and the granularity of control it offers, not least among them QOS. I have no hands-on experience with this router, nor have I had time to read the responses already here. Hope this helps. http://www.draytek.co.uk/products/vigor2800.html

    --
    Twice as crazy as I would be if I was half as crazy as I am.
  99. Neutrality by wagnerer · · Score: 1

    Frankly they should just start paying attention to an 8 bit priority flag and then set up a sliding fee schedule. The higher the priority the more it costs to send. I think that's the fairest way to do things.

  100. Use G.729a by unics · · Score: 0

    Use a codec that ultimately has a smaller foot print such as G.729a.

    1. Re:Use G.729a by unics · · Score: 0

      Sorry about that. I was a little too quick with the submit button. But basically, you are most likely configured to use a high rate bandwidth codec such as G.711u if you are in the US and G.711a elsewhere in the world. They use up a larger amount of bandwidth. My over all recommendation to help your situation is to use a codec that has a smaller bandwidth footprint such as G.729a. It has an overall MOS quality of 4 so you should get the best voice transmission out of the other competing compressed codecs.

      If you have vonage, there should be a adjustment feature for the quality of your call. Most of the time, you are making calls on the phone to talk with people, not listen to music. You shouldn't base the quality of the voice call on how well the on-hold music sounds.

      Take a look at this website:
      http://www.newport-networks.com/whitepapers/voip-bandwidth3.html

      It shows the overall bandwidth utilization and tcp overhead added all together.

      I would also recommend using the bandwidth calculator:
      http://www.newport-networks.com/pages/voip-bandwidth-calculator.html

      This will give you a good idea of how much you expect to use up in Kbps or KBPS. You can throttle the bittorrent client down instead of running it full blast.

      You should also take into consideration if you are a cable modem customer. Your head-end unit may be oversubscribed. I have personally had the best experience with VoIP using DSL. I have much better RTT (roughly 45ms from Virginia and Florida) between the SIP termination point (Level3) and my PBX (asterisk). G.729a can handle up to around 110-130ms RTT.

      Since you work from home, make sure that:

      -You run applications in cached mode (copies of the data are stored locally versus accessing them over a WAN)
      -Make sure you have sufficient upstream bandwidth. Bellsouth in my area offers 6 Mbps downstream / 512 Kbps upstream. I know Comcast has offerings upto 1 Mbps upstream but they do not service my area.
      -Make sure you limit your applications that utilize your internet connection when making phone calls.

      Lastly, you could go get your self some Polycom phones (SoundPoint IP 501, 601, 650). The IP-based phones with ethernet connected to them can do QoS. You connect your PC to it and the bandwidth is adjusted accordingly when your phone needs the bandwidth. For the customers that want an easy to deploy solution without the complicated firewall settings, these phones do a relatively good job at QoS and are an awesome speakerphone. One note though that you might need to get an alternate voip provider such as Telasip (telasip.com) since Vonage is not IP-phone friendly last time I checked.

  101. Here's one: Trendnet TEW-631BRP. by thorndt · · Score: 1

    Trendnet TEW-631BRP. Has good QoS management and is Draft-N to boot.

    --
    - The race is not [always] to the swift, nor the battle to the strong. -
  102. edgewaternetworks.com by webjamm · · Score: 1

    Their Linux based routers are the best that I have found for managing your WAN bandwidth. They don't break off bandwidth, but control non VOIP applications access to the defined bandwidth. Of course you can only control bandwidth leaving your network so the person on the other end of the call hears you clearly. For QOS returning to your network, your ISP has to have packet drop policies in place to make sure RTP gets forwarded and only regular data packets get dropped. Edgewater also provides MOS scoring analysis and allows Linux shell access so you can use TCPDump and built in Linux tools to help diagnose the call quality problem. Hope the helps

  103. Routers that work by Anonymous Coward · · Score: 0

    Try getting a PepLink 30, expensive and though it doesn't say on the website, the latest version supports QOS on VOIP data. We use these for our clients and our office. We've run file sharing apps on two computers and placed multiple voip calls at the same time with no problem.

    Another brand to try is Intertex, they make routers that are design for sip data. You can also limit the amount of bandwidth you computers use, and save enought bandwidth for any VOIP device

  104. Cap your torrent client by toastee · · Score: 1

    This challenge is simple.
    Restrict your bit-torrent client to only use a portion of your total bandwidth.
    step 1. Use a few speed test, or download a few really well seeded torrents to determines your maximum up/download speeds.

    step 2.
    Subtract a few KB/s from the maximum speeds and cap your torrent client's upload/download speeds to the remainder. leave yourself a good 15-20kb/s for your voip connection and you should be alright. unless your isp is using flow limiting, then set the maximum connections for your torrent client to a number around 200, and it should work decently.

    step 3.
    Profit.

    --
    - Better to speak your mind than to remain silent, or someone may speak for you.
  105. Potential Solution by Anonymous Coward · · Score: 0

    First off, on the off chance you have verizon fios, the fios router supports both inbound and outbound QoS and allows you to reserve an arbitrary percentage of your bandwidth for inbound and outbound (seperately of course). Just google for the model of the router and the words vonage QoS. You should come up with some hits about how to do it.

    Your other option is to upgrade your device to the new V-Portal (unless you already have it of course) as it has its own internal QoS settings that ensure it always gets priority over devices plugged in behind it. You just have to make sure its first on the network.

    Whichever route you go, 90kbps is not really enough. The bandwidth saver settings vonage lists show high as 90 kbps, but it actually uses a bit more bandwidth than that in each direction when on a call, so you're better off reserving at least 96 kbps, 128kbps if you have it to spare just to be sure. And one last note, if you do any conference calls, its 90kbps per direction per party on the line (if you are the one hosting the call).

    And before people jump in and say I'm crazy, yes, I do work for vonage, and yes, I am a tech support agent.

  106. Re:Not actually true, you are doing it wrong... 8- by NormalVisual · · Score: 4, Funny

    What most people don't understand about TCP (and therefore bittorrent etc) and Cable Modems could fill a book.

    Hence the reason one can find books on these subjects. :-)

    --
    Please stand clear of the doors, por favor mantenganse alejado de las puertas
  107. TCP windowing works well enough *if* by linefeed0 · · Score: 1

    the DSLAM doesn't have huge buffers, AND tends to prioritize traffic with the right TOS bits set. Most recent ADSL dslams do both of these, and believe it or not there is a lot many telcos could do to make voip worse if they wanted to, than the pretty decent default behavior built into most recent dslams.

    It used to be thought that dropping packets was the worst thing you could do, and that robust networking equipment would buffer out the wazoo. The reality of multimedia and realtime services has now set in, and most modern equipment doesn't buffer nearly as much. The interesting upshot of this is that the modern ADSL that pretty much any telco will provision is *better* for VoIP than most SDSLs with no added edge router on each end to provide better QoS. (Paradyne MVL, once the favorite SDSL of little regional CLECs everywhere, is particularly bad in this regard; it's nearly unusable for VoIP in the absence of deliberate QoS on both ends.) In addition, the fast downstream on ADSL helps mitigate the effect of bursty TCP traffic, although it may not be enough for torrents.

    By the way, if you are configuring Linux for QoS, the same issue applies. There is a tradeoff between latency and the likelihood of dropping packets. The linux defaults are biased toward very high speed interfaces (and very large buffers), and the kernel has the counterintuitive practice of copying the interface's queue length to each leaf qdisc. The defaults create excessive latency with many QoS setups. You should set the txqueuelen using ifconfig to something much lower than the default of 1000 (but usually at least 10), BEFORE you create the htb/cbq/hfsc qdisc and classes for QoS.

  108. Building one may not help. Your ISP may be at faul by Anonymous Coward · · Score: 0

    The thing to consider is that it may not even be your own network that is causing the problem.

    Say for example your local device is prioritising and the outgoing traffic from your 'vonage' box fine -- but your ISP isn't. The result will be return packets are delayed etc. You can't fix this execpt maybe by arguing with your ISP.

    Remember also that if a large data packet has already begun transmission then any smaller packet that comes after it will have to wait. This may not matter -- but you could try lowering your MTU.

    Your local queing strategy may also have an effect in a conjested network...

  109. Vyatta by certain+death · · Score: 1

    I know...you don't really want to learn to use a router, however, your need for QOS (or want) determines that you need further education and a much better router. That said, you should give Vyatta a shot. It works really well in this type of application, and of course, is open source and there is a free (community) version.

    --
    "My immediate reaction is "WTF? What kind of moron doesn't make things 64-bit safe to begin with?" Linus
  110. Thirded for Tomato by HeronBlademaster · · Score: 1

    I had DD-WRT on my WRT54G sharing with several neighbors (a six-apartment building). One neighbor in particular enjoyed bittorrenting from two computers over wireless... DD-WRT choked to death quite thoroughly once in a while.

    After I stopped sharing with neighbors, I tried switching to 128-bit WEP (couldn't get WPA to work at all), but DD-WRT froze up after several minutes unless I stayed with 64-bit WEP.

    After installing Tomato I haven't had many issues. Once every other month or so the wireless stops responding, but a quick reboot fixes that.

    I'd switch to WPA but I don't think my wife's laptop's wireless card supports it.

  111. Re:Not actually true, you are doing it wrong... 8- by Chlorus · · Score: 1

    If you set your firefox to enable pipelining and set max pipeline requests to a value like eighty (yes 80) you will find that you are a most efficent and therefore quite spunky web citizen.

    Are you sure about that? According to the documentation at Mozillazine @ http://kb.mozillazine.org/Network.http.pipelining the max value accepted is 8. Are you using a modified version of FX or is the documentation just wrong?
  112. pfSense by Anonymous Coward · · Score: 4, Informative

    I have got a fanless 1GHz Via C7 based pfSense box that has really nice QoS support for VoIP. Not to be trifled with..

    I chose a VIA chip because they have hardware crypto acceleration for AES, taking the CPU bottleneck out of the way so I can VPN in from a Cafe or whatever. pfSense also has a newer FreeBSD kernel to support the hardware crypto accelerator.

    I can even run ntop on it!

    Here's the hardware:

    http://www.logicsupply.com/products/perimeter_f

  113. Re:Not actually true, you are doing it wrong... 8- by Chlorus · · Score: 1

    Oops, wrong link, the page that gives the 8 maximum number is at: http://kb.mozillazine.org/Network.http.pipelining.maxrequests Sorry about any confusion.

  114. OpenBSD/pf/aql-q by Anonymous Coward · · Score: 0

    I used an OpenBSD setup with Alt-Q and that works great. I prioritized outgoing VoIP packets including the ACT packets. (VoIP ACT packets higher than normal ACT packets, etc). I've never had a problem with VoIP even when downloading large files.

  115. Your problem is probably not bandwidth by jayanm · · Score: 1

    It's most probably latency, the router doesn't have enough juice to push voice packets through at the speed you want it to, especially when there is some "legal" bittorrent going on - remember, bittorrent takes a lot of your upload speed, not just download, uploading what might "be legal" or not, putting you in the p2p network. Again, how much of queuing would these home routers do?

  116. It's about processor speed by tlpintpe · · Score: 1

    I've tried several versions of firmware on Linksys WRT54Gx, and in the end I think the biggest problem with a consumer device is the processor speed...it's too slow to handle the traffic shaping requirements of VOIP and BT. I resolved the issue by using an old Celeron 500mhz machine with 2 IBM NICs--which I paid more for than any other part of the router I made. I used a floppy firmware called Coyote Linux (now called Brazil Firewall), and a custom version of Wondershaper---lots of trial and error, but in the end I had a sweet router---it handled two VOIP devices (both Packet8) and two households using Bittorrents almost constantly (30gb per month minimum). We never ever had a single problem with VOIP while using Bittorrents...leading me to believe the real issue, aside from getting the Upload and Download speeds tuned correctly, is the router processor speed.

  117. Not an argument against net neutrality by kandresen · · Score: 1

    To some this may seem like a good argument against net neutrality, but think about this;
    Should your ISP prioritize your Skype over Gizmo? Prioritize Xbox Games above World of Warcraft? The list goes on forever...
    If the ISP is not neutral, the ISP will dictate which providers you will have good results with and which that would fail for you, not a good thing.

    The argument is a great one, one I think more people should consider more closly: Use of local small ISP that have the interest of prioritizing your needs!
    If the ISP allowed YOU to prioritize YOUR downstream traffic, then there is no problem - there would be no need at all for going away from net neutrality. The writer of this argument seems to claims that small ISP's in fact allow you to do this.

    If you indeed can control your own traffic shaping the internet can remain neutral. You could select movie downloads from Netflix above Blockbuster and visa verse, and everyone is happy (except for the big name ISP's who intend to force you to use their much more expensive private video rental services etc.)

  118. pfsense by Anonymous Coward · · Score: 0

    Try pfsense

    www.pfsense.org

  119. Misunderstood: Effective QoS reqs h/ware queues by benryanau · · Score: 1

    Unfortunately most people see "QoS" in a home router webconfig and think this is how QoS can be enabled. Or they see the feature in an OS/app pkg and think that configuration of same will solve their QoS problems. This is mostly not the case. Those suggesting DD-WRT, ipcop etc are doing so out of ignorance of the issues surrounding effective QoS. I have experience with provider networks and business implementations of traffic management which has provided me with an understanding of the issues involved. Without an essay, the root of the issue of effective QoS is queueing. Simply marking packets or applying a queuing strategy will usually not provide effective control. In a situation where a link is a simple, as-designed ptp situation with no re-encapsulation QoS can be effectively implemented using in-box configuration. Home routers and OS-based control will work provided QoS is configured at each endpoint. Unfortunately few people have the kind of service which out-of-box QoS can be used effectively. Have a read of my blog entry on the subject for further detail: http://benryanau.spaces.live.com/blog/cns!E55F3F5F75B5A7BB!126.entry There are three options available: implement artificial queuing on a traffic-shaped interface at each end, use software or a router that can 'poison' and manage non-realtime traffic when realtime traffic is present, or the practical solution: buy more bandwidth. Until the ISP industry gets it together and develops a mechanism for large-scale access networks to provide customer interface queueing at each end of the link, this is the situation we're in. Hope this sheds some light on the topic.

  120. Edgewater Networks Edgemarc is the Answer by tindall · · Score: 1

    The Edgemarc is the router you want. I have a 4500T4 and it works great with both my MGCP and SIP clients. Edgemarc is an ALG (Application Layer Gateway) which allows for premise based nat traversal. It is also a traffic shaper, it has knowledge of the VoIP devices registered on the LAN and can dynamically shape traffic by faking out TCP ACKs to allow Bandwidth for your VoIP devices. The only other option I know of for "reserving" bandwidth is to employ a rate-limit policy on an enterprise class router that uses source/destination to rate limit traffic.

  121. I bet QoS is not the solution... by Anonymous Coward · · Score: 1, Interesting

    My router is a standard Linksys WRT54G (version 4, I believe - I'm not home to verify) and I have no problems running BitTorrent and using Vonage VoIP at the same time... I used to, however.

    When I did have issues, QoS didn't do crap for me... neither putting VoIP at the top or BitTorrent at the bottom did a damn bit of good... and neither did restricting BitTorrent speeds to well below my bandwidth limitations.

    After doing some reading about the BitTorrent protocol, and snooping around my network, I found the issue had nothing to do with bandwidth, but had everything to do with the way BitTorrent drops connections (instead of closing them) and the default setting of the router only allowing 500 connections. I'm running DD-WRT, changed my connection max to 2000 and changed the dropped connection timeout to 120 seconds (default was 3600), and my $50 Linksys router handles my 12 PC network just fine even with 4 (max I've tried) instances of P2P sharing and Vonage, and I disabled QoS because it was doing me more harm than good.

  122. With a real router... by lzed · · Score: 1


    class-map match-any VOICE-SIG
      match ip dscp cs3
      match ip dscp af31
    class-map match-any VOICE-RTP
      match ip rtp 16384 16383
    !
    policy-map VOICE-QOS
      class VOICE-RTP
        priority 32
      class VOICE-SIG
        bandwidth 16
      class class-default
        fair-queue

  123. Wrong about Ingress traffic shaping by Anonymous Coward · · Score: 0

    If your inbound traffic from downloading is TCP, then it's not being "broadcast" from the remote server, that server expects to see replies back from your box that the traffic made it (or it will be resent).

    If your router slows down those responses, your download traffic will slow down as well.

    It works - I run Monowall (in a virtual machine) and it works wonderfully. Without shaping my VOIP is about worthless during a big download.

  124. Yes, it's called, OpenBSD. by Anonymous Coward · · Score: 0

    Yes, it's called, OpenBSD.
    www.openbsd.org

  125. +1 for Tomato Firmware at www.polarcloud.com by ooglek · · Score: 1

    +1 Tomato Firmware
    http://www.polarcloud.com/tomato

    I run it on a WRT54GSv4 and a buffalo wifi router of some sort that I paid less than $20 for. Works great on both, though the Buffalo couldn't handle QOS for voip and BT traffic. The WRT does though.

    1. Re:+1 for Tomato Firmware at www.polarcloud.com by aywwts4 · · Score: 4, Informative

      Tomato is really a great firmware, I think it is the answer to the initial post's problem. It really has a great interface and is easy to configure, DDWRT was nothing but headaches for me, and the QOS (When I used it a year ago) was absolutely broken.

      here is a guide on configuring QOS, http://www.decimation.com/markw/2007/10/03/tomato-qos-setup/

      Also it has great graphs such as realtime usage (tx and rx) reports http://en.wikibooks.org/wiki/Image:Tomato_Firmware_-_Bandwidth_Real_Time.PNG

      And I can see a graph of exactly what percent of my traffic falls into which QOS classifications. http://www.polarcloud.com.nyud.net:8080/img/ssqosg108.png

      I'm able to quickly check if anyone has been abusing the wireless, and see what percentage of my traffic is bittorrent, nntp, gaming, etc, If some device on the network suddenly started flooding traffic over port 25, I would know about it, all in a nice and easy color coded graph, check it out, I bet you will like what you find.

      --
      Web Developers: Celebrate to our roots! Animated Gifs and Tiled Backgrounds, dont let our history die!
    2. Re:+1 for Tomato Firmware at www.polarcloud.com by LarsG · · Score: 1

      Another +1 for Tomato here. WRT54GL, nice and stable.

      Set outbound bandwidth limit a little bit below your true uplink speed. Put voip traffic at highest priority, FPS/latency-sensitive games and the like on high, regular interactive stuff on normal (e.g. web surfing) and bulk stuff on low.

      --
      If J.K.R wrote Windows: Puteulanus fenestra mortalis!
    3. Re:+1 for Tomato Firmware at www.polarcloud.com by drauh · · Score: 1

      why couldn't the buffalo handle qos for voip? (i have a buffalo, and have been having a hell of a time configuring qos with dd-wrt.)

      --
      This is a tautology.
  126. m0n0wall: yes by clarkn0va · · Score: 2, Informative

    What about http://m0n0.ch/wall/

    I use monowall and it works well with the following caveats:
    1. It takes a bit of knowledge to learn to setup the qos, but this is true of any effective qos router.
    2. It takes a bit of playing to get the pipe size right. Set it too high and it's ineffective. Set it too low and you're not utilising your bandwidth.
    3. Your internet connection speed should be fairly consistent, otherwise you will be tweaking #2 all the way to an early grave. ADSL and cable are consistent in my experience, wISPs are not.
    4. Your ISP can't be throttling you, as was mentioned by some others in this discussion, for that would effectively bring you back to the problem of #2 & #3.

    I've used a debian gnu/linux install on old PII hardware as a router and I actually found the QoS to be unequalled. Once you learn the syntax of iptables (and a dozen other sysadmin skills) it works pretty much perfectly to preserve voip quality. For somebody that doesn't mind getting his hands dirty I recommend a linux router/shaper as your best solution

    But, as the OP mentioned, linux is a bit dreadful to set up as a router for the uninitiated. (I haven't tried IPcop or any of the dedicated solutions so I can't speak for those.) For somebody that likes a nice shiny push-button interface, you can't beat m0n0wall, and like I said, with a bit of playing around it too can be very effective at preserving voip quality.

    And to those who recommend limiting your torrents to 15% of your max bandwidth: your heart's just not in it. I want my torrents now. I don't want to have to run turn down my torrents every time the phone rings, and I sure as heck won't remember to turn them up again when the call's done. It's a beautiful thing to watch a torrent upload at a steady 100% of your uplink speed, get on the phone, and see your torrent continue at 100% minus 86 kbps while enjoying a phone call with flawless audio, then see the torrent fill up the gap as soon as you hang up. Geek's paradise.

    db

    --
    I am literally 3000 tokens away from the chaotic crossbow --Stephen
  127. Working for VoIP by Anonymous Coward · · Score: 0

    I work for a pretty big VoIP provider, and one thing is known:

    The amount of connections required for bittorrent KILLS latency with your VoIP connections. It's pretty important, because most VoIP is either SIP or MGCP, and relies upon stateless UDP to transfer data, so the ramped up latency will start to make your VoIP connection sound worse than a tin can.

    I've seen it way too much -- the average joe, home business will call in and complain about hte quality of their VoIP service. They don't have a QoS router, so they immediately point to the fact they only have a computer or two.

    Yet their teen upstairs is streaming a 198k stream via shoutcast, downloading three torrents occupying 20 different connections via bit torrent, and playing World of Warcraft.

    Please, for the sake of our sanity, check what's going on with your topology before calling in and complaining that your call sucks. If your device is registered, we probably can't do much more than tell you you need to reserve 80k with overhead inclusive for you call, and don't live in Nova Scotia.

  128. The ten dollar fix by Newer+Guy · · Score: 1

    1. Buy a D-Link DVG-1120M VOIP router on ebay for 10 bucks including shipping. 2 Convert it into a DVG-1120S Here: http://www.dslreports.com/forum/remark,20580722?hilite= 3. Configure DVG 1120S with your provider, and put it as your first device (connect directly to your cable or DSL modem and then hook your LAN to it). This unit has great QoS VOIP bandwidth limiting, which is why AT&T used it for their VOIP service. It's only disadvantage is that it's WAN input is 10 base T so on a 10 mbps cable circuit the max throughput I get is about 8.4 mbps. For speeds below 8 mbps it's great! 4. Done

  129. QOS guarantees and border routers by tlambert · · Score: 1

    QOS guarantees and border routers

    Most QOS algorithms are implemented incorrectly, including those included by default on FreeBSD , Linux, and other systems claiming to support QOS guarantees.

    The problem is that these routers are at the border of a very high speed network (the local network), a slower network (your broadband connection), and another high speed network (the actual Internet.

    As a result, what happens is that the packets end up being buffered at the router on the other side of the border router, or in the computer (if in the home, and your only router is the border router).

    This effectively starves the connection of packet buffers on one side or the other, if there is a low priority but high bandwidth demand application sitting on the other end. No matter what you do in terms of rate based algorithms, your border router is not going to be able to do anything about the starvation, which is not happening on a box under its direct control.

    The only approach that works very well (and which most traffic shaping software does not implement) is to advertise a smaller TCP window to the other end of the link, so that there are buffers available because the transmitting end believes that the TCP window is full on the receiving end of the TCP connection. RED queueing can also work, but only protects the endpoint equipment, and ignores the problems of the intermediate routers; typically, this makes things much worse for the intermediate hop routers, which have to put up with retransmits of the same data.

    I've come to the conclusion that this is, in fact, why the broadband companies, which have fast links to their head-ends, but have relatively slower links to residences, have decided to start a war against peer-to-peer technology, and why some are suggesting higher feeds for streaming video users by placing bandwidth caps and punishing users who exceed them: you effectively starve the other customers behind the same head end as yourself by using all the head end router buffers for traffic that hasn't gotten to you yet, or you flood outbound with retransmits for unack'ed data.

    My suggestion would be to buy something that know how to traffic shape with TCP windows (and it's my advice to both the poster and the infrastructure companies, who have apparently failed to grasp the idea that traffic shaping is not a job for amatuers who only prioritize outbound traffic, like AltQ and friends).

    -- Terry

  130. No Cost Fix by sfrancom · · Score: 1

    I have the same exact situation and I solved it by using the scheduling feature in utorrent. I download full during non business hours and throttle it during business hours. Since I started throttling I have had no problems with VOIP calls.

  131. Re:Not actually true, you are doing it wrong... 8- by mrbooze · · Score: 1

    Does VOIP really use TCP usually? Shouldn't it be using UDP? Why would you want retransmits of lost packets during live voice conversations? I would think it would be better to just live with dropped packets than have the audio stream delayed by retransmits and such. Wouldn't that start to introduce more lag in the conversation?

  132. Cisco 871W by Anonymous Coward · · Score: 0

    Best router for home/small office ever.

    Enable traffic-shaping at a rate 80-90k below your cap, for packets not coming from the VoIP device.

    Done.

    You can do tons of other tweaks also (prioritize the shaped packets, separate queues for different types of traffic, etc).

  133. Former router guy by JRHelgeson · · Score: 1

    I did more than my fair share of VoIP and QoS deployments. The trick is that you provide HIGH QoS to voice, and low to EVERYTHING ELSE. Think of it this way, turning off QoS gives everything low priority, you need to mark the voice packets as 'important' and subject to 'special' treatment. Giving anything else medium QoS, you will telling the router to not let voice take top priority, that medium QoS queues will get serviced even if the high priority queue has packets waiting for transmission. Voice packets are very small, about 100 bytes on the large side. You want your voice queues to get serviced the instant a packet needs transmitting and put everything else on 'hold' until the high priority queue is empty.

    Anything else, and you'll have choppy voice.

    Joel

    --
    Good security is based upon reality and common sense. Common sense is a function of having common knowledge.
    1. Re:Former router guy by benryanau · · Score: 1

      Negative. There's no queueing mechanism to manage the order in which packets are processed - marking them won't do anything if the customer link is congested (assuming standard consumer cable/DSL). Home routers (that I've seen) can only effectively *reserve* bandwidth for an application which is not really desirable for most. Traffic shaping is the only real way to create a queue which can be managed (apart from TCP fiddling which is not available in consumer devices to my knowledge).

  134. Application Aware Triggered Quality of Service by hidden72 · · Score: 1

    I had similar problems. The best and easiest way to do this would be to rate-limit all TCP transmission/reception to some percentage less than your overall Internet bandwidth, say 80%. That way, all applications (FTP, BitTorrent, HTTP, etc.) won't take up all of your bandwidth, and thus kill your VoIP. The problem that you're having is that you're saturating your uplink or downlink, and that's what's delaying the VoIP packets. You only need to rate-limit TCP, since Vonage (and most VoIP out there) is UDP-based. You want to let the UDP through without touching it. By limiting TCP, you're effectively reserving UDP bandwidth for your VoIP.

    You can do this with a fairly inexpensive Cisco router (buy an 800-series off ebay). You can probably do it with DD-WRT as well.

    For the true gearheads out there, I worked out something similar, except that my system actually senses when a call is in process and makes appropriate TCP rate-limiting for the duration of the call. Once the call is complete, the full bandwidth becomes available for other things. It's a clever use of Snort, pfSense, and a Cisco router. I call it AATQoS or Application Aware Triggered Quality of Service.

    Whatever you end up doing, just understand that your call quality is suffering due to traffic congestion, and if you can alleviate that congestion enough to let the VoIP UDP packets flow, then your call quality will sound great.

  135. No No No by asamad · · Score: 1

    The problem is the link between the router and the ADSL modem is 10Mbt, the router which is doing the traffic shapping, it keep pumping out packets to the modem at 10Mb rate. the modem starts to drop packets once its queue is full :(

    use it in bridge mode and do the QOS at the point where the bridge is terminated!

  136. limit it yourself by Anonymous Coward · · Score: 0

    ummmm... limit your upload on the torrent program?

    it amazes me that people don't learn how to control bandwidth, it isn't hard, most programs have the option

  137. Host TCP/IP stacks tuned, by chance? by UttBuggly · · Score: 1

    I have the daily joy of riding herd on a global network that services about 10,000 locations in every major time zone on Earth.

    While I had a role in designing, building, and deploying it over the last 12 years, my primary role for several years has been network traffic forensics. We employ very sophisticated QoS schemes and require our carriers give us visibility into the MPLS clouds. Since the network IS our money bitch, there's a keen interest from the top down on making the (packet) trains run on time.

    What's interesting to me is that over the years, I've seen enormous amounts of money and effort spent on the network and tuning it to death while the vast majority of the system owners...including PCs...just jam their toys onto the wire with little to no thought about the network hardware and software IN THEIR FREAKIN' IRON!

    I see crap like Nagle's (TCP_NODELAY), Receive Window size mismatches, VLWS set to OFF, SACK not enabled, and a host of other nightmares all the time. I'll get a call or e-mail from someone with a data mover application; FTP, backup job, etc., and they're complaining their 10Gb link is not running at 10Gb..they "measured" it with ping and traceroute...or simply "this isn't as fast as it should be".

    Invariably, I'll interrogate the path, grab some traces, and see one or more "TCP bullets to the head"...from their host. Over the years, I've built some tuning guides for the UNIX, Linux, and Windows and send them along to the owner when the data reveals it's their shitty TCP/IP configuration choking the box.

    It's helped. My suggestion from this is to make sure your "iron" is tuned for the link. It will help. My son's friends think I'm magic when I do surgery on their PCs and their torrents, Skype, etc. suddenly work better than they ever did before.

    As for home gear, I don't know. I use Cisco and LinkSys and D-Link at the house. I have DSL AND cable. I have had occasion to talk to level 5 support for both, but for the most part, I'm happy with the service I get. I do monitor and trend my traffic, but that's habit more than anything, because of work.

    --
    I am my own gestalt.
  138. Re:Not actually true, you are doing it wrong... 8- by Tmack · · Score: 1

    Does VOIP really use TCP usually? Shouldn't it be using UDP?...

    Yeh... the RTP protocol to transmit voice is UDP. This causes a lot of the problems with sip and nat/firewalls. SIP is also generally UDP, though it can use TCP. SIP is used to setup the session, do the auth, figure out where the streams need to go and how to translate addresses and even do billing stuff, etc, then it lets RTP do the grunt work of transporting the media. MGCP and other VoIP protocols also use RTP for the transport.

    What most people dont understand about VoIP (even just SIP) HAS filled many books, and websites ;)

    Tm

    --
    Support TBI Research: http://www.raisinhope.org
  139. Bandwide vs. Latency by Anonymous Coward · · Score: 0

    Reserving bandwide is not the solution for a simple reason: VoIP care little about bandwide and very much about latency.

    There are other protocols that care about latency too. Games are a known category.

    Buy a gaming router.

  140. Re:Not actually true, you are doing it wrong... 8- by Kompressor · · Score: 1

    Most VoIP connections use UDP or RTP, which is built on-top of UDP.

    The theory here is that one can control the rate at which large downloads come in by controlling the rate at which we send ACKs which correspond to the incoming packets. The system doing the download sends the ACKs as fast as it can, as it's doing the best job possible of filling the bandwidth available. If our router were to delay some of these ACKs, the remote system will slow down its transmission, as it would interperate the router as network congestion.

    Once we have a handle on incoming TCP connections flooding the pipe from our ISP, the UDP/RTP packets will flow much more efficiently.

    Check that second link out; the sections on flow control and congestion control explain this much more succinctly than I can.

    --
    kmem russian roulette: Aquillar> dd if=/dev/urandom of=/dev/kmem bs=1 count=1 seek=$RANDOM
  141. Re:Not actually true, you are doing it wrong... 8- by stmfreak · · Score: 1

    I noticed that you are only shaping traffic on one interface. If your example eth1 is your internal LAN, then your script will nicely manage your downloads, but do little to prevent you from flooding your upstream. If eth1 is your external WAN then you are shaping your uploads, but merely dropping downloads when you flood. Since it works for you, I'm going to assume eth1 is LAN.

    When I looked waaay into this subject last year, we had ten employees sharing a T1 for internet and voip. Since we are software developers, we use ssh a lot and it sucked bad too. I ended up using a linux box (FC6) for the firewall and installed traffic shaping on both the WAN and LAN interfaces using HTB, Stochastic Fairness and moderately decent filters.

    This allowed us to torrent all day over a T1 while simultaneously enjoying 20ms latency on our ssh connections to Internet servers. Web browsing felt unaffected. We tested it heavily ;).

    When we moved to a 100Mbps link, I continued rate limiting at 4Mbps to save money, but plumbed in some back-doors for favored servers.

    In the spirit of sharing, I've also posted a sample script to my journal. There are probably bugs and improvements to be made, but it works well for us.

    --
    These opinions guaranteed or your money back.
  142. Re:Not actually true, you are doing it wrong... 8- by Anonymous Coward · · Score: 0

    Thats why everyone need to have the Richard Stevens set on their desk.

  143. Can Any Router Guarantee Bandwidth For VoIP? by jgcrews · · Score: 1

    I've had the same problem with Vonage, and even when downloading & uploading is minimal. I'm going to give the Linksys OGV200 a try. It's described as a "Network Optimizer for Gaming and VoIP" and buy.com has it for $20. I'm going to try it and see if it helps. Of not, it will be going back to buy.com for a refund.

  144. Net Neutrality Solution by pimproot · · Score: 1

    How about just stipulating that ISPs be upfront about how they're running their networks, say by posting that information to the public.

    ISP conspiracies would be less likely to happen at that point, given that people would actually have a clear idea of what they're paying for.

  145. Re:Not actually true, you are doing it wrong... 8- by ciscoguy01 · · Score: 4, Interesting

    The OP doesn't say but probably doesn't have a cable modem, he more likely has ADSL from the phone company.
    I have fought those problems with VOIP and a poor DSL line. With a WRT54G and that optional firmware, and it was an abject failure. We couldn't solve the ADSL line problems at our end.
    The solution is probably going to be calling his provider and demanding they give him the speed he is paying for, and if he's not paying for enough speed he may have to pay for more line speed.

    The trouble with DSL is it is not guaranteed bandwidth. It can completely stop working for more than enough time to screw up VOIP and there is likely nothing he can do about it.
    Cable modem service is typically enough faster than ADSL from the phone company he is much less likely to have these sort of problems, unless maybe his provider has installed Sandvine traffic management equipment and that is screwing him up detecting his P2P usage and throttling his circuit. I don't know if Sandvine equipment throttles the whole circuit or not. Does it? Does anyone know?

    The funny thing is you would never have these problems on an ISDN circuit, which though slow by todays bursty ADSL standards is guaranteed bandwidth, just like that corporate OC-48 you have at work. You get two FM radio quality voice channels on ISDN and it does work, guaranteed. If not they *have* to fix it.
    Whereas on ADSL they just say "sorry bub". Then they maybe say "If you got your VOIP from us I bet it would work". But only because in that case they would *have* to fix it. Evil telcos, to be sure.

    --
    .
  146. Not easy by Anonymous Coward · · Score: 0

    Anonymous Coward here. work for fortune 500 company with 8 figure network budget. Still hard to get routers to provide QOS for voip when pipe is flooded.

    Did I mention the captcha here sucks?

  147. PacketShaper by Anonymous Coward · · Score: 0

    If you have money, you can buy a PacketShaper : http://www.bluecoat.com/products/packetshaper/specifications

    Go far beyond routers with unparalleled QoS and traffic shaping with simple prioritization to ensure critical applications (including bandwidth max or min per application, user or flow). Also, limit or block recreational and malicious traffic.

  148. AVM Fritz!Box by Anonymous Coward · · Score: 0

    I don't know if this router is available in your country but I'm using this router already for about 4 years with voip and wireless. In those years I had different smaller problems with voip but never bandwith problems.

  149. Re:Not actually true, you are doing it wrong... 8- by I+cant+believe+its+n · · Score: 1

    Why would you need to have the Richard Stevens, set on your desk? Wouldn't he just be in your way?

    --
    She made the willows dance
  150. Mikrotik by Anonymous Coward · · Score: 0

    Mikrotik Routers using queuing are very good for this

  151. The ISP is Often the Problem by spymagician · · Score: 1

    If you're experiencing that significant of a problem, then you may want to consider a different ISP, if that's a possibility. There is absolutely no reason a quality broadband connection cannot manage VOIP, Torrents and assorted other traffic simultaneously. Vonage uses 90kbps per second at default settings. This is such a small fraction of any current broadband connection it should be negligible. You can adjust this setting in your Vonage web account, and reduce it to as low as 30kbps/sec, but that often produces a tinny, less natural sound. What you're describing, however, indicates either a very low-end package, such as with bargain basement DSL lines or more likely, you're not getting the bandwidth and/or stability on that connection that you're paying for. Do some trace route tests before, during and after you place calls and run your torrent application. Choppy audio with VOIP is a result of dropped packets. I wager you'll see a number of lost packets as you saturate your connection. I highly doubt any QoS attempts on your end will make a difference. Throttling your own traffic isn't the underlying problem. Most likely you're ISP isn't giving you the reliable connection you're paying for. It's also possible that they're monitoring certain known ports, or sniffing packets for VOIP and/or torrents. I am also a Vonage customer. I run 2 game servers, a web server, my Vonage line and uTorrent all simultaneously with absolutely no degradation of call quality or other problems. I hope this information is helpful to you.

  152. Nice graphs of queuing delay Re:One packet... by Anonymous Coward · · Score: 0

    Nice graphs of queuing delay due to discrete packet sizes can be found in this online report, actually.

    A. Heyde, "Using Synthetic Packet Pairs to Investigate Real-time Latency Variations over Home Broadband Connections," (pdf) CAIA Technical Report 080530B, May 2008

    http://caia.swin.edu.au/reports/080530B/CAIA-TR-080530B.pdf

  153. Draytek routers can do this by Anonymous Coward · · Score: 0

    Draytek routers can.

  154. Buffering... by Bert64 · · Score: 1

    Most home user oriented routers use a large output buffer to improve throughput...
    Trouble is, the output buffer will be good for 2-3 seconds of line saturation, meaning that even if your packets are prioritised they will still take a couple of seconds to get out if the buffer already contains something else.

    --
    http://spamdecoy.net - free throwaway anonymous email - avoid spam!
  155. Re:Not actually true, you are doing it wrong... 8- by Anonymous Coward · · Score: 0

    Thing about VoIP ... the payload is transported by UDP usually using RTSP for reliability over the top of TCP. Only the call control aspects use TCP as I recall.

  156. Bandwidth is not the issue by Anonymous Coward · · Score: 0

    I have had some experience using (or trying to use) VOIP over a slow V-SAT connection (256K/BIT up and 256K/BIT down).
    As was previously stated it is not always the amount of bandwidth that is being used but the delays in clearing out the buffer.
    The one solution that we found to work verry well was to set the MTU from std 1500 to something like 500 (not sure of the exact settings). The only problem is that after doing this normal browsing and especially MSN Messenger wont work anymore as it is full of s&*)^ when it comes to playing with the MTU.

    As I understood from the question the voice becomes choppy on the users end. I.E. what the user hears and not the other side of the conversation. This is caused by data being transmitted from the ISP not having QOS prioritizing the VOIP packets.
    Just some food for thought.
         

  157. Linux realtime shaping (HSFC queuing disciple) by rpp3po · · Score: 2, Informative

    Priotizing bandwith with the Linux kernel's de-facto standard shaper HTB is not the correct approach if you care about latency. Nevertheless 95% of the internet's advise points exactly into that direction. What most people don't know, Linux already includes a shaper being able to make realtime scheduling guarantees: HSFC. It is a little bit more complicated to setup, but my box is able to give me 15 ms VoIP delays in parallel on a congested line (2000+ bittorrent peers).

  158. Re:Not actually true, you are doing it wrong... 8- by Anonymous Coward · · Score: 0

    The thing most people don't understand about TCP is that it accelerates linearly and falls back exponentially.

    Indeed!

    • During slow-start TCP increases the window by an extra frame per ACK, basically doubling its window size per RTT. Sounds exponential to me. Note for small transfers you may not get out of this state. A duplicate ACK (think of this as a single loss) causes you to enter the bulk transfer phase.
    • During the bulk transfer phase an extra frame is added per round trip time, providing no loss occurs. So yes that is linear, with respect to RTT. If multiple losses occur (ie two+ duplicate ACK's) then you go into fast-retransmit and recovery

    I could go on, but there are good books, I would suggest TCP/IP Illustrated. Problem is that TCP is all in all a bit of a hack on a hack on a hack!

    Back to the point, if you want to control TCP you want to be controlling the loss and delay it experiences - thats how it works out the bandwidth.

  159. Re:Not actually true, you are doing it wrong... 8- by batemanm · · Score: 1

    The thing most people don't understand about TCP is that it accelerates linearly and falls back exponentially.

    That is the AIMD behaviour of some variants of TCP (reno for example) and only when they have past slow start and are in steady state. This page has some graphs which show the difference in the cwnd behaviour for different TCP variations, it also links to the relevant papers. There is currently a mix of TCP variations in use and not all use AIMD. Linux, for example, uses CUBIC and in the past has used BIC and NewReno as the default TCP variation.

  160. buy an AVM Fritz!Box? by Anonymous Coward · · Score: 0

    for good quality VoiP - the fritz!box is a well build european alternative. It's not cheap - but at least you get good support for it - with everything you may need.

    www.fritzbox.eu

  161. Vonage Settings by slashdotmos · · Score: 1

    No one has said it yet. Lower the settings for call quality in your Vonage settings a bit till you reach a happy place. You already are giving top billing to the adapter so by doing that it would probably be all you need to do. I know when I first got my vonage i had a lot of delay issues while gaming or downloading, till I lowered the quality then it was all fine. Still sounds great and no lagging issues.

  162. Real QoS by Anonymous Coward · · Score: 0

    What you really want isn't TCP|UDP/IP, you want ATM. ATM can guarantee QoS. IP simply can not.

  163. Asymmetrical Link Speeds by DarkRecluse · · Score: 1

    I really think people are on the wrong track if they are suggesting that the inbound (to your modem) is the problem here and can't be adequately shaped. In my experience when you have cable or dsl with a disproportionately low egress (outbound) in relation to the ingress(inbound), you will have the increased latency you describe.

    I think the first step would be to upgrade to the highest level of service your ISP provides short of business class. If you have comcast, we are in the same boat and you should get the 8/768 plan as you are essentially doubling your upload speed.

    If you don't have the money, then I would setup a simple test to see how well your connection performs under stress. Since you are testing for VOIP latency, I would use a UDP ping on a machine you give higher priority to, and run a simple speed test on a machine that would be running BitTorrent...it won't simulate the number of connections that machine will put out, but for the purposes of the test you want to see how well your router is shaping traffic when you reduce the upload cap by 60%, 50%, 40%, etc...and you want to get an approximation for the amount of bandwidth being received and sent out. Try adjusting your inbound bandwidth in the same manner.

    Now you mentioned that you are prioritizing based on MAC address, and not based on protocol or service. This is not actually QoS, but rather CoS and is only layer2. CoS is really ineffecient at lower bandwidth rates...it's not really meant for that little traffic and if you throw a lot of connections at it, it will definitely screw up queueing.

    Prioritize the VoIP traffic by port or application if you can, and try the different algorithms available to your router...I would definitely suggest as has been stated above to try different firmware images to see if you get better results...Tomato may have been the best suggestion given it's apparent inclusion of Layer 7 (Application) matching using the L7-filter projects signatures. If you can make BitTorrent the lowest possible priority that would be good too;)

    Something that someone else might not have mentioned, is the number of connections that are allowed to be setup for either a given computer or application. Connection/Session limiting on your router would definitely help out QoS to prevent BitTorrent from opening more and more connections, and basically increasing overhead. That change can be made in iptables on any linux-based router running a modified image or full blown linux(has to be done from the command line).

    --
    --"It's Bradford Company, slash your last name, dot your first name"
  164. Reduce the configured bandwidth by mindstormpt · · Score: 1

    It probably won't make much of a difference, but you may try reducing the bandwidths configured in your current router's QoS page (which should already be somewhat lower than the real values) to, let's say, 70% of the real values.

    It will, of course, reduce your peak bandwidth, but it can help with the prioritization.

  165. made for this: zoom VOIP modem/gateway by Anonymous Coward · · Score: 0

    Zoom has several products that should fit this niche well. the only issue i have had with zoom is that their gateway/router *must* be the first one connected to the cable modem. in my situation, it didn't have enough customization (for opening ports, etc.) that i needed, so i wound up returning it in favor of the zoom product that solely does VOIP. but the zoom gateway/router will probably do the job for 90% of the people.

  166. Rapidshare Torrent by wye43 · · Score: 1

    Yea, both are "purely for legal and non-copyright-violating purposes, of course". Mhyeeeeaaaa, suuuure :P

    An year ago I discovered Rapidshare. Since that moment I never started any torrent and I will never again.
    Torrents are a desperate way to get data from Internet, crushing the TCP/IP stack on all poor SOB routers that are unlucky to get crossed by its flow. Do you wonder why ISPs try to limit it? Its not because of copyright violations - they don't give a fsck about that, its because its stupidly hard to shape it properly. You have to reserve insane amounts of bandwidth for a figures like 30% overhead of flow control packets. When you have so much overhead it should fully qualify as denial of service attack by any routers along the way - because that is what you are doing!

    Stop trying to find complicated ways to get FREE stuff and fkin pay for it. Nothing is free. There are only different ways to pay for it. Are you sure a fancy router is the lowest?

  167. Re:Not actually true, you are doing it wrong... 8- by Andy+Dodd · · Score: 1

    "The thing most people don't understand about cable modem is that it has virtually no buffer for outbound traffic (e.g. the traffic you do control) so subsequently it is almost a given that you will overrun the transmit buffer on your cable modem doing the simplest of things. This in turn will destroy all your throughput because..."

    Actually this is not true. Cable modems are notorious for having large transmit buffers and slow transmit speed.

    The end result is that when you saturate your connection, the problem is not necessarily packet loss, but latency goes through the roof (because stuff is staying in that huge buffer).

    This kills your download speeds in addition to your uploads because ACK packets get delayed in the buffer.

    --
    retrorocket.o not found, launch anyway?
  168. Maybe you need something different by Anonymous Coward · · Score: 0

    We have a T-1 at work, and we're thinking of adding DSL for redundancy. During normal ops the T-1 would be dedicated to e-mail and certain outbound traffic, and the DSL would be for web access and so on.

    Something similar might serve your purposes. Put in DSL and dedicate the cable to VOIP (or vice-versa). If one link is only used for VOIP, and the calls are mostly work-related, maybe it'll be deductible, or maybe your employer would reimburse you for it.

  169. Upstream vs downstream by lesinator · · Score: 1

    QoS settings on your local router only affect upstream (from your home to the ISP) packet ordering. Anything you do there will have no impact on packet queuing/ordering downstream (from the ISP to you) - this is being performed by your ISPs gear. Downstream bandwidth is commonly larger than upstream bandwidth, so this problem is frequently hidden - but if you have lots of data coming down, no QoS settings on your local gear will in any way impact the priority for packets coming from your ISP to you.

  170. Re:Not actually true, you are doing it wrong... 8- by Miros · · Score: 1

    exactly! it's really necessary to do some outgoing traffic shaping just to ensure that you dont ever fill that buffer cause the results really really suck! so much of ensuring a good connection ends up coming down to ensuring that you dont step on any of the grumpy stuff in the middle's toes.

  171. IPv6 has the answer by GNUPublicLicense · · Score: 1

    The serious answer to this issue is IPv6 with traffic classes *and* support from IAPs. Of course "standardized" traffic classes will have to cross IAPs boundaries (That would be enforced by a government regulation authority). In the IPv6 header you have a traffic class field and a flow id. Network equipement could do traffic shaping at a very low level of channels/flows thanks to those and the other header fields. But carefull, where shaping happens, unfairness between users can happen, so fairness of bandwidth in each traffic class between users must be enforced: net neutrality. The thing which seems to be missing: how your soft phone will discover the traffic classes, numbers of flows per traffic class and the bandwidth limitation of the each flow, all that per internet access point of your IAP?

  172. Re:Not actually true, you are doing it wrong... 8- by Anonymous Coward · · Score: 0

    What most people don't understand about TCP (and therefore bittorrent etc) and Cable Modems could fill a book.

    You might want to mention that most voip uses UDP instead of TCP...

  173. In a word, No. by Anonymous Coward · · Score: 0

    Your Qos scheduling will only apply on your internal network, once it hits your cable/dsl modem all your traffic gets re-wrapped by your ISP for transport over their network.

    So basically, you can Qos your VOIP so it gets priority on your LAN both in and out. However, your ISP is going to treat all the inbound traffic at the same priority, until it hits your router. This means that if your P2P app is attempting to download enough to fill your pipe, your VOIP traffic is going to get 'lost' in the noise of all the inbound traffic since the ISP gives the same priority to all the inbound data.

    This is why 3rd party VOIP services don't work that well. Pretty much any ISP that offers phone will install an EMTA which is really two cable modems: the one serving the phone traffic will get a high priority Qos so you don't have those kinds of issues.

    If you can't tell, I work at such an ISP and we often get people calling in pissed off that we don't 'honor' their Qos priorities. I then have to explain that if we DID, everybody could simply set their router to top-level Qos ALL their traffic and then you're just back to square one.

    1. Re:In a word, No. by gujo-odori · · Score: 1

      This is mostly accurate, but his problem is almost certainly not on inbound, but on the outbound side of the like (unless he's doing a heck of a lot of BT, anyway). For example, my cable connection is ~15 megabits down and 512K up. Even when downloading something big like a Linux ISO image and saturating the link, voice quality on my Vonage line is fine. But if I have a few torrents running to send those files back out, it really impacts the quality of calls.

      Also, if he buys or builds a real router as opposed to a consumer grade broadband box, he should then be able to throttle the outbound link to his cable modem to match the speed of his uplink and slice out a part of that bandwidth for the exclusive use of the Vonage device. It's true that the cable or DSL modem won't care and everything will go out from there at the same priority, but if (say) 20% of his uplink speed is set aside for the use of the ports used by Vonage, it will help by guaranteeing that bandwidth is always available for it. His problem isn't so much Q)S priority as it is a lack of bandwidth.

      Or to put it another way - something well-known in networking - throwing more bandwidth at a problem often solves it more effectively than do QOS algorithms. Reserving 20% of his outbound bandwidth between the router and the modem is a way of effectively throwing bandwidth at the problem

  174. m0n0wall by Anonymous Coward · · Score: 0
  175. just one suggestion, but a bit pricy by discogravy · · Score: 1

    would be juniper's 5gt line -- they're around 300-500/USD retail but will certainly do QoS scheduling. I would be surprised if Cisco's pix 5xx series didn't do the same thing, but I have no personal experience with them as QoS devices so I can't say.

  176. Re:Not actually true, you are doing it wrong... 8- by tweak13 · · Score: 1

    You get two FM radio quality voice channels on ISDN


    I'd be interested in knowing what kind of ISDN hardware you're using to get two FM quality channels on a single line. I work at a radio station, and the hardware we're using sounds fantastic, but to get FM radio quality it takes running two lines simultaneously with the left and right channels each on their own line. Are you referring to mono audio only? Are you sure you aren't actually using multiple lines to the same box? We're looking at upgrading our hardware to something with some newer codecs (and less latency, ugh) and it'd be nice to know if we could get something like FM stereo sound on a single line.

  177. Astaro by Atticka · · Score: 1

    Create a login at www.astaro.com and you get a free copy of their Astaro Gateway software (limited to 10 ip's, will turn any spare PC with dual NIC's into a fully functional enterprise firewall).

    More info and support can be found here
    http://www.astaro.org/

    Enjoy!

    --
    No sig here...
  178. Try pfSense by AkumaKuruma · · Score: 1

    I use pfSense as my firewall. its FreeBSD based software that uses OpenBSD'd pf to handle connections. I used this to replace a linksys router that would die under the load that BitTorrent would stress on it. I now have QoS set up so that BitTorrent and other file sharing protocols are given THE lowest priority. you can also dedicate bandwidth for VoIP. Have had zero issues since switching over.

  179. Where do you shop? by ghost_of_mrchicken · · Score: 1

    That's funny, I was able to pick up a corporate grade Sonic Wall on eBay a year back or so for about $100. One doesn't need to buy the subscription to operate the router... that's optional. Subscriptions usually cover support, upgrades and things like router-based virus protection -- all unnecessary for the hobbyist.

  180. Don't Use Vonage by xda · · Score: 1

    If you have a cable modem, you would be far better off just getting phone service from your cable provider. That is the only way to really guarantee bandwidth. When you use your cable providers phone service they do all the prioritization for you and you never have to think about it. Also they won't begin any maintenance if you are placing a 911 call. with Vonage you could be right in the middle of a 911 call and they would begin maintenance and leave you on your own in an emergency.

    1. Re:Don't Use Vonage by cartman94501 · · Score: 1

      Not using Vonage is outside of the scope of my original question, and I don't believe my cable provider offers VOIP service.

    2. Re:Don't Use Vonage by xda · · Score: 1

      Not entirely outside the scope of your original question... Cable modem internet service is "best effort" you can't reliably (depending on your definition of reliable) achieve your goal if all your packet prioritization efforts go out the window as soon as they leave your LAN. ISP provided VoIP cable modem traffic on the other hand has a higher priority than all other traffic on the ISP network, and it doesn't even use your allotted internet bandwidth. If your Cable ISP doesn't offer VoIP then I guess you are stuck with Vonage, but I would ditch it as soon as another option presented itself.

  181. Full featured, easy to manage... by webscathe · · Score: 1

    We just started using products from FortiNet and have been pretty impressed with them. Their FortiWifi-50B should do the trick for you. It'll do the QoS you need, but is also a great UTM device with built in AV, web filtering, firewall, VPN, etc. Good stuff!

    http://www.fortinet.com/products/telesoho.html

  182. Limit the upload by jfp51 · · Score: 1

    The problem is most probably that BT is using ALL your upload bandwidth, this affects every TCP packet coming into your network since there is no upload room for control packets. In your BT client, limit the upload to 80% of your link's upload speed. For example, I have 1Mbit upload, I limit uTorrent to 80k/sec. Voila, problem solved.

  183. Re:Not actually true, you are doing it wrong... 8- by cartman94501 · · Score: 1

    The OP (me) actually does say that he has a cable modem, but it's buried rather obliquely near the bottom of the post.

  184. Asus WL500Gp with OpenWrt by Anonymous Coward · · Score: 0

    We currently use the Asus WL500G Premium v1 at our work and we have VoIP. We installed OpenWrt on it (WhiteRussian firmware) and Rudy's Qos Script (http://forum.openwrt.org/viewtopic.php?id=4112&p=1). Since then we have no problem running multiple Torrent and download while talking on the phone. You should give it a try.
    You can contact me if you need information, I'll be pleased to help you.

    You can also install the X-WRT version of the WhiteRussian firmware, it have an Web Interface so you wont have to do everything in command line. The only thing you'll have to do is configure the Qos Script.

    If you do not want to configure the router by yourself, we ( here at Quatral Solutions) could build the router with everyting you need and then ship it to you. If you need information, you can email me.

    Here is my email: jfrank@quatral.com

  185. Re:Not actually true, you are doing it wrong... 8- by ArbitraryConstant · · Score: 1

    I took similar steps when we had 10 people on a DSL for web and VoIP. :)

    Doing QoS both up and down, we make VoIP top priority, then interactive SSH, DNS, and empty ACK packets, and then everything else. My boss didn't think it would work (he subscribes to the notion that inbound QoS is impossible, or he used to at any rate), but the results spoke for themselves.

    PF offers several schedulers, but I've found the fancy ones aren't really useful on smaller connections (even a single 1500 byte packet can cause significant latency on a 768 kbps connection). I did tweak it so the VoIP and DNS/SSH queues didn't use RED, since we assume these services will never be bandwidth bound.

    RED basically drops packets with an increasing probability as the queue fills up, allowing it to throttle and still mitigate fluctuations in traffic, where a standard queue would just fill up and then do nothing but add latency. That's great for web and e-mail, but bad for VoIP or DNS or whatever.

    We've now got a dedicated wireless backhaul between us and the datacenter, so we too aren't terribly concerned any longer. :)

    --
    I rarely criticize things I don't care about.
  186. DD-WRT by Anonymous Coward · · Score: 0

    Honestly, just flash the firmware on your existing router with DD-WRT. It will give you the functionality you want because it has quality of service that works.

  187. You can use a Launch WiFi Box by Anonymous Coward · · Score: 0

    www.Launchwifi.com

    uses a special kernel to support application bandwidth sharing and throttling to each user. Making sure you have the correct bandwidth at all times.

  188. Asus WL500G Premium with OpenWrt by setsuna666 · · Score: 1

    We currently use the Asus WL500G Premium v1 at our work and we have VoIP. We installed OpenWrt on it (WhiteRussian firmware) and Rudy's Qos Script (http://forum.openwrt.org/viewtopic.php?id=4112&p=1). Since then we have no problem running multiple Torrent and download while talking on the phone. You should give it a try. You can also install the X-WRT version of the WhiteRussian firmware, it have an Web Interface so you wont have to do everything in command line. The only thing you'll have to do is configure the Qos Script. If you do not want to configure the router by yourself, we ( here at Quatral Solutions) could build the router with everyting you need and then ship it to you. If you need information, you can email me. Here is my email: jfrank@quatral.com You can contact me if you need information, I'll be pleased to help you.

  189. Re:Not actually true, you are doing it wrong... 8- by ciscoguy01 · · Score: 1

    Well, I didn't say it but you would need a codec box to get that. But clearly we weren't discussing FM stereo radio quality voice. I was just throwing that in as what you get on ISDN and how we're being so darned shortchanged by the telcos on our ADSL lines.
    And sure you would need two channels for FM stereo. But I've seen that done on remotes with one line, but they only had one mic. It sounded great.

    --
    .
  190. Re:Not actually true, you are doing it wrong... 8- by ciscoguy01 · · Score: 1

    I notice that now. I read that several times to see if you mentioned the connection type. I missed it.
    As I said cable lines are usually a lot faster than ADSL and should be having no problems.
    So that leaves fake problems they made for you on purpose.
    You might see if there are those Sandvine traffic management boxes I mentioned on your network throttling you.
    That may screw up voip. I don't see how it could avoid it since what it does is send you phoney resets all the time.
    Bit torrent can take that as can web but voice? Heck no. You will get lots of stuttering, distortion, etc. Pretty much unusable.
    Kind of the problem you got. I suspect foul play.

    --
    .
  191. QoS question by hackus · · Score: 1

    Yes, that should not be a problem.

    First however, you need a decent router:

    http://www.newegg.com/Product/Product.aspx?Item=N82E16833124190&nm_mc=OTC-Froogle&cm_mmc=OTC-Froogle-_-Network+-+Wireless+Routers-_-LINKSYS-_-33124190

    In that respect make sure you get the WRT54GL version.

    Cisco, has gutted the normal WRT54G and so far has destroyed its quality and usefulness. (Much like the crap it sells anyway.) They have pulled out the memory, destroyed the ability to put better antennas on the unit, etc.

    In short, they want to make sure they get as much money as possible, and your wireless sucks ass.

    CISCO has SO FAR left the WRT54GL alone, and it is an exceptional beast, once you flash it with dd-wrt.

    http://www.dd-wrt.com/dd-wrtv3/index.php

    You want the package in this directory:

    http://www.dd-wrt.com/dd-wrtv2/down.php?path=downloads%2Fv24%2FBroadcom%2FLinksys%2FWRT54GL_1.1/

    Pick the voip generic package. (dd-wrt.v24_voip_generic.bin )

    Then select the .bin file above as the target flash upgrade in the normal admin page for the WRT54GL.

    Wait 5 minutes for the process to complete, and try to pull a web page from it. If you get a web page, wipe the config with the resessed button on the back of the unit, wait 2 minutes, then power cycle the unit.

    It should come up as 192.168.1.1 and login with "root" and "admin" as the password.

    -Hack

    --
    Got Geometrodynamics? Awe, too hard to figure out? Too bad.
  192. Try Changing Port to High.... by Anonymous Coward · · Score: 0

    Try setting the port that your VOIP is plugged to high priority and keep the rest at low. Made this change the other day and it seemed to fix the problem.

  193. Setting a limit of 90% of the actual bandwidth by Britz · · Score: 1

    I think is covered in the docs. That does the trick. I should have mentioned it. Thanks

  194. Re:Rapidshare Torrent by cartman94501 · · Score: 1

    I am the OP. Your "answer" is nonresponsive. What's Rapidshare?

  195. Use a Zyxel X550 Router, Fast and Inexpensive!! by gbertoli · · Score: 1

    I had the same problem, had several Linksys Routers, tried all the 3rd party firmware (except tomato), still choppy VOIP. Installed the Zyxel X-550 and voila, no problems!!! It contains a VERY fast processor. Make sure you install the latest firmware from Zyxel, enable Streamengine (check Auto Classification, Dynamic Fragmentation, and automatic uplink speed), add a "game rule" to forward UDP traffic (ports 5061, 10000-20000) to/from your Vonage box IP address. That's it. Tech For Less has open box units for $33 currently.

  196. Re:Not actually true, you are doing it wrong... 8- by IBitOBear · · Score: 1

    Because the guy was complaining about using BitTorrent (which uses TCP) and it's impact on his VoIP (which doesn't).

    But bandwidth it bandwidth.

    Plus, since the BitTorrent transfers are going to be filling your outgoing packet backlog, if you check out the scripts referenced, you will find that the VoIP packets can "pass on the curve" in the scheduler inside the linux box.

    Remember that VoIP is all about _timly_ dilevery, a "late" is indestinguishable from a "drop", so all the elements have to be considered including the protocols that are raising the interference bar (BitTorrent) instead of just the protocall being used.

    It's called "Systems Theory"... 8-)

    --
    Innocent people shouldn't be forced to pay for inferior software development.
    --"Code Complete" Microsoft Press
  197. Re:Not actually true, you are doing it wrong... 8- by IBitOBear · · Score: 1

    Interesting... It didn't ever "reject" the number I used. I never looked to see if it was just capping or rounding down the value. /doh! 8-)

    (e.g. you put in 80 and it seems fine, now I'll have to find out if its being clipped or ignored or what... 8-)

    --
    Innocent people shouldn't be forced to pay for inferior software development.
    --"Code Complete" Microsoft Press
  198. Re:Not actually true, you are doing it wrong... 8- by IBitOBear · · Score: 1

    Notoriously false. Take the scripts and do the experiment by setting INTERFACE_SPEED (which is uplink) and tuning the numerator of CEILING to effect 100% or more and test against a near-by speed test site.

    You can step right off the edge of the crappy upstream buffer almost instantly.

    Since changing the ceiling only (effectively) selects between whether the backlog is in the router or the modem, it becomes a direct demonstration of overloading the upstream buffer.

    Yes, I did the experiment extensively.

    (Note that this may vary by provider, I have Comcast)

    --
    Innocent people shouldn't be forced to pay for inferior software development.
    --"Code Complete" Microsoft Press
  199. Re:Not actually true, you are doing it wrong... 8- by IBitOBear · · Score: 1

    I figured people would get that part. Since the complaint is that BitTorrent (which does most of its stuff over TCP) is stepping on the VoIP, my point was that fixing the TCP and letting/making the UDP skip to the head of the line are the ways to fix the problem.

    --
    Innocent people shouldn't be forced to pay for inferior software development.
    --"Code Complete" Microsoft Press
  200. It's not the router, it's the 802.11 radio link by notonymous · · Score: 1

    You mention the WRT54G so I assume that you are using a WLAN AP with a built-in router. If so, then your problem is the 802.11 radio link, not the router and not the wired link to your ISP. Basic 802.11 is a best-effort, contention-based protocol. The VoIP box will compete for bandwidth with the BitTorrent box essentially on a first-come, first-served basis. There are extensions to 802.11 that allow the AP to control access to the link in order to exercise QoS policies. Most APs (and client NICs) don't support these extensions, especially in consumer products. Your other choice would be to buy a second AP, run it on a different channel from the first, and give your VoIP box exclusive access to the second AP. A simple hub/switch on the back end will give both APs access to your wired ISP link.

  201. Re:Not actually true, you are doing it wrong... 8- by Andy+Dodd · · Score: 1

    Exactly. If the backlog is in the router, the modem's buffer stays empty and latency is low.

    If the backlog is in the modem, packet loss does not skyrocket much but latency does. This is a sign of a large buffer. If the buffer were small as you claim, there would be a packet loss increase but no latency increase.

    --
    retrorocket.o not found, launch anyway?
  202. Re:Put the Vonage adapter in front of your Linksys by Anonymous Coward · · Score: 0

    Mine's already hooked up in this order, and I have the same problem as the original poster.