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."
Perhaps try picking up a WRT54GL and installing Tomato on it.
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
This has worked for me, no regrets.
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
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
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.
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
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
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".
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
>>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.
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.
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.
.