Question

Implemeting VoIP and QoS

Asked by: stevegoldwa

I am doing VoIP using Asterisk PBX, and using a softphone on my PC. Asterisk states that ports 5060 and 10000-20000 are needed for the phone system. So in my Buffalo router running Tomato firmware, I have prioritized this traffic as "Highest" with everything else "Lowest" (including BitTorrent). The problem is that when I am surfing the web and pages are being pulled up the voice quality suffers for me ... as well as my colleague. And it really sounds horrible if I am downloading something on BitTorrent. Since the softphone runs on the same PC as my browser, I felt the only way to do VoIP QoS was by port number and NOT by IP address.  

Does anyone know what I am doing wrong?  Is it just that QoS is broken with Tomato firmware (in the QoS sense, I hear that Tomato is way better than DD-WRT).  I would also be willing to buy a new router that would fix the problem if anyone has any suggestions.

Thanks in advance!

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-10-08 at 18:10:39ID24798098
Tags

VoIP

,

QoS

,

Tomato firmware

Topics

Voice Over IP

,

Network Routers

Participating Experts
2
Points
500
Comments
7

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. VOIP
    Hi there, I am pretty new to VOIP and know a few things theorotically from books. However I wanted to know is there any scope for project developement in this field to gain some experience. If yes then what kind of project ideas can I implement and would I need any expensi...
  2. VoIP
    Dear Experts. What are some of the considerations an our organization should look at when moving from a traditional phone system to Voice over IP (VoIP)? I think that when we switch to VOIP we may have existing telephony folks that suddenly find themselves more dependent on ...
  3. To VoIP or not to VoIP
    Hi everyone, I am 24 hours away from deciding on VoIP versus PBX. I like all of the features of VoIP and the configurability as well as the fact that communication technology seems to be moving in that direction. Price-wise it is about a wash either way. I am setting up the...
  4. QoS for VoIP
    What is a good way to set up QoS for VoIP? Of course, this question is a catch 22 since it really depends what device you're using. But I'd like to look past that and first ask what the best way to set up QoS is. Is it better to have the QoS implemented as: Port Based Protoc...
  5. Asterisk (Voip Server) hosting
    Hello guys, Does anyone has an Asterisk server hosted off-site ? Like in those data centers that do web hosting in dedicated servers ? Is there a hosting company that has a special plan to host voip services like this, or usually is hosted in those dedicated servers like ...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: kparrentPosted on 2009-10-08 at 20:03:33ID: 25532079

My first suggestion will be to download a program called Wireshark.  Wireshark will show you all traffic that is coming across the network cable attached to your computer along with its ports.  Install wireshark, start monitoring traffic, and then start a call on your VoIP phone.  Check the ports to ensure that they are as listed above.

Nex, does your VoIP pone have any kind of integrated data tagging feature?  I setup QOS on Cisco phones and they have a built in feature to auto tag all VoIP traffic as DSC4, which then made it extremely easy to setup QOS.

 

by: LexmarPosted on 2009-10-09 at 19:58:59ID: 25540590

Wireshark is the defacto tool for diagnosing VOIP problems.  It has a rather steep learning curve to get useful accurate information from it.  I think your problem is pretty basic in nature though.

  1. What is your internet connection type and speed?  A DSL connection will never handle more than a couple trunks or remote extensions. 
  2. What is the result of a VOIP speed test? 
  3. How many SIP trunks? 
  4. Who is the SIP provider? 
  5. Ports are 5060-5062 TCP&UDP and your SIP provider needs to tell you what port range they want for RTP audio stream  10,000-20,000 UDP is just the starting point for a single trunk/phone.  (my 18 trunks run 10,000-60,000 UDP) 
  6. Low end SOHO routers like the Buffalo and the Linksys WRTxx even with the public domain software replacements are simply inadequate to handling VOIP.  I have found that the SPI software will queue up packets on almost every SOHO router out there and will walk all over your QOS settings.  It takes a hardware firewall designed to optimize for VOIP or a really powerful PC running a software firewall to keep up with the RTP.  Consider a Draytek or Edgemark router witht eh SPI turned off they specialize isn small VOIP setups on Cable and DSL.. 
  7. You can probably get a 40% improvement just by turning off the SPI. 
  8. Softphones are notorious for chop and bad audio.  The QOS in WIndows is abismal.  Recommend >2GHz with a dual core processor, 2GB RAM of DDR2 or better and SATA drive.  Also analog headset on hardware audio jacks is preferred over a USB headset.  Do you experience perfect audio on extension to extension calls that are entirely on the LAN?  Don't perform CPU I/O intensive things while talking on the softphone as PC's NIC may have a little QOS control, the CPU and I/O bus are for the most part first come first served.  Burning an ISO on an IDE drive is not a good thing to do 
  9. You need bandwidth management that is IP based and a fixed IP address for the asterisk box.  You need to reserve 100kbps of the upload speed for every trunk or remote extension on G711 CODEC.  You also need to leave an upload reserve for additional overhead generated by the asterisk box for DNS, and chat with the SIP registration and proxy servers. 

That;s enough of a list to get you some things to start working on.

Mark

 

by: stevegoldwaPosted on 2009-10-09 at 22:26:48ID: 25540946

Mark,
I appreciate your thorough reply. And it is a LOT more involved than I thought.  I think we do need to get more upload speed.  But just to narrow things down for this particular question ... the real problem is when I type in a URL, press "Enter" and my PC goes off to find the page, THAT'S when the quality breaks up (the person I am speaking with sounds very garbled to me).  It's more the stuff we are doing on our computers which we can control, rather than the public Internet which we cannot.  

You could say, just don't DO anything else while on a call, but that is not practical. We don't do anything in the background like processing video files or burning CDs or DVDs.  I have been using the USB interface but will try using the analog interfaces instead.

