* Jussi Peltola <pe...@pelzi.net> [2011-11-20 04:09]: > On Sat, Nov 19, 2011 at 08:58:46PM -0500, quartz wrote: > > is there a way to set up altq+priq on an internet connection with highly > > variable/unknown bandwidth? > > > > I'd like to create a simple one layer queue system that prioritizes empty > > ACKs over anything else (always, all the time, no matter the load or > > congestion). it looks like priq is the way to do this, but all the > > documentation I can find seems to say you have to type in a hard number, > > which won't work for my case. > > This is usually impossible. The packets get re-queued in the modem or > whatever device is next to the choke point, and any prioritization you > configure becomes useless. Typically the only way around it is to send > at a rate slightly lower than the choke point bandwidth, so the buffer > of the modem never starts to get utilized. If the bandwidth is variable, > you're screwed.
this is not true for simple priority queueing. it just reorders the packets. the modem is not supposed to, so your higher priority packets still go out before the later sent lower priority ones. however and admittedly: the effect of simple priority queueing isn't all that drastic since your machine only reorders within the packets it has in flight at the given moment (few less even). the combo of the extra buffer and the lower bandwidth link further down the road minimizes the effects - foremost when there is congestion on that slower link. -- Henning Brauer, h...@bsws.de, henn...@openbsd.org BS Web Services, http://bsws.de, Full-Service ISP Secure Hosting, Mail and DNS Services. Dedicated Servers, Root to Fully Managed Henning Brauer Consulting, http://henningbrauer.com/