QoS with PfSense

eliteky
Posts: 74
Member Since:
2007-06-07

Alright heres our setup.

We are running Trixbox 2.4.

There are approx 20 ip phones in the building. Including Aastra 57i's, Polycom 4000's, and softphones.

We use SIP protocol with Vitelity for all of our incoming and outgoing calls.

We have several SIP trunks setup between our other locations "also using trixbox 2.4-2.6".

We have a 3/3 internet connection comming into the building.

We have 2 gigabit switches, one for data and one for phones, both are D-Link only the phone switch is PoE.

We are using Pfsense as the router. We only have 2 Nic's int he pfsense. Lan and Wan.

We preformed several speed test to verify that we were reciving 3/3 or better.

We enabled traffic shaping on the pfsense. We set our bandwidth up as 2500/2500. We want VoIP to have a min of 1024Kbps available at all times.

Here is how our queue setup
########################
WAN->LAN UDP * 192.168.1.164 qVOIPDown/qVOIPUp VOIP Adapter
LAN->WAN UDP 192.168.1.164 * qVOIPUp/qVOIPDown VOIP Adapter
########################
"192.168.1.164 being our Trixbox"

In our Service Curve, we have the following set for each voip queue
Real Time: m1=1500Kb d=5000 m2=1024kb

Note that I am in a different office
That being said, I call up a coworker to test the call "via interoffice". This is going over standard SIP. I start a speed test and I begin counting slowly to him.

While the speed test in running the "Download" test, he hears every number perfect. However, once upload begins he says I become very choppy, not even heard some numbers.

When we have him count, I hear everything perfect.

This is a little confusing to me. Since im calling into the system, shouldn't the upload affect what I hear?

How can I make this QoS better?

"update"
I have noticed this when looking at the traffic graph when I run the speed test. When upload starts, Download dies horribly. see attached photo.

http://speekgeek.com/images/see.JPG



cvander
Posts: 637
Member Since:
2006-06-26
Eliteky, I just went through

Eliteky,

I just went through something similar, and thought I'd share my experience. It seems that you are encountering the primary difficulty with VoIP, which is that while you can instantiate QOS on your network, your provider does not implement it on their end. The QOS is only one direction. Unfortunately, there is no silver bullet for this, there is a new pfsense (v1.3) that should be available in the next month or so that may help, but unless your provider also manages their traffic, you always have the possibility of running into this snag. Hope this helps.

-Chris



far182
Posts: 82
Member Since:
2007-07-18
Using PFSense setup shaping

Using PFSense setup shaping rules to downgrade all other protocols. Limit all others to max out at 2000kbps. This should work pretty flawlessly.



eliteky
Posts: 74
Member Since:
2007-06-07
Ended up being everything

Ended up being everything was setup correctly. however pfsesne and our cisco 1700 series router from the ISP was agreeing. So we had to set both to 10/100 full duplex instead of auto detect.



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.