Should we maybe have a 2nd NIC card in each computer? Turns out there is another network in the office we rent independent of our DSL and we *could* websurf using that network, thus dedicating our DSL for the Asterisk system and our softphones only. Trouble is, I don't exactly know how to "segregate" computer activities whereby the softphone app would use 192.168.1.x and everything else on that computer (i.e. browsing) would utilize the other NIC card at 10.1.1.x.  Any ideas?  

Thanks again!

Steve

 

by: LexmarPosted on 2009-10-10 at 08:04:15ID: 25542529

Ok, that's some useful info in your last post.  One of my clients is a call center that uses entirely softphones  for all the agents.  They make calls and are working in Excel spreadsheet call lists at the same time.  I am converting them to a web based database for calls.

In a nutshell, the PC workstation needs enough whoopie that it can handle the I/O bursts associated with the workloads of a call and the other activities.  When we set it all up we experimented with workstations extensively to avoid the specific problem you are outlining.

This is what we found:

A single core laptop (1.7GHz Centrino/1GBRAM) could barely handle a call and do nothing else.  It could not do it on the WIFI LAN but was better on hard wired LAN.

A desktop (2.2GHz E2xxx series dual core with 2GB RAM DDR2 (667MHZ) worked fine with a call and open spreadsheet and had minor audio degradation if they saved or opened.  If you opened a web page and it was loaded with other embeded sites or lots of graphics (Google/Yahoo/MSN)  audio was definitely degraded to be borderline unacceptable for business use but OK for SOHO/home use.

A desktop with 2.6GHz E2xxx series on a faster databus and 800Mhz RAM speed was much better but could be pushed into unacceptable audio if you had all the apps open on a typical business desktop while doing a call and did not curtail your normal activities.  Note this is under Windows XP and as the machines have aged and Microsoft Update has loaded in Service Packs and Security updates, particularly IE7, XP SP3 and Office 2007 SP2 it has become easier to overload the box.  These systems are for internal use only and have no Antivirus engine running - Norton or Kaspersky would push these systems over the edge.

Start here to isolate whether the real problem is PC capacity or networking (LAN/WAN/ISP).

  1. It occurred to me to mention that you need to be on a wired LAN running on switches not hubs.  The Buffalo or any low end SOHO router with wireless capability will not work for RTP VOIP on its WIFI.  It just won't.   If you are running wireless, you need to fix that first.  
  2. Make an intercom call extension to extension on the LAN and try on one machine only to open web pages, files, etc. and see what the audio quality is like then?  If audio is bad then you need to fix it at the PC's before you can proceed.  If the audio is perfect or acceptable, then it is time for the Buffalo to go. 
  3. I am curious, what happens to your audio if you are on a call and someone on another PC on your LAN starts surfing web? 

Look at a Draytek 2910 or if you need wifi 2910g router.  For reference only, I sell a 2910 for around $175 but you can easliy find them for less from the big online retailers.  It can do the bandwidth management and prioritization for VOIP that you need.  It can also handle dual WAN as well if you go that route.  This particular router can fix a lot of problems in small VOIP systems.

 

by: stevegoldwaPosted on 2009-10-10 at 17:23:57ID: 25544405

Thanks again for the very thorough response.  

We do not have any hubs in our environment. I was told early on that hubs are VoIP killers and only switches should be used. When we frist had things set up, my associate had a hard-wired connection to the server and I used wireless -- it is a VERY small office, but I wanted to avoid a long wire running to the server.  I did away with that setup pretty quickly -- wireless VoIP was not a good idea and the quality was poor.

I have not done the internal intercom to intercom under heavy PC load test yet. I'll try that when I get back in the office next Tuesday. I will say that yes, the quality does break up for my colleague while I am futzing around on BitTorrent, so I bet that the Buffalo needs to go, right?

I saw the Draytek online for about $155 and may buy it. I still do want to have wireless and I do like the long reach of my Buffalo (and in my home, I have 2 Buffalo's WDS'd together, and need to implement better VoIP there as well).  If hang the Buffalo off of the Draytek, will I be messing up VoIP assuming I do all the traffc shaping with the Draytek?

 

by: LexmarPosted on 2009-10-10 at 20:01:42ID: 25544738

If torrents are messing up VOIP with the QOS set, then yes the Buffalo is not up to the task.

The Buffalo as a WAP only will work and not mess up VOIP remember to not use the WAN jack.  You can spring for a few more dollars and get the 2910g which has 54Mbps G (range is so-so).

The settings on the router for QOS and bandwidth management only have effect on the WAN.  The router is incapable of managing internal bandwidth use or QOS.  Even on 100Mbps internal LAN your VOIP will only use a small fraction of the total bandwidth of the LAN.

 

by: stevegoldwaPosted on 2009-10-10 at 22:00:30ID: 25544919

I am new to this site, so pardon me if I should start a new thread.

I don't want to spend additional money and have things not work out. I am wondering if we should do something different. The real estate office we rent a space within has their own T-1. We could web surf on THEIR network and leave the DSL alone and dedicate it specifically for VoIP. From everything I could tell, the quality was pretty dang good when we were not multitasking and surfing/BitTorrenting on the PCs.

If we wanted to go this route, how could we segregate the PC so that the softphone would use 1 NIC and everything else on that computer would use the other NIC (i.e. going out on the T-1).  Would we have to use VMware or some virtualization scheme, or is there an easier way to do it?  Everything I have ever done in VoIP seems to get loads better when I avoid mixing voice and other data activities.

Thanks again for the help!

Steve

P.S.  The PCs are moderately priced Dells with Core 2 Duo chips and 2GB of RAM.  I don't have the exact model numbers of the Intel chips.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...