Traffic Shaping for VOIP: Beyond the Wizard?

  • My office at work just recently moved to pfSense for our routing/firewall. I, personally, am not familiar with traffic shaping configurations so I want to make sure I'm understanding how pfSense handles it.

    Our network is divided into 2 lans, one for VoIP phones and the other is for everything else. (each lan has it own interface) We also have an even 20mb/s up & down wan speed and we do a lot of ftp up/downloads.

    When using our old router, the VOIP would start to break up when an ftp transfer was happening, a problem traffic shaping can fix. The configuration we want is to allow guaranteed bandwidth to VOIP traffic both ways but still allow the bandwidth be used by other traffic when VoIP is not using it. From my research I've figured that CBQ will fit the need.

    I've run the traffic shaping wizard setting all interfaces to CBQ and setting VOIP to 1 MB/s. Is that enough configuration for shaping VoIP traffic of is there some other configuration that I should look at? From what I gather from reading documentation, the default qACK at 19% is at an ok level so I don't need to change it. (Though I might increase it to help with our ftp traffic)

    Also, if I wanted to add a guaranteed bandwidth for ftp traffic in the future, where should what should the queue configuration be? I don't quite understand how pfSense automatically knows that from the Queue Name what type of traffic should go in that Queue. (I.E. does a Queue Name of "qftp" make pfSense know it's for ftp traffic?)

    Thanks for any clarification

  • I'm not an expert by far but you'll find in the Firewall Rules -> Floating Rules where the wizard puts your VoIP queue rules. You can copy those and adjust them to make them work for FTP.

    As far as I understand it, usually if there is no VoIP traffic, other traffic will be able to use the whole pipe. I didn't use CBQ though so it might vary by the type.

Log in to reply