Actually you have to give high priority to DNS access so users get good interactive response out of web browsers, and NTP should have highest priority possible so that clocks are accurate if you use it.
Main Topics
Browse All TopicsHello all,
I've been trying to get PF ALTQ setup and for the life of me I cannot figure out what the errors below are meaning, or at least what they are asking me to change. I have tried playing around with the values with no luck! I'm hoping someone here can assist with setting this up.
Before I get into the errors I will first outline what I am trying to accomplish with ALTQ.
I have chosen to work with HFSC as it seemed like the best option for VOIP. If this was an incorrect choice please let me know.
My ALTQ is supposed to help reduce network congestion as I am using both time sensitive and non-time sensitive services. However I would have preferred my total bandwidth to be shared by all the queues (borrow w/ CBQ) as I do not really care if one queue takes up most or all of the bandwidth as long as it gives it back when something like VOIP needs it.
VOIP vs bittorent basically. So I am looking to firstly prioritize VOIP over everything so my calls still work while also making sure traffic still flows (even if it is slower) and finally I am trying to optimize the flow of Ack's as I am on an ADSL line.
ACK Pri Ref #1: http://www.benzedrine.cx/a
ACK Pri Ref #2: http://www.openbsd.org/faq
Could you please assist with:
1. Getting my ALTQ working properly for my situation
2. Making sure I am doing the ACK prioritization properly.
Thanks for your help!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
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.
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.
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.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
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.
Hi gheist,
thank you for the response however I would not be able to implement anything until my ALTQ is working.
While I was waiting for a reply I tried implementing CBQ to see if this would work any better.
I get a different error which may also be why HFSC was not working.
The errors says there is something wrong with line 30. This is my opening ALTQ statement. I do not anything wrong!
I have attached my PF.CONF.
Hope you can help!
Thanks
Hello,
I have removed all the queue size limits as I don't really care about them anyhow. At least not now or until I need to. :P
I tried starting with your pfctl -nvf ... and I see all the config pop up followed by the same error. "Syntax incorrect"
I believe there is a bit of a mistake here. I think line 30 is showing up wrong. Line 30 in my actual config is the first line of ALTQ (line 28 on this site)
altq on $ext_if cbq bandwidth 600Kb queue { tos, dns, ssh, webftp, bitt, voip, rdpvnc, general }
Is now how it should be reading.
I just don't get why it says syntax error.
Correct my original post was using HFSC queuing.
I have switched to CBQ as noted in the following post which did not produce near as many errors. I also noted that I think both CBQ and HFSC were having trouble for the same issue at hand now.
For some reason my main ALTQ statement is not accepted. This is causing all commands thereafter to produce errors because the PARENT queue no longer exists.
There is no problem with this one line:
altq on $ext_if cbq bandwidth 600Kb qlimit 500 queue { tos, dns, ssh, webftp, bitt, voip, rdpvnc, general }
qlimit 500 on next line actually uses all the interface queue and rest of rules do not load.
please disable all of ECN usage. That is feedback protocol and very unlikely to be working at 640kbps consumer line.
It may count lines not commented or lines containing actual statements...
at least ipf did so long ago. so I suspect lines defining queues a bit further.
line you mentioned matches whats described in pf.conf manual page, so I assume no problem there.
what is with webftp queue ? May it complain it is not used hard way?
I am to install latest OpenBSD to do some testing on my own. expect more in couple of days.
Hello gheist,
I am not sure exactly what I've done but i tried PRIQ based off of someone elses script and that worked fine! Then I tried CBQ again but a little simpler than my original and it works fine now also!!! I HAVE NO IDEA what is different or why its working now, but it is!
So thanks for your input none the less. :)
I believe I should be fine for now...at least until I encounter a new mystery!
Business Accounts
Answer for Membership
by: gheistPosted on 2008-10-16 at 02:43:33ID: 22729163
ECN does not always work esp over frame relay, vpn and the likes.
There is usually one ack packet over 12k-64k window. It has no data just header. Over serial line that would make 1/1000 of bytes transferred, On ethernet given we send always full frame that will be 1/40 of traffic. If we experience resending things change for worse.
I'd suggest blindly adding 1:1:1:1 for each of classes and unallocated in each priority group (And then pfctl -s queues to see overused ones)