Reply
 
Thread Tools Display Modes
  #1  
Old 04-15-08, 01:52 PM
VoicePulse VoicePulse is offline
Member
 
Join Date: Dec 2007
Posts: 41
Troubleshooting VoIP Call Quality Issues
Troubleshooting VoIP Call Quality Issues

Assuming you have a Windows PC and a PBX running Linux, there are two useful tools for troubleshooting call quality issues on VoIP -- Wireshark and Ping Plotter Freeware. Sending the results from these programs to your provider will help them diagnose the problem faster, but it doesn't guarantee the issue is something they can fix!

Wireshark captures and analyzes network traffic. It has compatible Linux and Windows versions, which makes it easy to capture the traffic on your Linux PBX, copy it over to Windows and view the results. This capture file can be used to identify almost any SIP problem, so being able to do these steps is very helpful! To do the copy, you will also need to install a program called pscp on your Windows PC.

Run the following to install Wireshark on your PBX (assuming it's running CentOS):
Code:
yum install wireshark

Run the following commands on your PBX to capture all traffic, SIP (signaling) and RTP (audio), between the PBX and your provider's server into file /root/my.cap. Based on the options used below, this file can get very large very fast if you have lots of simultaneous calls! Type Ctrl-C after making a phone call to stop the capture.
Code:
tshark host server.provider.com -w /root/my.cap

Run the following command to compress your capture file my.cap into a compressed my.cap.gz file:
Code:
gzip /root/my.cap

From your Windows PC, run the following to copy that capture file from your PBX's IP address to your Windows PC's C: drive. You will be prompted for the PBX's root password.
Code:
pscp root@192.168.1.2:/root/my.cap.gz C:\

Then you can open C:\my.cap.gz using the Windows version of Wireshark. The Statistics > VoIP Calls menu will let you see all of the calls and let you graph the SIP dialog (to diagnose problems registering or incoming calls that don't ring) or playback the call (to find the one with audio quality problems). The Statistics > RTP menu will let you see all of the RTP streams (audio) and the packet loss, jitter, etc associated with each one. If you see packet loss or high jitter during the calls you experienced call quality issues with, that might explain the problem!

Next, if you want to track down where the packet loss is occurring, you can install Ping Plotter Freeware on your Windows PC and run a continuous ping to a server on your provider's network. You might want to ask them which server to use, because the SIP proxy or website may not be ideal.

The Ping Plotter trace will help you identify if there was packet loss during the times you experienced call quality issues. You can also save the Ping Plotter capture and send that to your provider.

Remember, if the packet loss is at some router on the Internet between you and your provider, you might both be helpless in fixing the situation! Occasionally, your provider might be able to recommend a different server to connect to that is on a network that will bypass that troublesome router.

I hope this helps you get started in troubleshooting your VoIP call quality issues. Resolving the issue will require a similar effort from your provider and their willingness to examine the useful data you've collected on the problem. The most important thing is to actually capture the problem occurring in a Wireshark capture, because the entire phone call can then be analyzed.

Good luck!

Copyright (c) VoicePulse 2008
__________________
VoicePulse for Business & Wholesale
FREE trial for PBX in a Flash users
Setup trunks, configure inbound routes, and manage your VoicePulse account inside your PiaF control panel!
Reply With Quote
  #2  
Old 04-15-08, 01:54 PM
wardmundy wardmundy is offline
Nerd Uno
 
Join Date: Oct 2007
Posts: 3,881
Great tip! Thanks.
Reply With Quote
  #3  
Old 04-15-08, 02:21 PM
jroper jroper is offline
Guru
 
Join Date: Oct 2007
Posts: 3,333
The mtr command is also a useful one for checking the state of a network.

It's kind of ping and traceroute's love-child.

Joe
Reply With Quote
  #4  
Old 04-15-08, 02:25 PM
VoicePulse VoicePulse is offline
Member
 
Join Date: Dec 2007
Posts: 41
Joe,

Yes, mtr is useful too if you're working in a Linux-only environment. I don't think it outputs a file that can be used to store or replay what it captured, but it's still useful in seeing where the problem is while it's occurring.
__________________
VoicePulse for Business & Wholesale
FREE trial for PBX in a Flash users
Setup trunks, configure inbound routes, and manage your VoicePulse account inside your PiaF control panel!
Reply With Quote
  #5  
Old 04-15-08, 02:36 PM
jroper jroper is offline
Guru
 
Join Date: Oct 2007
Posts: 3,333
Hi

yes agreed, if I heard quality issues occuring, my first port of call would be to run mtr to the provider. If that threw up issues, then then I would follow your very good and precise advice.

I just wish you had not copyrighted it, so we could thow it into some documentation. ;-)


Joe
Reply With Quote
  #6  
Old 04-15-08, 05:56 PM
mtennant mtennant is offline
Senior Member
 
Join Date: Oct 2007
Location: Georgetown, SC
Posts: 244
http://winmtr.sourceforge.net/

is also available for the Windows OS.

Works great. Thanks for the tip.
Reply With Quote
  #7  
Old 04-15-08, 06:19 PM
grumpy grumpy is offline
Senior Member
 
Join Date: Mar 2008
Posts: 123
Thank you for the tutorial, I have already used pingplotter. And it's results scare me, I'm trying to get wife approval but the quality is not there yet! I think Bell's shaping is having an effect and packet lost at some routers. My connection according to speed test is not as good as it was two weeks ago and the feel of surfing is not the same. But I have no other choice for hi speed.

Here is a graphic from ping plotter. in zip as I could not upload png.
Attached Files:
File Type: zip 208.122.30.xxx.zip (26.4 KB, 18 views)
Reply With Quote
  #8  
Old 04-15-08, 06:27 PM
mtennant mtennant is offline
Senior Member
 
Join Date: Oct 2007
Location: Georgetown, SC
Posts: 244
71ms roundtrip is around 35ms one way. That isn't bad at all, in my experience.
Reply With Quote
  #9  
Old 04-15-08, 07:08 PM
grumpy grumpy is offline
Senior Member
 
Join Date: Mar 2008
Posts: 123
Thanks for the reply mtennant, I had been comparing numbers to the 71ms not halfing it. But what about the packet loss on one of the routers, and as I retest that router improves by 5% but another drops 7%. Is the packet loss actually more important to voip then ping time? I have to admit I've been doing computers for over 20 years but never got involved in big lans or wan much. Most of it goes beyond me, like wireshark cool info but no idea what it means.
Reply With Quote
  #10  
Old 04-15-08, 07:24 PM
mtennant mtennant is offline
Senior Member
 
Join Date: Oct 2007
Location: Georgetown, SC
Posts: 244
Packet loss is not good. You want zero. A little is not the end of the world, but not on a consistent basis. If you are compressing your voice, it becomes a much bigger issue.

Packet loss tells me your upstream providers are trying to push too much thru too little.

I'd complain.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:01 PM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2007-2008, Ward Mundy & Associates