Swimminginthought

A place for all things technical and my mind..

Menu
  • About Me / Hire Me
Menu

VOIP Tunneling with SBO or OpenVPN?

Posted on June 29, 2012 by Percy Kwong

There seems to be much talk these days of tunneling and Voice-Over-IP(VOIP) most of it for the singular purpose of keeping the communications secure or hidden from the nasty overlords of the Internet.  There seems to be two camps in this and two main technologies.

Session Bandwidth Optimization and OpenVPN.  Both do similar things, but it really comes down to which technology works better?  Let me start with some basic Information.

Most VOIP traffic is already compressed so if you’re using g729a or G723.1, compression isn’t going to get you much.  This article is written to dispel the fact that you can compress an already compressed data stream even more.  In some cases, you can depending on the compression algorithms used, but claiming an additional 80% difference over an already compressed g729a stream is utterly ridiculous.  It doesn’t happen unless you’re compressing silence.  Then I’d be able to claim 100%.  I just wouldn’t send a packet.  It’s silence.

So let’s talk about it in a bit of detail.  SBO is nothing more than Encryption + packet prioritization.  It’s basically the same thing to traffic shaping and sending it down an encrypted tunnel.  Don’t get me wrong, it’s tuned a bit better for a specific application (in this case, VOIP).

OpenVPN is simply an encrypted tunnel, but one of the advantages of OpenVPN is it allows you to compress the stream if it’s compressable even more prior to going through the tunnel using something called adaptive compression.  Couple this with a traffic shaper and you have the same thing as SBO; in some cases even better.

So let’s talk about the solutions in full:

SBO: Requires a separate server to do the optimization prior to sending it down the tunnel and of course the other end would decrypt it (usually another SBO box or in some cases, Asterisk).  One problem with this solution.  Why would you want to add additional CPU utilization on your Asterisk box already?

OpenVPN: Add a traffic shaper and you’re effectively doing the same thing.  You have your choice of Encryption protocols and you still perform the same features.  The only difference?  It’s lighter weight.

So why reinvent the wheel?  Add yet another solution to the slew of solutions that are already out there.  There is no magic bullet, although, I can say that by properly tuning your Gateways and Asterisk boxes, you will gain the same throughput on both solutions.

1. Introduce silence detection.  This is a huge bandwidth saver.

2. Prioritize Voice Packets and sessions.

3. Use VOIP algorithms that are extremely efficient.  (g729, ilbc, g723.1) and you have your solution.

4. You need to see if the overhead of the encryption is worth it comparatively with all the other encryption ciphers.  Remember, each cypher will give you different overhead.  In some cases, turning off encryption of the stream actually improves performance as long as you have traffic prioritization set up properly.

It’s not rocket science people, but compression is a very special niche in IT and anyone selling you 80% additional compression over an already incredibly compressed g729 stream is selling you snake-oil.

You can do it yourself in a much easier way.  It works the same and accomplishes the same goal.  It’s just knowing what you’re doing.

 

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • Kubernetes install gotcha on CentOS-7.x
  • Infrastructure as Code using AWS Cloudformation
  • Does SSL matter? It does and it’s not just web encryption.
  • Apache can’t serve the .well-known directory
  • Cloudy with a chance of Meatballs
  • Resurrection of the Blog
  • Encryption type Matters with Deep Packet Inspection – solved
  • Completely off topic.. Just a personal note.

Recent Posts

  • Kubernetes install gotcha on CentOS-7.x
  • Infrastructure as Code using AWS Cloudformation
  • Does SSL matter? It does and it’s not just web encryption.
  • Apache can’t serve the .well-known directory
  • Cloudy with a chance of Meatballs

Recent Comments

  • Percy Kwong on Boosting Octane Yourself. I did the research, made it, and proved it.
  • Nick Doelman on Boosting Octane Yourself. I did the research, made it, and proved it.
  • Percy Kwong on International Text solutions – A solution
  • Muzahid Ul Islam on The Browser Wars; Which One is Best?
  • Muzahid Ul Islam on International Text solutions – A solution

Archives

  • September 2019
  • August 2019
  • July 2012
  • June 2012
  • May 2012
  • April 2012
  • March 2012
  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • August 2011
  • June 2011
  • March 2011
  • February 2011
  • November 2010
  • October 2010
  • September 2010
  • July 2010
  • January 2010
  • November 2009
  • October 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008

Categories

  • Activism
  • All
  • Amazon S3
  • Announcements
  • Apache
  • Apple
  • Applications
  • Automation
  • AWS
  • Azure
  • Backups
  • Blogging
  • Books
  • Bootcamp
  • CentOS – RHEL
  • Cloud Computing
  • Cloudformation
  • Consulting Advice
  • Craigslist
  • Databases
  • Deep Packet Inspection
  • Doing the right thing
  • e-Book Readers
  • E-Mail
  • EC2
  • energy-efficiency
  • environment
  • Expose
  • firewalls
  • General Observations
  • Hardware
  • Hope
  • Hosting
  • IaC
  • Important things to do in life
  • Infrastructure as Code
  • Kubernetes
  • Linux
  • Media and Encoding
  • Miscellany
  • Mobile Phones
  • MySql
  • Networking
  • Performance
  • Personal
  • pfsense
  • Politics
  • Privacy
  • Redundancy
  • Routers
  • security
  • SPAM
  • Tech that doesn't work like it should
  • Tips and Tricks
  • Tools that work
  • Tout
  • Video
  • Virtual Computing
  • VOIP-Voice Over IP
  • VPN
  • Web Browsers
  • Web Hosting
  • Websites
  • Windows
  • Wordpress

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
©2026 Swimminginthought | Built using WordPress and Responsive Blogily theme by Superb